]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
e7e8eacf5e2c367f45bd858b3e3b8a1f7dae1edb
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 BUILD_DIR
803 TOP_DIR
804 TRUEPRG
805 FALSEPRG
806 VERSION
807 DATE
808 LSMDATE
809 BACULA
810 post_host
811 CC
812 CFLAGS
813 LDFLAGS
814 CPPFLAGS
815 ac_ct_CC
816 EXEEXT
817 OBJEXT
818 CXX
819 CXXFLAGS
820 ac_ct_CXX
821 CPP
822 GREP
823 EGREP
824 INSTALL_PROGRAM
825 INSTALL_SCRIPT
826 INSTALL_DATA
827 MV
828 REMOVE
829 CP
830 SED
831 ECHO
832 CMP
833 TBL
834 AR
835 OPENSSL
836 MTX
837 DD
838 MKISOFS
839 PYTHON
840 GROWISOFS
841 DVDRWMEDIAINFO
842 DVDRWFORMAT
843 PKGCONFIG
844 QMAKE
845 QMAKEQT4
846 WXCONFIG
847 WXFLAGS
848 CDRECORD
849 PIDOF
850 AWK
851 ARFLAGS
852 MAKE_SHELL
853 LOCAL_LIBS
854 LOCAL_CFLAGS
855 LOCAL_LDFLAGS
856 LOCAL_DEFS
857 LIBTOOL
858 build
859 build_cpu
860 build_vendor
861 build_os
862 host
863 host_cpu
864 host_vendor
865 host_os
866 FGREP
867 LD
868 DUMPBIN
869 ac_ct_DUMPBIN
870 NM
871 LN_S
872 OBJDUMP
873 STRIP
874 RANLIB
875 lt_ECHO
876 DSYMUTIL
877 NMEDIT
878 LIPO
879 OTOOL
880 OTOOL64
881 CXXCPP
882 DEFAULT_OBJECT_TYPE
883 DEFAULT_ARCHIVE_TYPE
884 DEFAULT_SHARED_OBJECT_TYPE
885 LIBTOOL_INSTALL_TARGET
886 LIBTOOL_UNINSTALL_TARGET
887 LIBTOOL_CLEAN_TARGET
888 QMAKE_LIBTOOL
889 INCLUDE_INSTALL_TARGET
890 INCLUDE_UNINSTALL_TARGET
891 HAVE_SUN_OS_TRUE
892 HAVE_SUN_OS_FALSE
893 HAVE_OSF1_OS_TRUE
894 HAVE_OSF1_OS_FALSE
895 HAVE_AIX_OS_TRUE
896 HAVE_AIX_OS_FALSE
897 HAVE_HPUX_OS_TRUE
898 HAVE_HPUX_OS_FALSE
899 HAVE_LINUX_OS_TRUE
900 HAVE_LINUX_OS_FALSE
901 HAVE_FREEBSD_OS_TRUE
902 HAVE_FREEBSD_OS_FALSE
903 HAVE_NETBSD_OS_TRUE
904 HAVE_NETBSD_OS_FALSE
905 HAVE_OPENBSD_OS_TRUE
906 HAVE_OPENBSD_OS_FALSE
907 HAVE_BSDI_OS_TRUE
908 HAVE_BSDI_OS_FALSE
909 HAVE_SGI_OS_TRUE
910 HAVE_SGI_OS_FALSE
911 HAVE_IRIX_OS_TRUE
912 HAVE_IRIX_OS_FALSE
913 HAVE_DARWIN_OS_TRUE
914 HAVE_DARWIN_OS_FALSE
915 SET_MAKE
916 MKINSTALLDIRS
917 USE_NLS
918 MSGFMT
919 GMSGFMT
920 XGETTEXT
921 MSGMERGE
922 INTL_MACOSX_LIBS
923 LIBICONV
924 LTLIBICONV
925 INTLLIBS
926 LIBINTL
927 LTLIBINTL
928 POSUB
929 GLIBC2
930 ALLOCA
931 GLIBC21
932 HAVE_POSIX_PRINTF
933 HAVE_ASPRINTF
934 HAVE_SNPRINTF
935 HAVE_WPRINTF
936 INTLBISON
937 BUILD_INCLUDED_LIBINTL
938 USE_INCLUDED_LIBINTL
939 CATOBJEXT
940 DATADIRNAME
941 INSTOBJEXT
942 GENCAT
943 INTLOBJS
944 INTL_LIBTOOL_SUFFIX_PREFIX
945 GNOME_INCLUDEDIR
946 GNOMEUI_LIBS
947 GNOME_LIBDIR
948 GNOME_LIBS
949 GNOME_DIR
950 BAT_DIR
951 QWT_INC
952 QWT_LDFLAGS
953 QWT_LIB
954 QWT
955 WXCONS_CPPFLAGS
956 WXCONS_LDFLAGS
957 WX_DIR
958 TRAY_MONITOR_CPPFLAGS
959 TRAY_MONITOR_LDFLAGS
960 TRAY_MONITOR_DIR
961 TTOOL_LDFLAGS
962 STATIC_FD
963 STATIC_SD
964 STATIC_DIR
965 STATIC_CONS
966 STATIC_GNOME_CONS
967 STATIC_WX_CONS
968 ALL_DIRS
969 DIRD_DIR
970 DIR_TOOLS
971 STORED_DIR
972 CONS_INC
973 CONS_OBJ
974 CONS_SRC
975 CONS_LIBS
976 CONS_LDFLAGS
977 READLINE_SRC
978 PYTHON_LIBS
979 PYTHON_INCDIR
980 OPENSSL_LIBS
981 OPENSSL_INC
982 working_dir
983 archivedir
984 scriptdir
985 plugindir
986 dump_email
987 job_email
988 smtp_host
989 piddir
990 subsysdir
991 baseport
992 dir_port
993 fd_port
994 sd_port
995 dir_password
996 fd_password
997 sd_password
998 mon_dir_password
999 mon_fd_password
1000 mon_sd_password
1001 db_name
1002 db_user
1003 db_password
1004 db_port
1005 dir_user
1006 dir_group
1007 sd_user
1008 sd_group
1009 fd_user
1010 fd_group
1011 SBINPERM
1012 SQL_LFLAGS
1013 SQL_INCLUDE
1014 SQL_BINDIR
1015 DBI_DBD_DRIVERDIR
1016 uncomment_dbi
1017 DB_PROG
1018 DB_PROG_LIB
1019 cats
1020 DB_TYPE
1021 GETCONF
1022 XMKMF
1023 X_CFLAGS
1024 X_PRE_LIBS
1025 X_LIBS
1026 X_EXTRA_LIBS
1027 LIBOBJS
1028 FDLIBS
1029 DEBUG
1030 DINCLUDE
1031 DLIB
1032 DB_LIBS
1033 WCFLAGS
1034 WLDFLAGS
1035 WRAPLIBS
1036 OBJLIST
1037 hostname
1038 TAPEDRIVE
1039 PSCMD
1040 WIN32
1041 MACOSX
1042 DISTNAME
1043 DISTVER
1044 LTLIBOBJS'
1045 ac_subst_files='MCOMMON'
1046       ac_precious_vars='build_alias
1047 host_alias
1048 target_alias
1049 CC
1050 CFLAGS
1051 LDFLAGS
1052 LIBS
1053 CPPFLAGS
1054 CXX
1055 CXXFLAGS
1056 CCC
1057 CPP
1058 WXCONFIG
1059 WXFLAGS
1060 CXXCPP
1061 XMKMF'
1062
1063
1064 # Initialize some variables set by options.
1065 ac_init_help=
1066 ac_init_version=false
1067 # The variables have the same names as the options, with
1068 # dashes changed to underlines.
1069 cache_file=/dev/null
1070 exec_prefix=NONE
1071 no_create=
1072 no_recursion=
1073 prefix=NONE
1074 program_prefix=NONE
1075 program_suffix=NONE
1076 program_transform_name=s,x,x,
1077 silent=
1078 site=
1079 srcdir=
1080 verbose=
1081 x_includes=NONE
1082 x_libraries=NONE
1083
1084 # Installation directory options.
1085 # These are left unexpanded so users can "make install exec_prefix=/foo"
1086 # and all the variables that are supposed to be based on exec_prefix
1087 # by default will actually change.
1088 # Use braces instead of parens because sh, perl, etc. also accept them.
1089 # (The list follows the same order as the GNU Coding Standards.)
1090 bindir='${exec_prefix}/bin'
1091 sbindir='${exec_prefix}/sbin'
1092 libexecdir='${exec_prefix}/libexec'
1093 datarootdir='${prefix}/share'
1094 datadir='${datarootdir}'
1095 sysconfdir='${prefix}/etc'
1096 sharedstatedir='${prefix}/com'
1097 localstatedir='${prefix}/var'
1098 includedir='${prefix}/include'
1099 oldincludedir='/usr/include'
1100 docdir='${datarootdir}/doc/${PACKAGE}'
1101 infodir='${datarootdir}/info'
1102 htmldir='${docdir}'
1103 dvidir='${docdir}'
1104 pdfdir='${docdir}'
1105 psdir='${docdir}'
1106 libdir='${exec_prefix}/lib'
1107 localedir='${datarootdir}/locale'
1108 mandir='${datarootdir}/man'
1109
1110 ac_prev=
1111 ac_dashdash=
1112 for ac_option
1113 do
1114   # If the previous option needs an argument, assign it.
1115   if test -n "$ac_prev"; then
1116     eval $ac_prev=\$ac_option
1117     ac_prev=
1118     continue
1119   fi
1120
1121   case $ac_option in
1122   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1123   *)    ac_optarg=yes ;;
1124   esac
1125
1126   # Accept the important Cygnus configure options, so we can diagnose typos.
1127
1128   case $ac_dashdash$ac_option in
1129   --)
1130     ac_dashdash=yes ;;
1131
1132   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1133     ac_prev=bindir ;;
1134   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1135     bindir=$ac_optarg ;;
1136
1137   -build | --build | --buil | --bui | --bu)
1138     ac_prev=build_alias ;;
1139   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1140     build_alias=$ac_optarg ;;
1141
1142   -cache-file | --cache-file | --cache-fil | --cache-fi \
1143   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1144     ac_prev=cache_file ;;
1145   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1146   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1147     cache_file=$ac_optarg ;;
1148
1149   --config-cache | -C)
1150     cache_file=config.cache ;;
1151
1152   -datadir | --datadir | --datadi | --datad)
1153     ac_prev=datadir ;;
1154   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1155     datadir=$ac_optarg ;;
1156
1157   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1158   | --dataroo | --dataro | --datar)
1159     ac_prev=datarootdir ;;
1160   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1161   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1162     datarootdir=$ac_optarg ;;
1163
1164   -disable-* | --disable-*)
1165     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1166     # Reject names that are not valid shell variable names.
1167     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1169    { (exit 1); exit 1; }; }
1170     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1171     eval enable_$ac_feature=no ;;
1172
1173   -docdir | --docdir | --docdi | --doc | --do)
1174     ac_prev=docdir ;;
1175   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1176     docdir=$ac_optarg ;;
1177
1178   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1179     ac_prev=dvidir ;;
1180   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1181     dvidir=$ac_optarg ;;
1182
1183   -enable-* | --enable-*)
1184     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1185     # Reject names that are not valid shell variable names.
1186     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1188    { (exit 1); exit 1; }; }
1189     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1190     eval enable_$ac_feature=\$ac_optarg ;;
1191
1192   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1193   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1194   | --exec | --exe | --ex)
1195     ac_prev=exec_prefix ;;
1196   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1197   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1198   | --exec=* | --exe=* | --ex=*)
1199     exec_prefix=$ac_optarg ;;
1200
1201   -gas | --gas | --ga | --g)
1202     # Obsolete; use --with-gas.
1203     with_gas=yes ;;
1204
1205   -help | --help | --hel | --he | -h)
1206     ac_init_help=long ;;
1207   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1208     ac_init_help=recursive ;;
1209   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1210     ac_init_help=short ;;
1211
1212   -host | --host | --hos | --ho)
1213     ac_prev=host_alias ;;
1214   -host=* | --host=* | --hos=* | --ho=*)
1215     host_alias=$ac_optarg ;;
1216
1217   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1218     ac_prev=htmldir ;;
1219   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1220   | --ht=*)
1221     htmldir=$ac_optarg ;;
1222
1223   -includedir | --includedir | --includedi | --included | --include \
1224   | --includ | --inclu | --incl | --inc)
1225     ac_prev=includedir ;;
1226   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1227   | --includ=* | --inclu=* | --incl=* | --inc=*)
1228     includedir=$ac_optarg ;;
1229
1230   -infodir | --infodir | --infodi | --infod | --info | --inf)
1231     ac_prev=infodir ;;
1232   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1233     infodir=$ac_optarg ;;
1234
1235   -libdir | --libdir | --libdi | --libd)
1236     ac_prev=libdir ;;
1237   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1238     libdir=$ac_optarg ;;
1239
1240   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1241   | --libexe | --libex | --libe)
1242     ac_prev=libexecdir ;;
1243   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1244   | --libexe=* | --libex=* | --libe=*)
1245     libexecdir=$ac_optarg ;;
1246
1247   -localedir | --localedir | --localedi | --localed | --locale)
1248     ac_prev=localedir ;;
1249   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1250     localedir=$ac_optarg ;;
1251
1252   -localstatedir | --localstatedir | --localstatedi | --localstated \
1253   | --localstate | --localstat | --localsta | --localst | --locals)
1254     ac_prev=localstatedir ;;
1255   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1256   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1257     localstatedir=$ac_optarg ;;
1258
1259   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1260     ac_prev=mandir ;;
1261   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1262     mandir=$ac_optarg ;;
1263
1264   -nfp | --nfp | --nf)
1265     # Obsolete; use --without-fp.
1266     with_fp=no ;;
1267
1268   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1269   | --no-cr | --no-c | -n)
1270     no_create=yes ;;
1271
1272   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1273   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1274     no_recursion=yes ;;
1275
1276   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1277   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1278   | --oldin | --oldi | --old | --ol | --o)
1279     ac_prev=oldincludedir ;;
1280   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1281   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1282   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1283     oldincludedir=$ac_optarg ;;
1284
1285   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1286     ac_prev=prefix ;;
1287   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1288     prefix=$ac_optarg ;;
1289
1290   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1291   | --program-pre | --program-pr | --program-p)
1292     ac_prev=program_prefix ;;
1293   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1294   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1295     program_prefix=$ac_optarg ;;
1296
1297   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1298   | --program-suf | --program-su | --program-s)
1299     ac_prev=program_suffix ;;
1300   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1301   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1302     program_suffix=$ac_optarg ;;
1303
1304   -program-transform-name | --program-transform-name \
1305   | --program-transform-nam | --program-transform-na \
1306   | --program-transform-n | --program-transform- \
1307   | --program-transform | --program-transfor \
1308   | --program-transfo | --program-transf \
1309   | --program-trans | --program-tran \
1310   | --progr-tra | --program-tr | --program-t)
1311     ac_prev=program_transform_name ;;
1312   -program-transform-name=* | --program-transform-name=* \
1313   | --program-transform-nam=* | --program-transform-na=* \
1314   | --program-transform-n=* | --program-transform-=* \
1315   | --program-transform=* | --program-transfor=* \
1316   | --program-transfo=* | --program-transf=* \
1317   | --program-trans=* | --program-tran=* \
1318   | --progr-tra=* | --program-tr=* | --program-t=*)
1319     program_transform_name=$ac_optarg ;;
1320
1321   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1322     ac_prev=pdfdir ;;
1323   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1324     pdfdir=$ac_optarg ;;
1325
1326   -psdir | --psdir | --psdi | --psd | --ps)
1327     ac_prev=psdir ;;
1328   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1329     psdir=$ac_optarg ;;
1330
1331   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1332   | -silent | --silent | --silen | --sile | --sil)
1333     silent=yes ;;
1334
1335   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1336     ac_prev=sbindir ;;
1337   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1338   | --sbi=* | --sb=*)
1339     sbindir=$ac_optarg ;;
1340
1341   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1342   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1343   | --sharedst | --shareds | --shared | --share | --shar \
1344   | --sha | --sh)
1345     ac_prev=sharedstatedir ;;
1346   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1347   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1348   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1349   | --sha=* | --sh=*)
1350     sharedstatedir=$ac_optarg ;;
1351
1352   -site | --site | --sit)
1353     ac_prev=site ;;
1354   -site=* | --site=* | --sit=*)
1355     site=$ac_optarg ;;
1356
1357   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1358     ac_prev=srcdir ;;
1359   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1360     srcdir=$ac_optarg ;;
1361
1362   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1363   | --syscon | --sysco | --sysc | --sys | --sy)
1364     ac_prev=sysconfdir ;;
1365   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1366   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1367     sysconfdir=$ac_optarg ;;
1368
1369   -target | --target | --targe | --targ | --tar | --ta | --t)
1370     ac_prev=target_alias ;;
1371   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1372     target_alias=$ac_optarg ;;
1373
1374   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1375     verbose=yes ;;
1376
1377   -version | --version | --versio | --versi | --vers | -V)
1378     ac_init_version=: ;;
1379
1380   -with-* | --with-*)
1381     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1382     # Reject names that are not valid shell variable names.
1383     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384       { echo "$as_me: error: invalid package name: $ac_package" >&2
1385    { (exit 1); exit 1; }; }
1386     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1387     eval with_$ac_package=\$ac_optarg ;;
1388
1389   -without-* | --without-*)
1390     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391     # Reject names that are not valid shell variable names.
1392     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393       { echo "$as_me: error: invalid package name: $ac_package" >&2
1394    { (exit 1); exit 1; }; }
1395     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1396     eval with_$ac_package=no ;;
1397
1398   --x)
1399     # Obsolete; use --with-x.
1400     with_x=yes ;;
1401
1402   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1403   | --x-incl | --x-inc | --x-in | --x-i)
1404     ac_prev=x_includes ;;
1405   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1406   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1407     x_includes=$ac_optarg ;;
1408
1409   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1410   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1411     ac_prev=x_libraries ;;
1412   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1413   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1414     x_libraries=$ac_optarg ;;
1415
1416   -*) { echo "$as_me: error: unrecognized option: $ac_option
1417 Try \`$0 --help' for more information." >&2
1418    { (exit 1); exit 1; }; }
1419     ;;
1420
1421   *=*)
1422     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1423     # Reject names that are not valid shell variable names.
1424     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1425       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1426    { (exit 1); exit 1; }; }
1427     eval $ac_envvar=\$ac_optarg
1428     export $ac_envvar ;;
1429
1430   *)
1431     # FIXME: should be removed in autoconf 3.0.
1432     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1433     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1434       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1435     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1436     ;;
1437
1438   esac
1439 done
1440
1441 if test -n "$ac_prev"; then
1442   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1443   { echo "$as_me: error: missing argument to $ac_option" >&2
1444    { (exit 1); exit 1; }; }
1445 fi
1446
1447 # Be sure to have absolute directory names.
1448 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1449                 datadir sysconfdir sharedstatedir localstatedir includedir \
1450                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1451                 libdir localedir mandir
1452 do
1453   eval ac_val=\$$ac_var
1454   case $ac_val in
1455     [\\/$]* | ?:[\\/]* )  continue;;
1456     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1457   esac
1458   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1459    { (exit 1); exit 1; }; }
1460 done
1461
1462 # There might be people who depend on the old broken behavior: `$host'
1463 # used to hold the argument of --host etc.
1464 # FIXME: To remove some day.
1465 build=$build_alias
1466 host=$host_alias
1467 target=$target_alias
1468
1469 # FIXME: To remove some day.
1470 if test "x$host_alias" != x; then
1471   if test "x$build_alias" = x; then
1472     cross_compiling=maybe
1473     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1474     If a cross compiler is detected then cross compile mode will be used." >&2
1475   elif test "x$build_alias" != "x$host_alias"; then
1476     cross_compiling=yes
1477   fi
1478 fi
1479
1480 ac_tool_prefix=
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1482
1483 test "$silent" = yes && exec 6>/dev/null
1484
1485
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489   { echo "$as_me: error: Working directory cannot be determined" >&2
1490    { (exit 1); exit 1; }; }
1491 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1492   { echo "$as_me: error: pwd does not report name of working directory" >&2
1493    { (exit 1); exit 1; }; }
1494
1495
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498   ac_srcdir_defaulted=yes
1499   # Try the directory containing this script, then the parent directory.
1500   ac_confdir=`$as_dirname -- "$0" ||
1501 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502          X"$0" : 'X\(//\)[^/]' \| \
1503          X"$0" : 'X\(//\)$' \| \
1504          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1505 echo X"$0" |
1506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507             s//\1/
1508             q
1509           }
1510           /^X\(\/\/\)[^/].*/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)$/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\).*/{
1519             s//\1/
1520             q
1521           }
1522           s/.*/./; q'`
1523   srcdir=$ac_confdir
1524   if test ! -r "$srcdir/$ac_unique_file"; then
1525     srcdir=..
1526   fi
1527 else
1528   ac_srcdir_defaulted=no
1529 fi
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1533    { (exit 1); exit 1; }; }
1534 fi
1535 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1536 ac_abs_confdir=`(
1537         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1538    { (exit 1); exit 1; }; }
1539         pwd)`
1540 # When building in place, set srcdir=.
1541 if test "$ac_abs_confdir" = "$ac_pwd"; then
1542   srcdir=.
1543 fi
1544 # Remove unnecessary trailing slashes from srcdir.
1545 # Double slashes in file names in object file debugging info
1546 # mess up M-x gdb in Emacs.
1547 case $srcdir in
1548 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1549 esac
1550 for ac_var in $ac_precious_vars; do
1551   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1552   eval ac_env_${ac_var}_value=\$${ac_var}
1553   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1554   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1555 done
1556
1557 #
1558 # Report the --help message.
1559 #
1560 if test "$ac_init_help" = "long"; then
1561   # Omit some internal or obsolete options to make the list less imposing.
1562   # This message is too long to be a string in the A/UX 3.1 sh.
1563   cat <<_ACEOF
1564 \`configure' configures this package to adapt to many kinds of systems.
1565
1566 Usage: $0 [OPTION]... [VAR=VALUE]...
1567
1568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1569 VAR=VALUE.  See below for descriptions of some of the useful variables.
1570
1571 Defaults for the options are specified in brackets.
1572
1573 Configuration:
1574   -h, --help              display this help and exit
1575       --help=short        display options specific to this package
1576       --help=recursive    display the short help of all the included packages
1577   -V, --version           display version information and exit
1578   -q, --quiet, --silent   do not print \`checking...' messages
1579       --cache-file=FILE   cache test results in FILE [disabled]
1580   -C, --config-cache      alias for \`--cache-file=config.cache'
1581   -n, --no-create         do not create output files
1582       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1583
1584 Installation directories:
1585   --prefix=PREFIX         install architecture-independent files in PREFIX
1586                           [$ac_default_prefix]
1587   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1588                           [PREFIX]
1589
1590 By default, \`make install' will install all the files in
1591 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1592 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1593 for instance \`--prefix=\$HOME'.
1594
1595 For better control, use the options below.
1596
1597 Fine tuning of the installation directories:
1598   --bindir=DIR           user executables [EPREFIX/bin]
1599   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1600   --libexecdir=DIR       program executables [EPREFIX/libexec]
1601   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1602   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1603   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1604   --libdir=DIR           object code libraries [EPREFIX/lib]
1605   --includedir=DIR       C header files [PREFIX/include]
1606   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1607   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1608   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1609   --infodir=DIR          info documentation [DATAROOTDIR/info]
1610   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1611   --mandir=DIR           man documentation [DATAROOTDIR/man]
1612   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1613   --htmldir=DIR          html documentation [DOCDIR]
1614   --dvidir=DIR           dvi documentation [DOCDIR]
1615   --pdfdir=DIR           pdf documentation [DOCDIR]
1616   --psdir=DIR            ps documentation [DOCDIR]
1617 _ACEOF
1618
1619   cat <<\_ACEOF
1620
1621 X features:
1622   --x-includes=DIR    X include files are in DIR
1623   --x-libraries=DIR   X library files are in DIR
1624
1625 System types:
1626   --build=BUILD     configure for building on BUILD [guessed]
1627   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1628 _ACEOF
1629 fi
1630
1631 if test -n "$ac_init_help"; then
1632
1633   cat <<\_ACEOF
1634
1635 Optional Features:
1636   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1637   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1638   --enable-libtool        enable building using GNU libtool [default=yes]
1639   --enable-shared[=PKGS]  build shared libraries [default=yes]
1640   --enable-static[=PKGS]  build static libraries [default=no]
1641   --enable-fast-install[=PKGS]
1642                           optimize for fast installation [default=yes]
1643   --disable-libtool-lock  avoid locking (might break parallel builds)
1644   --enable-includes       enable installing of include files [default=yes]
1645   --disable-nls           do not use Native Language Support
1646   --disable-rpath         do not hardcode runtime library paths
1647   --enable-gnome          enable build of bgnome-console GUI [default=no]
1648   --enable-bat            enable build of bat Qt4 GUI [default=no]
1649   --enable-bwx-console    enable build of wxWidgets console [default=no]
1650   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1651                           KDE [default=no]
1652   --enable-smartalloc     enable smartalloc debugging support [default=no]
1653   --enable-static-tools   enable static tape tools [default=no]
1654   --enable-static-fd      enable static File daemon [default=no]
1655   --enable-static-sd      enable static Storage daemon [default=no]
1656   --enable-static-dir     enable static Director [default=no]
1657   --enable-static-cons    enable static Console [default=no]
1658   --enable-client-only    build client (File daemon) only [default=no]
1659   --enable-build-dird     enable building of dird (Director) [default=yes]
1660   --enable-build-stored   enable building of stored (Storage daemon)
1661                           [default=yes]
1662   --disable-conio         disable conio support [default=no]
1663   --enable-ipv6           enable ipv6 support [default=yes]
1664   --disable-readline      disable readline support [default=yes]
1665   --enable-batch-insert   enable the DB batch insert code [default=no]
1666   --disable-largefile     omit support for large files
1667
1668 Optional Packages:
1669   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1670   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1671   --with-pic              try to use only PIC/non-PIC objects [default=use
1672                           both]
1673   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1674   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1675   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1676   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1677   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1678   --without-libintl-prefix     don't search for libintl in includedir and libdir
1679   --with-included-gettext use the GNU gettext library included here
1680   --with-qwt[=DIR]        specify qwt library directory
1681   --with-readline[=DIR]   specify readline library directory
1682   --with-python[=DIR]     Include Python support. DIR is the Python base
1683                           install directory, default is to search through a
1684                           number of common places for the Python files.
1685   --with-tcp-wrappers[=DIR]
1686                           enable tcpwrappers support
1687   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1688   --with-working-dir=PATH specify path of Bacula working directory
1689   --with-archivedir=PATH  specify path of SD archive directory
1690   --with-scriptdir=PATH   specify path of Bacula scripts directory
1691   --with-plugindir=PATH   specify path of Bacula plugins directory
1692   --with-dump-email=EMAIL dump email address
1693   --with-job-email=EMAIL  job output email address
1694   --with-smtp-host=HOST   SMTP mail host address
1695   --with-pid-dir=PATH     specify location of Bacula pid files
1696   --with-subsys-dir=PATH  specify location of Bacula subsys file
1697   --with-baseport=PORT    specify base port address for daemons
1698   --with-dir-password=PASSWORD
1699                           specify Director's password
1700   --with-fd-password=PASSWORD
1701                           specify Client's password
1702   --with-sd-password=PASSWORD
1703                           specify Storage daemon's password
1704   --with-mon-dir-password=PASSWORD
1705                           specify Director's password used by the monitor
1706   --with-mon-fd-password=PASSWORD
1707                           specify Client's password used by the monitor
1708   --with-mon-sd-password=PASSWORD
1709                           specify Storage daemon's password used by the
1710                           monitor
1711   --with-db-name=DBNAME   specify database name [default=bacula]
1712   --with-db-user=UNAME    specify database user [default=bacula]
1713   --with-db-password=PWD  specify database password [default=*none*]
1714   --with-db-port=DBPORT   specify a database port [default=null]
1715   --with-dir-user=USER    specify user for Director daemon
1716   --with-dir-group=GROUP  specify group for Director daemon
1717   --with-sd-user=USER     specify user for Storage daemon
1718   --with-sd-group=GROUP   specify group for Storage daemon
1719   --with-fd-user=USER     specify user for File daemon
1720   --with-fd-group=GROUP   specify group for File daemon
1721   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1722   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1723                           base install directory, [default=/usr/local/pgsql]
1724   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1725                           directory, default is to search through a number of
1726                           common places for the MySQL files.
1727   --with-embedded-mysql[=DIR]
1728                           Include MySQL support. DIR is the MySQL base install
1729                           directory, default is to search through a number of
1730                           common places for the MySQL files.
1731   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1732                           install directory, default is to search through a
1733                           number of common places for the SQLite3 files.
1734   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1735                           install directory, default is to search through a
1736                           number of common places for the SQLite files.
1737   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1738                           directory, default is to search through a number of
1739                           common places for the DBI files.
1740   --with-dbi-driver[=DRIVER]
1741                           Suport for DBI driver. DRIVER is the one DBI driver
1742                           like Mysql, Postgresql, others. Default is to not
1743                           configure any driver.
1744   --with-x                use the X Window System
1745
1746 Some influential environment variables:
1747   CC          C compiler command
1748   CFLAGS      C compiler flags
1749   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1750               nonstandard directory <lib dir>
1751   LIBS        libraries to pass to the linker, e.g. -l<library>
1752   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1753               you have headers in a nonstandard directory <include dir>
1754   CXX         C++ compiler command
1755   CXXFLAGS    C++ compiler flags
1756   CPP         C preprocessor
1757   WXCONFIG    wx-config command. On some systems, you must set it to
1758               wx-config-2.6 to use wxWidgets 2.6.
1759   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1760   CXXCPP      C++ preprocessor
1761   XMKMF       Path to xmkmf, Makefile generator for X Window System
1762
1763 Use these variables to override the choices made by `configure' or to help
1764 it to find libraries and programs with nonstandard names/locations.
1765
1766 _ACEOF
1767 ac_status=$?
1768 fi
1769
1770 if test "$ac_init_help" = "recursive"; then
1771   # If there are subdirs, report their specific --help.
1772   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1773     test -d "$ac_dir" || continue
1774     ac_builddir=.
1775
1776 case "$ac_dir" in
1777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1778 *)
1779   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1780   # A ".." for each directory in $ac_dir_suffix.
1781   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1782   case $ac_top_builddir_sub in
1783   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1785   esac ;;
1786 esac
1787 ac_abs_top_builddir=$ac_pwd
1788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir=$ac_top_build_prefix
1791
1792 case $srcdir in
1793   .)  # We are building in place.
1794     ac_srcdir=.
1795     ac_top_srcdir=$ac_top_builddir_sub
1796     ac_abs_top_srcdir=$ac_pwd ;;
1797   [\\/]* | ?:[\\/]* )  # Absolute name.
1798     ac_srcdir=$srcdir$ac_dir_suffix;
1799     ac_top_srcdir=$srcdir
1800     ac_abs_top_srcdir=$srcdir ;;
1801   *) # Relative name.
1802     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803     ac_top_srcdir=$ac_top_build_prefix$srcdir
1804     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1805 esac
1806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1807
1808     cd "$ac_dir" || { ac_status=$?; continue; }
1809     # Check for guested configure.
1810     if test -f "$ac_srcdir/configure.gnu"; then
1811       echo &&
1812       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813     elif test -f "$ac_srcdir/configure"; then
1814       echo &&
1815       $SHELL "$ac_srcdir/configure" --help=recursive
1816     else
1817       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1818     fi || ac_status=$?
1819     cd "$ac_pwd" || { ac_status=$?; break; }
1820   done
1821 fi
1822
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1825   cat <<\_ACEOF
1826 configure
1827 generated by GNU Autoconf 2.61
1828
1829 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1830 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1831 This configure script is free software; the Free Software Foundation
1832 gives unlimited permission to copy, distribute and modify it.
1833 _ACEOF
1834   exit
1835 fi
1836 cat >config.log <<_ACEOF
1837 This file contains any messages produced by compilers while
1838 running configure, to aid debugging if configure makes a mistake.
1839
1840 It was created by $as_me, which was
1841 generated by GNU Autoconf 2.61.  Invocation command line was
1842
1843   $ $0 $@
1844
1845 _ACEOF
1846 exec 5>>config.log
1847 {
1848 cat <<_ASUNAME
1849 ## --------- ##
1850 ## Platform. ##
1851 ## --------- ##
1852
1853 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1854 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1855 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1856 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1857 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1858
1859 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1860 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1861
1862 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1863 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1864 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1865 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1866 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1867 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1868 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1869
1870 _ASUNAME
1871
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875   IFS=$as_save_IFS
1876   test -z "$as_dir" && as_dir=.
1877   echo "PATH: $as_dir"
1878 done
1879 IFS=$as_save_IFS
1880
1881 } >&5
1882
1883 cat >&5 <<_ACEOF
1884
1885
1886 ## ----------- ##
1887 ## Core tests. ##
1888 ## ----------- ##
1889
1890 _ACEOF
1891
1892
1893 # Keep a trace of the command line.
1894 # Strip out --no-create and --no-recursion so they do not pile up.
1895 # Strip out --silent because we don't want to record it for future runs.
1896 # Also quote any args containing shell meta-characters.
1897 # Make two passes to allow for proper duplicate-argument suppression.
1898 ac_configure_args=
1899 ac_configure_args0=
1900 ac_configure_args1=
1901 ac_must_keep_next=false
1902 for ac_pass in 1 2
1903 do
1904   for ac_arg
1905   do
1906     case $ac_arg in
1907     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1908     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1909     | -silent | --silent | --silen | --sile | --sil)
1910       continue ;;
1911     *\'*)
1912       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1913     esac
1914     case $ac_pass in
1915     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1916     2)
1917       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1918       if test $ac_must_keep_next = true; then
1919         ac_must_keep_next=false # Got value, back to normal.
1920       else
1921         case $ac_arg in
1922           *=* | --config-cache | -C | -disable-* | --disable-* \
1923           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1924           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1925           | -with-* | --with-* | -without-* | --without-* | --x)
1926             case "$ac_configure_args0 " in
1927               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1928             esac
1929             ;;
1930           -* ) ac_must_keep_next=true ;;
1931         esac
1932       fi
1933       ac_configure_args="$ac_configure_args '$ac_arg'"
1934       ;;
1935     esac
1936   done
1937 done
1938 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1939 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1940
1941 # When interrupted or exit'd, cleanup temporary files, and complete
1942 # config.log.  We remove comments because anyway the quotes in there
1943 # would cause problems or look ugly.
1944 # WARNING: Use '\'' to represent an apostrophe within the trap.
1945 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1946 trap 'exit_status=$?
1947   # Save into config.log some information that might help in debugging.
1948   {
1949     echo
1950
1951     cat <<\_ASBOX
1952 ## ---------------- ##
1953 ## Cache variables. ##
1954 ## ---------------- ##
1955 _ASBOX
1956     echo
1957     # The following way of writing the cache mishandles newlines in values,
1958 (
1959   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960     eval ac_val=\$$ac_var
1961     case $ac_val in #(
1962     *${as_nl}*)
1963       case $ac_var in #(
1964       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1965 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1966       esac
1967       case $ac_var in #(
1968       _ | IFS | as_nl) ;; #(
1969       *) $as_unset $ac_var ;;
1970       esac ;;
1971     esac
1972   done
1973   (set) 2>&1 |
1974     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975     *${as_nl}ac_space=\ *)
1976       sed -n \
1977         "s/'\''/'\''\\\\'\'''\''/g;
1978           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1979       ;; #(
1980     *)
1981       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1982       ;;
1983     esac |
1984     sort
1985 )
1986     echo
1987
1988     cat <<\_ASBOX
1989 ## ----------------- ##
1990 ## Output variables. ##
1991 ## ----------------- ##
1992 _ASBOX
1993     echo
1994     for ac_var in $ac_subst_vars
1995     do
1996       eval ac_val=\$$ac_var
1997       case $ac_val in
1998       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999       esac
2000       echo "$ac_var='\''$ac_val'\''"
2001     done | sort
2002     echo
2003
2004     if test -n "$ac_subst_files"; then
2005       cat <<\_ASBOX
2006 ## ------------------- ##
2007 ## File substitutions. ##
2008 ## ------------------- ##
2009 _ASBOX
2010       echo
2011       for ac_var in $ac_subst_files
2012       do
2013         eval ac_val=\$$ac_var
2014         case $ac_val in
2015         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2016         esac
2017         echo "$ac_var='\''$ac_val'\''"
2018       done | sort
2019       echo
2020     fi
2021
2022     if test -s confdefs.h; then
2023       cat <<\_ASBOX
2024 ## ----------- ##
2025 ## confdefs.h. ##
2026 ## ----------- ##
2027 _ASBOX
2028       echo
2029       cat confdefs.h
2030       echo
2031     fi
2032     test "$ac_signal" != 0 &&
2033       echo "$as_me: caught signal $ac_signal"
2034     echo "$as_me: exit $exit_status"
2035   } >&5
2036   rm -f core *.core core.conftest.* &&
2037     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2038     exit $exit_status
2039 ' 0
2040 for ac_signal in 1 2 13 15; do
2041   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2042 done
2043 ac_signal=0
2044
2045 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2046 rm -f -r conftest* confdefs.h
2047
2048 # Predefined preprocessor variables.
2049
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_NAME "$PACKAGE_NAME"
2052 _ACEOF
2053
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2057 _ACEOF
2058
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2062 _ACEOF
2063
2064
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_STRING "$PACKAGE_STRING"
2067 _ACEOF
2068
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2072 _ACEOF
2073
2074
2075 # Let the site file select an alternate cache file if it wants to.
2076 # Prefer explicitly selected file to automatically selected ones.
2077 if test -n "$CONFIG_SITE"; then
2078   set x "$CONFIG_SITE"
2079 elif test "x$prefix" != xNONE; then
2080   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2081 else
2082   set x "$ac_default_prefix/share/config.site" \
2083         "$ac_default_prefix/etc/config.site"
2084 fi
2085 shift
2086 for ac_site_file
2087 do
2088   if test -r "$ac_site_file"; then
2089     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2090 echo "$as_me: loading site script $ac_site_file" >&6;}
2091     sed 's/^/| /' "$ac_site_file" >&5
2092     . "$ac_site_file"
2093   fi
2094 done
2095
2096 if test -r "$cache_file"; then
2097   # Some versions of bash will fail to source /dev/null (special
2098   # files actually), so we avoid doing that.
2099   if test -f "$cache_file"; then
2100     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2101 echo "$as_me: loading cache $cache_file" >&6;}
2102     case $cache_file in
2103       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2104       *)                      . "./$cache_file";;
2105     esac
2106   fi
2107 else
2108   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2109 echo "$as_me: creating cache $cache_file" >&6;}
2110   >$cache_file
2111 fi
2112
2113 # Check that the precious variables saved in the cache have kept the same
2114 # value.
2115 ac_cache_corrupted=false
2116 for ac_var in $ac_precious_vars; do
2117   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2118   eval ac_new_set=\$ac_env_${ac_var}_set
2119   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2120   eval ac_new_val=\$ac_env_${ac_var}_value
2121   case $ac_old_set,$ac_new_set in
2122     set,)
2123       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2124 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2125       ac_cache_corrupted=: ;;
2126     ,set)
2127       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2128 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2129       ac_cache_corrupted=: ;;
2130     ,);;
2131     *)
2132       if test "x$ac_old_val" != "x$ac_new_val"; then
2133         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2134 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2135         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2136 echo "$as_me:   former value:  $ac_old_val" >&2;}
2137         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2138 echo "$as_me:   current value: $ac_new_val" >&2;}
2139         ac_cache_corrupted=:
2140       fi;;
2141   esac
2142   # Pass precious variables to config.status.
2143   if test "$ac_new_set" = set; then
2144     case $ac_new_val in
2145     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2146     *) ac_arg=$ac_var=$ac_new_val ;;
2147     esac
2148     case " $ac_configure_args " in
2149       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2150       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2151     esac
2152   fi
2153 done
2154 if $ac_cache_corrupted; then
2155   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2156 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2158 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2159    { (exit 1); exit 1; }; }
2160 fi
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178 ac_ext=c
2179 ac_cpp='$CPP $CPPFLAGS'
2180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2183
2184
2185 BUILD_DIR=`pwd`
2186 cd ..
2187 TOP_DIR=`pwd`
2188 cd ${BUILD_DIR}
2189
2190
2191 ac_aux_dir=
2192 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2193   if test -f "$ac_dir/install-sh"; then
2194     ac_aux_dir=$ac_dir
2195     ac_install_sh="$ac_aux_dir/install-sh -c"
2196     break
2197   elif test -f "$ac_dir/install.sh"; then
2198     ac_aux_dir=$ac_dir
2199     ac_install_sh="$ac_aux_dir/install.sh -c"
2200     break
2201   elif test -f "$ac_dir/shtool"; then
2202     ac_aux_dir=$ac_dir
2203     ac_install_sh="$ac_aux_dir/shtool install -c"
2204     break
2205   fi
2206 done
2207 if test -z "$ac_aux_dir"; then
2208   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2209 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2210    { (exit 1); exit 1; }; }
2211 fi
2212
2213 # These three variables are undocumented and unsupported,
2214 # and are intended to be withdrawn in a future Autoconf release.
2215 # They can cause serious problems if a builder's source tree is in a directory
2216 # whose full name contains unusual characters.
2217 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2218 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2219 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2220
2221
2222 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2223
2224
2225
2226
2227 for ac_prog in true
2228 do
2229   # Extract the first word of "$ac_prog", so it can be a program name with args.
2230 set dummy $ac_prog; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   case $TRUEPRG in
2237   [\\/]* | ?:[\\/]*)
2238   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2239   ;;
2240   *)
2241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244   IFS=$as_save_IFS
2245   test -z "$as_dir" && as_dir=.
2246   for ac_exec_ext in '' $ac_executable_extensions; do
2247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2248     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250     break 2
2251   fi
2252 done
2253 done
2254 IFS=$as_save_IFS
2255
2256   ;;
2257 esac
2258 fi
2259 TRUEPRG=$ac_cv_path_TRUEPRG
2260 if test -n "$TRUEPRG"; then
2261   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2262 echo "${ECHO_T}$TRUEPRG" >&6; }
2263 else
2264   { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2266 fi
2267
2268
2269   test -n "$TRUEPRG" && break
2270 done
2271 test -n "$TRUEPRG" || TRUEPRG=":"
2272
2273 for ac_prog in false
2274 do
2275   # Extract the first word of "$ac_prog", so it can be a program name with args.
2276 set dummy $ac_prog; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2280   echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282   case $FALSEPRG in
2283   [\\/]* | ?:[\\/]*)
2284   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2285   ;;
2286   *)
2287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290   IFS=$as_save_IFS
2291   test -z "$as_dir" && as_dir=.
2292   for ac_exec_ext in '' $ac_executable_extensions; do
2293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2294     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296     break 2
2297   fi
2298 done
2299 done
2300 IFS=$as_save_IFS
2301
2302   ;;
2303 esac
2304 fi
2305 FALSEPRG=$ac_cv_path_FALSEPRG
2306 if test -n "$FALSEPRG"; then
2307   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2308 echo "${ECHO_T}$FALSEPRG" >&6; }
2309 else
2310   { echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6; }
2312 fi
2313
2314
2315   test -n "$FALSEPRG" && break
2316 done
2317 test -n "$FALSEPRG" || FALSEPRG=":"
2318
2319
2320 post_host=
2321 if test "x$BACULA" != x; then
2322    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2323 fi
2324 BACULA=${BACULA-Bacula}
2325 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2326 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2327 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2328 echo "configuring for ${BACULA} $VERSION ($DATE)"
2329
2330
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 if test -n "$ac_tool_prefix"; then
2337   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2338 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   if test -n "$CC"; then
2345   ac_cv_prog_CC="$CC" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350   IFS=$as_save_IFS
2351   test -z "$as_dir" && as_dir=.
2352   for ac_exec_ext in '' $ac_executable_extensions; do
2353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356     break 2
2357   fi
2358 done
2359 done
2360 IFS=$as_save_IFS
2361
2362 fi
2363 fi
2364 CC=$ac_cv_prog_CC
2365 if test -n "$CC"; then
2366   { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2368 else
2369   { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2371 fi
2372
2373
2374 fi
2375 if test -z "$ac_cv_prog_CC"; then
2376   ac_ct_CC=$CC
2377   # Extract the first word of "gcc", so it can be a program name with args.
2378 set dummy gcc; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2382   echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384   if test -n "$ac_ct_CC"; then
2385   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2389 do
2390   IFS=$as_save_IFS
2391   test -z "$as_dir" && as_dir=.
2392   for ac_exec_ext in '' $ac_executable_extensions; do
2393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394     ac_cv_prog_ac_ct_CC="gcc"
2395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396     break 2
2397   fi
2398 done
2399 done
2400 IFS=$as_save_IFS
2401
2402 fi
2403 fi
2404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 if test -n "$ac_ct_CC"; then
2406   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2407 echo "${ECHO_T}$ac_ct_CC" >&6; }
2408 else
2409   { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2411 fi
2412
2413   if test "x$ac_ct_CC" = x; then
2414     CC=""
2415   else
2416     case $cross_compiling:$ac_tool_warned in
2417 yes:)
2418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2419 whose name does not start with the host triplet.  If you think this
2420 configuration is useful to you, please write to autoconf@gnu.org." >&5
2421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2422 whose name does not start with the host triplet.  If you think this
2423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2424 ac_tool_warned=yes ;;
2425 esac
2426     CC=$ac_ct_CC
2427   fi
2428 else
2429   CC="$ac_cv_prog_CC"
2430 fi
2431
2432 if test -z "$CC"; then
2433           if test -n "$ac_tool_prefix"; then
2434     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2435 set dummy ${ac_tool_prefix}cc; ac_word=$2
2436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2438 if test "${ac_cv_prog_CC+set}" = set; then
2439   echo $ECHO_N "(cached) $ECHO_C" >&6
2440 else
2441   if test -n "$CC"; then
2442   ac_cv_prog_CC="$CC" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447   IFS=$as_save_IFS
2448   test -z "$as_dir" && as_dir=.
2449   for ac_exec_ext in '' $ac_executable_extensions; do
2450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451     ac_cv_prog_CC="${ac_tool_prefix}cc"
2452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453     break 2
2454   fi
2455 done
2456 done
2457 IFS=$as_save_IFS
2458
2459 fi
2460 fi
2461 CC=$ac_cv_prog_CC
2462 if test -n "$CC"; then
2463   { echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6; }
2465 else
2466   { echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6; }
2468 fi
2469
2470
2471   fi
2472 fi
2473 if test -z "$CC"; then
2474   # Extract the first word of "cc", so it can be a program name with args.
2475 set dummy cc; ac_word=$2
2476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_CC+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   if test -n "$CC"; then
2482   ac_cv_prog_CC="$CC" # Let the user override the test.
2483 else
2484   ac_prog_rejected=no
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2493        ac_prog_rejected=yes
2494        continue
2495      fi
2496     ac_cv_prog_CC="cc"
2497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498     break 2
2499   fi
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 if test $ac_prog_rejected = yes; then
2505   # We found a bogon in the path, so make sure we never use it.
2506   set dummy $ac_cv_prog_CC
2507   shift
2508   if test $# != 0; then
2509     # We chose a different compiler from the bogus one.
2510     # However, it has the same basename, so the bogon will be chosen
2511     # first if we set CC to just the basename; use the full file name.
2512     shift
2513     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2514   fi
2515 fi
2516 fi
2517 fi
2518 CC=$ac_cv_prog_CC
2519 if test -n "$CC"; then
2520   { echo "$as_me:$LINENO: result: $CC" >&5
2521 echo "${ECHO_T}$CC" >&6; }
2522 else
2523   { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2525 fi
2526
2527
2528 fi
2529 if test -z "$CC"; then
2530   if test -n "$ac_tool_prefix"; then
2531   for ac_prog in cl.exe
2532   do
2533     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540   if test -n "$CC"; then
2541   ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548   for ac_exec_ext in '' $ac_executable_extensions; do
2549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552     break 2
2553   fi
2554 done
2555 done
2556 IFS=$as_save_IFS
2557
2558 fi
2559 fi
2560 CC=$ac_cv_prog_CC
2561 if test -n "$CC"; then
2562   { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2564 else
2565   { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2567 fi
2568
2569
2570     test -n "$CC" && break
2571   done
2572 fi
2573 if test -z "$CC"; then
2574   ac_ct_CC=$CC
2575   for ac_prog in cl.exe
2576 do
2577   # Extract the first word of "$ac_prog", so it can be a program name with args.
2578 set dummy $ac_prog; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584   if test -n "$ac_ct_CC"; then
2585   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590   IFS=$as_save_IFS
2591   test -z "$as_dir" && as_dir=.
2592   for ac_exec_ext in '' $ac_executable_extensions; do
2593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594     ac_cv_prog_ac_ct_CC="$ac_prog"
2595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2605 if test -n "$ac_ct_CC"; then
2606   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2607 echo "${ECHO_T}$ac_ct_CC" >&6; }
2608 else
2609   { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2611 fi
2612
2613
2614   test -n "$ac_ct_CC" && break
2615 done
2616
2617   if test "x$ac_ct_CC" = x; then
2618     CC=""
2619   else
2620     case $cross_compiling:$ac_tool_warned in
2621 yes:)
2622 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2623 whose name does not start with the host triplet.  If you think this
2624 configuration is useful to you, please write to autoconf@gnu.org." >&5
2625 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet.  If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2628 ac_tool_warned=yes ;;
2629 esac
2630     CC=$ac_ct_CC
2631   fi
2632 fi
2633
2634 fi
2635
2636
2637 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2638 See \`config.log' for more details." >&5
2639 echo "$as_me: error: no acceptable C compiler found in \$PATH
2640 See \`config.log' for more details." >&2;}
2641    { (exit 1); exit 1; }; }
2642
2643 # Provide some information about the compiler.
2644 echo "$as_me:$LINENO: checking for C compiler version" >&5
2645 ac_compiler=`set X $ac_compile; echo $2`
2646 { (ac_try="$ac_compiler --version >&5"
2647 case "(($ac_try" in
2648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649   *) ac_try_echo=$ac_try;;
2650 esac
2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652   (eval "$ac_compiler --version >&5") 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }
2656 { (ac_try="$ac_compiler -v >&5"
2657 case "(($ac_try" in
2658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659   *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662   (eval "$ac_compiler -v >&5") 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }
2666 { (ac_try="$ac_compiler -V >&5"
2667 case "(($ac_try" in
2668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669   *) ac_try_echo=$ac_try;;
2670 esac
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672   (eval "$ac_compiler -V >&5") 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); }
2676
2677 cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683
2684 int
2685 main ()
2686 {
2687
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 ac_clean_files_save=$ac_clean_files
2693 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2694 # Try to create an executable without -o first, disregard a.out.
2695 # It will help us diagnose broken compilers, and finding out an intuition
2696 # of exeext.
2697 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2698 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2699 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2700 #
2701 # List of possible output files, starting from the most likely.
2702 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2703 # only as a last resort.  b.out is created by i960 compilers.
2704 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2705 #
2706 # The IRIX 6 linker writes into existing files which may not be
2707 # executable, retaining their permissions.  Remove them first so a
2708 # subsequent execution test works.
2709 ac_rmfiles=
2710 for ac_file in $ac_files
2711 do
2712   case $ac_file in
2713     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2714     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2715   esac
2716 done
2717 rm -f $ac_rmfiles
2718
2719 if { (ac_try="$ac_link_default"
2720 case "(($ac_try" in
2721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722   *) ac_try_echo=$ac_try;;
2723 esac
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725   (eval "$ac_link_default") 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); }; then
2729   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2730 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2731 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2732 # so that the user can short-circuit this test for compilers unknown to
2733 # Autoconf.
2734 for ac_file in $ac_files ''
2735 do
2736   test -f "$ac_file" || continue
2737   case $ac_file in
2738     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2739         ;;
2740     [ab].out )
2741         # We found the default executable, but exeext='' is most
2742         # certainly right.
2743         break;;
2744     *.* )
2745         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2746         then :; else
2747            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2748         fi
2749         # We set ac_cv_exeext here because the later test for it is not
2750         # safe: cross compilers may not add the suffix if given an `-o'
2751         # argument, so we may need to know it at that point already.
2752         # Even if this section looks crufty: it has the advantage of
2753         # actually working.
2754         break;;
2755     * )
2756         break;;
2757   esac
2758 done
2759 test "$ac_cv_exeext" = no && ac_cv_exeext=
2760
2761 else
2762   ac_file=''
2763 fi
2764
2765 { echo "$as_me:$LINENO: result: $ac_file" >&5
2766 echo "${ECHO_T}$ac_file" >&6; }
2767 if test -z "$ac_file"; then
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2772 See \`config.log' for more details." >&5
2773 echo "$as_me: error: C compiler cannot create executables
2774 See \`config.log' for more details." >&2;}
2775    { (exit 77); exit 77; }; }
2776 fi
2777
2778 ac_exeext=$ac_cv_exeext
2779
2780 # Check that the compiler produces executables we can run.  If not, either
2781 # the compiler is broken, or we cross compile.
2782 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2783 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2784 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2785 # If not cross compiling, check that we can run a simple program.
2786 if test "$cross_compiling" != yes; then
2787   if { ac_try='./$ac_file'
2788   { (case "(($ac_try" in
2789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790   *) ac_try_echo=$ac_try;;
2791 esac
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793   (eval "$ac_try") 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; }; then
2797     cross_compiling=no
2798   else
2799     if test "$cross_compiling" = maybe; then
2800         cross_compiling=yes
2801     else
2802         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2803 If you meant to cross compile, use \`--host'.
2804 See \`config.log' for more details." >&5
2805 echo "$as_me: error: cannot run C compiled programs.
2806 If you meant to cross compile, use \`--host'.
2807 See \`config.log' for more details." >&2;}
2808    { (exit 1); exit 1; }; }
2809     fi
2810   fi
2811 fi
2812 { echo "$as_me:$LINENO: result: yes" >&5
2813 echo "${ECHO_T}yes" >&6; }
2814
2815 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2816 ac_clean_files=$ac_clean_files_save
2817 # Check that the compiler produces executables we can run.  If not, either
2818 # the compiler is broken, or we cross compile.
2819 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2820 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2821 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2822 echo "${ECHO_T}$cross_compiling" >&6; }
2823
2824 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2825 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2826 if { (ac_try="$ac_link"
2827 case "(($ac_try" in
2828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829   *) ac_try_echo=$ac_try;;
2830 esac
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832   (eval "$ac_link") 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); }; then
2836   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2837 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2838 # work properly (i.e., refer to `conftest.exe'), while it won't with
2839 # `rm'.
2840 for ac_file in conftest.exe conftest conftest.*; do
2841   test -f "$ac_file" || continue
2842   case $ac_file in
2843     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2844     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2845           break;;
2846     * ) break;;
2847   esac
2848 done
2849 else
2850   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2851 See \`config.log' for more details." >&5
2852 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2853 See \`config.log' for more details." >&2;}
2854    { (exit 1); exit 1; }; }
2855 fi
2856
2857 rm -f conftest$ac_cv_exeext
2858 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2859 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2860
2861 rm -f conftest.$ac_ext
2862 EXEEXT=$ac_cv_exeext
2863 ac_exeext=$EXEEXT
2864 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2865 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2866 if test "${ac_cv_objext+set}" = set; then
2867   echo $ECHO_N "(cached) $ECHO_C" >&6
2868 else
2869   cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h.  */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h.  */
2875
2876 int
2877 main ()
2878 {
2879
2880   ;
2881   return 0;
2882 }
2883 _ACEOF
2884 rm -f conftest.o conftest.obj
2885 if { (ac_try="$ac_compile"
2886 case "(($ac_try" in
2887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888   *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891   (eval "$ac_compile") 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; then
2895   for ac_file in conftest.o conftest.obj conftest.*; do
2896   test -f "$ac_file" || continue;
2897   case $ac_file in
2898     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2899     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2900        break;;
2901   esac
2902 done
2903 else
2904   echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2910 See \`config.log' for more details." >&2;}
2911    { (exit 1); exit 1; }; }
2912 fi
2913
2914 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2915 fi
2916 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2917 echo "${ECHO_T}$ac_cv_objext" >&6; }
2918 OBJEXT=$ac_cv_objext
2919 ac_objext=$OBJEXT
2920 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2921 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2922 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931
2932 int
2933 main ()
2934 {
2935 #ifndef __GNUC__
2936        choke me
2937 #endif
2938
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2945 case "(($ac_try" in
2946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947   *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950   (eval "$ac_compile") 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } && {
2957          test -z "$ac_c_werror_flag" ||
2958          test ! -s conftest.err
2959        } && test -s conftest.$ac_objext; then
2960   ac_compiler_gnu=yes
2961 else
2962   echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965         ac_compiler_gnu=no
2966 fi
2967
2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2970
2971 fi
2972 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2973 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2974 GCC=`test $ac_compiler_gnu = yes && echo yes`
2975 ac_test_CFLAGS=${CFLAGS+set}
2976 ac_save_CFLAGS=$CFLAGS
2977 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2978 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_cc_g+set}" = set; then
2980   echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982   ac_save_c_werror_flag=$ac_c_werror_flag
2983    ac_c_werror_flag=yes
2984    ac_cv_prog_cc_g=no
2985    CFLAGS="-g"
2986    cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h.  */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h.  */
2992
2993 int
2994 main ()
2995 {
2996
2997   ;
2998   return 0;
2999 }
3000 _ACEOF
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3003 case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_compile") 2>conftest.er1
3009   ac_status=$?
3010   grep -v '^ *+' conftest.er1 >conftest.err
3011   rm -f conftest.er1
3012   cat conftest.err >&5
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); } && {
3015          test -z "$ac_c_werror_flag" ||
3016          test ! -s conftest.err
3017        } && test -s conftest.$ac_objext; then
3018   ac_cv_prog_cc_g=yes
3019 else
3020   echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023         CFLAGS=""
3024       cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030
3031 int
3032 main ()
3033 {
3034
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3041 case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046   (eval "$ac_compile") 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } && {
3053          test -z "$ac_c_werror_flag" ||
3054          test ! -s conftest.err
3055        } && test -s conftest.$ac_objext; then
3056   :
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061         ac_c_werror_flag=$ac_save_c_werror_flag
3062          CFLAGS="-g"
3063          cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h.  */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h.  */
3069
3070 int
3071 main ()
3072 {
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3080 case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085   (eval "$ac_compile") 2>conftest.er1
3086   ac_status=$?
3087   grep -v '^ *+' conftest.er1 >conftest.err
3088   rm -f conftest.er1
3089   cat conftest.err >&5
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); } && {
3092          test -z "$ac_c_werror_flag" ||
3093          test ! -s conftest.err
3094        } && test -s conftest.$ac_objext; then
3095   ac_cv_prog_cc_g=yes
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100
3101 fi
3102
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104 fi
3105
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 fi
3108
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110    ac_c_werror_flag=$ac_save_c_werror_flag
3111 fi
3112 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3113 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3114 if test "$ac_test_CFLAGS" = set; then
3115   CFLAGS=$ac_save_CFLAGS
3116 elif test $ac_cv_prog_cc_g = yes; then
3117   if test "$GCC" = yes; then
3118     CFLAGS="-g -O2"
3119   else
3120     CFLAGS="-g"
3121   fi
3122 else
3123   if test "$GCC" = yes; then
3124     CFLAGS="-O2"
3125   else
3126     CFLAGS=
3127   fi
3128 fi
3129 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3130 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3131 if test "${ac_cv_prog_cc_c89+set}" = set; then
3132   echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134   ac_cv_prog_cc_c89=no
3135 ac_save_CC=$CC
3136 cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h.  */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h.  */
3142 #include <stdarg.h>
3143 #include <stdio.h>
3144 #include <sys/types.h>
3145 #include <sys/stat.h>
3146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3147 struct buf { int x; };
3148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3149 static char *e (p, i)
3150      char **p;
3151      int i;
3152 {
3153   return p[i];
3154 }
3155 static char *f (char * (*g) (char **, int), char **p, ...)
3156 {
3157   char *s;
3158   va_list v;
3159   va_start (v,p);
3160   s = g (p, va_arg (v,int));
3161   va_end (v);
3162   return s;
3163 }
3164
3165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3166    function prototypes and stuff, but not '\xHH' hex character constants.
3167    These don't provoke an error unfortunately, instead are silently treated
3168    as 'x'.  The following induces an error, until -std is added to get
3169    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3170    array size at least.  It's necessary to write '\x00'==0 to get something
3171    that's true only with -std.  */
3172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3173
3174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3175    inside strings and character constants.  */
3176 #define FOO(x) 'x'
3177 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3178
3179 int test (int i, double x);
3180 struct s1 {int (*f) (int a);};
3181 struct s2 {int (*f) (double a);};
3182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3183 int argc;
3184 char **argv;
3185 int
3186 main ()
3187 {
3188 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3189   ;
3190   return 0;
3191 }
3192 _ACEOF
3193 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3194         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3195 do
3196   CC="$ac_save_CC $ac_arg"
3197   rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3199 case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204   (eval "$ac_compile") 2>conftest.er1
3205   ac_status=$?
3206   grep -v '^ *+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
3208   cat conftest.err >&5
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } && {
3211          test -z "$ac_c_werror_flag" ||
3212          test ! -s conftest.err
3213        } && test -s conftest.$ac_objext; then
3214   ac_cv_prog_cc_c89=$ac_arg
3215 else
3216   echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3218
3219
3220 fi
3221
3222 rm -f core conftest.err conftest.$ac_objext
3223   test "x$ac_cv_prog_cc_c89" != "xno" && break
3224 done
3225 rm -f conftest.$ac_ext
3226 CC=$ac_save_CC
3227
3228 fi
3229 # AC_CACHE_VAL
3230 case "x$ac_cv_prog_cc_c89" in
3231   x)
3232     { echo "$as_me:$LINENO: result: none needed" >&5
3233 echo "${ECHO_T}none needed" >&6; } ;;
3234   xno)
3235     { echo "$as_me:$LINENO: result: unsupported" >&5
3236 echo "${ECHO_T}unsupported" >&6; } ;;
3237   *)
3238     CC="$CC $ac_cv_prog_cc_c89"
3239     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3240 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3241 esac
3242
3243
3244 ac_ext=c
3245 ac_cpp='$CPP $CPPFLAGS'
3246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249
3250 ac_ext=cpp
3251 ac_cpp='$CXXCPP $CPPFLAGS'
3252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3255 if test -z "$CXX"; then
3256   if test -n "$CCC"; then
3257     CXX=$CCC
3258   else
3259     if test -n "$ac_tool_prefix"; then
3260   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3261   do
3262     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3266 if test "${ac_cv_prog_CXX+set}" = set; then
3267   echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269   if test -n "$CXX"; then
3270   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275   IFS=$as_save_IFS
3276   test -z "$as_dir" && as_dir=.
3277   for ac_exec_ext in '' $ac_executable_extensions; do
3278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3281     break 2
3282   fi
3283 done
3284 done
3285 IFS=$as_save_IFS
3286
3287 fi
3288 fi
3289 CXX=$ac_cv_prog_CXX
3290 if test -n "$CXX"; then
3291   { echo "$as_me:$LINENO: result: $CXX" >&5
3292 echo "${ECHO_T}$CXX" >&6; }
3293 else
3294   { echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6; }
3296 fi
3297
3298
3299     test -n "$CXX" && break
3300   done
3301 fi
3302 if test -z "$CXX"; then
3303   ac_ct_CXX=$CXX
3304   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3305 do
3306   # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3310 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3311   echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313   if test -n "$ac_ct_CXX"; then
3314   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321   for ac_exec_ext in '' $ac_executable_extensions; do
3322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323     ac_cv_prog_ac_ct_CXX="$ac_prog"
3324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325     break 2
3326   fi
3327 done
3328 done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3334 if test -n "$ac_ct_CXX"; then
3335   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3336 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3337 else
3338   { echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6; }
3340 fi
3341
3342
3343   test -n "$ac_ct_CXX" && break
3344 done
3345
3346   if test "x$ac_ct_CXX" = x; then
3347     CXX="g++"
3348   else
3349     case $cross_compiling:$ac_tool_warned in
3350 yes:)
3351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3352 whose name does not start with the host triplet.  If you think this
3353 configuration is useful to you, please write to autoconf@gnu.org." >&5
3354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3355 whose name does not start with the host triplet.  If you think this
3356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3357 ac_tool_warned=yes ;;
3358 esac
3359     CXX=$ac_ct_CXX
3360   fi
3361 fi
3362
3363   fi
3364 fi
3365 # Provide some information about the compiler.
3366 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3367 ac_compiler=`set X $ac_compile; echo $2`
3368 { (ac_try="$ac_compiler --version >&5"
3369 case "(($ac_try" in
3370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371   *) ac_try_echo=$ac_try;;
3372 esac
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374   (eval "$ac_compiler --version >&5") 2>&5
3375   ac_status=$?
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); }
3378 { (ac_try="$ac_compiler -v >&5"
3379 case "(($ac_try" in
3380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381   *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384   (eval "$ac_compiler -v >&5") 2>&5
3385   ac_status=$?
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); }
3388 { (ac_try="$ac_compiler -V >&5"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_compiler -V >&5") 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }
3398
3399 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3400 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3401 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410
3411 int
3412 main ()
3413 {
3414 #ifndef __GNUC__
3415        choke me
3416 #endif
3417
3418   ;
3419   return 0;
3420 }
3421 _ACEOF
3422 rm -f conftest.$ac_objext
3423 if { (ac_try="$ac_compile"
3424 case "(($ac_try" in
3425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426   *) ac_try_echo=$ac_try;;
3427 esac
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429   (eval "$ac_compile") 2>conftest.er1
3430   ac_status=$?
3431   grep -v '^ *+' conftest.er1 >conftest.err
3432   rm -f conftest.er1
3433   cat conftest.err >&5
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); } && {
3436          test -z "$ac_cxx_werror_flag" ||
3437          test ! -s conftest.err
3438        } && test -s conftest.$ac_objext; then
3439   ac_compiler_gnu=yes
3440 else
3441   echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444         ac_compiler_gnu=no
3445 fi
3446
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3449
3450 fi
3451 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3452 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3453 GXX=`test $ac_compiler_gnu = yes && echo yes`
3454 ac_test_CXXFLAGS=${CXXFLAGS+set}
3455 ac_save_CXXFLAGS=$CXXFLAGS
3456 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3457 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3458 if test "${ac_cv_prog_cxx_g+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3462    ac_cxx_werror_flag=yes
3463    ac_cv_prog_cxx_g=no
3464    CXXFLAGS="-g"
3465    cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h.  */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487   (eval "$ac_compile") 2>conftest.er1
3488   ac_status=$?
3489   grep -v '^ *+' conftest.er1 >conftest.err
3490   rm -f conftest.er1
3491   cat conftest.err >&5
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } && {
3494          test -z "$ac_cxx_werror_flag" ||
3495          test ! -s conftest.err
3496        } && test -s conftest.$ac_objext; then
3497   ac_cv_prog_cxx_g=yes
3498 else
3499   echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502         CXXFLAGS=""
3503       cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h.  */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h.  */
3509
3510 int
3511 main ()
3512 {
3513
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3520 case "(($ac_try" in
3521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522   *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525   (eval "$ac_compile") 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } && {
3532          test -z "$ac_cxx_werror_flag" ||
3533          test ! -s conftest.err
3534        } && test -s conftest.$ac_objext; then
3535   :
3536 else
3537   echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3541          CXXFLAGS="-g"
3542          cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h.  */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h.  */
3548
3549 int
3550 main ()
3551 {
3552
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 rm -f conftest.$ac_objext
3558 if { (ac_try="$ac_compile"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564   (eval "$ac_compile") 2>conftest.er1
3565   ac_status=$?
3566   grep -v '^ *+' conftest.er1 >conftest.err
3567   rm -f conftest.er1
3568   cat conftest.err >&5
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); } && {
3571          test -z "$ac_cxx_werror_flag" ||
3572          test ! -s conftest.err
3573        } && test -s conftest.$ac_objext; then
3574   ac_cv_prog_cxx_g=yes
3575 else
3576   echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579
3580 fi
3581
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 fi
3584
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 fi
3587
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3590 fi
3591 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3592 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3593 if test "$ac_test_CXXFLAGS" = set; then
3594   CXXFLAGS=$ac_save_CXXFLAGS
3595 elif test $ac_cv_prog_cxx_g = yes; then
3596   if test "$GXX" = yes; then
3597     CXXFLAGS="-g -O2"
3598   else
3599     CXXFLAGS="-g"
3600   fi
3601 else
3602   if test "$GXX" = yes; then
3603     CXXFLAGS="-O2"
3604   else
3605     CXXFLAGS=
3606   fi
3607 fi
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614 if test "x$CC" != xcc; then
3615   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3616 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3617 else
3618   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3619 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3620 fi
3621 set dummy $CC; ac_cc=`echo $2 |
3622                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3623 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h.  */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h.  */
3632
3633 int
3634 main ()
3635 {
3636
3637   ;
3638   return 0;
3639 }
3640 _ACEOF
3641 # Make sure it works both with $CC and with simple cc.
3642 # We do the test twice because some compilers refuse to overwrite an
3643 # existing .o file with -o, though they will create one.
3644 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3645 rm -f conftest2.*
3646 if { (case "(($ac_try" in
3647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648   *) ac_try_echo=$ac_try;;
3649 esac
3650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3651   (eval "$ac_try") 2>&5
3652   ac_status=$?
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); } &&
3655    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657   *) ac_try_echo=$ac_try;;
3658 esac
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660   (eval "$ac_try") 2>&5
3661   ac_status=$?
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); };
3664 then
3665   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3666   if test "x$CC" != xcc; then
3667     # Test first that cc exists at all.
3668     if { ac_try='cc -c conftest.$ac_ext >&5'
3669   { (case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674   (eval "$ac_try") 2>&5
3675   ac_status=$?
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); }; }; then
3678       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3679       rm -f conftest2.*
3680       if { (case "(($ac_try" in
3681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682   *) ac_try_echo=$ac_try;;
3683 esac
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685   (eval "$ac_try") 2>&5
3686   ac_status=$?
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); } &&
3689          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691   *) ac_try_echo=$ac_try;;
3692 esac
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694   (eval "$ac_try") 2>&5
3695   ac_status=$?
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); };
3698       then
3699         # cc works too.
3700         :
3701       else
3702         # cc exists but doesn't like -o.
3703         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3704       fi
3705     fi
3706   fi
3707 else
3708   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3709 fi
3710 rm -f core conftest*
3711
3712 fi
3713 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3714   { echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6; }
3716 else
3717   { echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6; }
3719
3720 cat >>confdefs.h <<\_ACEOF
3721 #define NO_MINUS_C_MINUS_O 1
3722 _ACEOF
3723
3724 fi
3725
3726 ac_ext=c
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3732 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3733 # On Suns, sometimes $CPP names a directory.
3734 if test -n "$CPP" && test -d "$CPP"; then
3735   CPP=
3736 fi
3737 if test -z "$CPP"; then
3738   if test "${ac_cv_prog_CPP+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741       # Double quotes because CPP needs to be expanded
3742     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3743     do
3744       ac_preproc_ok=false
3745 for ac_c_preproc_warn_flag in '' yes
3746 do
3747   # Use a header file that comes with gcc, so configuring glibc
3748   # with a fresh cross-compiler works.
3749   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3750   # <limits.h> exists even on freestanding compilers.
3751   # On the NeXT, cc -E runs the code through the compiler's parser,
3752   # not just through cpp. "Syntax error" is here to catch this case.
3753   cat >conftest.$ac_ext <<_ACEOF
3754 /* confdefs.h.  */
3755 _ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h.  */
3759 #ifdef __STDC__
3760 # include <limits.h>
3761 #else
3762 # include <assert.h>
3763 #endif
3764                      Syntax error
3765 _ACEOF
3766 if { (ac_try="$ac_cpp conftest.$ac_ext"
3767 case "(($ac_try" in
3768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769   *) ac_try_echo=$ac_try;;
3770 esac
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3773   ac_status=$?
3774   grep -v '^ *+' conftest.er1 >conftest.err
3775   rm -f conftest.er1
3776   cat conftest.err >&5
3777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778   (exit $ac_status); } >/dev/null && {
3779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3780          test ! -s conftest.err
3781        }; then
3782   :
3783 else
3784   echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787   # Broken: fails on valid input.
3788 continue
3789 fi
3790
3791 rm -f conftest.err conftest.$ac_ext
3792
3793   # OK, works on sane cases.  Now check whether nonexistent headers
3794   # can be detected and how.
3795   cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h.  */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h.  */
3801 #include <ac_nonexistent.h>
3802 _ACEOF
3803 if { (ac_try="$ac_cpp conftest.$ac_ext"
3804 case "(($ac_try" in
3805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806   *) ac_try_echo=$ac_try;;
3807 esac
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810   ac_status=$?
3811   grep -v '^ *+' conftest.er1 >conftest.err
3812   rm -f conftest.er1
3813   cat conftest.err >&5
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); } >/dev/null && {
3816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817          test ! -s conftest.err
3818        }; then
3819   # Broken: success on invalid input.
3820 continue
3821 else
3822   echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3824
3825   # Passes both tests.
3826 ac_preproc_ok=:
3827 break
3828 fi
3829
3830 rm -f conftest.err conftest.$ac_ext
3831
3832 done
3833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3834 rm -f conftest.err conftest.$ac_ext
3835 if $ac_preproc_ok; then
3836   break
3837 fi
3838
3839     done
3840     ac_cv_prog_CPP=$CPP
3841
3842 fi
3843   CPP=$ac_cv_prog_CPP
3844 else
3845   ac_cv_prog_CPP=$CPP
3846 fi
3847 { echo "$as_me:$LINENO: result: $CPP" >&5
3848 echo "${ECHO_T}$CPP" >&6; }
3849 ac_preproc_ok=false
3850 for ac_c_preproc_warn_flag in '' yes
3851 do
3852   # Use a header file that comes with gcc, so configuring glibc
3853   # with a fresh cross-compiler works.
3854   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3855   # <limits.h> exists even on freestanding compilers.
3856   # On the NeXT, cc -E runs the code through the compiler's parser,
3857   # not just through cpp. "Syntax error" is here to catch this case.
3858   cat >conftest.$ac_ext <<_ACEOF
3859 /* confdefs.h.  */
3860 _ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h.  */
3864 #ifdef __STDC__
3865 # include <limits.h>
3866 #else
3867 # include <assert.h>
3868 #endif
3869                      Syntax error
3870 _ACEOF
3871 if { (ac_try="$ac_cpp conftest.$ac_ext"
3872 case "(($ac_try" in
3873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874   *) ac_try_echo=$ac_try;;
3875 esac
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3878   ac_status=$?
3879   grep -v '^ *+' conftest.er1 >conftest.err
3880   rm -f conftest.er1
3881   cat conftest.err >&5
3882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883   (exit $ac_status); } >/dev/null && {
3884          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3885          test ! -s conftest.err
3886        }; then
3887   :
3888 else
3889   echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892   # Broken: fails on valid input.
3893 continue
3894 fi
3895
3896 rm -f conftest.err conftest.$ac_ext
3897
3898   # OK, works on sane cases.  Now check whether nonexistent headers
3899   # can be detected and how.
3900   cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h.  */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h.  */
3906 #include <ac_nonexistent.h>
3907 _ACEOF
3908 if { (ac_try="$ac_cpp conftest.$ac_ext"
3909 case "(($ac_try" in
3910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911   *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3915   ac_status=$?
3916   grep -v '^ *+' conftest.er1 >conftest.err
3917   rm -f conftest.er1
3918   cat conftest.err >&5
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); } >/dev/null && {
3921          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3922          test ! -s conftest.err
3923        }; then
3924   # Broken: success on invalid input.
3925 continue
3926 else
3927   echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930   # Passes both tests.
3931 ac_preproc_ok=:
3932 break
3933 fi
3934
3935 rm -f conftest.err conftest.$ac_ext
3936
3937 done
3938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3939 rm -f conftest.err conftest.$ac_ext
3940 if $ac_preproc_ok; then
3941   :
3942 else
3943   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3944 See \`config.log' for more details." >&5
3945 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3946 See \`config.log' for more details." >&2;}
3947    { (exit 1); exit 1; }; }
3948 fi
3949
3950 ac_ext=c
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955
3956
3957 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3958 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_GREP+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   # Extract the first word of "grep ggrep" to use in msg output
3963 if test -z "$GREP"; then
3964 set dummy grep ggrep; ac_prog_name=$2
3965 if test "${ac_cv_path_GREP+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   ac_path_GREP_found=false
3969 # Loop through the user's path and test for each of PROGNAME-LIST
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3972 do
3973   IFS=$as_save_IFS
3974   test -z "$as_dir" && as_dir=.
3975   for ac_prog in grep ggrep; do
3976   for ac_exec_ext in '' $ac_executable_extensions; do
3977     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3978     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3979     # Check for GNU ac_path_GREP and select it if it is found.
3980   # Check for GNU $ac_path_GREP
3981 case `"$ac_path_GREP" --version 2>&1` in
3982 *GNU*)
3983   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3984 *)
3985   ac_count=0
3986   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3987   while :
3988   do
3989     cat "conftest.in" "conftest.in" >"conftest.tmp"
3990     mv "conftest.tmp" "conftest.in"
3991     cp "conftest.in" "conftest.nl"
3992     echo 'GREP' >> "conftest.nl"
3993     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995     ac_count=`expr $ac_count + 1`
3996     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3997       # Best one so far, save it but keep looking for a better one
3998       ac_cv_path_GREP="$ac_path_GREP"
3999       ac_path_GREP_max=$ac_count
4000     fi
4001     # 10*(2^10) chars as input seems more than enough
4002     test $ac_count -gt 10 && break
4003   done
4004   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005 esac
4006
4007
4008     $ac_path_GREP_found && break 3
4009   done
4010 done
4011
4012 done
4013 IFS=$as_save_IFS
4014
4015
4016 fi
4017
4018 GREP="$ac_cv_path_GREP"
4019 if test -z "$GREP"; then
4020   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4021 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4022    { (exit 1); exit 1; }; }
4023 fi
4024
4025 else
4026   ac_cv_path_GREP=$GREP
4027 fi
4028
4029
4030 fi
4031 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4032 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4033  GREP="$ac_cv_path_GREP"
4034
4035
4036 { echo "$as_me:$LINENO: checking for egrep" >&5
4037 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4038 if test "${ac_cv_path_EGREP+set}" = set; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4042    then ac_cv_path_EGREP="$GREP -E"
4043    else
4044      # Extract the first word of "egrep" to use in msg output
4045 if test -z "$EGREP"; then
4046 set dummy egrep; ac_prog_name=$2
4047 if test "${ac_cv_path_EGREP+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   ac_path_EGREP_found=false
4051 # Loop through the user's path and test for each of PROGNAME-LIST
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057   for ac_prog in egrep; do
4058   for ac_exec_ext in '' $ac_executable_extensions; do
4059     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4060     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4061     # Check for GNU ac_path_EGREP and select it if it is found.
4062   # Check for GNU $ac_path_EGREP
4063 case `"$ac_path_EGREP" --version 2>&1` in
4064 *GNU*)
4065   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4066 *)
4067   ac_count=0
4068   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4069   while :
4070   do
4071     cat "conftest.in" "conftest.in" >"conftest.tmp"
4072     mv "conftest.tmp" "conftest.in"
4073     cp "conftest.in" "conftest.nl"
4074     echo 'EGREP' >> "conftest.nl"
4075     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4077     ac_count=`expr $ac_count + 1`
4078     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4079       # Best one so far, save it but keep looking for a better one
4080       ac_cv_path_EGREP="$ac_path_EGREP"
4081       ac_path_EGREP_max=$ac_count
4082     fi
4083     # 10*(2^10) chars as input seems more than enough
4084     test $ac_count -gt 10 && break
4085   done
4086   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4087 esac
4088
4089
4090     $ac_path_EGREP_found && break 3
4091   done
4092 done
4093
4094 done
4095 IFS=$as_save_IFS
4096
4097
4098 fi
4099
4100 EGREP="$ac_cv_path_EGREP"
4101 if test -z "$EGREP"; then
4102   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4103 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4104    { (exit 1); exit 1; }; }
4105 fi
4106
4107 else
4108   ac_cv_path_EGREP=$EGREP
4109 fi
4110
4111
4112    fi
4113 fi
4114 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4115 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4116  EGREP="$ac_cv_path_EGREP"
4117
4118
4119 if test $ac_cv_c_compiler_gnu = yes; then
4120     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4121 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4122 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4123   echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125     ac_pattern="Autoconf.*'x'"
4126   cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h.  */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h.  */
4132 #include <sgtty.h>
4133 Autoconf TIOCGETP
4134 _ACEOF
4135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4136   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4137   ac_cv_prog_gcc_traditional=yes
4138 else
4139   ac_cv_prog_gcc_traditional=no
4140 fi
4141 rm -f conftest*
4142
4143
4144   if test $ac_cv_prog_gcc_traditional = no; then
4145     cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h.  */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h.  */
4151 #include <termio.h>
4152 Autoconf TCGETA
4153 _ACEOF
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4156   ac_cv_prog_gcc_traditional=yes
4157 fi
4158 rm -f conftest*
4159
4160   fi
4161 fi
4162 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4163 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4164   if test $ac_cv_prog_gcc_traditional = yes; then
4165     CC="$CC -traditional"
4166   fi
4167 fi
4168
4169 BASECC=`basename $CC`
4170 have_gcc=no
4171 if test "x$BASECC" = xgcc; then
4172    cat >>confdefs.h <<\_ACEOF
4173 #define HAVE_GCC 1
4174 _ACEOF
4175
4176    have_gcc=yes
4177 fi
4178 # Extract the first word of "$CXX", so it can be a program name with args.
4179 set dummy $CXX; ac_word=$2
4180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4182 if test "${ac_cv_path_CXX+set}" = set; then
4183   echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185   case $CXX in
4186   [\\/]* | ?:[\\/]*)
4187   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4188   ;;
4189   *)
4190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195   for ac_exec_ext in '' $ac_executable_extensions; do
4196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4199     break 2
4200   fi
4201 done
4202 done
4203 IFS=$as_save_IFS
4204
4205   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4206   ;;
4207 esac
4208 fi
4209 CXX=$ac_cv_path_CXX
4210 if test -n "$CXX"; then
4211   { echo "$as_me:$LINENO: result: $CXX" >&5
4212 echo "${ECHO_T}$CXX" >&6; }
4213 else
4214   { echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6; }
4216 fi
4217
4218
4219 if test ! -e $CXX; then
4220    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4221 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4222    { (exit 1); exit 1; }; }
4223 fi
4224
4225 # Find a good install program.  We prefer a C program (faster),
4226 # so one script is as good as another.  But avoid the broken or
4227 # incompatible versions:
4228 # SysV /etc/install, /usr/sbin/install
4229 # SunOS /usr/etc/install
4230 # IRIX /sbin/install
4231 # AIX /bin/install
4232 # AmigaOS /C/install, which installs bootblocks on floppy discs
4233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4236 # OS/2's system install, which has a completely different semantic
4237 # ./install, which can be erroneously created by make from ./install.sh.
4238 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4239 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4240 if test -z "$INSTALL"; then
4241 if test "${ac_cv_path_install+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247   IFS=$as_save_IFS
4248   test -z "$as_dir" && as_dir=.
4249   # Account for people who put trailing slashes in PATH elements.
4250 case $as_dir/ in
4251   ./ | .// | /cC/* | \
4252   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4253   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4254   /usr/ucb/* ) ;;
4255   *)
4256     # OSF1 and SCO ODT 3.0 have their own names for install.
4257     # Don't use installbsd from OSF since it installs stuff as root
4258     # by default.
4259     for ac_prog in ginstall scoinst install; do
4260       for ac_exec_ext in '' $ac_executable_extensions; do
4261         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4262           if test $ac_prog = install &&
4263             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4264             # AIX install.  It has an incompatible calling convention.
4265             :
4266           elif test $ac_prog = install &&
4267             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268             # program-specific install script used by HP pwplus--don't use.
4269             :
4270           else
4271             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4272             break 3
4273           fi
4274         fi
4275       done
4276     done
4277     ;;
4278 esac
4279 done
4280 IFS=$as_save_IFS
4281
4282
4283 fi
4284   if test "${ac_cv_path_install+set}" = set; then
4285     INSTALL=$ac_cv_path_install
4286   else
4287     # As a last resort, use the slow shell script.  Don't cache a
4288     # value for INSTALL within a source directory, because that will
4289     # break other packages using the cache if that directory is
4290     # removed, or if the value is a relative name.
4291     INSTALL=$ac_install_sh
4292   fi
4293 fi
4294 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4295 echo "${ECHO_T}$INSTALL" >&6; }
4296
4297 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4298 # It thinks the first close brace ends the variable substitution.
4299 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4300
4301 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4302
4303 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4304
4305 # Extract the first word of "mv", so it can be a program name with args.
4306 set dummy mv; ac_word=$2
4307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4309 if test "${ac_cv_path_MV+set}" = set; then
4310   echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312   case $MV in
4313   [\\/]* | ?:[\\/]*)
4314   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4315   ;;
4316   *)
4317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4319 do
4320   IFS=$as_save_IFS
4321   test -z "$as_dir" && as_dir=.
4322   for ac_exec_ext in '' $ac_executable_extensions; do
4323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326     break 2
4327   fi
4328 done
4329 done
4330 IFS=$as_save_IFS
4331
4332   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4333   ;;
4334 esac
4335 fi
4336 MV=$ac_cv_path_MV
4337 if test -n "$MV"; then
4338   { echo "$as_me:$LINENO: result: $MV" >&5
4339 echo "${ECHO_T}$MV" >&6; }
4340 else
4341   { echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6; }
4343 fi
4344
4345
4346 # Extract the first word of "rm", so it can be a program name with args.
4347 set dummy rm; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_path_REMOVE+set}" = set; then
4351   echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353   case $REMOVE in
4354   [\\/]* | ?:[\\/]*)
4355   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4356   ;;
4357   *)
4358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363   for ac_exec_ext in '' $ac_executable_extensions; do
4364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367     break 2
4368   fi
4369 done
4370 done
4371 IFS=$as_save_IFS
4372
4373   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4374   ;;
4375 esac
4376 fi
4377 REMOVE=$ac_cv_path_REMOVE
4378 if test -n "$REMOVE"; then
4379   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4380 echo "${ECHO_T}$REMOVE" >&6; }
4381 else
4382   { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4384 fi
4385
4386
4387 # Extract the first word of "cp", so it can be a program name with args.
4388 set dummy cp; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_path_CP+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   case $CP in
4395   [\\/]* | ?:[\\/]*)
4396   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4397   ;;
4398   *)
4399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404   for ac_exec_ext in '' $ac_executable_extensions; do
4405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411 done
4412 IFS=$as_save_IFS
4413
4414   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4415   ;;
4416 esac
4417 fi
4418 CP=$ac_cv_path_CP
4419 if test -n "$CP"; then
4420   { echo "$as_me:$LINENO: result: $CP" >&5
4421 echo "${ECHO_T}$CP" >&6; }
4422 else
4423   { echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6; }
4425 fi
4426
4427
4428 # Extract the first word of "sed", so it can be a program name with args.
4429 set dummy sed; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_path_SED+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   case $SED in
4436   [\\/]* | ?:[\\/]*)
4437   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4438   ;;
4439   *)
4440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445   for ac_exec_ext in '' $ac_executable_extensions; do
4446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449     break 2
4450   fi
4451 done
4452 done
4453 IFS=$as_save_IFS
4454
4455   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4456   ;;
4457 esac
4458 fi
4459 SED=$ac_cv_path_SED
4460 if test -n "$SED"; then
4461   { echo "$as_me:$LINENO: result: $SED" >&5
4462 echo "${ECHO_T}$SED" >&6; }
4463 else
4464   { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4466 fi
4467
4468
4469 # Extract the first word of "echo", so it can be a program name with args.
4470 set dummy echo; ac_word=$2
4471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4473 if test "${ac_cv_path_ECHO+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   case $ECHO in
4477   [\\/]* | ?:[\\/]*)
4478   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4479   ;;
4480   *)
4481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_exec_ext in '' $ac_executable_extensions; do
4487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494 IFS=$as_save_IFS
4495
4496   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4497   ;;
4498 esac
4499 fi
4500 ECHO=$ac_cv_path_ECHO
4501 if test -n "$ECHO"; then
4502   { echo "$as_me:$LINENO: result: $ECHO" >&5
4503 echo "${ECHO_T}$ECHO" >&6; }
4504 else
4505   { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4507 fi
4508
4509
4510 # Extract the first word of "cmp", so it can be a program name with args.
4511 set dummy cmp; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_CMP+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   case $CMP in
4518   [\\/]* | ?:[\\/]*)
4519   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4520   ;;
4521   *)
4522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525   IFS=$as_save_IFS
4526   test -z "$as_dir" && as_dir=.
4527   for ac_exec_ext in '' $ac_executable_extensions; do
4528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531     break 2
4532   fi
4533 done
4534 done
4535 IFS=$as_save_IFS
4536
4537   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4538   ;;
4539 esac
4540 fi
4541 CMP=$ac_cv_path_CMP
4542 if test -n "$CMP"; then
4543   { echo "$as_me:$LINENO: result: $CMP" >&5
4544 echo "${ECHO_T}$CMP" >&6; }
4545 else
4546   { echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6; }
4548 fi
4549
4550
4551 # Extract the first word of "tbl", so it can be a program name with args.
4552 set dummy tbl; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_path_TBL+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   case $TBL in
4559   [\\/]* | ?:[\\/]*)
4560   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4561   ;;
4562   *)
4563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568   for ac_exec_ext in '' $ac_executable_extensions; do
4569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572     break 2
4573   fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4579   ;;
4580 esac
4581 fi
4582 TBL=$ac_cv_path_TBL
4583 if test -n "$TBL"; then
4584   { echo "$as_me:$LINENO: result: $TBL" >&5
4585 echo "${ECHO_T}$TBL" >&6; }
4586 else
4587   { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4589 fi
4590
4591
4592 # Extract the first word of "ar", so it can be a program name with args.
4593 set dummy ar; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_path_AR+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   case $AR in
4600   [\\/]* | ?:[\\/]*)
4601   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4602   ;;
4603   *)
4604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4620   ;;
4621 esac
4622 fi
4623 AR=$ac_cv_path_AR
4624 if test -n "$AR"; then
4625   { echo "$as_me:$LINENO: result: $AR" >&5
4626 echo "${ECHO_T}$AR" >&6; }
4627 else
4628   { echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6; }
4630 fi
4631
4632
4633 # Extract the first word of "openssl", so it can be a program name with args.
4634 set dummy openssl; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_path_OPENSSL+set}" = set; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640   case $OPENSSL in
4641   [\\/]* | ?:[\\/]*)
4642   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4643   ;;
4644   *)
4645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648   IFS=$as_save_IFS
4649   test -z "$as_dir" && as_dir=.
4650   for ac_exec_ext in '' $ac_executable_extensions; do
4651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654     break 2
4655   fi
4656 done
4657 done
4658 IFS=$as_save_IFS
4659
4660   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4661   ;;
4662 esac
4663 fi
4664 OPENSSL=$ac_cv_path_OPENSSL
4665 if test -n "$OPENSSL"; then
4666   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4667 echo "${ECHO_T}$OPENSSL" >&6; }
4668 else
4669   { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4671 fi
4672
4673
4674 # Extract the first word of "mtx", so it can be a program name with args.
4675 set dummy mtx; ac_word=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_path_MTX+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   case $MTX in
4682   [\\/]* | ?:[\\/]*)
4683   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4684   ;;
4685   *)
4686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691   for ac_exec_ext in '' $ac_executable_extensions; do
4692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695     break 2
4696   fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4702   ;;
4703 esac
4704 fi
4705 MTX=$ac_cv_path_MTX
4706 if test -n "$MTX"; then
4707   { echo "$as_me:$LINENO: result: $MTX" >&5
4708 echo "${ECHO_T}$MTX" >&6; }
4709 else
4710   { echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6; }
4712 fi
4713
4714
4715 # Extract the first word of "dd", so it can be a program name with args.
4716 set dummy dd; ac_word=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_path_DD+set}" = set; then
4720   echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722   case $DD in
4723   [\\/]* | ?:[\\/]*)
4724   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4725   ;;
4726   *)
4727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4729 do
4730   IFS=$as_save_IFS
4731   test -z "$as_dir" && as_dir=.
4732   for ac_exec_ext in '' $ac_executable_extensions; do
4733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736     break 2
4737   fi
4738 done
4739 done
4740 IFS=$as_save_IFS
4741
4742   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4743   ;;
4744 esac
4745 fi
4746 DD=$ac_cv_path_DD
4747 if test -n "$DD"; then
4748   { echo "$as_me:$LINENO: result: $DD" >&5
4749 echo "${ECHO_T}$DD" >&6; }
4750 else
4751   { echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6; }
4753 fi
4754
4755
4756 # Extract the first word of "mkisofs", so it can be a program name with args.
4757 set dummy mkisofs; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_path_MKISOFS+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   case $MKISOFS in
4764   [\\/]* | ?:[\\/]*)
4765   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4766   ;;
4767   *)
4768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771   IFS=$as_save_IFS
4772   test -z "$as_dir" && as_dir=.
4773   for ac_exec_ext in '' $ac_executable_extensions; do
4774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777     break 2
4778   fi
4779 done
4780 done
4781 IFS=$as_save_IFS
4782
4783   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4784   ;;
4785 esac
4786 fi
4787 MKISOFS=$ac_cv_path_MKISOFS
4788 if test -n "$MKISOFS"; then
4789   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4790 echo "${ECHO_T}$MKISOFS" >&6; }
4791 else
4792   { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4794 fi
4795
4796
4797 # Extract the first word of "python", so it can be a program name with args.
4798 set dummy python; ac_word=$2
4799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4801 if test "${ac_cv_path_PYTHON+set}" = set; then
4802   echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804   case $PYTHON in
4805   [\\/]* | ?:[\\/]*)
4806   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4807   ;;
4808   *)
4809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814   for ac_exec_ext in '' $ac_executable_extensions; do
4815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821 done
4822 IFS=$as_save_IFS
4823
4824   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4825   ;;
4826 esac
4827 fi
4828 PYTHON=$ac_cv_path_PYTHON
4829 if test -n "$PYTHON"; then
4830   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4831 echo "${ECHO_T}$PYTHON" >&6; }
4832 else
4833   { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835 fi
4836
4837
4838 # Extract the first word of "growisofs", so it can be a program name with args.
4839 set dummy growisofs; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4843   echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845   case $GROWISOFS in
4846   [\\/]* | ?:[\\/]*)
4847   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4848   ;;
4849   *)
4850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855   for ac_exec_ext in '' $ac_executable_extensions; do
4856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862 done
4863 IFS=$as_save_IFS
4864
4865   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4866   ;;
4867 esac
4868 fi
4869 GROWISOFS=$ac_cv_path_GROWISOFS
4870 if test -n "$GROWISOFS"; then
4871   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4872 echo "${ECHO_T}$GROWISOFS" >&6; }
4873 else
4874   { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4876 fi
4877
4878
4879 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4880 set dummy dvd+rw-mediainfo; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886   case $DVDRWMEDIAINFO in
4887   [\\/]* | ?:[\\/]*)
4888   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4889   ;;
4890   *)
4891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894   IFS=$as_save_IFS
4895   test -z "$as_dir" && as_dir=.
4896   for ac_exec_ext in '' $ac_executable_extensions; do
4897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900     break 2
4901   fi
4902 done
4903 done
4904 IFS=$as_save_IFS
4905
4906   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4907   ;;
4908 esac
4909 fi
4910 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4911 if test -n "$DVDRWMEDIAINFO"; then
4912   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4913 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4914 else
4915   { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4917 fi
4918
4919
4920 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4921 set dummy dvd+rw-format; ac_word=$2
4922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4924 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4925   echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927   case $DVDRWFORMAT in
4928   [\\/]* | ?:[\\/]*)
4929   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4930   ;;
4931   *)
4932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937   for ac_exec_ext in '' $ac_executable_extensions; do
4938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941     break 2
4942   fi
4943 done
4944 done
4945 IFS=$as_save_IFS
4946
4947   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4948   ;;
4949 esac
4950 fi
4951 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4952 if test -n "$DVDRWFORMAT"; then
4953   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4954 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4955 else
4956   { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4958 fi
4959
4960
4961 # Extract the first word of "pkg-config", so it can be a program name with args.
4962 set dummy pkg-config; ac_word=$2
4963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4965 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968   case $PKGCONFIG in
4969   [\\/]* | ?:[\\/]*)
4970   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4971   ;;
4972   *)
4973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976   IFS=$as_save_IFS
4977   test -z "$as_dir" && as_dir=.
4978   for ac_exec_ext in '' $ac_executable_extensions; do
4979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982     break 2
4983   fi
4984 done
4985 done
4986 IFS=$as_save_IFS
4987
4988   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4989   ;;
4990 esac
4991 fi
4992 PKGCONFIG=$ac_cv_path_PKGCONFIG
4993 if test -n "$PKGCONFIG"; then
4994   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4995 echo "${ECHO_T}$PKGCONFIG" >&6; }
4996 else
4997   { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
4999 fi
5000
5001
5002 # Extract the first word of "qmake", so it can be a program name with args.
5003 set dummy qmake; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_path_QMAKE+set}" = set; then
5007   echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009   case $QMAKE in
5010   [\\/]* | ?:[\\/]*)
5011   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5012   ;;
5013   *)
5014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017   IFS=$as_save_IFS
5018   test -z "$as_dir" && as_dir=.
5019   for ac_exec_ext in '' $ac_executable_extensions; do
5020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023     break 2
5024   fi
5025 done
5026 done
5027 IFS=$as_save_IFS
5028
5029   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5030   ;;
5031 esac
5032 fi
5033 QMAKE=$ac_cv_path_QMAKE
5034 if test -n "$QMAKE"; then
5035   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5036 echo "${ECHO_T}$QMAKE" >&6; }
5037 else
5038   { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5040 fi
5041
5042
5043 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5044 set dummy qmake-qt4; ac_word=$2
5045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5047 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050   case $QMAKEQT4 in
5051   [\\/]* | ?:[\\/]*)
5052   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5053   ;;
5054   *)
5055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058   IFS=$as_save_IFS
5059   test -z "$as_dir" && as_dir=.
5060   for ac_exec_ext in '' $ac_executable_extensions; do
5061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064     break 2
5065   fi
5066 done
5067 done
5068 IFS=$as_save_IFS
5069
5070   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5071   ;;
5072 esac
5073 fi
5074 QMAKEQT4=$ac_cv_path_QMAKEQT4
5075 if test -n "$QMAKEQT4"; then
5076   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5077 echo "${ECHO_T}$QMAKEQT4" >&6; }
5078 else
5079   { echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6; }
5081 fi
5082
5083
5084
5085 if test "x$WXCONFIG" = x; then
5086    WXCONFIG=wx-config
5087 fi
5088 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5089 set dummy ${WXCONFIG}; ac_word=$2
5090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5092 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   case $WXCONFIG in
5096   [\\/]* | ?:[\\/]*)
5097   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5098   ;;
5099   *)
5100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103   IFS=$as_save_IFS
5104   test -z "$as_dir" && as_dir=.
5105   for ac_exec_ext in '' $ac_executable_extensions; do
5106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109     break 2
5110   fi
5111 done
5112 done
5113 IFS=$as_save_IFS
5114
5115   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5116   ;;
5117 esac
5118 fi
5119 WXCONFIG=$ac_cv_path_WXCONFIG
5120 if test -n "$WXCONFIG"; then
5121   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5122 echo "${ECHO_T}$WXCONFIG" >&6; }
5123 else
5124   { echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6; }
5126 fi
5127
5128
5129
5130 # Extract the first word of "cdrecord", so it can be a program name with args.
5131 set dummy cdrecord; ac_word=$2
5132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5134 if test "${ac_cv_path_CDRECORD+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   case $CDRECORD in
5138   [\\/]* | ?:[\\/]*)
5139   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5140   ;;
5141   *)
5142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145   IFS=$as_save_IFS
5146   test -z "$as_dir" && as_dir=.
5147   for ac_exec_ext in '' $ac_executable_extensions; do
5148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151     break 2
5152   fi
5153 done
5154 done
5155 IFS=$as_save_IFS
5156
5157   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5158   ;;
5159 esac
5160 fi
5161 CDRECORD=$ac_cv_path_CDRECORD
5162 if test -n "$CDRECORD"; then
5163   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5164 echo "${ECHO_T}$CDRECORD" >&6; }
5165 else
5166   { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5168 fi
5169
5170
5171 # Extract the first word of "pidof", so it can be a program name with args.
5172 set dummy pidof; ac_word=$2
5173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5175 if test "${ac_cv_path_PIDOF+set}" = set; then
5176   echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178   case $PIDOF in
5179   [\\/]* | ?:[\\/]*)
5180   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5181   ;;
5182   *)
5183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186   IFS=$as_save_IFS
5187   test -z "$as_dir" && as_dir=.
5188   for ac_exec_ext in '' $ac_executable_extensions; do
5189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192     break 2
5193   fi
5194 done
5195 done
5196 IFS=$as_save_IFS
5197
5198   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5199   ;;
5200 esac
5201 fi
5202 PIDOF=$ac_cv_path_PIDOF
5203 if test -n "$PIDOF"; then
5204   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5205 echo "${ECHO_T}$PIDOF" >&6; }
5206 else
5207   { echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6; }
5209 fi
5210
5211
5212 for ac_prog in gawk mawk nawk awk
5213 do
5214   # Extract the first word of "$ac_prog", so it can be a program name with args.
5215 set dummy $ac_prog; ac_word=$2
5216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5218 if test "${ac_cv_prog_AWK+set}" = set; then
5219   echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221   if test -n "$AWK"; then
5222   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227   IFS=$as_save_IFS
5228   test -z "$as_dir" && as_dir=.
5229   for ac_exec_ext in '' $ac_executable_extensions; do
5230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231     ac_cv_prog_AWK="$ac_prog"
5232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233     break 2
5234   fi
5235 done
5236 done
5237 IFS=$as_save_IFS
5238
5239 fi
5240 fi
5241 AWK=$ac_cv_prog_AWK
5242 if test -n "$AWK"; then
5243   { echo "$as_me:$LINENO: result: $AWK" >&5
5244 echo "${ECHO_T}$AWK" >&6; }
5245 else
5246   { echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6; }
5248 fi
5249
5250
5251   test -n "$AWK" && break
5252 done
5253
5254 # Some AWK programs fail, so test it and warn the user
5255 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5256       { if ((prog == $2) || (("(" prog ")") == $2) ||
5257       (("" prog "") == $2) ||
5258       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5259 else
5260   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5261    The regex engine of $AWK is too broken to be used you
5262    might want to install GNU AWK.
5263    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5264 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5265    The regex engine of $AWK is too broken to be used you
5266    might want to install GNU AWK.
5267    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5268    { (exit 1); exit 1; }; }
5269 fi
5270 THE_AWK=$AWK
5271 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5272 set dummy $THE_AWK; ac_word=$2
5273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5275 if test "${ac_cv_path_AWK+set}" = set; then
5276   echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278   case $AWK in
5279   [\\/]* | ?:[\\/]*)
5280   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5281   ;;
5282   *)
5283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286   IFS=$as_save_IFS
5287   test -z "$as_dir" && as_dir=.
5288   for ac_exec_ext in '' $ac_executable_extensions; do
5289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292     break 2
5293   fi
5294 done
5295 done
5296 IFS=$as_save_IFS
5297
5298   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5299   ;;
5300 esac
5301 fi
5302 AWK=$ac_cv_path_AWK
5303 if test -n "$AWK"; then
5304   { echo "$as_me:$LINENO: result: $AWK" >&5
5305 echo "${ECHO_T}$AWK" >&6; }
5306 else
5307   { echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6; }
5309 fi
5310
5311
5312
5313
5314 test -n "$ARFLAG" || ARFLAGS="cr"
5315
5316
5317 MAKE_SHELL=/bin/sh
5318
5319
5320
5321
5322
5323
5324
5325 # Check whether --enable-libtool was given.
5326 if test "${enable_libtool+set}" = set; then
5327   enableval=$enable_libtool;
5328        if test x$enableval = xno; then
5329           use_libtool=no
5330        fi
5331
5332
5333 fi
5334
5335 case `pwd` in
5336   *\ * | *\     *)
5337     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5338 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5339 esac
5340
5341
5342
5343 macro_version='2.2.6'
5344 macro_revision='1.3012'
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358 ltmain="$ac_aux_dir/ltmain.sh"
5359
5360 # Make sure we can run config.sub.
5361 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5362   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5363 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5364    { (exit 1); exit 1; }; }
5365
5366 { echo "$as_me:$LINENO: checking build system type" >&5
5367 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5368 if test "${ac_cv_build+set}" = set; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371   ac_build_alias=$build_alias
5372 test "x$ac_build_alias" = x &&
5373   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5374 test "x$ac_build_alias" = x &&
5375   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5376 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5377    { (exit 1); exit 1; }; }
5378 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5379   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5380 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5381    { (exit 1); exit 1; }; }
5382
5383 fi
5384 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5385 echo "${ECHO_T}$ac_cv_build" >&6; }
5386 case $ac_cv_build in
5387 *-*-*) ;;
5388 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5389 echo "$as_me: error: invalid value of canonical build" >&2;}
5390    { (exit 1); exit 1; }; };;
5391 esac
5392 build=$ac_cv_build
5393 ac_save_IFS=$IFS; IFS='-'
5394 set x $ac_cv_build
5395 shift
5396 build_cpu=$1
5397 build_vendor=$2
5398 shift; shift
5399 # Remember, the first character of IFS is used to create $*,
5400 # except with old shells:
5401 build_os=$*
5402 IFS=$ac_save_IFS
5403 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5404
5405
5406 { echo "$as_me:$LINENO: checking host system type" >&5
5407 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5408 if test "${ac_cv_host+set}" = set; then
5409   echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411   if test "x$host_alias" = x; then
5412   ac_cv_host=$ac_cv_build
5413 else
5414   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5415     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5416 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5417    { (exit 1); exit 1; }; }
5418 fi
5419
5420 fi
5421 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5422 echo "${ECHO_T}$ac_cv_host" >&6; }
5423 case $ac_cv_host in
5424 *-*-*) ;;
5425 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5426 echo "$as_me: error: invalid value of canonical host" >&2;}
5427    { (exit 1); exit 1; }; };;
5428 esac
5429 host=$ac_cv_host
5430 ac_save_IFS=$IFS; IFS='-'
5431 set x $ac_cv_host
5432 shift
5433 host_cpu=$1
5434 host_vendor=$2
5435 shift; shift
5436 # Remember, the first character of IFS is used to create $*,
5437 # except with old shells:
5438 host_os=$*
5439 IFS=$ac_save_IFS
5440 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5441
5442
5443 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5444 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5445 if test "${ac_cv_path_SED+set}" = set; then
5446   echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5449      for ac_i in 1 2 3 4 5 6 7; do
5450        ac_script="$ac_script$as_nl$ac_script"
5451      done
5452      echo "$ac_script" | sed 99q >conftest.sed
5453      $as_unset ac_script || ac_script=
5454      # Extract the first word of "sed gsed" to use in msg output
5455 if test -z "$SED"; then
5456 set dummy sed gsed; ac_prog_name=$2
5457 if test "${ac_cv_path_SED+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460   ac_path_SED_found=false
5461 # Loop through the user's path and test for each of PROGNAME-LIST
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467   for ac_prog in sed gsed; do
5468   for ac_exec_ext in '' $ac_executable_extensions; do
5469     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5470     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5471     # Check for GNU ac_path_SED and select it if it is found.
5472   # Check for GNU $ac_path_SED
5473 case `"$ac_path_SED" --version 2>&1` in
5474 *GNU*)
5475   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5476 *)
5477   ac_count=0
5478   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5479   while :
5480   do
5481     cat "conftest.in" "conftest.in" >"conftest.tmp"
5482     mv "conftest.tmp" "conftest.in"
5483     cp "conftest.in" "conftest.nl"
5484     echo '' >> "conftest.nl"
5485     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5486     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5487     ac_count=`expr $ac_count + 1`
5488     if test $ac_count -gt ${ac_path_SED_max-0}; then
5489       # Best one so far, save it but keep looking for a better one
5490       ac_cv_path_SED="$ac_path_SED"
5491       ac_path_SED_max=$ac_count
5492     fi
5493     # 10*(2^10) chars as input seems more than enough
5494     test $ac_count -gt 10 && break
5495   done
5496   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5497 esac
5498
5499
5500     $ac_path_SED_found && break 3
5501   done
5502 done
5503
5504 done
5505 IFS=$as_save_IFS
5506
5507
5508 fi
5509
5510 SED="$ac_cv_path_SED"
5511 if test -z "$SED"; then
5512   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5513 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5514    { (exit 1); exit 1; }; }
5515 fi
5516
5517 else
5518   ac_cv_path_SED=$SED
5519 fi
5520
5521 fi
5522 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5523 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5524  SED="$ac_cv_path_SED"
5525   rm -f conftest.sed
5526
5527 test -z "$SED" && SED=sed
5528 Xsed="$SED -e 1s/^X//"
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540 { echo "$as_me:$LINENO: checking for fgrep" >&5
5541 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5542 if test "${ac_cv_path_FGREP+set}" = set; then
5543   echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5546    then ac_cv_path_FGREP="$GREP -F"
5547    else
5548      # Extract the first word of "fgrep" to use in msg output
5549 if test -z "$FGREP"; then
5550 set dummy fgrep; ac_prog_name=$2
5551 if test "${ac_cv_path_FGREP+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   ac_path_FGREP_found=false
5555 # Loop through the user's path and test for each of PROGNAME-LIST
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561   for ac_prog in fgrep; do
5562   for ac_exec_ext in '' $ac_executable_extensions; do
5563     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5564     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5565     # Check for GNU ac_path_FGREP and select it if it is found.
5566   # Check for GNU $ac_path_FGREP
5567 case `"$ac_path_FGREP" --version 2>&1` in
5568 *GNU*)
5569   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5570 *)
5571   ac_count=0
5572   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5573   while :
5574   do
5575     cat "conftest.in" "conftest.in" >"conftest.tmp"
5576     mv "conftest.tmp" "conftest.in"
5577     cp "conftest.in" "conftest.nl"
5578     echo 'FGREP' >> "conftest.nl"
5579     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581     ac_count=`expr $ac_count + 1`
5582     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5583       # Best one so far, save it but keep looking for a better one
5584       ac_cv_path_FGREP="$ac_path_FGREP"
5585       ac_path_FGREP_max=$ac_count
5586     fi
5587     # 10*(2^10) chars as input seems more than enough
5588     test $ac_count -gt 10 && break
5589   done
5590   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5591 esac
5592
5593
5594     $ac_path_FGREP_found && break 3
5595   done
5596 done
5597
5598 done
5599 IFS=$as_save_IFS
5600
5601
5602 fi
5603
5604 FGREP="$ac_cv_path_FGREP"
5605 if test -z "$FGREP"; then
5606   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5608    { (exit 1); exit 1; }; }
5609 fi
5610
5611 else
5612   ac_cv_path_FGREP=$FGREP
5613 fi
5614
5615
5616    fi
5617 fi
5618 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5619 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5620  FGREP="$ac_cv_path_FGREP"
5621
5622
5623 test -z "$GREP" && GREP=grep
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643 # Check whether --with-gnu-ld was given.
5644 if test "${with_gnu_ld+set}" = set; then
5645   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5646 else
5647   with_gnu_ld=no
5648 fi
5649
5650 ac_prog=ld
5651 if test "$GCC" = yes; then
5652   # Check if gcc -print-prog-name=ld gives a path.
5653   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5654 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5655   case $host in
5656   *-*-mingw*)
5657     # gcc leaves a trailing carriage return which upsets mingw
5658     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5659   *)
5660     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5661   esac
5662   case $ac_prog in
5663     # Accept absolute paths.
5664     [\\/]* | ?:[\\/]*)
5665       re_direlt='/[^/][^/]*/\.\./'
5666       # Canonicalize the pathname of ld
5667       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5668       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5669         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5670       done
5671       test -z "$LD" && LD="$ac_prog"
5672       ;;
5673   "")
5674     # If it fails, then pretend we aren't using GCC.
5675     ac_prog=ld
5676     ;;
5677   *)
5678     # If it is relative, then search for the first ld in PATH.
5679     with_gnu_ld=unknown
5680     ;;
5681   esac
5682 elif test "$with_gnu_ld" = yes; then
5683   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5684 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5685 else
5686   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5687 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5688 fi
5689 if test "${lt_cv_path_LD+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   if test -z "$LD"; then
5693   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5694   for ac_dir in $PATH; do
5695     IFS="$lt_save_ifs"
5696     test -z "$ac_dir" && ac_dir=.
5697     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5698       lt_cv_path_LD="$ac_dir/$ac_prog"
5699       # Check to see if the program is GNU ld.  I'd rather use --version,
5700       # but apparently some variants of GNU ld only accept -v.
5701       # Break only if it was the GNU/non-GNU ld that we prefer.
5702       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5703       *GNU* | *'with BFD'*)
5704         test "$with_gnu_ld" != no && break
5705         ;;
5706       *)
5707         test "$with_gnu_ld" != yes && break
5708         ;;
5709       esac
5710     fi
5711   done
5712   IFS="$lt_save_ifs"
5713 else
5714   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5715 fi
5716 fi
5717
5718 LD="$lt_cv_path_LD"
5719 if test -n "$LD"; then
5720   { echo "$as_me:$LINENO: result: $LD" >&5
5721 echo "${ECHO_T}$LD" >&6; }
5722 else
5723   { echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6; }
5725 fi
5726 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5727 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5728    { (exit 1); exit 1; }; }
5729 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5730 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5731 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5735 case `$LD -v 2>&1 </dev/null` in
5736 *GNU* | *'with BFD'*)
5737   lt_cv_prog_gnu_ld=yes
5738   ;;
5739 *)
5740   lt_cv_prog_gnu_ld=no
5741   ;;
5742 esac
5743 fi
5744 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5745 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5746 with_gnu_ld=$lt_cv_prog_gnu_ld
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5757 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5758 if test "${lt_cv_path_NM+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   if test -n "$NM"; then
5762   # Let the user override the test.
5763   lt_cv_path_NM="$NM"
5764 else
5765   lt_nm_to_check="${ac_tool_prefix}nm"
5766   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5767     lt_nm_to_check="$lt_nm_to_check nm"
5768   fi
5769   for lt_tmp_nm in $lt_nm_to_check; do
5770     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5771     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5772       IFS="$lt_save_ifs"
5773       test -z "$ac_dir" && ac_dir=.
5774       tmp_nm="$ac_dir/$lt_tmp_nm"
5775       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5776         # Check to see if the nm accepts a BSD-compat flag.
5777         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5778         #   nm: unknown option "B" ignored
5779         # Tru64's nm complains that /dev/null is an invalid object file
5780         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5781         */dev/null* | *'Invalid file or object type'*)
5782           lt_cv_path_NM="$tmp_nm -B"
5783           break
5784           ;;
5785         *)
5786           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5787           */dev/null*)
5788             lt_cv_path_NM="$tmp_nm -p"
5789             break
5790             ;;
5791           *)
5792             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5793             continue # so that we can try to find one that supports BSD flags
5794             ;;
5795           esac
5796           ;;
5797         esac
5798       fi
5799     done
5800     IFS="$lt_save_ifs"
5801   done
5802   : ${lt_cv_path_NM=no}
5803 fi
5804 fi
5805 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5806 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5807 if test "$lt_cv_path_NM" != "no"; then
5808   NM="$lt_cv_path_NM"
5809 else
5810   # Didn't find any BSD compatible name lister, look for dumpbin.
5811   if test -n "$ac_tool_prefix"; then
5812   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5813   do
5814     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5818 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5819   echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821   if test -n "$DUMPBIN"; then
5822   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827   IFS=$as_save_IFS
5828   test -z "$as_dir" && as_dir=.
5829   for ac_exec_ext in '' $ac_executable_extensions; do
5830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833     break 2
5834   fi
5835 done
5836 done
5837 IFS=$as_save_IFS
5838
5839 fi
5840 fi
5841 DUMPBIN=$ac_cv_prog_DUMPBIN
5842 if test -n "$DUMPBIN"; then
5843   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5844 echo "${ECHO_T}$DUMPBIN" >&6; }
5845 else
5846   { echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6; }
5848 fi
5849
5850
5851     test -n "$DUMPBIN" && break
5852   done
5853 fi
5854 if test -z "$DUMPBIN"; then
5855   ac_ct_DUMPBIN=$DUMPBIN
5856   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5857 do
5858   # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5862 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5863   echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865   if test -n "$ac_ct_DUMPBIN"; then
5866   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871   IFS=$as_save_IFS
5872   test -z "$as_dir" && as_dir=.
5873   for ac_exec_ext in '' $ac_executable_extensions; do
5874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877     break 2
5878   fi
5879 done
5880 done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5886 if test -n "$ac_ct_DUMPBIN"; then
5887   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5888 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5889 else
5890   { echo "$as_me:$LINENO: result: no" >&5
5891 echo "${ECHO_T}no" >&6; }
5892 fi
5893
5894
5895   test -n "$ac_ct_DUMPBIN" && break
5896 done
5897
5898   if test "x$ac_ct_DUMPBIN" = x; then
5899     DUMPBIN=":"
5900   else
5901     case $cross_compiling:$ac_tool_warned in
5902 yes:)
5903 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5904 whose name does not start with the host triplet.  If you think this
5905 configuration is useful to you, please write to autoconf@gnu.org." >&5
5906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5907 whose name does not start with the host triplet.  If you think this
5908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5909 ac_tool_warned=yes ;;
5910 esac
5911     DUMPBIN=$ac_ct_DUMPBIN
5912   fi
5913 fi
5914
5915
5916   if test "$DUMPBIN" != ":"; then
5917     NM="$DUMPBIN"
5918   fi
5919 fi
5920 test -z "$NM" && NM=nm
5921
5922
5923
5924
5925
5926
5927 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5928 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5929 if test "${lt_cv_nm_interface+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   lt_cv_nm_interface="BSD nm"
5933   echo "int some_variable = 0;" > conftest.$ac_ext
5934   (eval echo "\"\$as_me:5934: $ac_compile\"" >&5)
5935   (eval "$ac_compile" 2>conftest.err)
5936   cat conftest.err >&5
5937   (eval echo "\"\$as_me:5937: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5938   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5939   cat conftest.err >&5
5940   (eval echo "\"\$as_me:5940: output\"" >&5)
5941   cat conftest.out >&5
5942   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5943     lt_cv_nm_interface="MS dumpbin"
5944   fi
5945   rm -f conftest*
5946 fi
5947 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5948 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5949
5950 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5951 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5952 LN_S=$as_ln_s
5953 if test "$LN_S" = "ln -s"; then
5954   { echo "$as_me:$LINENO: result: yes" >&5
5955 echo "${ECHO_T}yes" >&6; }
5956 else
5957   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5958 echo "${ECHO_T}no, using $LN_S" >&6; }
5959 fi
5960
5961 # find the maximum length of command line arguments
5962 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5963 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5964 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5965   echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967     i=0
5968   teststring="ABCD"
5969
5970   case $build_os in
5971   msdosdjgpp*)
5972     # On DJGPP, this test can blow up pretty badly due to problems in libc
5973     # (any single argument exceeding 2000 bytes causes a buffer overrun
5974     # during glob expansion).  Even if it were fixed, the result of this
5975     # check would be larger than it should be.
5976     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5977     ;;
5978
5979   gnu*)
5980     # Under GNU Hurd, this test is not required because there is
5981     # no limit to the length of command line arguments.
5982     # Libtool will interpret -1 as no limit whatsoever
5983     lt_cv_sys_max_cmd_len=-1;
5984     ;;
5985
5986   cygwin* | mingw* | cegcc*)
5987     # On Win9x/ME, this test blows up -- it succeeds, but takes
5988     # about 5 minutes as the teststring grows exponentially.
5989     # Worse, since 9x/ME are not pre-emptively multitasking,
5990     # you end up with a "frozen" computer, even though with patience
5991     # the test eventually succeeds (with a max line length of 256k).
5992     # Instead, let's just punt: use the minimum linelength reported by
5993     # all of the supported platforms: 8192 (on NT/2K/XP).
5994     lt_cv_sys_max_cmd_len=8192;
5995     ;;
5996
5997   amigaos*)
5998     # On AmigaOS with pdksh, this test takes hours, literally.
5999     # So we just punt and use a minimum line length of 8192.
6000     lt_cv_sys_max_cmd_len=8192;
6001     ;;
6002
6003   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6004     # This has been around since 386BSD, at least.  Likely further.
6005     if test -x /sbin/sysctl; then
6006       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6007     elif test -x /usr/sbin/sysctl; then
6008       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6009     else
6010       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6011     fi
6012     # And add a safety zone
6013     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6014     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6015     ;;
6016
6017   interix*)
6018     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6019     lt_cv_sys_max_cmd_len=196608
6020     ;;
6021
6022   osf*)
6023     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6024     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6025     # nice to cause kernel panics so lets avoid the loop below.
6026     # First set a reasonable default.
6027     lt_cv_sys_max_cmd_len=16384
6028     #
6029     if test -x /sbin/sysconfig; then
6030       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6031         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6032       esac
6033     fi
6034     ;;
6035   sco3.2v5*)
6036     lt_cv_sys_max_cmd_len=102400
6037     ;;
6038   sysv5* | sco5v6* | sysv4.2uw2*)
6039     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6040     if test -n "$kargmax"; then
6041       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6042     else
6043       lt_cv_sys_max_cmd_len=32768
6044     fi
6045     ;;
6046   *)
6047     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6048     if test -n "$lt_cv_sys_max_cmd_len"; then
6049       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6050       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6051     else
6052       # Make teststring a little bigger before we do anything with it.
6053       # a 1K string should be a reasonable start.
6054       for i in 1 2 3 4 5 6 7 8 ; do
6055         teststring=$teststring$teststring
6056       done
6057       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6058       # If test is not a shell built-in, we'll probably end up computing a
6059       # maximum length that is only half of the actual maximum length, but
6060       # we can't tell.
6061       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6062                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6063               test $i != 17 # 1/2 MB should be enough
6064       do
6065         i=`expr $i + 1`
6066         teststring=$teststring$teststring
6067       done
6068       # Only check the string length outside the loop.
6069       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6070       teststring=
6071       # Add a significant safety factor because C++ compilers can tack on
6072       # massive amounts of additional arguments before passing them to the
6073       # linker.  It appears as though 1/2 is a usable value.
6074       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6075     fi
6076     ;;
6077   esac
6078
6079 fi
6080
6081 if test -n $lt_cv_sys_max_cmd_len ; then
6082   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6083 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6084 else
6085   { echo "$as_me:$LINENO: result: none" >&5
6086 echo "${ECHO_T}none" >&6; }
6087 fi
6088 max_cmd_len=$lt_cv_sys_max_cmd_len
6089
6090
6091
6092
6093
6094
6095 : ${CP="cp -f"}
6096 : ${MV="mv -f"}
6097 : ${RM="rm -f"}
6098
6099 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6100 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6101 # Try some XSI features
6102 xsi_shell=no
6103 ( _lt_dummy="a/b/c"
6104   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6105       = c,a/b,, \
6106     && eval 'test $(( 1 + 1 )) -eq 2 \
6107     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6108   && xsi_shell=yes
6109 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6110 echo "${ECHO_T}$xsi_shell" >&6; }
6111
6112
6113 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6114 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6115 lt_shell_append=no
6116 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6117     >/dev/null 2>&1 \
6118   && lt_shell_append=yes
6119 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6120 echo "${ECHO_T}$lt_shell_append" >&6; }
6121
6122
6123 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6124   lt_unset=unset
6125 else
6126   lt_unset=false
6127 fi
6128
6129
6130
6131
6132
6133 # test EBCDIC or ASCII
6134 case `echo X|tr X '\101'` in
6135  A) # ASCII based system
6136     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6137   lt_SP2NL='tr \040 \012'
6138   lt_NL2SP='tr \015\012 \040\040'
6139   ;;
6140  *) # EBCDIC based system
6141   lt_SP2NL='tr \100 \n'
6142   lt_NL2SP='tr \r\n \100\100'
6143   ;;
6144 esac
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6155 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6156 if test "${lt_cv_ld_reload_flag+set}" = set; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   lt_cv_ld_reload_flag='-r'
6160 fi
6161 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6162 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6163 reload_flag=$lt_cv_ld_reload_flag
6164 case $reload_flag in
6165 "" | " "*) ;;
6166 *) reload_flag=" $reload_flag" ;;
6167 esac
6168 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6169 case $host_os in
6170   darwin*)
6171     if test "$GCC" = yes; then
6172       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6173     else
6174       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6175     fi
6176     ;;
6177 esac
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187 if test -n "$ac_tool_prefix"; then
6188   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6189 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195   if test -n "$OBJDUMP"; then
6196   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201   IFS=$as_save_IFS
6202   test -z "$as_dir" && as_dir=.
6203   for ac_exec_ext in '' $ac_executable_extensions; do
6204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207     break 2
6208   fi
6209 done
6210 done
6211 IFS=$as_save_IFS
6212
6213 fi
6214 fi
6215 OBJDUMP=$ac_cv_prog_OBJDUMP
6216 if test -n "$OBJDUMP"; then
6217   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6218 echo "${ECHO_T}$OBJDUMP" >&6; }
6219 else
6220   { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6222 fi
6223
6224
6225 fi
6226 if test -z "$ac_cv_prog_OBJDUMP"; then
6227   ac_ct_OBJDUMP=$OBJDUMP
6228   # Extract the first word of "objdump", so it can be a program name with args.
6229 set dummy objdump; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   if test -n "$ac_ct_OBJDUMP"; then
6236   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241   IFS=$as_save_IFS
6242   test -z "$as_dir" && as_dir=.
6243   for ac_exec_ext in '' $ac_executable_extensions; do
6244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247     break 2
6248   fi
6249 done
6250 done
6251 IFS=$as_save_IFS
6252
6253 fi
6254 fi
6255 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6256 if test -n "$ac_ct_OBJDUMP"; then
6257   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6258 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6259 else
6260   { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6262 fi
6263
6264   if test "x$ac_ct_OBJDUMP" = x; then
6265     OBJDUMP="false"
6266   else
6267     case $cross_compiling:$ac_tool_warned in
6268 yes:)
6269 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6270 whose name does not start with the host triplet.  If you think this
6271 configuration is useful to you, please write to autoconf@gnu.org." >&5
6272 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6273 whose name does not start with the host triplet.  If you think this
6274 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6275 ac_tool_warned=yes ;;
6276 esac
6277     OBJDUMP=$ac_ct_OBJDUMP
6278   fi
6279 else
6280   OBJDUMP="$ac_cv_prog_OBJDUMP"
6281 fi
6282
6283 test -z "$OBJDUMP" && OBJDUMP=objdump
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6294 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6295 if test "${lt_cv_deplibs_check_method+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   lt_cv_file_magic_cmd='$MAGIC_CMD'
6299 lt_cv_file_magic_test_file=
6300 lt_cv_deplibs_check_method='unknown'
6301 # Need to set the preceding variable on all platforms that support
6302 # interlibrary dependencies.
6303 # 'none' -- dependencies not supported.
6304 # `unknown' -- same as none, but documents that we really don't know.
6305 # 'pass_all' -- all dependencies passed with no checks.
6306 # 'test_compile' -- check by making test program.
6307 # 'file_magic [[regex]]' -- check by looking for files in library path
6308 # which responds to the $file_magic_cmd with a given extended regex.
6309 # If you have `file' or equivalent on your system and you're not sure
6310 # whether `pass_all' will *always* work, you probably want this one.
6311
6312 case $host_os in
6313 aix[4-9]*)
6314   lt_cv_deplibs_check_method=pass_all
6315   ;;
6316
6317 beos*)
6318   lt_cv_deplibs_check_method=pass_all
6319   ;;
6320
6321 bsdi[45]*)
6322   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6323   lt_cv_file_magic_cmd='/usr/bin/file -L'
6324   lt_cv_file_magic_test_file=/shlib/libc.so
6325   ;;
6326
6327 cygwin*)
6328   # func_win32_libid is a shell function defined in ltmain.sh
6329   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6330   lt_cv_file_magic_cmd='func_win32_libid'
6331   ;;
6332
6333 mingw* | pw32*)
6334   # Base MSYS/MinGW do not provide the 'file' command needed by
6335   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6336   # unless we find 'file', for example because we are cross-compiling.
6337   if ( file / ) >/dev/null 2>&1; then
6338     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6339     lt_cv_file_magic_cmd='func_win32_libid'
6340   else
6341     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6342     lt_cv_file_magic_cmd='$OBJDUMP -f'
6343   fi
6344   ;;
6345
6346 cegcc)
6347   # use the weaker test based on 'objdump'. See mingw*.
6348   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6349   lt_cv_file_magic_cmd='$OBJDUMP -f'
6350   ;;
6351
6352 darwin* | rhapsody*)
6353   lt_cv_deplibs_check_method=pass_all
6354   ;;
6355
6356 freebsd* | dragonfly*)
6357   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6358     case $host_cpu in
6359     i*86 )
6360       # Not sure whether the presence of OpenBSD here was a mistake.
6361       # Let's accept both of them until this is cleared up.
6362       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6363       lt_cv_file_magic_cmd=/usr/bin/file
6364       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6365       ;;
6366     esac
6367   else
6368     lt_cv_deplibs_check_method=pass_all
6369   fi
6370   ;;
6371
6372 gnu*)
6373   lt_cv_deplibs_check_method=pass_all
6374   ;;
6375
6376 hpux10.20* | hpux11*)
6377   lt_cv_file_magic_cmd=/usr/bin/file
6378   case $host_cpu in
6379   ia64*)
6380     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6381     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6382     ;;
6383   hppa*64*)
6384     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]'
6385     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6386     ;;
6387   *)
6388     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6389     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6390     ;;
6391   esac
6392   ;;
6393
6394 interix[3-9]*)
6395   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6396   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6397   ;;
6398
6399 irix5* | irix6* | nonstopux*)
6400   case $LD in
6401   *-32|*"-32 ") libmagic=32-bit;;
6402   *-n32|*"-n32 ") libmagic=N32;;
6403   *-64|*"-64 ") libmagic=64-bit;;
6404   *) libmagic=never-match;;
6405   esac
6406   lt_cv_deplibs_check_method=pass_all
6407   ;;
6408
6409 # This must be Linux ELF.
6410 linux* | k*bsd*-gnu)
6411   lt_cv_deplibs_check_method=pass_all
6412   ;;
6413
6414 netbsd*)
6415   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6416     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6417   else
6418     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6419   fi
6420   ;;
6421
6422 newos6*)
6423   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6424   lt_cv_file_magic_cmd=/usr/bin/file
6425   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6426   ;;
6427
6428 *nto* | *qnx*)
6429   lt_cv_deplibs_check_method=pass_all
6430   ;;
6431
6432 openbsd*)
6433   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6434     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6435   else
6436     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6437   fi
6438   ;;
6439
6440 osf3* | osf4* | osf5*)
6441   lt_cv_deplibs_check_method=pass_all
6442   ;;
6443
6444 rdos*)
6445   lt_cv_deplibs_check_method=pass_all
6446   ;;
6447
6448 solaris*)
6449   lt_cv_deplibs_check_method=pass_all
6450   ;;
6451
6452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6453   lt_cv_deplibs_check_method=pass_all
6454   ;;
6455
6456 sysv4 | sysv4.3*)
6457   case $host_vendor in
6458   motorola)
6459     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]'
6460     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6461     ;;
6462   ncr)
6463     lt_cv_deplibs_check_method=pass_all
6464     ;;
6465   sequent)
6466     lt_cv_file_magic_cmd='/bin/file'
6467     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6468     ;;
6469   sni)
6470     lt_cv_file_magic_cmd='/bin/file'
6471     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6472     lt_cv_file_magic_test_file=/lib/libc.so
6473     ;;
6474   siemens)
6475     lt_cv_deplibs_check_method=pass_all
6476     ;;
6477   pc)
6478     lt_cv_deplibs_check_method=pass_all
6479     ;;
6480   esac
6481   ;;
6482
6483 tpf*)
6484   lt_cv_deplibs_check_method=pass_all
6485   ;;
6486 esac
6487
6488 fi
6489 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6490 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6491 file_magic_cmd=$lt_cv_file_magic_cmd
6492 deplibs_check_method=$lt_cv_deplibs_check_method
6493 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506 if test -n "$ac_tool_prefix"; then
6507   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6508 set dummy ${ac_tool_prefix}ar; ac_word=$2
6509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511 if test "${ac_cv_prog_AR+set}" = set; then
6512   echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514   if test -n "$AR"; then
6515   ac_cv_prog_AR="$AR" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520   IFS=$as_save_IFS
6521   test -z "$as_dir" && as_dir=.
6522   for ac_exec_ext in '' $ac_executable_extensions; do
6523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524     ac_cv_prog_AR="${ac_tool_prefix}ar"
6525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526     break 2
6527   fi
6528 done
6529 done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
6534 AR=$ac_cv_prog_AR
6535 if test -n "$AR"; then
6536   { echo "$as_me:$LINENO: result: $AR" >&5
6537 echo "${ECHO_T}$AR" >&6; }
6538 else
6539   { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6541 fi
6542
6543
6544 fi
6545 if test -z "$ac_cv_prog_AR"; then
6546   ac_ct_AR=$AR
6547   # Extract the first word of "ar", so it can be a program name with args.
6548 set dummy ar; ac_word=$2
6549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6551 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6552   echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554   if test -n "$ac_ct_AR"; then
6555   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6556 else
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 for as_dir in $PATH
6559 do
6560   IFS=$as_save_IFS
6561   test -z "$as_dir" && as_dir=.
6562   for ac_exec_ext in '' $ac_executable_extensions; do
6563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564     ac_cv_prog_ac_ct_AR="ar"
6565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566     break 2
6567   fi
6568 done
6569 done
6570 IFS=$as_save_IFS
6571
6572 fi
6573 fi
6574 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6575 if test -n "$ac_ct_AR"; then
6576   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6577 echo "${ECHO_T}$ac_ct_AR" >&6; }
6578 else
6579   { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6581 fi
6582
6583   if test "x$ac_ct_AR" = x; then
6584     AR="false"
6585   else
6586     case $cross_compiling:$ac_tool_warned in
6587 yes:)
6588 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6589 whose name does not start with the host triplet.  If you think this
6590 configuration is useful to you, please write to autoconf@gnu.org." >&5
6591 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6592 whose name does not start with the host triplet.  If you think this
6593 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6594 ac_tool_warned=yes ;;
6595 esac
6596     AR=$ac_ct_AR
6597   fi
6598 else
6599   AR="$ac_cv_prog_AR"
6600 fi
6601
6602 test -z "$AR" && AR=ar
6603 test -z "$AR_FLAGS" && AR_FLAGS=cru
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615 if test -n "$ac_tool_prefix"; then
6616   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}strip; ac_word=$2
6618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620 if test "${ac_cv_prog_STRIP+set}" = set; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623   if test -n "$STRIP"; then
6624   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629   IFS=$as_save_IFS
6630   test -z "$as_dir" && as_dir=.
6631   for ac_exec_ext in '' $ac_executable_extensions; do
6632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635     break 2
6636   fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641 fi
6642 fi
6643 STRIP=$ac_cv_prog_STRIP
6644 if test -n "$STRIP"; then
6645   { echo "$as_me:$LINENO: result: $STRIP" >&5
6646 echo "${ECHO_T}$STRIP" >&6; }
6647 else
6648   { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6650 fi
6651
6652
6653 fi
6654 if test -z "$ac_cv_prog_STRIP"; then
6655   ac_ct_STRIP=$STRIP
6656   # Extract the first word of "strip", so it can be a program name with args.
6657 set dummy strip; ac_word=$2
6658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6661   echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663   if test -n "$ac_ct_STRIP"; then
6664   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671   for ac_exec_ext in '' $ac_executable_extensions; do
6672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673     ac_cv_prog_ac_ct_STRIP="strip"
6674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6680
6681 fi
6682 fi
6683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6684 if test -n "$ac_ct_STRIP"; then
6685   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6686 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6687 else
6688   { echo "$as_me:$LINENO: result: no" >&5
6689 echo "${ECHO_T}no" >&6; }
6690 fi
6691
6692   if test "x$ac_ct_STRIP" = x; then
6693     STRIP=":"
6694   else
6695     case $cross_compiling:$ac_tool_warned in
6696 yes:)
6697 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6698 whose name does not start with the host triplet.  If you think this
6699 configuration is useful to you, please write to autoconf@gnu.org." >&5
6700 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6701 whose name does not start with the host triplet.  If you think this
6702 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6703 ac_tool_warned=yes ;;
6704 esac
6705     STRIP=$ac_ct_STRIP
6706   fi
6707 else
6708   STRIP="$ac_cv_prog_STRIP"
6709 fi
6710
6711 test -z "$STRIP" && STRIP=:
6712
6713
6714
6715
6716
6717
6718 if test -n "$ac_tool_prefix"; then
6719   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_RANLIB+set}" = set; then
6724   echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726   if test -n "$RANLIB"; then
6727   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732   IFS=$as_save_IFS
6733   test -z "$as_dir" && as_dir=.
6734   for ac_exec_ext in '' $ac_executable_extensions; do
6735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738     break 2
6739   fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 RANLIB=$ac_cv_prog_RANLIB
6747 if test -n "$RANLIB"; then
6748   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6749 echo "${ECHO_T}$RANLIB" >&6; }
6750 else
6751   { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6753 fi
6754
6755
6756 fi
6757 if test -z "$ac_cv_prog_RANLIB"; then
6758   ac_ct_RANLIB=$RANLIB
6759   # Extract the first word of "ranlib", so it can be a program name with args.
6760 set dummy ranlib; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   if test -n "$ac_ct_RANLIB"; then
6767   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772   IFS=$as_save_IFS
6773   test -z "$as_dir" && as_dir=.
6774   for ac_exec_ext in '' $ac_executable_extensions; do
6775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776     ac_cv_prog_ac_ct_RANLIB="ranlib"
6777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778     break 2
6779   fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6787 if test -n "$ac_ct_RANLIB"; then
6788   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6789 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6790 else
6791   { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6793 fi
6794
6795   if test "x$ac_ct_RANLIB" = x; then
6796     RANLIB=":"
6797   else
6798     case $cross_compiling:$ac_tool_warned in
6799 yes:)
6800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet.  If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&5
6803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet.  If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808     RANLIB=$ac_ct_RANLIB
6809   fi
6810 else
6811   RANLIB="$ac_cv_prog_RANLIB"
6812 fi
6813
6814 test -z "$RANLIB" && RANLIB=:
6815
6816
6817
6818
6819
6820
6821 # Determine commands to create old-style static archives.
6822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6823 old_postinstall_cmds='chmod 644 $oldlib'
6824 old_postuninstall_cmds=
6825
6826 if test -n "$RANLIB"; then
6827   case $host_os in
6828   openbsd*)
6829     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6830     ;;
6831   *)
6832     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6833     ;;
6834   esac
6835   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6836 fi
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871 # If no C compiler was specified, use CC.
6872 LTCC=${LTCC-"$CC"}
6873
6874 # If no C compiler flags were specified, use CFLAGS.
6875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6876
6877 # Allow CC to be a program name with arguments.
6878 compiler=$CC
6879
6880
6881 # Check for command to grab the raw symbol name followed by C symbol from nm.
6882 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6883 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6884 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887
6888 # These are sane defaults that work on at least a few old systems.
6889 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6890
6891 # Character class describing NM global symbol codes.
6892 symcode='[BCDEGRST]'
6893
6894 # Regexp to match symbols that can be accessed directly from C.
6895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6896
6897 # Define system-specific variables.
6898 case $host_os in
6899 aix*)
6900   symcode='[BCDT]'
6901   ;;
6902 cygwin* | mingw* | pw32* | cegcc*)
6903   symcode='[ABCDGISTW]'
6904   ;;
6905 hpux*)
6906   if test "$host_cpu" = ia64; then
6907     symcode='[ABCDEGRST]'
6908   fi
6909   ;;
6910 irix* | nonstopux*)
6911   symcode='[BCDEGRST]'
6912   ;;
6913 osf*)
6914   symcode='[BCDEGQRST]'
6915   ;;
6916 solaris*)
6917   symcode='[BDRT]'
6918   ;;
6919 sco3.2v5*)
6920   symcode='[DT]'
6921   ;;
6922 sysv4.2uw2*)
6923   symcode='[DT]'
6924   ;;
6925 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6926   symcode='[ABDT]'
6927   ;;
6928 sysv4)
6929   symcode='[DFNSTU]'
6930   ;;
6931 esac
6932
6933 # If we're using GNU nm, then use its standard symbol codes.
6934 case `$NM -V 2>&1` in
6935 *GNU* | *'with BFD'*)
6936   symcode='[ABCDGIRSTW]' ;;
6937 esac
6938
6939 # Transform an extracted symbol line into a proper C declaration.
6940 # Some systems (esp. on ia64) link data and code symbols differently,
6941 # so use this general approach.
6942 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6943
6944 # Transform an extracted symbol line into symbol name and symbol address
6945 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6946 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'"
6947
6948 # Handle CRLF in mingw tool chain
6949 opt_cr=
6950 case $build_os in
6951 mingw*)
6952   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6953   ;;
6954 esac
6955
6956 # Try without a prefix underscore, then with it.
6957 for ac_symprfx in "" "_"; do
6958
6959   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6960   symxfrm="\\1 $ac_symprfx\\2 \\2"
6961
6962   # Write the raw and C identifiers.
6963   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6964     # Fake it for dumpbin and say T for any non-static function
6965     # and D for any global variable.
6966     # Also find C++ and __fastcall symbols from MSVC++,
6967     # which start with @ or ?.
6968     lt_cv_sys_global_symbol_pipe="$AWK '"\
6969 "     {last_section=section; section=\$ 3};"\
6970 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6971 "     \$ 0!~/External *\|/{next};"\
6972 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6973 "     {if(hide[section]) next};"\
6974 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6975 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6976 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6977 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6978 "     ' prfx=^$ac_symprfx"
6979   else
6980     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6981   fi
6982
6983   # Check to see that the pipe works correctly.
6984   pipe_works=no
6985
6986   rm -f conftest*
6987   cat > conftest.$ac_ext <<_LT_EOF
6988 #ifdef __cplusplus
6989 extern "C" {
6990 #endif
6991 char nm_test_var;
6992 void nm_test_func(void);
6993 void nm_test_func(void){}
6994 #ifdef __cplusplus
6995 }
6996 #endif
6997 int main(){nm_test_var='a';nm_test_func();return(0);}
6998 _LT_EOF
6999
7000   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7001   (eval $ac_compile) 2>&5
7002   ac_status=$?
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); }; then
7005     # Now try to grab the symbols.
7006     nlist=conftest.nm
7007     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7008   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7009   ac_status=$?
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); } && test -s "$nlist"; then
7012       # Try sorting and uniquifying the output.
7013       if sort "$nlist" | uniq > "$nlist"T; then
7014         mv -f "$nlist"T "$nlist"
7015       else
7016         rm -f "$nlist"T
7017       fi
7018
7019       # Make sure that we snagged all the symbols we need.
7020       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7021         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7022           cat <<_LT_EOF > conftest.$ac_ext
7023 #ifdef __cplusplus
7024 extern "C" {
7025 #endif
7026
7027 _LT_EOF
7028           # Now generate the symbol file.
7029           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7030
7031           cat <<_LT_EOF >> conftest.$ac_ext
7032
7033 /* The mapping between symbol names and symbols.  */
7034 const struct {
7035   const char *name;
7036   void       *address;
7037 }
7038 lt__PROGRAM__LTX_preloaded_symbols[] =
7039 {
7040   { "@PROGRAM@", (void *) 0 },
7041 _LT_EOF
7042           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7043           cat <<\_LT_EOF >> conftest.$ac_ext
7044   {0, (void *) 0}
7045 };
7046
7047 /* This works around a problem in FreeBSD linker */
7048 #ifdef FREEBSD_WORKAROUND
7049 static const void *lt_preloaded_setup() {
7050   return lt__PROGRAM__LTX_preloaded_symbols;
7051 }
7052 #endif
7053
7054 #ifdef __cplusplus
7055 }
7056 #endif
7057 _LT_EOF
7058           # Now try linking the two files.
7059           mv conftest.$ac_objext conftstm.$ac_objext
7060           lt_save_LIBS="$LIBS"
7061           lt_save_CFLAGS="$CFLAGS"
7062           LIBS="conftstm.$ac_objext"
7063           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7064           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065   (eval $ac_link) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7069             pipe_works=yes
7070           fi
7071           LIBS="$lt_save_LIBS"
7072           CFLAGS="$lt_save_CFLAGS"
7073         else
7074           echo "cannot find nm_test_func in $nlist" >&5
7075         fi
7076       else
7077         echo "cannot find nm_test_var in $nlist" >&5
7078       fi
7079     else
7080       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7081     fi
7082   else
7083     echo "$progname: failed program was:" >&5
7084     cat conftest.$ac_ext >&5
7085   fi
7086   rm -rf conftest* conftst*
7087
7088   # Do not use the global_symbol_pipe unless it works.
7089   if test "$pipe_works" = yes; then
7090     break
7091   else
7092     lt_cv_sys_global_symbol_pipe=
7093   fi
7094 done
7095
7096 fi
7097
7098 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7099   lt_cv_sys_global_symbol_to_cdecl=
7100 fi
7101 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7102   { echo "$as_me:$LINENO: result: failed" >&5
7103 echo "${ECHO_T}failed" >&6; }
7104 else
7105   { echo "$as_me:$LINENO: result: ok" >&5
7106 echo "${ECHO_T}ok" >&6; }
7107 fi
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130 # Check whether --enable-libtool-lock was given.
7131 if test "${enable_libtool_lock+set}" = set; then
7132   enableval=$enable_libtool_lock;
7133 fi
7134
7135 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7136
7137 # Some flags need to be propagated to the compiler or linker for good
7138 # libtool support.
7139 case $host in
7140 ia64-*-hpux*)
7141   # Find out which ABI we are using.
7142   echo 'int i;' > conftest.$ac_ext
7143   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144   (eval $ac_compile) 2>&5
7145   ac_status=$?
7146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); }; then
7148     case `/usr/bin/file conftest.$ac_objext` in
7149       *ELF-32*)
7150         HPUX_IA64_MODE="32"
7151         ;;
7152       *ELF-64*)
7153         HPUX_IA64_MODE="64"
7154         ;;
7155     esac
7156   fi
7157   rm -rf conftest*
7158   ;;
7159 *-*-irix6*)
7160   # Find out which ABI we are using.
7161   echo '#line 7161 "configure"' > conftest.$ac_ext
7162   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163   (eval $ac_compile) 2>&5
7164   ac_status=$?
7165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166   (exit $ac_status); }; then
7167     if test "$lt_cv_prog_gnu_ld" = yes; then
7168       case `/usr/bin/file conftest.$ac_objext` in
7169         *32-bit*)
7170           LD="${LD-ld} -melf32bsmip"
7171           ;;
7172         *N32*)
7173           LD="${LD-ld} -melf32bmipn32"
7174           ;;
7175         *64-bit*)
7176           LD="${LD-ld} -melf64bmip"
7177         ;;
7178       esac
7179     else
7180       case `/usr/bin/file conftest.$ac_objext` in
7181         *32-bit*)
7182           LD="${LD-ld} -32"
7183           ;;
7184         *N32*)
7185           LD="${LD-ld} -n32"
7186           ;;
7187         *64-bit*)
7188           LD="${LD-ld} -64"
7189           ;;
7190       esac
7191     fi
7192   fi
7193   rm -rf conftest*
7194   ;;
7195
7196 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7197 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7198   # Find out which ABI we are using.
7199   echo 'int i;' > conftest.$ac_ext
7200   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201   (eval $ac_compile) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); }; then
7205     case `/usr/bin/file conftest.o` in
7206       *32-bit*)
7207         case $host in
7208           x86_64-*kfreebsd*-gnu)
7209             LD="${LD-ld} -m elf_i386_fbsd"
7210             ;;
7211           x86_64-*linux*)
7212             LD="${LD-ld} -m elf_i386"
7213             ;;
7214           ppc64-*linux*|powerpc64-*linux*)
7215             LD="${LD-ld} -m elf32ppclinux"
7216             ;;
7217           s390x-*linux*)
7218             LD="${LD-ld} -m elf_s390"
7219             ;;
7220           sparc64-*linux*)
7221             LD="${LD-ld} -m elf32_sparc"
7222             ;;
7223         esac
7224         ;;
7225       *64-bit*)
7226         case $host in
7227           x86_64-*kfreebsd*-gnu)
7228             LD="${LD-ld} -m elf_x86_64_fbsd"
7229             ;;
7230           x86_64-*linux*)
7231             LD="${LD-ld} -m elf_x86_64"
7232             ;;
7233           ppc*-*linux*|powerpc*-*linux*)
7234             LD="${LD-ld} -m elf64ppc"
7235             ;;
7236           s390*-*linux*|s390*-*tpf*)
7237             LD="${LD-ld} -m elf64_s390"
7238             ;;
7239           sparc*-*linux*)
7240             LD="${LD-ld} -m elf64_sparc"
7241             ;;
7242         esac
7243         ;;
7244     esac
7245   fi
7246   rm -rf conftest*
7247   ;;
7248
7249 *-*-sco3.2v5*)
7250   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7251   SAVE_CFLAGS="$CFLAGS"
7252   CFLAGS="$CFLAGS -belf"
7253   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7254 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7255 if test "${lt_cv_cc_needs_belf+set}" = set; then
7256   echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258   ac_ext=c
7259 ac_cpp='$CPP $CPPFLAGS'
7260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7263
7264      cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h.  */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h.  */
7270
7271 int
7272 main ()
7273 {
7274
7275   ;
7276   return 0;
7277 }
7278 _ACEOF
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (ac_try="$ac_link"
7281 case "(($ac_try" in
7282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7283   *) ac_try_echo=$ac_try;;
7284 esac
7285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7286   (eval "$ac_link") 2>conftest.er1
7287   ac_status=$?
7288   grep -v '^ *+' conftest.er1 >conftest.err
7289   rm -f conftest.er1
7290   cat conftest.err >&5
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); } && {
7293          test -z "$ac_c_werror_flag" ||
7294          test ! -s conftest.err
7295        } && test -s conftest$ac_exeext &&
7296        $as_test_x conftest$ac_exeext; then
7297   lt_cv_cc_needs_belf=yes
7298 else
7299   echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7301
7302         lt_cv_cc_needs_belf=no
7303 fi
7304
7305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7306       conftest$ac_exeext conftest.$ac_ext
7307      ac_ext=c
7308 ac_cpp='$CPP $CPPFLAGS'
7309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7312
7313 fi
7314 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7315 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7316   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7317     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7318     CFLAGS="$SAVE_CFLAGS"
7319   fi
7320   ;;
7321 sparc*-*solaris*)
7322   # Find out which ABI we are using.
7323   echo 'int i;' > conftest.$ac_ext
7324   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325   (eval $ac_compile) 2>&5
7326   ac_status=$?
7327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328   (exit $ac_status); }; then
7329     case `/usr/bin/file conftest.o` in
7330     *64-bit*)
7331       case $lt_cv_prog_gnu_ld in
7332       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7333       *)
7334         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7335           LD="${LD-ld} -64"
7336         fi
7337         ;;
7338       esac
7339       ;;
7340     esac
7341   fi
7342   rm -rf conftest*
7343   ;;
7344 esac
7345
7346 need_locks="$enable_libtool_lock"
7347
7348
7349   case $host_os in
7350     rhapsody* | darwin*)
7351     if test -n "$ac_tool_prefix"; then
7352   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   if test -n "$DSYMUTIL"; then
7360   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365   IFS=$as_save_IFS
7366   test -z "$as_dir" && as_dir=.
7367   for ac_exec_ext in '' $ac_executable_extensions; do
7368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371     break 2
7372   fi
7373 done
7374 done
7375 IFS=$as_save_IFS
7376
7377 fi
7378 fi
7379 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7380 if test -n "$DSYMUTIL"; then
7381   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7382 echo "${ECHO_T}$DSYMUTIL" >&6; }
7383 else
7384   { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7386 fi
7387
7388
7389 fi
7390 if test -z "$ac_cv_prog_DSYMUTIL"; then
7391   ac_ct_DSYMUTIL=$DSYMUTIL
7392   # Extract the first word of "dsymutil", so it can be a program name with args.
7393 set dummy dsymutil; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399   if test -n "$ac_ct_DSYMUTIL"; then
7400   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407   for ac_exec_ext in '' $ac_executable_extensions; do
7408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414 done
7415 IFS=$as_save_IFS
7416
7417 fi
7418 fi
7419 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7420 if test -n "$ac_ct_DSYMUTIL"; then
7421   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7422 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7423 else
7424   { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7426 fi
7427
7428   if test "x$ac_ct_DSYMUTIL" = x; then
7429     DSYMUTIL=":"
7430   else
7431     case $cross_compiling:$ac_tool_warned in
7432 yes:)
7433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7434 whose name does not start with the host triplet.  If you think this
7435 configuration is useful to you, please write to autoconf@gnu.org." >&5
7436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7437 whose name does not start with the host triplet.  If you think this
7438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7439 ac_tool_warned=yes ;;
7440 esac
7441     DSYMUTIL=$ac_ct_DSYMUTIL
7442   fi
7443 else
7444   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7445 fi
7446
7447     if test -n "$ac_tool_prefix"; then
7448   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7449 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455   if test -n "$NMEDIT"; then
7456   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461   IFS=$as_save_IFS
7462   test -z "$as_dir" && as_dir=.
7463   for ac_exec_ext in '' $ac_executable_extensions; do
7464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7465     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467     break 2
7468   fi
7469 done
7470 done
7471 IFS=$as_save_IFS
7472
7473 fi
7474 fi
7475 NMEDIT=$ac_cv_prog_NMEDIT
7476 if test -n "$NMEDIT"; then
7477   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7478 echo "${ECHO_T}$NMEDIT" >&6; }
7479 else
7480   { echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6; }
7482 fi
7483
7484
7485 fi
7486 if test -z "$ac_cv_prog_NMEDIT"; then
7487   ac_ct_NMEDIT=$NMEDIT
7488   # Extract the first word of "nmedit", so it can be a program name with args.
7489 set dummy nmedit; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7493   echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495   if test -n "$ac_ct_NMEDIT"; then
7496   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7497 else
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7500 do
7501   IFS=$as_save_IFS
7502   test -z "$as_dir" && as_dir=.
7503   for ac_exec_ext in '' $ac_executable_extensions; do
7504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7505     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507     break 2
7508   fi
7509 done
7510 done
7511 IFS=$as_save_IFS
7512
7513 fi
7514 fi
7515 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7516 if test -n "$ac_ct_NMEDIT"; then
7517   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7518 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7519 else
7520   { echo "$as_me:$LINENO: result: no" >&5
7521 echo "${ECHO_T}no" >&6; }
7522 fi
7523
7524   if test "x$ac_ct_NMEDIT" = x; then
7525     NMEDIT=":"
7526   else
7527     case $cross_compiling:$ac_tool_warned in
7528 yes:)
7529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7530 whose name does not start with the host triplet.  If you think this
7531 configuration is useful to you, please write to autoconf@gnu.org." >&5
7532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7533 whose name does not start with the host triplet.  If you think this
7534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7535 ac_tool_warned=yes ;;
7536 esac
7537     NMEDIT=$ac_ct_NMEDIT
7538   fi
7539 else
7540   NMEDIT="$ac_cv_prog_NMEDIT"
7541 fi
7542
7543     if test -n "$ac_tool_prefix"; then
7544   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7545 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_prog_LIPO+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   if test -n "$LIPO"; then
7552   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557   IFS=$as_save_IFS
7558   test -z "$as_dir" && as_dir=.
7559   for ac_exec_ext in '' $ac_executable_extensions; do
7560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7561     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563     break 2
7564   fi
7565 done
7566 done
7567 IFS=$as_save_IFS
7568
7569 fi
7570 fi
7571 LIPO=$ac_cv_prog_LIPO
7572 if test -n "$LIPO"; then
7573   { echo "$as_me:$LINENO: result: $LIPO" >&5
7574 echo "${ECHO_T}$LIPO" >&6; }
7575 else
7576   { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7578 fi
7579
7580
7581 fi
7582 if test -z "$ac_cv_prog_LIPO"; then
7583   ac_ct_LIPO=$LIPO
7584   # Extract the first word of "lipo", so it can be a program name with args.
7585 set dummy lipo; ac_word=$2
7586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7589   echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591   if test -n "$ac_ct_LIPO"; then
7592   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7593 else
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597   IFS=$as_save_IFS
7598   test -z "$as_dir" && as_dir=.
7599   for ac_exec_ext in '' $ac_executable_extensions; do
7600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7601     ac_cv_prog_ac_ct_LIPO="lipo"
7602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603     break 2
7604   fi
7605 done
7606 done
7607 IFS=$as_save_IFS
7608
7609 fi
7610 fi
7611 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7612 if test -n "$ac_ct_LIPO"; then
7613   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7614 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7615 else
7616   { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7618 fi
7619
7620   if test "x$ac_ct_LIPO" = x; then
7621     LIPO=":"
7622   else
7623     case $cross_compiling:$ac_tool_warned in
7624 yes:)
7625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7626 whose name does not start with the host triplet.  If you think this
7627 configuration is useful to you, please write to autoconf@gnu.org." >&5
7628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7629 whose name does not start with the host triplet.  If you think this
7630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7631 ac_tool_warned=yes ;;
7632 esac
7633     LIPO=$ac_ct_LIPO
7634   fi
7635 else
7636   LIPO="$ac_cv_prog_LIPO"
7637 fi
7638
7639     if test -n "$ac_tool_prefix"; then
7640   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7641 set dummy ${ac_tool_prefix}otool; ac_word=$2
7642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7644 if test "${ac_cv_prog_OTOOL+set}" = set; then
7645   echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647   if test -n "$OTOOL"; then
7648   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7652 do
7653   IFS=$as_save_IFS
7654   test -z "$as_dir" && as_dir=.
7655   for ac_exec_ext in '' $ac_executable_extensions; do
7656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659     break 2
7660   fi
7661 done
7662 done
7663 IFS=$as_save_IFS
7664
7665 fi
7666 fi
7667 OTOOL=$ac_cv_prog_OTOOL
7668 if test -n "$OTOOL"; then
7669   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7670 echo "${ECHO_T}$OTOOL" >&6; }
7671 else
7672   { echo "$as_me:$LINENO: result: no" >&5
7673 echo "${ECHO_T}no" >&6; }
7674 fi
7675
7676
7677 fi
7678 if test -z "$ac_cv_prog_OTOOL"; then
7679   ac_ct_OTOOL=$OTOOL
7680   # Extract the first word of "otool", so it can be a program name with args.
7681 set dummy otool; ac_word=$2
7682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   if test -n "$ac_ct_OTOOL"; then
7688   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7689 else
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695   for ac_exec_ext in '' $ac_executable_extensions; do
7696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697     ac_cv_prog_ac_ct_OTOOL="otool"
7698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699     break 2
7700   fi
7701 done
7702 done
7703 IFS=$as_save_IFS
7704
7705 fi
7706 fi
7707 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7708 if test -n "$ac_ct_OTOOL"; then
7709   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7710 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7711 else
7712   { echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6; }
7714 fi
7715
7716   if test "x$ac_ct_OTOOL" = x; then
7717     OTOOL=":"
7718   else
7719     case $cross_compiling:$ac_tool_warned in
7720 yes:)
7721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7722 whose name does not start with the host triplet.  If you think this
7723 configuration is useful to you, please write to autoconf@gnu.org." >&5
7724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7725 whose name does not start with the host triplet.  If you think this
7726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7727 ac_tool_warned=yes ;;
7728 esac
7729     OTOOL=$ac_ct_OTOOL
7730   fi
7731 else
7732   OTOOL="$ac_cv_prog_OTOOL"
7733 fi
7734
7735     if test -n "$ac_tool_prefix"; then
7736   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7737 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7741   echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743   if test -n "$OTOOL64"; then
7744   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7745 else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7748 do
7749   IFS=$as_save_IFS
7750   test -z "$as_dir" && as_dir=.
7751   for ac_exec_ext in '' $ac_executable_extensions; do
7752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7753     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755     break 2
7756   fi
7757 done
7758 done
7759 IFS=$as_save_IFS
7760
7761 fi
7762 fi
7763 OTOOL64=$ac_cv_prog_OTOOL64
7764 if test -n "$OTOOL64"; then
7765   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7766 echo "${ECHO_T}$OTOOL64" >&6; }
7767 else
7768   { echo "$as_me:$LINENO: result: no" >&5
7769 echo "${ECHO_T}no" >&6; }
7770 fi
7771
7772
7773 fi
7774 if test -z "$ac_cv_prog_OTOOL64"; then
7775   ac_ct_OTOOL64=$OTOOL64
7776   # Extract the first word of "otool64", so it can be a program name with args.
7777 set dummy otool64; ac_word=$2
7778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7780 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   if test -n "$ac_ct_OTOOL64"; then
7784   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7785 else
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 for as_dir in $PATH
7788 do
7789   IFS=$as_save_IFS
7790   test -z "$as_dir" && as_dir=.
7791   for ac_exec_ext in '' $ac_executable_extensions; do
7792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7793     ac_cv_prog_ac_ct_OTOOL64="otool64"
7794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7795     break 2
7796   fi
7797 done
7798 done
7799 IFS=$as_save_IFS
7800
7801 fi
7802 fi
7803 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7804 if test -n "$ac_ct_OTOOL64"; then
7805   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7806 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7807 else
7808   { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7810 fi
7811
7812   if test "x$ac_ct_OTOOL64" = x; then
7813     OTOOL64=":"
7814   else
7815     case $cross_compiling:$ac_tool_warned in
7816 yes:)
7817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7818 whose name does not start with the host triplet.  If you think this
7819 configuration is useful to you, please write to autoconf@gnu.org." >&5
7820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7821 whose name does not start with the host triplet.  If you think this
7822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7823 ac_tool_warned=yes ;;
7824 esac
7825     OTOOL64=$ac_ct_OTOOL64
7826   fi
7827 else
7828   OTOOL64="$ac_cv_prog_OTOOL64"
7829 fi
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7858 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7859 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   lt_cv_apple_cc_single_mod=no
7863       if test -z "${LT_MULTI_MODULE}"; then
7864         # By default we will add the -single_module flag. You can override
7865         # by either setting the environment variable LT_MULTI_MODULE
7866         # non-empty at configure time, or by adding -multi_module to the
7867         # link flags.
7868         rm -rf libconftest.dylib*
7869         echo "int foo(void){return 1;}" > conftest.c
7870         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7871 -dynamiclib -Wl,-single_module conftest.c" >&5
7872         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7873           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7874         _lt_result=$?
7875         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7876           lt_cv_apple_cc_single_mod=yes
7877         else
7878           cat conftest.err >&5
7879         fi
7880         rm -rf libconftest.dylib*
7881         rm -f conftest.*
7882       fi
7883 fi
7884 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7885 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7886     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7887 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7888 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7889   echo $ECHO_N "(cached) $ECHO_C" >&6
7890 else
7891   lt_cv_ld_exported_symbols_list=no
7892       save_LDFLAGS=$LDFLAGS
7893       echo "_main" > conftest.sym
7894       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7895       cat >conftest.$ac_ext <<_ACEOF
7896 /* confdefs.h.  */
7897 _ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h.  */
7901
7902 int
7903 main ()
7904 {
7905
7906   ;
7907   return 0;
7908 }
7909 _ACEOF
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (ac_try="$ac_link"
7912 case "(($ac_try" in
7913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914   *) ac_try_echo=$ac_try;;
7915 esac
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917   (eval "$ac_link") 2>conftest.er1
7918   ac_status=$?
7919   grep -v '^ *+' conftest.er1 >conftest.err
7920   rm -f conftest.er1
7921   cat conftest.err >&5
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); } && {
7924          test -z "$ac_c_werror_flag" ||
7925          test ! -s conftest.err
7926        } && test -s conftest$ac_exeext &&
7927        $as_test_x conftest$ac_exeext; then
7928   lt_cv_ld_exported_symbols_list=yes
7929 else
7930   echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933         lt_cv_ld_exported_symbols_list=no
7934 fi
7935
7936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7937       conftest$ac_exeext conftest.$ac_ext
7938         LDFLAGS="$save_LDFLAGS"
7939
7940 fi
7941 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7942 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7943     case $host_os in
7944     rhapsody* | darwin1.[012])
7945       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7946     darwin1.*)
7947       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7948     darwin*) # darwin 5.x on
7949       # if running on 10.5 or later, the deployment target defaults
7950       # to the OS version, if on x86, and 10.4, the deployment
7951       # target defaults to 10.4. Don't you love it?
7952       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7953         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7954           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7955         10.[012]*)
7956           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7957         10.*)
7958           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7959       esac
7960     ;;
7961   esac
7962     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7963       _lt_dar_single_mod='$single_module'
7964     fi
7965     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7966       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7967     else
7968       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7969     fi
7970     if test "$DSYMUTIL" != ":"; then
7971       _lt_dsymutil='~$DSYMUTIL $lib || :'
7972     else
7973       _lt_dsymutil=
7974     fi
7975     ;;
7976   esac
7977
7978 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7979 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7980 if test "${ac_cv_header_stdc+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h.  */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h.  */
7989 #include <stdlib.h>
7990 #include <stdarg.h>
7991 #include <string.h>
7992 #include <float.h>
7993
7994 int
7995 main ()
7996 {
7997
7998   ;
7999   return 0;
8000 }
8001 _ACEOF
8002 rm -f conftest.$ac_objext
8003 if { (ac_try="$ac_compile"
8004 case "(($ac_try" in
8005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006   *) ac_try_echo=$ac_try;;
8007 esac
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009   (eval "$ac_compile") 2>conftest.er1
8010   ac_status=$?
8011   grep -v '^ *+' conftest.er1 >conftest.err
8012   rm -f conftest.er1
8013   cat conftest.err >&5
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); } && {
8016          test -z "$ac_c_werror_flag" ||
8017          test ! -s conftest.err
8018        } && test -s conftest.$ac_objext; then
8019   ac_cv_header_stdc=yes
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024         ac_cv_header_stdc=no
8025 fi
8026
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028
8029 if test $ac_cv_header_stdc = yes; then
8030   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8031   cat >conftest.$ac_ext <<_ACEOF
8032 /* confdefs.h.  */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h.  */
8037 #include <string.h>
8038
8039 _ACEOF
8040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8041   $EGREP "memchr" >/dev/null 2>&1; then
8042   :
8043 else
8044   ac_cv_header_stdc=no
8045 fi
8046 rm -f conftest*
8047
8048 fi
8049
8050 if test $ac_cv_header_stdc = yes; then
8051   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8052   cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h.  */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h.  */
8058 #include <stdlib.h>
8059
8060 _ACEOF
8061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8062   $EGREP "free" >/dev/null 2>&1; then
8063   :
8064 else
8065   ac_cv_header_stdc=no
8066 fi
8067 rm -f conftest*
8068
8069 fi
8070
8071 if test $ac_cv_header_stdc = yes; then
8072   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8073   if test "$cross_compiling" = yes; then
8074   :
8075 else
8076   cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h.  */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h.  */
8082 #include <ctype.h>
8083 #include <stdlib.h>
8084 #if ((' ' & 0x0FF) == 0x020)
8085 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8086 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8087 #else
8088 # define ISLOWER(c) \
8089                    (('a' <= (c) && (c) <= 'i') \
8090                      || ('j' <= (c) && (c) <= 'r') \
8091                      || ('s' <= (c) && (c) <= 'z'))
8092 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8093 #endif
8094
8095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8096 int
8097 main ()
8098 {
8099   int i;
8100   for (i = 0; i < 256; i++)
8101     if (XOR (islower (i), ISLOWER (i))
8102         || toupper (i) != TOUPPER (i))
8103       return 2;
8104   return 0;
8105 }
8106 _ACEOF
8107 rm -f conftest$ac_exeext
8108 if { (ac_try="$ac_link"
8109 case "(($ac_try" in
8110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111   *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114   (eval "$ac_link") 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8118   { (case "(($ac_try" in
8119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120   *) ac_try_echo=$ac_try;;
8121 esac
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123   (eval "$ac_try") 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; }; then
8127   :
8128 else
8129   echo "$as_me: program exited with status $ac_status" >&5
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 ( exit $ac_status )
8134 ac_cv_header_stdc=no
8135 fi
8136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8137 fi
8138
8139
8140 fi
8141 fi
8142 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8143 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8144 if test $ac_cv_header_stdc = yes; then
8145
8146 cat >>confdefs.h <<\_ACEOF
8147 #define STDC_HEADERS 1
8148 _ACEOF
8149
8150 fi
8151
8152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8163                   inttypes.h stdint.h unistd.h
8164 do
8165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8169   echo $ECHO_N "(cached) $ECHO_C" >&6
8170 else
8171   cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h.  */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h.  */
8177 $ac_includes_default
8178
8179 #include <$ac_header>
8180 _ACEOF
8181 rm -f conftest.$ac_objext
8182 if { (ac_try="$ac_compile"
8183 case "(($ac_try" in
8184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185   *) ac_try_echo=$ac_try;;
8186 esac
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188   (eval "$ac_compile") 2>conftest.er1
8189   ac_status=$?
8190   grep -v '^ *+' conftest.er1 >conftest.err
8191   rm -f conftest.er1
8192   cat conftest.err >&5
8193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194   (exit $ac_status); } && {
8195          test -z "$ac_c_werror_flag" ||
8196          test ! -s conftest.err
8197        } && test -s conftest.$ac_objext; then
8198   eval "$as_ac_Header=yes"
8199 else
8200   echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203         eval "$as_ac_Header=no"
8204 fi
8205
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 fi
8208 ac_res=`eval echo '${'$as_ac_Header'}'`
8209                { echo "$as_me:$LINENO: result: $ac_res" >&5
8210 echo "${ECHO_T}$ac_res" >&6; }
8211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8212   cat >>confdefs.h <<_ACEOF
8213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8214 _ACEOF
8215
8216 fi
8217
8218 done
8219
8220
8221
8222 for ac_header in dlfcn.h
8223 do
8224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h.  */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h.  */
8236 $ac_includes_default
8237
8238 #include <$ac_header>
8239 _ACEOF
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8242 case "(($ac_try" in
8243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244   *) ac_try_echo=$ac_try;;
8245 esac
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247   (eval "$ac_compile") 2>conftest.er1
8248   ac_status=$?
8249   grep -v '^ *+' conftest.er1 >conftest.err
8250   rm -f conftest.er1
8251   cat conftest.err >&5
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); } && {
8254          test -z "$ac_c_werror_flag" ||
8255          test ! -s conftest.err
8256        } && test -s conftest.$ac_objext; then
8257   eval "$as_ac_Header=yes"
8258 else
8259   echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8261
8262         eval "$as_ac_Header=no"
8263 fi
8264
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8266 fi
8267 ac_res=`eval echo '${'$as_ac_Header'}'`
8268                { echo "$as_me:$LINENO: result: $ac_res" >&5
8269 echo "${ECHO_T}$ac_res" >&6; }
8270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8271   cat >>confdefs.h <<_ACEOF
8272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8273 _ACEOF
8274
8275 fi
8276
8277 done
8278
8279
8280
8281 ac_ext=cpp
8282 ac_cpp='$CXXCPP $CPPFLAGS'
8283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8286 if test -z "$CXX"; then
8287   if test -n "$CCC"; then
8288     CXX=$CCC
8289   else
8290     if test -n "$ac_tool_prefix"; then
8291   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8292   do
8293     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8297 if test "${ac_cv_prog_CXX+set}" = set; then
8298   echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300   if test -n "$CXX"; then
8301   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306   IFS=$as_save_IFS
8307   test -z "$as_dir" && as_dir=.
8308   for ac_exec_ext in '' $ac_executable_extensions; do
8309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8310     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8312     break 2
8313   fi
8314 done
8315 done
8316 IFS=$as_save_IFS
8317
8318 fi
8319 fi
8320 CXX=$ac_cv_prog_CXX
8321 if test -n "$CXX"; then
8322   { echo "$as_me:$LINENO: result: $CXX" >&5
8323 echo "${ECHO_T}$CXX" >&6; }
8324 else
8325   { echo "$as_me:$LINENO: result: no" >&5
8326 echo "${ECHO_T}no" >&6; }
8327 fi
8328
8329
8330     test -n "$CXX" && break
8331   done
8332 fi
8333 if test -z "$CXX"; then
8334   ac_ct_CXX=$CXX
8335   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8336 do
8337   # Extract the first word of "$ac_prog", so it can be a program name with args.
8338 set dummy $ac_prog; ac_word=$2
8339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8341 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8342   echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344   if test -n "$ac_ct_CXX"; then
8345   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8349 do
8350   IFS=$as_save_IFS
8351   test -z "$as_dir" && as_dir=.
8352   for ac_exec_ext in '' $ac_executable_extensions; do
8353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354     ac_cv_prog_ac_ct_CXX="$ac_prog"
8355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8356     break 2
8357   fi
8358 done
8359 done
8360 IFS=$as_save_IFS
8361
8362 fi
8363 fi
8364 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8365 if test -n "$ac_ct_CXX"; then
8366   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8367 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8368 else
8369   { echo "$as_me:$LINENO: result: no" >&5
8370 echo "${ECHO_T}no" >&6; }
8371 fi
8372
8373
8374   test -n "$ac_ct_CXX" && break
8375 done
8376
8377   if test "x$ac_ct_CXX" = x; then
8378     CXX="g++"
8379   else
8380     case $cross_compiling:$ac_tool_warned in
8381 yes:)
8382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8383 whose name does not start with the host triplet.  If you think this
8384 configuration is useful to you, please write to autoconf@gnu.org." >&5
8385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8386 whose name does not start with the host triplet.  If you think this
8387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8388 ac_tool_warned=yes ;;
8389 esac
8390     CXX=$ac_ct_CXX
8391   fi
8392 fi
8393
8394   fi
8395 fi
8396 # Provide some information about the compiler.
8397 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8398 ac_compiler=`set X $ac_compile; echo $2`
8399 { (ac_try="$ac_compiler --version >&5"
8400 case "(($ac_try" in
8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402   *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405   (eval "$ac_compiler --version >&5") 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }
8409 { (ac_try="$ac_compiler -v >&5"
8410 case "(($ac_try" in
8411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412   *) ac_try_echo=$ac_try;;
8413 esac
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415   (eval "$ac_compiler -v >&5") 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }
8419 { (ac_try="$ac_compiler -V >&5"
8420 case "(($ac_try" in
8421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422   *) ac_try_echo=$ac_try;;
8423 esac
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425   (eval "$ac_compiler -V >&5") 2>&5
8426   ac_status=$?
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); }
8429
8430 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8431 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8432 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h.  */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h.  */
8441
8442 int
8443 main ()
8444 {
8445 #ifndef __GNUC__
8446        choke me
8447 #endif
8448
8449   ;
8450   return 0;
8451 }
8452 _ACEOF
8453 rm -f conftest.$ac_objext
8454 if { (ac_try="$ac_compile"
8455 case "(($ac_try" in
8456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457   *) ac_try_echo=$ac_try;;
8458 esac
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460   (eval "$ac_compile") 2>conftest.er1
8461   ac_status=$?
8462   grep -v '^ *+' conftest.er1 >conftest.err
8463   rm -f conftest.er1
8464   cat conftest.err >&5
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); } && {
8467          test -z "$ac_cxx_werror_flag" ||
8468          test ! -s conftest.err
8469        } && test -s conftest.$ac_objext; then
8470   ac_compiler_gnu=yes
8471 else
8472   echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475         ac_compiler_gnu=no
8476 fi
8477
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8480
8481 fi
8482 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8483 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8484 GXX=`test $ac_compiler_gnu = yes && echo yes`
8485 ac_test_CXXFLAGS=${CXXFLAGS+set}
8486 ac_save_CXXFLAGS=$CXXFLAGS
8487 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8488 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8489 if test "${ac_cv_prog_cxx_g+set}" = set; then
8490   echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8493    ac_cxx_werror_flag=yes
8494    ac_cv_prog_cxx_g=no
8495    CXXFLAGS="-g"
8496    cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h.  */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h.  */
8502
8503 int
8504 main ()
8505 {
8506
8507   ;
8508   return 0;
8509 }
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8513 case "(($ac_try" in
8514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515   *) ac_try_echo=$ac_try;;
8516 esac
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518   (eval "$ac_compile") 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } && {
8525          test -z "$ac_cxx_werror_flag" ||
8526          test ! -s conftest.err
8527        } && test -s conftest.$ac_objext; then
8528   ac_cv_prog_cxx_g=yes
8529 else
8530   echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533         CXXFLAGS=""
8534       cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h.  */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h.  */
8540
8541 int
8542 main ()
8543 {
8544
8545   ;
8546   return 0;
8547 }
8548 _ACEOF
8549 rm -f conftest.$ac_objext
8550 if { (ac_try="$ac_compile"
8551 case "(($ac_try" in
8552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553   *) ac_try_echo=$ac_try;;
8554 esac
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556   (eval "$ac_compile") 2>conftest.er1
8557   ac_status=$?
8558   grep -v '^ *+' conftest.er1 >conftest.err
8559   rm -f conftest.er1
8560   cat conftest.err >&5
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); } && {
8563          test -z "$ac_cxx_werror_flag" ||
8564          test ! -s conftest.err
8565        } && test -s conftest.$ac_objext; then
8566   :
8567 else
8568   echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8572          CXXFLAGS="-g"
8573          cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h.  */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h.  */
8579
8580 int
8581 main ()
8582 {
8583
8584   ;
8585   return 0;
8586 }
8587 _ACEOF
8588 rm -f conftest.$ac_objext
8589 if { (ac_try="$ac_compile"
8590 case "(($ac_try" in
8591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592   *) ac_try_echo=$ac_try;;
8593 esac
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595   (eval "$ac_compile") 2>conftest.er1
8596   ac_status=$?
8597   grep -v '^ *+' conftest.er1 >conftest.err
8598   rm -f conftest.er1
8599   cat conftest.err >&5
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); } && {
8602          test -z "$ac_cxx_werror_flag" ||
8603          test ! -s conftest.err
8604        } && test -s conftest.$ac_objext; then
8605   ac_cv_prog_cxx_g=yes
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610
8611 fi
8612
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 fi
8618
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8621 fi
8622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8623 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8624 if test "$ac_test_CXXFLAGS" = set; then
8625   CXXFLAGS=$ac_save_CXXFLAGS
8626 elif test $ac_cv_prog_cxx_g = yes; then
8627   if test "$GXX" = yes; then
8628     CXXFLAGS="-g -O2"
8629   else
8630     CXXFLAGS="-g"
8631   fi
8632 else
8633   if test "$GXX" = yes; then
8634     CXXFLAGS="-O2"
8635   else
8636     CXXFLAGS=
8637   fi
8638 fi
8639 ac_ext=c
8640 ac_cpp='$CPP $CPPFLAGS'
8641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8644
8645 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8646     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8647     (test "X$CXX" != "Xg++"))) ; then
8648   ac_ext=cpp
8649 ac_cpp='$CXXCPP $CPPFLAGS'
8650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8653 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8654 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8655 if test -z "$CXXCPP"; then
8656   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8657   echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659       # Double quotes because CXXCPP needs to be expanded
8660     for CXXCPP in "$CXX -E" "/lib/cpp"
8661     do
8662       ac_preproc_ok=false
8663 for ac_cxx_preproc_warn_flag in '' yes
8664 do
8665   # Use a header file that comes with gcc, so configuring glibc
8666   # with a fresh cross-compiler works.
8667   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8668   # <limits.h> exists even on freestanding compilers.
8669   # On the NeXT, cc -E runs the code through the compiler's parser,
8670   # not just through cpp. "Syntax error" is here to catch this case.
8671   cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h.  */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h.  */
8677 #ifdef __STDC__
8678 # include <limits.h>
8679 #else
8680 # include <assert.h>
8681 #endif
8682                      Syntax error
8683 _ACEOF
8684 if { (ac_try="$ac_cpp conftest.$ac_ext"
8685 case "(($ac_try" in
8686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687   *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8691   ac_status=$?
8692   grep -v '^ *+' conftest.er1 >conftest.err
8693   rm -f conftest.er1
8694   cat conftest.err >&5
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); } >/dev/null && {
8697          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8698          test ! -s conftest.err
8699        }; then
8700   :
8701 else
8702   echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705   # Broken: fails on valid input.
8706 continue
8707 fi
8708
8709 rm -f conftest.err conftest.$ac_ext
8710
8711   # OK, works on sane cases.  Now check whether nonexistent headers
8712   # can be detected and how.
8713   cat >conftest.$ac_ext <<_ACEOF
8714 /* confdefs.h.  */
8715 _ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h.  */
8719 #include <ac_nonexistent.h>
8720 _ACEOF
8721 if { (ac_try="$ac_cpp conftest.$ac_ext"
8722 case "(($ac_try" in
8723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724   *) ac_try_echo=$ac_try;;
8725 esac
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8728   ac_status=$?
8729   grep -v '^ *+' conftest.er1 >conftest.err
8730   rm -f conftest.er1
8731   cat conftest.err >&5
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); } >/dev/null && {
8734          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8735          test ! -s conftest.err
8736        }; then
8737   # Broken: success on invalid input.
8738 continue
8739 else
8740   echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8742
8743   # Passes both tests.
8744 ac_preproc_ok=:
8745 break
8746 fi
8747
8748 rm -f conftest.err conftest.$ac_ext
8749
8750 done
8751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8752 rm -f conftest.err conftest.$ac_ext
8753 if $ac_preproc_ok; then
8754   break
8755 fi
8756
8757     done
8758     ac_cv_prog_CXXCPP=$CXXCPP
8759
8760 fi
8761   CXXCPP=$ac_cv_prog_CXXCPP
8762 else
8763   ac_cv_prog_CXXCPP=$CXXCPP
8764 fi
8765 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8766 echo "${ECHO_T}$CXXCPP" >&6; }
8767 ac_preproc_ok=false
8768 for ac_cxx_preproc_warn_flag in '' yes
8769 do
8770   # Use a header file that comes with gcc, so configuring glibc
8771   # with a fresh cross-compiler works.
8772   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8773   # <limits.h> exists even on freestanding compilers.
8774   # On the NeXT, cc -E runs the code through the compiler's parser,
8775   # not just through cpp. "Syntax error" is here to catch this case.
8776   cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h.  */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h.  */
8782 #ifdef __STDC__
8783 # include <limits.h>
8784 #else
8785 # include <assert.h>
8786 #endif
8787                      Syntax error
8788 _ACEOF
8789 if { (ac_try="$ac_cpp conftest.$ac_ext"
8790 case "(($ac_try" in
8791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792   *) ac_try_echo=$ac_try;;
8793 esac
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8796   ac_status=$?
8797   grep -v '^ *+' conftest.er1 >conftest.err
8798   rm -f conftest.er1
8799   cat conftest.err >&5
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } >/dev/null && {
8802          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8803          test ! -s conftest.err
8804        }; then
8805   :
8806 else
8807   echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810   # Broken: fails on valid input.
8811 continue
8812 fi
8813
8814 rm -f conftest.err conftest.$ac_ext
8815
8816   # OK, works on sane cases.  Now check whether nonexistent headers
8817   # can be detected and how.
8818   cat >conftest.$ac_ext <<_ACEOF
8819 /* confdefs.h.  */
8820 _ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h.  */
8824 #include <ac_nonexistent.h>
8825 _ACEOF
8826 if { (ac_try="$ac_cpp conftest.$ac_ext"
8827 case "(($ac_try" in
8828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829   *) ac_try_echo=$ac_try;;
8830 esac
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8833   ac_status=$?
8834   grep -v '^ *+' conftest.er1 >conftest.err
8835   rm -f conftest.er1
8836   cat conftest.err >&5
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } >/dev/null && {
8839          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8840          test ! -s conftest.err
8841        }; then
8842   # Broken: success on invalid input.
8843 continue
8844 else
8845   echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8847
8848   # Passes both tests.
8849 ac_preproc_ok=:
8850 break
8851 fi
8852
8853 rm -f conftest.err conftest.$ac_ext
8854
8855 done
8856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8857 rm -f conftest.err conftest.$ac_ext
8858 if $ac_preproc_ok; then
8859   :
8860 else
8861   _lt_caught_CXX_error=yes
8862 fi
8863
8864 ac_ext=c
8865 ac_cpp='$CPP $CPPFLAGS'
8866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869
8870 else
8871   _lt_caught_CXX_error=yes
8872 fi
8873
8874
8875
8876
8877
8878 # Set options
8879 # Check whether --enable-shared was given.
8880 if test "${enable_shared+set}" = set; then
8881   enableval=$enable_shared; p=${PACKAGE-default}
8882     case $enableval in
8883     yes) enable_shared=yes ;;
8884     no) enable_shared=no ;;
8885     *)
8886       enable_shared=no
8887       # Look at the argument we got.  We use all the common list separators.
8888       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8889       for pkg in $enableval; do
8890         IFS="$lt_save_ifs"
8891         if test "X$pkg" = "X$p"; then
8892           enable_shared=yes
8893         fi
8894       done
8895       IFS="$lt_save_ifs"
8896       ;;
8897     esac
8898 else
8899   enable_shared=yes
8900 fi
8901
8902
8903
8904
8905
8906
8907
8908 # Check whether --enable-static was given.
8909 if test "${enable_static+set}" = set; then
8910   enableval=$enable_static; p=${PACKAGE-default}
8911     case $enableval in
8912     yes) enable_static=yes ;;
8913     no) enable_static=no ;;
8914     *)
8915      enable_static=no
8916       # Look at the argument we got.  We use all the common list separators.
8917       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8918       for pkg in $enableval; do
8919         IFS="$lt_save_ifs"
8920         if test "X$pkg" = "X$p"; then
8921           enable_static=yes
8922         fi
8923       done
8924       IFS="$lt_save_ifs"
8925       ;;
8926     esac
8927 else
8928   enable_static=no
8929 fi
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940         enable_dlopen=no
8941
8942
8943   enable_win32_dll=no
8944
8945
8946
8947
8948
8949 # Check whether --with-pic was given.
8950 if test "${with_pic+set}" = set; then
8951   withval=$with_pic; pic_mode="$withval"
8952 else
8953   pic_mode=default
8954 fi
8955
8956
8957 test -z "$pic_mode" && pic_mode=default
8958
8959
8960
8961
8962
8963
8964
8965   # Check whether --enable-fast-install was given.
8966 if test "${enable_fast_install+set}" = set; then
8967   enableval=$enable_fast_install; p=${PACKAGE-default}
8968     case $enableval in
8969     yes) enable_fast_install=yes ;;
8970     no) enable_fast_install=no ;;
8971     *)
8972       enable_fast_install=no
8973       # Look at the argument we got.  We use all the common list separators.
8974       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8975       for pkg in $enableval; do
8976         IFS="$lt_save_ifs"
8977         if test "X$pkg" = "X$p"; then
8978           enable_fast_install=yes
8979         fi
8980       done
8981       IFS="$lt_save_ifs"
8982       ;;
8983     esac
8984 else
8985   enable_fast_install=yes
8986 fi
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998 # This can be used to rebuild libtool when needed
8999 LIBTOOL_DEPS="$ltmain"
9000
9001 # Always use our own libtool.
9002 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028 test -z "$LN_S" && LN_S="ln -s"
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043 if test -n "${ZSH_VERSION+set}" ; then
9044    setopt NO_GLOB_SUBST
9045 fi
9046
9047 { echo "$as_me:$LINENO: checking for objdir" >&5
9048 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9049 if test "${lt_cv_objdir+set}" = set; then
9050   echo $ECHO_N "(cached) $ECHO_C" >&6
9051 else
9052   rm -f .libs 2>/dev/null
9053 mkdir .libs 2>/dev/null
9054 if test -d .libs; then
9055   lt_cv_objdir=.libs
9056 else
9057   # MS-DOS does not allow filenames that begin with a dot.
9058   lt_cv_objdir=_libs
9059 fi
9060 rmdir .libs 2>/dev/null
9061 fi
9062 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9063 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9064 objdir=$lt_cv_objdir
9065
9066
9067
9068
9069
9070 cat >>confdefs.h <<_ACEOF
9071 #define LT_OBJDIR "$lt_cv_objdir/"
9072 _ACEOF
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090 case $host_os in
9091 aix3*)
9092   # AIX sometimes has problems with the GCC collect2 program.  For some
9093   # reason, if we set the COLLECT_NAMES environment variable, the problems
9094   # vanish in a puff of smoke.
9095   if test "X${COLLECT_NAMES+set}" != Xset; then
9096     COLLECT_NAMES=
9097     export COLLECT_NAMES
9098   fi
9099   ;;
9100 esac
9101
9102 # Sed substitution that helps us do robust quoting.  It backslashifies
9103 # metacharacters that are still active within double-quoted strings.
9104 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9105
9106 # Same as above, but do not quote variable references.
9107 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9108
9109 # Sed substitution to delay expansion of an escaped shell variable in a
9110 # double_quote_subst'ed string.
9111 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9112
9113 # Sed substitution to delay expansion of an escaped single quote.
9114 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9115
9116 # Sed substitution to avoid accidental globbing in evaled expressions
9117 no_glob_subst='s/\*/\\\*/g'
9118
9119 # Global variables:
9120 ofile=libtool
9121 can_build_shared=yes
9122
9123 # All known linkers require a `.a' archive for static linking (except MSVC,
9124 # which needs '.lib').
9125 libext=a
9126
9127 with_gnu_ld="$lt_cv_prog_gnu_ld"
9128
9129 old_CC="$CC"
9130 old_CFLAGS="$CFLAGS"
9131
9132 # Set sane defaults for various variables
9133 test -z "$CC" && CC=cc
9134 test -z "$LTCC" && LTCC=$CC
9135 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9136 test -z "$LD" && LD=ld
9137 test -z "$ac_objext" && ac_objext=o
9138
9139 for cc_temp in $compiler""; do
9140   case $cc_temp in
9141     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9142     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9143     \-*) ;;
9144     *) break;;
9145   esac
9146 done
9147 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9148
9149
9150 # Only perform the check for file, if the check method requires it
9151 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9152 case $deplibs_check_method in
9153 file_magic*)
9154   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9155     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9156 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9157 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160   case $MAGIC_CMD in
9161 [\\/*] |  ?:[\\/]*)
9162   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9163   ;;
9164 *)
9165   lt_save_MAGIC_CMD="$MAGIC_CMD"
9166   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9167   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9168   for ac_dir in $ac_dummy; do
9169     IFS="$lt_save_ifs"
9170     test -z "$ac_dir" && ac_dir=.
9171     if test -f $ac_dir/${ac_tool_prefix}file; then
9172       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9173       if test -n "$file_magic_test_file"; then
9174         case $deplibs_check_method in
9175         "file_magic "*)
9176           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9177           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9178           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9179             $EGREP "$file_magic_regex" > /dev/null; then
9180             :
9181           else
9182             cat <<_LT_EOF 1>&2
9183
9184 *** Warning: the command libtool uses to detect shared libraries,
9185 *** $file_magic_cmd, produces output that libtool cannot recognize.
9186 *** The result is that libtool may fail to recognize shared libraries
9187 *** as such.  This will affect the creation of libtool libraries that
9188 *** depend on shared libraries, but programs linked with such libtool
9189 *** libraries will work regardless of this problem.  Nevertheless, you
9190 *** may want to report the problem to your system manager and/or to
9191 *** bug-libtool@gnu.org
9192
9193 _LT_EOF
9194           fi ;;
9195         esac
9196       fi
9197       break
9198     fi
9199   done
9200   IFS="$lt_save_ifs"
9201   MAGIC_CMD="$lt_save_MAGIC_CMD"
9202   ;;
9203 esac
9204 fi
9205
9206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9207 if test -n "$MAGIC_CMD"; then
9208   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9209 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9210 else
9211   { echo "$as_me:$LINENO: result: no" >&5
9212 echo "${ECHO_T}no" >&6; }
9213 fi
9214
9215
9216
9217
9218
9219 if test -z "$lt_cv_path_MAGIC_CMD"; then
9220   if test -n "$ac_tool_prefix"; then
9221     { echo "$as_me:$LINENO: checking for file" >&5
9222 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9223 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9224   echo $ECHO_N "(cached) $ECHO_C" >&6
9225 else
9226   case $MAGIC_CMD in
9227 [\\/*] |  ?:[\\/]*)
9228   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9229   ;;
9230 *)
9231   lt_save_MAGIC_CMD="$MAGIC_CMD"
9232   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9233   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9234   for ac_dir in $ac_dummy; do
9235     IFS="$lt_save_ifs"
9236     test -z "$ac_dir" && ac_dir=.
9237     if test -f $ac_dir/file; then
9238       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9239       if test -n "$file_magic_test_file"; then
9240         case $deplibs_check_method in
9241         "file_magic "*)
9242           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9243           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9244           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9245             $EGREP "$file_magic_regex" > /dev/null; then
9246             :
9247           else
9248             cat <<_LT_EOF 1>&2
9249
9250 *** Warning: the command libtool uses to detect shared libraries,
9251 *** $file_magic_cmd, produces output that libtool cannot recognize.
9252 *** The result is that libtool may fail to recognize shared libraries
9253 *** as such.  This will affect the creation of libtool libraries that
9254 *** depend on shared libraries, but programs linked with such libtool
9255 *** libraries will work regardless of this problem.  Nevertheless, you
9256 *** may want to report the problem to your system manager and/or to
9257 *** bug-libtool@gnu.org
9258
9259 _LT_EOF
9260           fi ;;
9261         esac
9262       fi
9263       break
9264     fi
9265   done
9266   IFS="$lt_save_ifs"
9267   MAGIC_CMD="$lt_save_MAGIC_CMD"
9268   ;;
9269 esac
9270 fi
9271
9272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9273 if test -n "$MAGIC_CMD"; then
9274   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9275 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9276 else
9277   { echo "$as_me:$LINENO: result: no" >&5
9278 echo "${ECHO_T}no" >&6; }
9279 fi
9280
9281
9282   else
9283     MAGIC_CMD=:
9284   fi
9285 fi
9286
9287   fi
9288   ;;
9289 esac
9290
9291 # Use C for the default configuration in the libtool script
9292
9293 lt_save_CC="$CC"
9294 ac_ext=c
9295 ac_cpp='$CPP $CPPFLAGS'
9296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9299
9300
9301 # Source file extension for C test sources.
9302 ac_ext=c
9303
9304 # Object file extension for compiled C test sources.
9305 objext=o
9306 objext=$objext
9307
9308 # Code to be used in simple compile tests
9309 lt_simple_compile_test_code="int some_variable = 0;"
9310
9311 # Code to be used in simple link tests
9312 lt_simple_link_test_code='int main(){return(0);}'
9313
9314
9315
9316
9317
9318
9319
9320 # If no C compiler was specified, use CC.
9321 LTCC=${LTCC-"$CC"}
9322
9323 # If no C compiler flags were specified, use CFLAGS.
9324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9325
9326 # Allow CC to be a program name with arguments.
9327 compiler=$CC
9328
9329 # Save the default compiler, since it gets overwritten when the other
9330 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9331 compiler_DEFAULT=$CC
9332
9333 # save warnings/boilerplate of simple test code
9334 ac_outfile=conftest.$ac_objext
9335 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9336 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9337 _lt_compiler_boilerplate=`cat conftest.err`
9338 $RM conftest*
9339
9340 ac_outfile=conftest.$ac_objext
9341 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9342 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9343 _lt_linker_boilerplate=`cat conftest.err`
9344 $RM -r conftest*
9345
9346
9347 ## CAVEAT EMPTOR:
9348 ## There is no encapsulation within the following macros, do not change
9349 ## the running order or otherwise move them around unless you know exactly
9350 ## what you are doing...
9351 if test -n "$compiler"; then
9352
9353 lt_prog_compiler_no_builtin_flag=
9354
9355 if test "$GCC" = yes; then
9356   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9357
9358   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9359 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9360 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9361   echo $ECHO_N "(cached) $ECHO_C" >&6
9362 else
9363   lt_cv_prog_compiler_rtti_exceptions=no
9364    ac_outfile=conftest.$ac_objext
9365    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9366    lt_compiler_flag="-fno-rtti -fno-exceptions"
9367    # Insert the option either (1) after the last *FLAGS variable, or
9368    # (2) before a word containing "conftest.", or (3) at the end.
9369    # Note that $ac_compile itself does not contain backslashes and begins
9370    # with a dollar sign (not a hyphen), so the echo should work correctly.
9371    # The option is referenced via a variable to avoid confusing sed.
9372    lt_compile=`echo "$ac_compile" | $SED \
9373    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9374    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9375    -e 's:$: $lt_compiler_flag:'`
9376    (eval echo "\"\$as_me:9376: $lt_compile\"" >&5)
9377    (eval "$lt_compile" 2>conftest.err)
9378    ac_status=$?
9379    cat conftest.err >&5
9380    echo "$as_me:9380: \$? = $ac_status" >&5
9381    if (exit $ac_status) && test -s "$ac_outfile"; then
9382      # The compiler can only warn and ignore the option if not recognized
9383      # So say no if there are warnings other than the usual output.
9384      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9385      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9386      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9387        lt_cv_prog_compiler_rtti_exceptions=yes
9388      fi
9389    fi
9390    $RM conftest*
9391
9392 fi
9393 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9394 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9395
9396 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9397     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9398 else
9399     :
9400 fi
9401
9402 fi
9403
9404
9405
9406
9407
9408
9409   lt_prog_compiler_wl=
9410 lt_prog_compiler_pic=
9411 lt_prog_compiler_static=
9412
9413 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9414 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9415
9416   if test "$GCC" = yes; then
9417     lt_prog_compiler_wl='-Wl,'
9418     lt_prog_compiler_static='-static'
9419
9420     case $host_os in
9421       aix*)
9422       # All AIX code is PIC.
9423       if test "$host_cpu" = ia64; then
9424         # AIX 5 now supports IA64 processor
9425         lt_prog_compiler_static='-Bstatic'
9426       fi
9427       ;;
9428
9429     amigaos*)
9430       case $host_cpu in
9431       powerpc)
9432             # see comment about AmigaOS4 .so support
9433             lt_prog_compiler_pic='-fPIC'
9434         ;;
9435       m68k)
9436             # FIXME: we need at least 68020 code to build shared libraries, but
9437             # adding the `-m68020' flag to GCC prevents building anything better,
9438             # like `-m68040'.
9439             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9440         ;;
9441       esac
9442       ;;
9443
9444     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9445       # PIC is the default for these OSes.
9446       ;;
9447
9448     mingw* | cygwin* | pw32* | os2* | cegcc*)
9449       # This hack is so that the source file can tell whether it is being
9450       # built for inclusion in a dll (and should export symbols for example).
9451       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9452       # (--disable-auto-import) libraries
9453       lt_prog_compiler_pic='-DDLL_EXPORT'
9454       ;;
9455
9456     darwin* | rhapsody*)
9457       # PIC is the default on this platform
9458       # Common symbols not allowed in MH_DYLIB files
9459       lt_prog_compiler_pic='-fno-common'
9460       ;;
9461
9462     hpux*)
9463       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9464       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9465       # sets the default TLS model and affects inlining.
9466       case $host_cpu in
9467       hppa*64*)
9468         # +Z the default
9469         ;;
9470       *)
9471         lt_prog_compiler_pic='-fPIC'
9472         ;;
9473       esac
9474       ;;
9475
9476     interix[3-9]*)
9477       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9478       # Instead, we relocate shared libraries at runtime.
9479       ;;
9480
9481     msdosdjgpp*)
9482       # Just because we use GCC doesn't mean we suddenly get shared libraries
9483       # on systems that don't support them.
9484       lt_prog_compiler_can_build_shared=no
9485       enable_shared=no
9486       ;;
9487
9488     *nto* | *qnx*)
9489       # QNX uses GNU C++, but need to define -shared option too, otherwise
9490       # it will coredump.
9491       lt_prog_compiler_pic='-fPIC -shared'
9492       ;;
9493
9494     sysv4*MP*)
9495       if test -d /usr/nec; then
9496         lt_prog_compiler_pic=-Kconform_pic
9497       fi
9498       ;;
9499
9500     *)
9501       lt_prog_compiler_pic='-fPIC'
9502       ;;
9503     esac
9504   else
9505     # PORTME Check for flag to pass linker flags through the system compiler.
9506     case $host_os in
9507     aix*)
9508       lt_prog_compiler_wl='-Wl,'
9509       if test "$host_cpu" = ia64; then
9510         # AIX 5 now supports IA64 processor
9511         lt_prog_compiler_static='-Bstatic'
9512       else
9513         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9514       fi
9515       ;;
9516
9517     mingw* | cygwin* | pw32* | os2* | cegcc*)
9518       # This hack is so that the source file can tell whether it is being
9519       # built for inclusion in a dll (and should export symbols for example).
9520       lt_prog_compiler_pic='-DDLL_EXPORT'
9521       ;;
9522
9523     hpux9* | hpux10* | hpux11*)
9524       lt_prog_compiler_wl='-Wl,'
9525       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9526       # not for PA HP-UX.
9527       case $host_cpu in
9528       hppa*64*|ia64*)
9529         # +Z the default
9530         ;;
9531       *)
9532         lt_prog_compiler_pic='+Z'
9533         ;;
9534       esac
9535       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9536       lt_prog_compiler_static='${wl}-a ${wl}archive'
9537       ;;
9538
9539     irix5* | irix6* | nonstopux*)
9540       lt_prog_compiler_wl='-Wl,'
9541       # PIC (with -KPIC) is the default.
9542       lt_prog_compiler_static='-non_shared'
9543       ;;
9544
9545     linux* | k*bsd*-gnu)
9546       case $cc_basename in
9547       # old Intel for x86_64 which still supported -KPIC.
9548       ecc*)
9549         lt_prog_compiler_wl='-Wl,'
9550         lt_prog_compiler_pic='-KPIC'
9551         lt_prog_compiler_static='-static'
9552         ;;
9553       # icc used to be incompatible with GCC.
9554       # ICC 10 doesn't accept -KPIC any more.
9555       icc* | ifort*)
9556         lt_prog_compiler_wl='-Wl,'
9557         lt_prog_compiler_pic='-fPIC'
9558         lt_prog_compiler_static='-static'
9559         ;;
9560       # Lahey Fortran 8.1.
9561       lf95*)
9562         lt_prog_compiler_wl='-Wl,'
9563         lt_prog_compiler_pic='--shared'
9564         lt_prog_compiler_static='--static'
9565         ;;
9566       pgcc* | pgf77* | pgf90* | pgf95*)
9567         # Portland Group compilers (*not* the Pentium gcc compiler,
9568         # which looks to be a dead project)
9569         lt_prog_compiler_wl='-Wl,'
9570         lt_prog_compiler_pic='-fpic'
9571         lt_prog_compiler_static='-Bstatic'
9572         ;;
9573       ccc*)
9574         lt_prog_compiler_wl='-Wl,'
9575         # All Alpha code is PIC.
9576         lt_prog_compiler_static='-non_shared'
9577         ;;
9578       xl*)
9579         # IBM XL C 8.0/Fortran 10.1 on PPC
9580         lt_prog_compiler_wl='-Wl,'
9581         lt_prog_compiler_pic='-qpic'
9582         lt_prog_compiler_static='-qstaticlink'
9583         ;;
9584       *)
9585         case `$CC -V 2>&1 | sed 5q` in
9586         *Sun\ C*)
9587           # Sun C 5.9
9588           lt_prog_compiler_pic='-KPIC'
9589           lt_prog_compiler_static='-Bstatic'
9590           lt_prog_compiler_wl='-Wl,'
9591           ;;
9592         *Sun\ F*)
9593           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9594           lt_prog_compiler_pic='-KPIC'
9595           lt_prog_compiler_static='-Bstatic'
9596           lt_prog_compiler_wl=''
9597           ;;
9598         esac
9599         ;;
9600       esac
9601       ;;
9602
9603     newsos6)
9604       lt_prog_compiler_pic='-KPIC'
9605       lt_prog_compiler_static='-Bstatic'
9606       ;;
9607
9608     *nto* | *qnx*)
9609       # QNX uses GNU C++, but need to define -shared option too, otherwise
9610       # it will coredump.
9611       lt_prog_compiler_pic='-fPIC -shared'
9612       ;;
9613
9614     osf3* | osf4* | osf5*)
9615       lt_prog_compiler_wl='-Wl,'
9616       # All OSF/1 code is PIC.
9617       lt_prog_compiler_static='-non_shared'
9618       ;;
9619
9620     rdos*)
9621       lt_prog_compiler_static='-non_shared'
9622       ;;
9623
9624     solaris*)
9625       lt_prog_compiler_pic='-KPIC'
9626       lt_prog_compiler_static='-Bstatic'
9627       case $cc_basename in
9628       f77* | f90* | f95*)
9629         lt_prog_compiler_wl='-Qoption ld ';;
9630       *)
9631         lt_prog_compiler_wl='-Wl,';;
9632       esac
9633       ;;
9634
9635     sunos4*)
9636       lt_prog_compiler_wl='-Qoption ld '
9637       lt_prog_compiler_pic='-PIC'
9638       lt_prog_compiler_static='-Bstatic'
9639       ;;
9640
9641     sysv4 | sysv4.2uw2* | sysv4.3*)
9642       lt_prog_compiler_wl='-Wl,'
9643       lt_prog_compiler_pic='-KPIC'
9644       lt_prog_compiler_static='-Bstatic'
9645       ;;
9646
9647     sysv4*MP*)
9648       if test -d /usr/nec ;then
9649         lt_prog_compiler_pic='-Kconform_pic'
9650         lt_prog_compiler_static='-Bstatic'
9651       fi
9652       ;;
9653
9654     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9655       lt_prog_compiler_wl='-Wl,'
9656       lt_prog_compiler_pic='-KPIC'
9657       lt_prog_compiler_static='-Bstatic'
9658       ;;
9659
9660     unicos*)
9661       lt_prog_compiler_wl='-Wl,'
9662       lt_prog_compiler_can_build_shared=no
9663       ;;
9664
9665     uts4*)
9666       lt_prog_compiler_pic='-pic'
9667       lt_prog_compiler_static='-Bstatic'
9668       ;;
9669
9670     *)
9671       lt_prog_compiler_can_build_shared=no
9672       ;;
9673     esac
9674   fi
9675
9676 case $host_os in
9677   # For platforms which do not support PIC, -DPIC is meaningless:
9678   *djgpp*)
9679     lt_prog_compiler_pic=
9680     ;;
9681   *)
9682     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9683     ;;
9684 esac
9685 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9686 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9687
9688
9689
9690
9691
9692
9693 #
9694 # Check to make sure the PIC flag actually works.
9695 #
9696 if test -n "$lt_prog_compiler_pic"; then
9697   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9698 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9699 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9700   echo $ECHO_N "(cached) $ECHO_C" >&6
9701 else
9702   lt_cv_prog_compiler_pic_works=no
9703    ac_outfile=conftest.$ac_objext
9704    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9705    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9706    # Insert the option either (1) after the last *FLAGS variable, or
9707    # (2) before a word containing "conftest.", or (3) at the end.
9708    # Note that $ac_compile itself does not contain backslashes and begins
9709    # with a dollar sign (not a hyphen), so the echo should work correctly.
9710    # The option is referenced via a variable to avoid confusing sed.
9711    lt_compile=`echo "$ac_compile" | $SED \
9712    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9713    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9714    -e 's:$: $lt_compiler_flag:'`
9715    (eval echo "\"\$as_me:9715: $lt_compile\"" >&5)
9716    (eval "$lt_compile" 2>conftest.err)
9717    ac_status=$?
9718    cat conftest.err >&5
9719    echo "$as_me:9719: \$? = $ac_status" >&5
9720    if (exit $ac_status) && test -s "$ac_outfile"; then
9721      # The compiler can only warn and ignore the option if not recognized
9722      # So say no if there are warnings other than the usual output.
9723      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9724      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9725      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9726        lt_cv_prog_compiler_pic_works=yes
9727      fi
9728    fi
9729    $RM conftest*
9730
9731 fi
9732 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9733 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9734
9735 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9736     case $lt_prog_compiler_pic in
9737      "" | " "*) ;;
9738      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9739      esac
9740 else
9741     lt_prog_compiler_pic=
9742      lt_prog_compiler_can_build_shared=no
9743 fi
9744
9745 fi
9746
9747
9748
9749
9750
9751
9752 #
9753 # Check to make sure the static flag actually works.
9754 #
9755 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9756 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9757 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9758 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9759   echo $ECHO_N "(cached) $ECHO_C" >&6
9760 else
9761   lt_cv_prog_compiler_static_works=no
9762    save_LDFLAGS="$LDFLAGS"
9763    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9764    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9765    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9766      # The linker can only warn and ignore the option if not recognized
9767      # So say no if there are warnings
9768      if test -s conftest.err; then
9769        # Append any errors to the config.log.
9770        cat conftest.err 1>&5
9771        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9772        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9773        if diff conftest.exp conftest.er2 >/dev/null; then
9774          lt_cv_prog_compiler_static_works=yes
9775        fi
9776      else
9777        lt_cv_prog_compiler_static_works=yes
9778      fi
9779    fi
9780    $RM -r conftest*
9781    LDFLAGS="$save_LDFLAGS"
9782
9783 fi
9784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9785 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9786
9787 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9788     :
9789 else
9790     lt_prog_compiler_static=
9791 fi
9792
9793
9794
9795
9796
9797
9798
9799   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9800 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9801 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9802   echo $ECHO_N "(cached) $ECHO_C" >&6
9803 else
9804   lt_cv_prog_compiler_c_o=no
9805    $RM -r conftest 2>/dev/null
9806    mkdir conftest
9807    cd conftest
9808    mkdir out
9809    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9810
9811    lt_compiler_flag="-o out/conftest2.$ac_objext"
9812    # Insert the option either (1) after the last *FLAGS variable, or
9813    # (2) before a word containing "conftest.", or (3) at the end.
9814    # Note that $ac_compile itself does not contain backslashes and begins
9815    # with a dollar sign (not a hyphen), so the echo should work correctly.
9816    lt_compile=`echo "$ac_compile" | $SED \
9817    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9818    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9819    -e 's:$: $lt_compiler_flag:'`
9820    (eval echo "\"\$as_me:9820: $lt_compile\"" >&5)
9821    (eval "$lt_compile" 2>out/conftest.err)
9822    ac_status=$?
9823    cat out/conftest.err >&5
9824    echo "$as_me:9824: \$? = $ac_status" >&5
9825    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9826    then
9827      # The compiler can only warn and ignore the option if not recognized
9828      # So say no if there are warnings
9829      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9830      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9831      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9832        lt_cv_prog_compiler_c_o=yes
9833      fi
9834    fi
9835    chmod u+w . 2>&5
9836    $RM conftest*
9837    # SGI C++ compiler will create directory out/ii_files/ for
9838    # template instantiation
9839    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9840    $RM out/* && rmdir out
9841    cd ..
9842    $RM -r conftest
9843    $RM conftest*
9844
9845 fi
9846 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9847 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9848
9849
9850
9851
9852
9853
9854   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9855 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9856 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9857   echo $ECHO_N "(cached) $ECHO_C" >&6
9858 else
9859   lt_cv_prog_compiler_c_o=no
9860    $RM -r conftest 2>/dev/null
9861    mkdir conftest
9862    cd conftest
9863    mkdir out
9864    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9865
9866    lt_compiler_flag="-o out/conftest2.$ac_objext"
9867    # Insert the option either (1) after the last *FLAGS variable, or
9868    # (2) before a word containing "conftest.", or (3) at the end.
9869    # Note that $ac_compile itself does not contain backslashes and begins
9870    # with a dollar sign (not a hyphen), so the echo should work correctly.
9871    lt_compile=`echo "$ac_compile" | $SED \
9872    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9873    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9874    -e 's:$: $lt_compiler_flag:'`
9875    (eval echo "\"\$as_me:9875: $lt_compile\"" >&5)
9876    (eval "$lt_compile" 2>out/conftest.err)
9877    ac_status=$?
9878    cat out/conftest.err >&5
9879    echo "$as_me:9879: \$? = $ac_status" >&5
9880    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9881    then
9882      # The compiler can only warn and ignore the option if not recognized
9883      # So say no if there are warnings
9884      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9885      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9886      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9887        lt_cv_prog_compiler_c_o=yes
9888      fi
9889    fi
9890    chmod u+w . 2>&5
9891    $RM conftest*
9892    # SGI C++ compiler will create directory out/ii_files/ for
9893    # template instantiation
9894    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9895    $RM out/* && rmdir out
9896    cd ..
9897    $RM -r conftest
9898    $RM conftest*
9899
9900 fi
9901 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9902 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9903
9904
9905
9906
9907 hard_links="nottested"
9908 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9909   # do not overwrite the value of need_locks provided by the user
9910   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9911 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9912   hard_links=yes
9913   $RM conftest*
9914   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9915   touch conftest.a
9916   ln conftest.a conftest.b 2>&5 || hard_links=no
9917   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9918   { echo "$as_me:$LINENO: result: $hard_links" >&5
9919 echo "${ECHO_T}$hard_links" >&6; }
9920   if test "$hard_links" = no; then
9921     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9922 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9923     need_locks=warn
9924   fi
9925 else
9926   need_locks=no
9927 fi
9928
9929
9930
9931
9932
9933
9934   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9935 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9936
9937   runpath_var=
9938   allow_undefined_flag=
9939   always_export_symbols=no
9940   archive_cmds=
9941   archive_expsym_cmds=
9942   compiler_needs_object=no
9943   enable_shared_with_static_runtimes=no
9944   export_dynamic_flag_spec=
9945   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9946   hardcode_automatic=no
9947   hardcode_direct=no
9948   hardcode_direct_absolute=no
9949   hardcode_libdir_flag_spec=
9950   hardcode_libdir_flag_spec_ld=
9951   hardcode_libdir_separator=
9952   hardcode_minus_L=no
9953   hardcode_shlibpath_var=unsupported
9954   inherit_rpath=no
9955   link_all_deplibs=unknown
9956   module_cmds=
9957   module_expsym_cmds=
9958   old_archive_from_new_cmds=
9959   old_archive_from_expsyms_cmds=
9960   thread_safe_flag_spec=
9961   whole_archive_flag_spec=
9962   # include_expsyms should be a list of space-separated symbols to be *always*
9963   # included in the symbol list
9964   include_expsyms=
9965   # exclude_expsyms can be an extended regexp of symbols to exclude
9966   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9967   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9968   # as well as any symbol that contains `d'.
9969   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9970   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9971   # platforms (ab)use it in PIC code, but their linkers get confused if
9972   # the symbol is explicitly referenced.  Since portable code cannot
9973   # rely on this symbol name, it's probably fine to never include it in
9974   # preloaded symbol tables.
9975   # Exclude shared library initialization/finalization symbols.
9976   extract_expsyms_cmds=
9977
9978   case $host_os in
9979   cygwin* | mingw* | pw32* | cegcc*)
9980     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9981     # When not using gcc, we currently assume that we are using
9982     # Microsoft Visual C++.
9983     if test "$GCC" != yes; then
9984       with_gnu_ld=no
9985     fi
9986     ;;
9987   interix*)
9988     # we just hope/assume this is gcc and not c89 (= MSVC++)
9989     with_gnu_ld=yes
9990     ;;
9991   openbsd*)
9992     with_gnu_ld=no
9993     ;;
9994   esac
9995
9996   ld_shlibs=yes
9997   if test "$with_gnu_ld" = yes; then
9998     # If archive_cmds runs LD, not CC, wlarc should be empty
9999     wlarc='${wl}'
10000
10001     # Set some defaults for GNU ld with shared library support. These
10002     # are reset later if shared libraries are not supported. Putting them
10003     # here allows them to be overridden if necessary.
10004     runpath_var=LD_RUN_PATH
10005     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10006     export_dynamic_flag_spec='${wl}--export-dynamic'
10007     # ancient GNU ld didn't support --whole-archive et. al.
10008     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10009       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10010     else
10011       whole_archive_flag_spec=
10012     fi
10013     supports_anon_versioning=no
10014     case `$LD -v 2>&1` in
10015       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10016       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10017       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10018       *\ 2.11.*) ;; # other 2.11 versions
10019       *) supports_anon_versioning=yes ;;
10020     esac
10021
10022     # See if GNU ld supports shared libraries.
10023     case $host_os in
10024     aix[3-9]*)
10025       # On AIX/PPC, the GNU linker is very broken
10026       if test "$host_cpu" != ia64; then
10027         ld_shlibs=no
10028         cat <<_LT_EOF 1>&2
10029
10030 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10031 *** to be unable to reliably create shared libraries on AIX.
10032 *** Therefore, libtool is disabling shared libraries support.  If you
10033 *** really care for shared libraries, you may want to modify your PATH
10034 *** so that a non-GNU linker is found, and then restart.
10035
10036 _LT_EOF
10037       fi
10038       ;;
10039
10040     amigaos*)
10041       case $host_cpu in
10042       powerpc)
10043             # see comment about AmigaOS4 .so support
10044             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10045             archive_expsym_cmds=''
10046         ;;
10047       m68k)
10048             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)'
10049             hardcode_libdir_flag_spec='-L$libdir'
10050             hardcode_minus_L=yes
10051         ;;
10052       esac
10053       ;;
10054
10055     beos*)
10056       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10057         allow_undefined_flag=unsupported
10058         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10059         # support --undefined.  This deserves some investigation.  FIXME
10060         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061       else
10062         ld_shlibs=no
10063       fi
10064       ;;
10065
10066     cygwin* | mingw* | pw32* | cegcc*)
10067       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10068       # as there is no search path for DLLs.
10069       hardcode_libdir_flag_spec='-L$libdir'
10070       allow_undefined_flag=unsupported
10071       always_export_symbols=no
10072       enable_shared_with_static_runtimes=yes
10073       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10074
10075       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10076         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10077         # If the export-symbols file already is a .def file (1st line
10078         # is EXPORTS), use it as is; otherwise, prepend...
10079         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10080           cp $export_symbols $output_objdir/$soname.def;
10081         else
10082           echo EXPORTS > $output_objdir/$soname.def;
10083           cat $export_symbols >> $output_objdir/$soname.def;
10084         fi~
10085         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10086       else
10087         ld_shlibs=no
10088       fi
10089       ;;
10090
10091     interix[3-9]*)
10092       hardcode_direct=no
10093       hardcode_shlibpath_var=no
10094       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10095       export_dynamic_flag_spec='${wl}-E'
10096       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10097       # Instead, shared libraries are loaded at an image base (0x10000000 by
10098       # default) and relocated if they conflict, which is a slow very memory
10099       # consuming and fragmenting process.  To avoid this, we pick a random,
10100       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10101       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10102       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10103       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'
10104       ;;
10105
10106     gnu* | linux* | tpf* | k*bsd*-gnu)
10107       tmp_diet=no
10108       if test "$host_os" = linux-dietlibc; then
10109         case $cc_basename in
10110           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10111         esac
10112       fi
10113       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10114          && test "$tmp_diet" = no
10115       then
10116         tmp_addflag=
10117         tmp_sharedflag='-shared'
10118         case $cc_basename,$host_cpu in
10119         pgcc*)                          # Portland Group C compiler
10120           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'
10121           tmp_addflag=' $pic_flag'
10122           ;;
10123         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
10126         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10127           tmp_addflag=' -i_dynamic' ;;
10128         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10129           tmp_addflag=' -i_dynamic -nofor_main' ;;
10130         ifc* | ifort*)                  # Intel Fortran compiler
10131           tmp_addflag=' -nofor_main' ;;
10132         lf95*)                          # Lahey Fortran 8.1
10133           whole_archive_flag_spec=
10134           tmp_sharedflag='--shared' ;;
10135         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10136           tmp_sharedflag='-qmkshrobj'
10137           tmp_addflag= ;;
10138         esac
10139         case `$CC -V 2>&1 | sed 5q` in
10140         *Sun\ C*)                       # Sun C 5.9
10141           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'
10142           compiler_needs_object=yes
10143           tmp_sharedflag='-G' ;;
10144         *Sun\ F*)                       # Sun Fortran 8.3
10145           tmp_sharedflag='-G' ;;
10146         esac
10147         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10148
10149         if test "x$supports_anon_versioning" = xyes; then
10150           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10151             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10152             echo "local: *; };" >> $output_objdir/$libname.ver~
10153             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10154         fi
10155
10156         case $cc_basename in
10157         xlf*)
10158           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10159           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10160           hardcode_libdir_flag_spec=
10161           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10162           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10163           if test "x$supports_anon_versioning" = xyes; then
10164             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10165               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10166               echo "local: *; };" >> $output_objdir/$libname.ver~
10167               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10168           fi
10169           ;;
10170         esac
10171       else
10172         ld_shlibs=no
10173       fi
10174       ;;
10175
10176     netbsd*)
10177       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10178         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10179         wlarc=
10180       else
10181         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10182         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10183       fi
10184       ;;
10185
10186     solaris*)
10187       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10188         ld_shlibs=no
10189         cat <<_LT_EOF 1>&2
10190
10191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10192 *** create shared libraries on Solaris systems.  Therefore, libtool
10193 *** is disabling shared libraries support.  We urge you to upgrade GNU
10194 *** binutils to release 2.9.1 or newer.  Another option is to modify
10195 *** your PATH or compiler configuration so that the native linker is
10196 *** used, and then restart.
10197
10198 _LT_EOF
10199       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10200         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10201         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10202       else
10203         ld_shlibs=no
10204       fi
10205       ;;
10206
10207     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10208       case `$LD -v 2>&1` in
10209         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10210         ld_shlibs=no
10211         cat <<_LT_EOF 1>&2
10212
10213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10214 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10215 *** is disabling shared libraries support.  We urge you to upgrade GNU
10216 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10217 *** your PATH or compiler configuration so that the native linker is
10218 *** used, and then restart.
10219
10220 _LT_EOF
10221         ;;
10222         *)
10223           # For security reasons, it is highly recommended that you always
10224           # use absolute paths for naming shared libraries, and exclude the
10225           # DT_RUNPATH tag from executables and libraries.  But doing so
10226           # requires that you compile everything twice, which is a pain.
10227           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10228             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10229             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10230             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10231           else
10232             ld_shlibs=no
10233           fi
10234         ;;
10235       esac
10236       ;;
10237
10238     sunos4*)
10239       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10240       wlarc=
10241       hardcode_direct=yes
10242       hardcode_shlibpath_var=no
10243       ;;
10244
10245     *)
10246       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10247         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10248         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10249       else
10250         ld_shlibs=no
10251       fi
10252       ;;
10253     esac
10254
10255     if test "$ld_shlibs" = no; then
10256       runpath_var=
10257       hardcode_libdir_flag_spec=
10258       export_dynamic_flag_spec=
10259       whole_archive_flag_spec=
10260     fi
10261   else
10262     # PORTME fill in a description of your system's linker (not GNU ld)
10263     case $host_os in
10264     aix3*)
10265       allow_undefined_flag=unsupported
10266       always_export_symbols=yes
10267       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'
10268       # Note: this linker hardcodes the directories in LIBPATH if there
10269       # are no directories specified by -L.
10270       hardcode_minus_L=yes
10271       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10272         # Neither direct hardcoding nor static linking is supported with a
10273         # broken collect2.
10274         hardcode_direct=unsupported
10275       fi
10276       ;;
10277
10278     aix[4-9]*)
10279       if test "$host_cpu" = ia64; then
10280         # On IA64, the linker does run time linking by default, so we don't
10281         # have to do anything special.
10282         aix_use_runtimelinking=no
10283         exp_sym_flag='-Bexport'
10284         no_entry_flag=""
10285       else
10286         # If we're using GNU nm, then we don't want the "-C" option.
10287         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10288         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10289           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'
10290         else
10291           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'
10292         fi
10293         aix_use_runtimelinking=no
10294
10295         # Test if we are trying to use run time linking or normal
10296         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10297         # need to do runtime linking.
10298         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10299           for ld_flag in $LDFLAGS; do
10300           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10301             aix_use_runtimelinking=yes
10302             break
10303           fi
10304           done
10305           ;;
10306         esac
10307
10308         exp_sym_flag='-bexport'
10309         no_entry_flag='-bnoentry'
10310       fi
10311
10312       # When large executables or shared objects are built, AIX ld can
10313       # have problems creating the table of contents.  If linking a library
10314       # or program results in "error TOC overflow" add -mminimal-toc to
10315       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10316       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10317
10318       archive_cmds=''
10319       hardcode_direct=yes
10320       hardcode_direct_absolute=yes
10321       hardcode_libdir_separator=':'
10322       link_all_deplibs=yes
10323       file_list_spec='${wl}-f,'
10324
10325       if test "$GCC" = yes; then
10326         case $host_os in aix4.[012]|aix4.[012].*)
10327         # We only want to do this on AIX 4.2 and lower, the check
10328         # below for broken collect2 doesn't work under 4.3+
10329           collect2name=`${CC} -print-prog-name=collect2`
10330           if test -f "$collect2name" &&
10331            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10332           then
10333           # We have reworked collect2
10334           :
10335           else
10336           # We have old collect2
10337           hardcode_direct=unsupported
10338           # It fails to find uninstalled libraries when the uninstalled
10339           # path is not listed in the libpath.  Setting hardcode_minus_L
10340           # to unsupported forces relinking
10341           hardcode_minus_L=yes
10342           hardcode_libdir_flag_spec='-L$libdir'
10343           hardcode_libdir_separator=
10344           fi
10345           ;;
10346         esac
10347         shared_flag='-shared'
10348         if test "$aix_use_runtimelinking" = yes; then
10349           shared_flag="$shared_flag "'${wl}-G'
10350         fi
10351       else
10352         # not using gcc
10353         if test "$host_cpu" = ia64; then
10354         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10355         # chokes on -Wl,-G. The following line is correct:
10356           shared_flag='-G'
10357         else
10358           if test "$aix_use_runtimelinking" = yes; then
10359             shared_flag='${wl}-G'
10360           else
10361             shared_flag='${wl}-bM:SRE'
10362           fi
10363         fi
10364       fi
10365
10366       export_dynamic_flag_spec='${wl}-bexpall'
10367       # It seems that -bexpall does not export symbols beginning with
10368       # underscore (_), so it is better to generate a list of symbols to export.
10369       always_export_symbols=yes
10370       if test "$aix_use_runtimelinking" = yes; then
10371         # Warning - without using the other runtime loading flags (-brtl),
10372         # -berok will link without error, but may produce a broken library.
10373         allow_undefined_flag='-berok'
10374         # Determine the default libpath from the value encoded in an
10375         # empty executable.
10376         cat >conftest.$ac_ext <<_ACEOF
10377 /* confdefs.h.  */
10378 _ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h.  */
10382
10383 int
10384 main ()
10385 {
10386
10387   ;
10388   return 0;
10389 }
10390 _ACEOF
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395   *) ac_try_echo=$ac_try;;
10396 esac
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398   (eval "$ac_link") 2>conftest.er1
10399   ac_status=$?
10400   grep -v '^ *+' conftest.er1 >conftest.err
10401   rm -f conftest.er1
10402   cat conftest.err >&5
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); } && {
10405          test -z "$ac_c_werror_flag" ||
10406          test ! -s conftest.err
10407        } && test -s conftest$ac_exeext &&
10408        $as_test_x conftest$ac_exeext; then
10409
10410 lt_aix_libpath_sed='
10411     /Import File Strings/,/^$/ {
10412         /^0/ {
10413             s/^0  *\(.*\)$/\1/
10414             p
10415         }
10416     }'
10417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10418 # Check for a 64-bit object if we didn't find anything.
10419 if test -z "$aix_libpath"; then
10420   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10421 fi
10422 else
10423   echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10425
10426
10427 fi
10428
10429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10430       conftest$ac_exeext conftest.$ac_ext
10431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10432
10433         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10434         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"
10435       else
10436         if test "$host_cpu" = ia64; then
10437           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10438           allow_undefined_flag="-z nodefs"
10439           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"
10440         else
10441          # Determine the default libpath from the value encoded in an
10442          # empty executable.
10443          cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h.  */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h.  */
10449
10450 int
10451 main ()
10452 {
10453
10454   ;
10455   return 0;
10456 }
10457 _ACEOF
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (ac_try="$ac_link"
10460 case "(($ac_try" in
10461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462   *) ac_try_echo=$ac_try;;
10463 esac
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465   (eval "$ac_link") 2>conftest.er1
10466   ac_status=$?
10467   grep -v '^ *+' conftest.er1 >conftest.err
10468   rm -f conftest.er1
10469   cat conftest.err >&5
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); } && {
10472          test -z "$ac_c_werror_flag" ||
10473          test ! -s conftest.err
10474        } && test -s conftest$ac_exeext &&
10475        $as_test_x conftest$ac_exeext; then
10476
10477 lt_aix_libpath_sed='
10478     /Import File Strings/,/^$/ {
10479         /^0/ {
10480             s/^0  *\(.*\)$/\1/
10481             p
10482         }
10483     }'
10484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10485 # Check for a 64-bit object if we didn't find anything.
10486 if test -z "$aix_libpath"; then
10487   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10488 fi
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493
10494 fi
10495
10496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10497       conftest$ac_exeext conftest.$ac_ext
10498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10499
10500          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10501           # Warning - without using the other run time loading flags,
10502           # -berok will link without error, but may produce a broken library.
10503           no_undefined_flag=' ${wl}-bernotok'
10504           allow_undefined_flag=' ${wl}-berok'
10505           # Exported symbols can be pulled into shared objects from archives
10506           whole_archive_flag_spec='$convenience'
10507           archive_cmds_need_lc=yes
10508           # This is similar to how AIX traditionally builds its shared libraries.
10509           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'
10510         fi
10511       fi
10512       ;;
10513
10514     amigaos*)
10515       case $host_cpu in
10516       powerpc)
10517             # see comment about AmigaOS4 .so support
10518             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10519             archive_expsym_cmds=''
10520         ;;
10521       m68k)
10522             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)'
10523             hardcode_libdir_flag_spec='-L$libdir'
10524             hardcode_minus_L=yes
10525         ;;
10526       esac
10527       ;;
10528
10529     bsdi[45]*)
10530       export_dynamic_flag_spec=-rdynamic
10531       ;;
10532
10533     cygwin* | mingw* | pw32* | cegcc*)
10534       # When not using gcc, we currently assume that we are using
10535       # Microsoft Visual C++.
10536       # hardcode_libdir_flag_spec is actually meaningless, as there is
10537       # no search path for DLLs.
10538       hardcode_libdir_flag_spec=' '
10539       allow_undefined_flag=unsupported
10540       # Tell ltmain to make .lib files, not .a files.
10541       libext=lib
10542       # Tell ltmain to make .dll files, not .so files.
10543       shrext_cmds=".dll"
10544       # FIXME: Setting linknames here is a bad hack.
10545       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10546       # The linker will automatically build a .lib file if we build a DLL.
10547       old_archive_from_new_cmds='true'
10548       # FIXME: Should let the user specify the lib program.
10549       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10550       fix_srcfile_path='`cygpath -w "$srcfile"`'
10551       enable_shared_with_static_runtimes=yes
10552       ;;
10553
10554     darwin* | rhapsody*)
10555
10556
10557   archive_cmds_need_lc=no
10558   hardcode_direct=no
10559   hardcode_automatic=yes
10560   hardcode_shlibpath_var=unsupported
10561   whole_archive_flag_spec=''
10562   link_all_deplibs=yes
10563   allow_undefined_flag="$_lt_dar_allow_undefined"
10564   case $cc_basename in
10565      ifort*) _lt_dar_can_shared=yes ;;
10566      *) _lt_dar_can_shared=$GCC ;;
10567   esac
10568   if test "$_lt_dar_can_shared" = "yes"; then
10569     output_verbose_link_cmd=echo
10570     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10571     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10572     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}"
10573     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}"
10574
10575   else
10576   ld_shlibs=no
10577   fi
10578
10579       ;;
10580
10581     dgux*)
10582       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10583       hardcode_libdir_flag_spec='-L$libdir'
10584       hardcode_shlibpath_var=no
10585       ;;
10586
10587     freebsd1*)
10588       ld_shlibs=no
10589       ;;
10590
10591     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10592     # support.  Future versions do this automatically, but an explicit c++rt0.o
10593     # does not break anything, and helps significantly (at the cost of a little
10594     # extra space).
10595     freebsd2.2*)
10596       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10597       hardcode_libdir_flag_spec='-R$libdir'
10598       hardcode_direct=yes
10599       hardcode_shlibpath_var=no
10600       ;;
10601
10602     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10603     freebsd2*)
10604       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10605       hardcode_direct=yes
10606       hardcode_minus_L=yes
10607       hardcode_shlibpath_var=no
10608       ;;
10609
10610     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10611     freebsd* | dragonfly*)
10612       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10613       hardcode_libdir_flag_spec='-R$libdir'
10614       hardcode_direct=yes
10615       hardcode_shlibpath_var=no
10616       ;;
10617
10618     hpux9*)
10619       if test "$GCC" = yes; then
10620         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'
10621       else
10622         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'
10623       fi
10624       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10625       hardcode_libdir_separator=:
10626       hardcode_direct=yes
10627
10628       # hardcode_minus_L: Not really in the search PATH,
10629       # but as the default location of the library.
10630       hardcode_minus_L=yes
10631       export_dynamic_flag_spec='${wl}-E'
10632       ;;
10633
10634     hpux10*)
10635       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10636         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10637       else
10638         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10639       fi
10640       if test "$with_gnu_ld" = no; then
10641         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10642         hardcode_libdir_flag_spec_ld='+b $libdir'
10643         hardcode_libdir_separator=:
10644         hardcode_direct=yes
10645         hardcode_direct_absolute=yes
10646         export_dynamic_flag_spec='${wl}-E'
10647         # hardcode_minus_L: Not really in the search PATH,
10648         # but as the default location of the library.
10649         hardcode_minus_L=yes
10650       fi
10651       ;;
10652
10653     hpux11*)
10654       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10655         case $host_cpu in
10656         hppa*64*)
10657           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10658           ;;
10659         ia64*)
10660           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10661           ;;
10662         *)
10663           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10664           ;;
10665         esac
10666       else
10667         case $host_cpu in
10668         hppa*64*)
10669           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10670           ;;
10671         ia64*)
10672           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10673           ;;
10674         *)
10675           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10676           ;;
10677         esac
10678       fi
10679       if test "$with_gnu_ld" = no; then
10680         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10681         hardcode_libdir_separator=:
10682
10683         case $host_cpu in
10684         hppa*64*|ia64*)
10685           hardcode_direct=no
10686           hardcode_shlibpath_var=no
10687           ;;
10688         *)
10689           hardcode_direct=yes
10690           hardcode_direct_absolute=yes
10691           export_dynamic_flag_spec='${wl}-E'
10692
10693           # hardcode_minus_L: Not really in the search PATH,
10694           # but as the default location of the library.
10695           hardcode_minus_L=yes
10696           ;;
10697         esac
10698       fi
10699       ;;
10700
10701     irix5* | irix6* | nonstopux*)
10702       if test "$GCC" = yes; then
10703         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'
10704         # Try to use the -exported_symbol ld option, if it does not
10705         # work, assume that -exports_file does not work either and
10706         # implicitly export all symbols.
10707         save_LDFLAGS="$LDFLAGS"
10708         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10709         cat >conftest.$ac_ext <<_ACEOF
10710 int foo(void) {}
10711 _ACEOF
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716   *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719   (eval "$ac_link") 2>conftest.er1
10720   ac_status=$?
10721   grep -v '^ *+' conftest.er1 >conftest.err
10722   rm -f conftest.er1
10723   cat conftest.err >&5
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } && {
10726          test -z "$ac_c_werror_flag" ||
10727          test ! -s conftest.err
10728        } && test -s conftest$ac_exeext &&
10729        $as_test_x conftest$ac_exeext; then
10730   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'
10731
10732 else
10733   echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10735
10736
10737 fi
10738
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740       conftest$ac_exeext conftest.$ac_ext
10741         LDFLAGS="$save_LDFLAGS"
10742       else
10743         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'
10744         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'
10745       fi
10746       archive_cmds_need_lc='no'
10747       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10748       hardcode_libdir_separator=:
10749       inherit_rpath=yes
10750       link_all_deplibs=yes
10751       ;;
10752
10753     netbsd*)
10754       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10755         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10756       else
10757         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10758       fi
10759       hardcode_libdir_flag_spec='-R$libdir'
10760       hardcode_direct=yes
10761       hardcode_shlibpath_var=no
10762       ;;
10763
10764     newsos6)
10765       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766       hardcode_direct=yes
10767       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10768       hardcode_libdir_separator=:
10769       hardcode_shlibpath_var=no
10770       ;;
10771
10772     *nto* | *qnx*)
10773       ;;
10774
10775     openbsd*)
10776       if test -f /usr/libexec/ld.so; then
10777         hardcode_direct=yes
10778         hardcode_shlibpath_var=no
10779         hardcode_direct_absolute=yes
10780         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10781           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10782           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10783           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10784           export_dynamic_flag_spec='${wl}-E'
10785         else
10786           case $host_os in
10787            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10788              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10789              hardcode_libdir_flag_spec='-R$libdir'
10790              ;;
10791            *)
10792              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10793              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10794              ;;
10795           esac
10796         fi
10797       else
10798         ld_shlibs=no
10799       fi
10800       ;;
10801
10802     os2*)
10803       hardcode_libdir_flag_spec='-L$libdir'
10804       hardcode_minus_L=yes
10805       allow_undefined_flag=unsupported
10806       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'
10807       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10808       ;;
10809
10810     osf3*)
10811       if test "$GCC" = yes; then
10812         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10813         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'
10814       else
10815         allow_undefined_flag=' -expect_unresolved \*'
10816         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'
10817       fi
10818       archive_cmds_need_lc='no'
10819       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10820       hardcode_libdir_separator=:
10821       ;;
10822
10823     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10824       if test "$GCC" = yes; then
10825         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10826         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'
10827         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10828       else
10829         allow_undefined_flag=' -expect_unresolved \*'
10830         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'
10831         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~
10832         $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'
10833
10834         # Both c and cxx compiler support -rpath directly
10835         hardcode_libdir_flag_spec='-rpath $libdir'
10836       fi
10837       archive_cmds_need_lc='no'
10838       hardcode_libdir_separator=:
10839       ;;
10840
10841     solaris*)
10842       no_undefined_flag=' -z defs'
10843       if test "$GCC" = yes; then
10844         wlarc='${wl}'
10845         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10846         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10847           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10848       else
10849         case `$CC -V 2>&1` in
10850         *"Compilers 5.0"*)
10851           wlarc=''
10852           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10853           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10854           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10855           ;;
10856         *)
10857           wlarc='${wl}'
10858           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10859           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10860           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10861           ;;
10862         esac
10863       fi
10864       hardcode_libdir_flag_spec='-R$libdir'
10865       hardcode_shlibpath_var=no
10866       case $host_os in
10867       solaris2.[0-5] | solaris2.[0-5].*) ;;
10868       *)
10869         # The compiler driver will combine and reorder linker options,
10870         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10871         # but is careful enough not to reorder.
10872         # Supported since Solaris 2.6 (maybe 2.5.1?)
10873         if test "$GCC" = yes; then
10874           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10875         else
10876           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10877         fi
10878         ;;
10879       esac
10880       link_all_deplibs=yes
10881       ;;
10882
10883     sunos4*)
10884       if test "x$host_vendor" = xsequent; then
10885         # Use $CC to link under sequent, because it throws in some extra .o
10886         # files that make .init and .fini sections work.
10887         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10888       else
10889         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10890       fi
10891       hardcode_libdir_flag_spec='-L$libdir'
10892       hardcode_direct=yes
10893       hardcode_minus_L=yes
10894       hardcode_shlibpath_var=no
10895       ;;
10896
10897     sysv4)
10898       case $host_vendor in
10899         sni)
10900           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10901           hardcode_direct=yes # is this really true???
10902         ;;
10903         siemens)
10904           ## LD is ld it makes a PLAMLIB
10905           ## CC just makes a GrossModule.
10906           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10907           reload_cmds='$CC -r -o $output$reload_objs'
10908           hardcode_direct=no
10909         ;;
10910         motorola)
10911           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10913         ;;
10914       esac
10915       runpath_var='LD_RUN_PATH'
10916       hardcode_shlibpath_var=no
10917       ;;
10918
10919     sysv4.3*)
10920       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10921       hardcode_shlibpath_var=no
10922       export_dynamic_flag_spec='-Bexport'
10923       ;;
10924
10925     sysv4*MP*)
10926       if test -d /usr/nec; then
10927         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928         hardcode_shlibpath_var=no
10929         runpath_var=LD_RUN_PATH
10930         hardcode_runpath_var=yes
10931         ld_shlibs=yes
10932       fi
10933       ;;
10934
10935     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10936       no_undefined_flag='${wl}-z,text'
10937       archive_cmds_need_lc=no
10938       hardcode_shlibpath_var=no
10939       runpath_var='LD_RUN_PATH'
10940
10941       if test "$GCC" = yes; then
10942         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10943         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10944       else
10945         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947       fi
10948       ;;
10949
10950     sysv5* | sco3.2v5* | sco5v6*)
10951       # Note: We can NOT use -z defs as we might desire, because we do not
10952       # link with -lc, and that would cause any symbols used from libc to
10953       # always be unresolved, which means just about no library would
10954       # ever link correctly.  If we're not using GNU ld we use -z text
10955       # though, which does catch some bad symbols but isn't as heavy-handed
10956       # as -z defs.
10957       no_undefined_flag='${wl}-z,text'
10958       allow_undefined_flag='${wl}-z,nodefs'
10959       archive_cmds_need_lc=no
10960       hardcode_shlibpath_var=no
10961       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10962       hardcode_libdir_separator=':'
10963       link_all_deplibs=yes
10964       export_dynamic_flag_spec='${wl}-Bexport'
10965       runpath_var='LD_RUN_PATH'
10966
10967       if test "$GCC" = yes; then
10968         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10969         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10970       else
10971         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10972         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10973       fi
10974       ;;
10975
10976     uts4*)
10977       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978       hardcode_libdir_flag_spec='-L$libdir'
10979       hardcode_shlibpath_var=no
10980       ;;
10981
10982     *)
10983       ld_shlibs=no
10984       ;;
10985     esac
10986
10987     if test x$host_vendor = xsni; then
10988       case $host in
10989       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10990         export_dynamic_flag_spec='${wl}-Blargedynsym'
10991         ;;
10992       esac
10993     fi
10994   fi
10995
10996 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10997 echo "${ECHO_T}$ld_shlibs" >&6; }
10998 test "$ld_shlibs" = no && can_build_shared=no
10999
11000 with_gnu_ld=$with_gnu_ld
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016 #
11017 # Do we need to explicitly link libc?
11018 #
11019 case "x$archive_cmds_need_lc" in
11020 x|xyes)
11021   # Assume -lc should be added
11022   archive_cmds_need_lc=yes
11023
11024   if test "$enable_shared" = yes && test "$GCC" = yes; then
11025     case $archive_cmds in
11026     *'~'*)
11027       # FIXME: we may have to deal with multi-command sequences.
11028       ;;
11029     '$CC '*)
11030       # Test whether the compiler implicitly links with -lc since on some
11031       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11032       # to ld, don't add -lc before -lgcc.
11033       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11034 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11035       $RM conftest*
11036       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11037
11038       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11039   (eval $ac_compile) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); } 2>conftest.err; then
11043         soname=conftest
11044         lib=conftest
11045         libobjs=conftest.$ac_objext
11046         deplibs=
11047         wl=$lt_prog_compiler_wl
11048         pic_flag=$lt_prog_compiler_pic
11049         compiler_flags=-v
11050         linker_flags=-v
11051         verstring=
11052         output_objdir=.
11053         libname=conftest
11054         lt_save_allow_undefined_flag=$allow_undefined_flag
11055         allow_undefined_flag=
11056         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11057   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11058   ac_status=$?
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); }
11061         then
11062           archive_cmds_need_lc=no
11063         else
11064           archive_cmds_need_lc=yes
11065         fi
11066         allow_undefined_flag=$lt_save_allow_undefined_flag
11067       else
11068         cat conftest.err 1>&5
11069       fi
11070       $RM conftest*
11071       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11072 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11073       ;;
11074     esac
11075   fi
11076   ;;
11077 esac
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11236 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11237
11238 if test "$GCC" = yes; then
11239   case $host_os in
11240     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11241     *) lt_awk_arg="/^libraries:/" ;;
11242   esac
11243   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11244   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11245     # if the path contains ";" then we assume it to be the separator
11246     # otherwise default to the standard path separator (i.e. ":") - it is
11247     # assumed that no part of a normal pathname contains ";" but that should
11248     # okay in the real world where ";" in dirpaths is itself problematic.
11249     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11250   else
11251     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11252   fi
11253   # Ok, now we have the path, separated by spaces, we can step through it
11254   # and add multilib dir if necessary.
11255   lt_tmp_lt_search_path_spec=
11256   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11257   for lt_sys_path in $lt_search_path_spec; do
11258     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11259       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11260     else
11261       test -d "$lt_sys_path" && \
11262         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11263     fi
11264   done
11265   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11266 BEGIN {RS=" "; FS="/|\n";} {
11267   lt_foo="";
11268   lt_count=0;
11269   for (lt_i = NF; lt_i > 0; lt_i--) {
11270     if ($lt_i != "" && $lt_i != ".") {
11271       if ($lt_i == "..") {
11272         lt_count++;
11273       } else {
11274         if (lt_count == 0) {
11275           lt_foo="/" $lt_i lt_foo;
11276         } else {
11277           lt_count--;
11278         }
11279       }
11280     }
11281   }
11282   if (lt_foo != "") { lt_freq[lt_foo]++; }
11283   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11284 }'`
11285   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11286 else
11287   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11288 fi
11289 library_names_spec=
11290 libname_spec='lib$name'
11291 soname_spec=
11292 shrext_cmds=".so"
11293 postinstall_cmds=
11294 postuninstall_cmds=
11295 finish_cmds=
11296 finish_eval=
11297 shlibpath_var=
11298 shlibpath_overrides_runpath=unknown
11299 version_type=none
11300 dynamic_linker="$host_os ld.so"
11301 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11302 need_lib_prefix=unknown
11303 hardcode_into_libs=no
11304
11305 # when you set need_version to no, make sure it does not cause -set_version
11306 # flags to be left without arguments
11307 need_version=unknown
11308
11309 case $host_os in
11310 aix3*)
11311   version_type=linux
11312   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11313   shlibpath_var=LIBPATH
11314
11315   # AIX 3 has no versioning support, so we append a major version to the name.
11316   soname_spec='${libname}${release}${shared_ext}$major'
11317   ;;
11318
11319 aix[4-9]*)
11320   version_type=linux
11321   need_lib_prefix=no
11322   need_version=no
11323   hardcode_into_libs=yes
11324   if test "$host_cpu" = ia64; then
11325     # AIX 5 supports IA64
11326     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11327     shlibpath_var=LD_LIBRARY_PATH
11328   else
11329     # With GCC up to 2.95.x, collect2 would create an import file
11330     # for dependence libraries.  The import file would start with
11331     # the line `#! .'.  This would cause the generated library to
11332     # depend on `.', always an invalid library.  This was fixed in
11333     # development snapshots of GCC prior to 3.0.
11334     case $host_os in
11335       aix4 | aix4.[01] | aix4.[01].*)
11336       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11337            echo ' yes '
11338            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11339         :
11340       else
11341         can_build_shared=no
11342       fi
11343       ;;
11344     esac
11345     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11346     # soname into executable. Probably we can add versioning support to
11347     # collect2, so additional links can be useful in future.
11348     if test "$aix_use_runtimelinking" = yes; then
11349       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11350       # instead of lib<name>.a to let people know that these are not
11351       # typical AIX shared libraries.
11352       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353     else
11354       # We preserve .a as extension for shared libraries through AIX4.2
11355       # and later when we are not doing run time linking.
11356       library_names_spec='${libname}${release}.a $libname.a'
11357       soname_spec='${libname}${release}${shared_ext}$major'
11358     fi
11359     shlibpath_var=LIBPATH
11360   fi
11361   ;;
11362
11363 amigaos*)
11364   case $host_cpu in
11365   powerpc)
11366     # Since July 2007 AmigaOS4 officially supports .so libraries.
11367     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369     ;;
11370   m68k)
11371     library_names_spec='$libname.ixlibrary $libname.a'
11372     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11373     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'
11374     ;;
11375   esac
11376   ;;
11377
11378 beos*)
11379   library_names_spec='${libname}${shared_ext}'
11380   dynamic_linker="$host_os ld.so"
11381   shlibpath_var=LIBRARY_PATH
11382   ;;
11383
11384 bsdi[45]*)
11385   version_type=linux
11386   need_version=no
11387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388   soname_spec='${libname}${release}${shared_ext}$major'
11389   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11390   shlibpath_var=LD_LIBRARY_PATH
11391   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11392   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11393   # the default ld.so.conf also contains /usr/contrib/lib and
11394   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11395   # libtool to hard-code these into programs
11396   ;;
11397
11398 cygwin* | mingw* | pw32* | cegcc*)
11399   version_type=windows
11400   shrext_cmds=".dll"
11401   need_version=no
11402   need_lib_prefix=no
11403
11404   case $GCC,$host_os in
11405   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11406     library_names_spec='$libname.dll.a'
11407     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11408     postinstall_cmds='base_file=`basename \${file}`~
11409       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11410       dldir=$destdir/`dirname \$dlpath`~
11411       test -d \$dldir || mkdir -p \$dldir~
11412       $install_prog $dir/$dlname \$dldir/$dlname~
11413       chmod a+x \$dldir/$dlname~
11414       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11415         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11416       fi'
11417     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11418       dlpath=$dir/\$dldll~
11419        $RM \$dlpath'
11420     shlibpath_overrides_runpath=yes
11421
11422     case $host_os in
11423     cygwin*)
11424       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11425       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11426       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11427       ;;
11428     mingw* | cegcc*)
11429       # MinGW DLLs use traditional 'lib' prefix
11430       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11431       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11432       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11433         # It is most probably a Windows format PATH printed by
11434         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11435         # path with ; separators, and with drive letters. We can handle the
11436         # drive letters (cygwin fileutils understands them), so leave them,
11437         # especially as we might pass files found there to a mingw objdump,
11438         # which wouldn't understand a cygwinified path. Ahh.
11439         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11440       else
11441         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11442       fi
11443       ;;
11444     pw32*)
11445       # pw32 DLLs use 'pw' prefix rather than 'lib'
11446       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11447       ;;
11448     esac
11449     ;;
11450
11451   *)
11452     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11453     ;;
11454   esac
11455   dynamic_linker='Win32 ld.exe'
11456   # FIXME: first we should search . and the directory the executable is in
11457   shlibpath_var=PATH
11458   ;;
11459
11460 darwin* | rhapsody*)
11461   dynamic_linker="$host_os dyld"
11462   version_type=darwin
11463   need_lib_prefix=no
11464   need_version=no
11465   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11466   soname_spec='${libname}${release}${major}$shared_ext'
11467   shlibpath_overrides_runpath=yes
11468   shlibpath_var=DYLD_LIBRARY_PATH
11469   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11470
11471   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11472   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11473   ;;
11474
11475 dgux*)
11476   version_type=linux
11477   need_lib_prefix=no
11478   need_version=no
11479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11480   soname_spec='${libname}${release}${shared_ext}$major'
11481   shlibpath_var=LD_LIBRARY_PATH
11482   ;;
11483
11484 freebsd1*)
11485   dynamic_linker=no
11486   ;;
11487
11488 freebsd* | dragonfly*)
11489   # DragonFly does not have aout.  When/if they implement a new
11490   # versioning mechanism, adjust this.
11491   if test -x /usr/bin/objformat; then
11492     objformat=`/usr/bin/objformat`
11493   else
11494     case $host_os in
11495     freebsd[123]*) objformat=aout ;;
11496     *) objformat=elf ;;
11497     esac
11498   fi
11499   version_type=freebsd-$objformat
11500   case $version_type in
11501     freebsd-elf*)
11502       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11503       need_version=no
11504       need_lib_prefix=no
11505       ;;
11506     freebsd-*)
11507       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11508       need_version=yes
11509       ;;
11510   esac
11511   shlibpath_var=LD_LIBRARY_PATH
11512   case $host_os in
11513   freebsd2*)
11514     shlibpath_overrides_runpath=yes
11515     ;;
11516   freebsd3.[01]* | freebsdelf3.[01]*)
11517     shlibpath_overrides_runpath=yes
11518     hardcode_into_libs=yes
11519     ;;
11520   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11521   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11522     shlibpath_overrides_runpath=no
11523     hardcode_into_libs=yes
11524     ;;
11525   *) # from 4.6 on, and DragonFly
11526     shlibpath_overrides_runpath=yes
11527     hardcode_into_libs=yes
11528     ;;
11529   esac
11530   ;;
11531
11532 gnu*)
11533   version_type=linux
11534   need_lib_prefix=no
11535   need_version=no
11536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11537   soname_spec='${libname}${release}${shared_ext}$major'
11538   shlibpath_var=LD_LIBRARY_PATH
11539   hardcode_into_libs=yes
11540   ;;
11541
11542 hpux9* | hpux10* | hpux11*)
11543   # Give a soname corresponding to the major version so that dld.sl refuses to
11544   # link against other versions.
11545   version_type=sunos
11546   need_lib_prefix=no
11547   need_version=no
11548   case $host_cpu in
11549   ia64*)
11550     shrext_cmds='.so'
11551     hardcode_into_libs=yes
11552     dynamic_linker="$host_os dld.so"
11553     shlibpath_var=LD_LIBRARY_PATH
11554     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556     soname_spec='${libname}${release}${shared_ext}$major'
11557     if test "X$HPUX_IA64_MODE" = X32; then
11558       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11559     else
11560       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11561     fi
11562     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11563     ;;
11564   hppa*64*)
11565     shrext_cmds='.sl'
11566     hardcode_into_libs=yes
11567     dynamic_linker="$host_os dld.sl"
11568     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11569     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11570     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571     soname_spec='${libname}${release}${shared_ext}$major'
11572     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11573     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11574     ;;
11575   *)
11576     shrext_cmds='.sl'
11577     dynamic_linker="$host_os dld.sl"
11578     shlibpath_var=SHLIB_PATH
11579     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581     soname_spec='${libname}${release}${shared_ext}$major'
11582     ;;
11583   esac
11584   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11585   postinstall_cmds='chmod 555 $lib'
11586   ;;
11587
11588 interix[3-9]*)
11589   version_type=linux
11590   need_lib_prefix=no
11591   need_version=no
11592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11593   soname_spec='${libname}${release}${shared_ext}$major'
11594   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11595   shlibpath_var=LD_LIBRARY_PATH
11596   shlibpath_overrides_runpath=no
11597   hardcode_into_libs=yes
11598   ;;
11599
11600 irix5* | irix6* | nonstopux*)
11601   case $host_os in
11602     nonstopux*) version_type=nonstopux ;;
11603     *)
11604         if test "$lt_cv_prog_gnu_ld" = yes; then
11605                 version_type=linux
11606         else
11607                 version_type=irix
11608         fi ;;
11609   esac
11610   need_lib_prefix=no
11611   need_version=no
11612   soname_spec='${libname}${release}${shared_ext}$major'
11613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11614   case $host_os in
11615   irix5* | nonstopux*)
11616     libsuff= shlibsuff=
11617     ;;
11618   *)
11619     case $LD in # libtool.m4 will add one of these switches to LD
11620     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11621       libsuff= shlibsuff= libmagic=32-bit;;
11622     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11623       libsuff=32 shlibsuff=N32 libmagic=N32;;
11624     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11625       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11626     *) libsuff= shlibsuff= libmagic=never-match;;
11627     esac
11628     ;;
11629   esac
11630   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11631   shlibpath_overrides_runpath=no
11632   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11633   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11634   hardcode_into_libs=yes
11635   ;;
11636
11637 # No shared lib support for Linux oldld, aout, or coff.
11638 linux*oldld* | linux*aout* | linux*coff*)
11639   dynamic_linker=no
11640   ;;
11641
11642 # This must be Linux ELF.
11643 linux* | k*bsd*-gnu)
11644   version_type=linux
11645   need_lib_prefix=no
11646   need_version=no
11647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648   soname_spec='${libname}${release}${shared_ext}$major'
11649   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11650   shlibpath_var=LD_LIBRARY_PATH
11651   shlibpath_overrides_runpath=no
11652   # Some binutils ld are patched to set DT_RUNPATH
11653   save_LDFLAGS=$LDFLAGS
11654   save_libdir=$libdir
11655   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11656        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11657   cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h.  */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h.  */
11663
11664 int
11665 main ()
11666 {
11667
11668   ;
11669   return 0;
11670 }
11671 _ACEOF
11672 rm -f conftest.$ac_objext conftest$ac_exeext
11673 if { (ac_try="$ac_link"
11674 case "(($ac_try" in
11675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676   *) ac_try_echo=$ac_try;;
11677 esac
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679   (eval "$ac_link") 2>conftest.er1
11680   ac_status=$?
11681   grep -v '^ *+' conftest.er1 >conftest.err
11682   rm -f conftest.er1
11683   cat conftest.err >&5
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); } && {
11686          test -z "$ac_c_werror_flag" ||
11687          test ! -s conftest.err
11688        } && test -s conftest$ac_exeext &&
11689        $as_test_x conftest$ac_exeext; then
11690   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11691   shlibpath_overrides_runpath=yes
11692 fi
11693
11694 else
11695   echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11697
11698
11699 fi
11700
11701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11702       conftest$ac_exeext conftest.$ac_ext
11703   LDFLAGS=$save_LDFLAGS
11704   libdir=$save_libdir
11705
11706   # This implies no fast_install, which is unacceptable.
11707   # Some rework will be needed to allow for fast_install
11708   # before this can be enabled.
11709   hardcode_into_libs=yes
11710
11711   # Append ld.so.conf contents to the search path
11712   if test -f /etc/ld.so.conf; then
11713     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' ' '`
11714     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11715   fi
11716
11717   # We used to test for /lib/ld.so.1 and disable shared libraries on
11718   # powerpc, because MkLinux only supported shared libraries with the
11719   # GNU dynamic linker.  Since this was broken with cross compilers,
11720   # most powerpc-linux boxes support dynamic linking these days and
11721   # people can always --disable-shared, the test was removed, and we
11722   # assume the GNU/Linux dynamic linker is in use.
11723   dynamic_linker='GNU/Linux ld.so'
11724   ;;
11725
11726 netbsd*)
11727   version_type=sunos
11728   need_lib_prefix=no
11729   need_version=no
11730   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11732     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11733     dynamic_linker='NetBSD (a.out) ld.so'
11734   else
11735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11736     soname_spec='${libname}${release}${shared_ext}$major'
11737     dynamic_linker='NetBSD ld.elf_so'
11738   fi
11739   shlibpath_var=LD_LIBRARY_PATH
11740   shlibpath_overrides_runpath=yes
11741   hardcode_into_libs=yes
11742   ;;
11743
11744 newsos6)
11745   version_type=linux
11746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747   shlibpath_var=LD_LIBRARY_PATH
11748   shlibpath_overrides_runpath=yes
11749   ;;
11750
11751 *nto* | *qnx*)
11752   version_type=qnx
11753   need_lib_prefix=no
11754   need_version=no
11755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11756   soname_spec='${libname}${release}${shared_ext}$major'
11757   shlibpath_var=LD_LIBRARY_PATH
11758   shlibpath_overrides_runpath=no
11759   hardcode_into_libs=yes
11760   dynamic_linker='ldqnx.so'
11761   ;;
11762
11763 openbsd*)
11764   version_type=sunos
11765   sys_lib_dlsearch_path_spec="/usr/lib"
11766   need_lib_prefix=no
11767   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11768   case $host_os in
11769     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11770     *)                          need_version=no  ;;
11771   esac
11772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11773   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11774   shlibpath_var=LD_LIBRARY_PATH
11775   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11776     case $host_os in
11777       openbsd2.[89] | openbsd2.[89].*)
11778         shlibpath_overrides_runpath=no
11779         ;;
11780       *)
11781         shlibpath_overrides_runpath=yes
11782         ;;
11783       esac
11784   else
11785     shlibpath_overrides_runpath=yes
11786   fi
11787   ;;
11788
11789 os2*)
11790   libname_spec='$name'
11791   shrext_cmds=".dll"
11792   need_lib_prefix=no
11793   library_names_spec='$libname${shared_ext} $libname.a'
11794   dynamic_linker='OS/2 ld.exe'
11795   shlibpath_var=LIBPATH
11796   ;;
11797
11798 osf3* | osf4* | osf5*)
11799   version_type=osf
11800   need_lib_prefix=no
11801   need_version=no
11802   soname_spec='${libname}${release}${shared_ext}$major'
11803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804   shlibpath_var=LD_LIBRARY_PATH
11805   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11806   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11807   ;;
11808
11809 rdos*)
11810   dynamic_linker=no
11811   ;;
11812
11813 solaris*)
11814   version_type=linux
11815   need_lib_prefix=no
11816   need_version=no
11817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818   soname_spec='${libname}${release}${shared_ext}$major'
11819   shlibpath_var=LD_LIBRARY_PATH
11820   shlibpath_overrides_runpath=yes
11821   hardcode_into_libs=yes
11822   # ldd complains unless libraries are executable
11823   postinstall_cmds='chmod +x $lib'
11824   ;;
11825
11826 sunos4*)
11827   version_type=sunos
11828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11829   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11830   shlibpath_var=LD_LIBRARY_PATH
11831   shlibpath_overrides_runpath=yes
11832   if test "$with_gnu_ld" = yes; then
11833     need_lib_prefix=no
11834   fi
11835   need_version=yes
11836   ;;
11837
11838 sysv4 | sysv4.3*)
11839   version_type=linux
11840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841   soname_spec='${libname}${release}${shared_ext}$major'
11842   shlibpath_var=LD_LIBRARY_PATH
11843   case $host_vendor in
11844     sni)
11845       shlibpath_overrides_runpath=no
11846       need_lib_prefix=no
11847       runpath_var=LD_RUN_PATH
11848       ;;
11849     siemens)
11850       need_lib_prefix=no
11851       ;;
11852     motorola)
11853       need_lib_prefix=no
11854       need_version=no
11855       shlibpath_overrides_runpath=no
11856       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11857       ;;
11858   esac
11859   ;;
11860
11861 sysv4*MP*)
11862   if test -d /usr/nec ;then
11863     version_type=linux
11864     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11865     soname_spec='$libname${shared_ext}.$major'
11866     shlibpath_var=LD_LIBRARY_PATH
11867   fi
11868   ;;
11869
11870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11871   version_type=freebsd-elf
11872   need_lib_prefix=no
11873   need_version=no
11874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11875   soname_spec='${libname}${release}${shared_ext}$major'
11876   shlibpath_var=LD_LIBRARY_PATH
11877   shlibpath_overrides_runpath=yes
11878   hardcode_into_libs=yes
11879   if test "$with_gnu_ld" = yes; then
11880     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11881   else
11882     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11883     case $host_os in
11884       sco3.2v5*)
11885         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11886         ;;
11887     esac
11888   fi
11889   sys_lib_dlsearch_path_spec='/usr/lib'
11890   ;;
11891
11892 tpf*)
11893   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11894   version_type=linux
11895   need_lib_prefix=no
11896   need_version=no
11897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11898   shlibpath_var=LD_LIBRARY_PATH
11899   shlibpath_overrides_runpath=no
11900   hardcode_into_libs=yes
11901   ;;
11902
11903 uts4*)
11904   version_type=linux
11905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11906   soname_spec='${libname}${release}${shared_ext}$major'
11907   shlibpath_var=LD_LIBRARY_PATH
11908   ;;
11909
11910 *)
11911   dynamic_linker=no
11912   ;;
11913 esac
11914 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11915 echo "${ECHO_T}$dynamic_linker" >&6; }
11916 test "$dynamic_linker" = no && can_build_shared=no
11917
11918 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11919 if test "$GCC" = yes; then
11920   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11921 fi
11922
11923 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11924   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11925 fi
11926 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11927   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11928 fi
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12018 hardcode_action=
12019 if test -n "$hardcode_libdir_flag_spec" ||
12020    test -n "$runpath_var" ||
12021    test "X$hardcode_automatic" = "Xyes" ; then
12022
12023   # We can hardcode non-existent directories.
12024   if test "$hardcode_direct" != no &&
12025      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12026      # have to relink, otherwise we might link with an installed library
12027      # when we should be linking with a yet-to-be-installed one
12028      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12029      test "$hardcode_minus_L" != no; then
12030     # Linking always hardcodes the temporary library directory.
12031     hardcode_action=relink
12032   else
12033     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12034     hardcode_action=immediate
12035   fi
12036 else
12037   # We cannot hardcode anything, or else we can only hardcode existing
12038   # directories.
12039   hardcode_action=unsupported
12040 fi
12041 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12042 echo "${ECHO_T}$hardcode_action" >&6; }
12043
12044 if test "$hardcode_action" = relink ||
12045    test "$inherit_rpath" = yes; then
12046   # Fast installation is not supported
12047   enable_fast_install=no
12048 elif test "$shlibpath_overrides_runpath" = yes ||
12049      test "$enable_shared" = no; then
12050   # Fast installation is not necessary
12051   enable_fast_install=needless
12052 fi
12053
12054
12055
12056
12057
12058
12059   if test "x$enable_dlopen" != xyes; then
12060   enable_dlopen=unknown
12061   enable_dlopen_self=unknown
12062   enable_dlopen_self_static=unknown
12063 else
12064   lt_cv_dlopen=no
12065   lt_cv_dlopen_libs=
12066
12067   case $host_os in
12068   beos*)
12069     lt_cv_dlopen="load_add_on"
12070     lt_cv_dlopen_libs=
12071     lt_cv_dlopen_self=yes
12072     ;;
12073
12074   mingw* | pw32* | cegcc*)
12075     lt_cv_dlopen="LoadLibrary"
12076     lt_cv_dlopen_libs=
12077     ;;
12078
12079   cygwin*)
12080     lt_cv_dlopen="dlopen"
12081     lt_cv_dlopen_libs=
12082     ;;
12083
12084   darwin*)
12085   # if libdl is installed we need to link against it
12086     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12087 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12088 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12089   echo $ECHO_N "(cached) $ECHO_C" >&6
12090 else
12091   ac_check_lib_save_LIBS=$LIBS
12092 LIBS="-ldl  $LIBS"
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h.  */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h.  */
12099
12100 /* Override any GCC internal prototype to avoid an error.
12101    Use char because int might match the return type of a GCC
12102    builtin and then its argument prototype would still apply.  */
12103 #ifdef __cplusplus
12104 extern "C"
12105 #endif
12106 char dlopen ();
12107 int
12108 main ()
12109 {
12110 return dlopen ();
12111   ;
12112   return 0;
12113 }
12114 _ACEOF
12115 rm -f conftest.$ac_objext conftest$ac_exeext
12116 if { (ac_try="$ac_link"
12117 case "(($ac_try" in
12118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119   *) ac_try_echo=$ac_try;;
12120 esac
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122   (eval "$ac_link") 2>conftest.er1
12123   ac_status=$?
12124   grep -v '^ *+' conftest.er1 >conftest.err
12125   rm -f conftest.er1
12126   cat conftest.err >&5
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); } && {
12129          test -z "$ac_c_werror_flag" ||
12130          test ! -s conftest.err
12131        } && test -s conftest$ac_exeext &&
12132        $as_test_x conftest$ac_exeext; then
12133   ac_cv_lib_dl_dlopen=yes
12134 else
12135   echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12137
12138         ac_cv_lib_dl_dlopen=no
12139 fi
12140
12141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12142       conftest$ac_exeext conftest.$ac_ext
12143 LIBS=$ac_check_lib_save_LIBS
12144 fi
12145 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12146 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12147 if test $ac_cv_lib_dl_dlopen = yes; then
12148   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12149 else
12150
12151     lt_cv_dlopen="dyld"
12152     lt_cv_dlopen_libs=
12153     lt_cv_dlopen_self=yes
12154
12155 fi
12156
12157     ;;
12158
12159   *)
12160     { echo "$as_me:$LINENO: checking for shl_load" >&5
12161 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12162 if test "${ac_cv_func_shl_load+set}" = set; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h.  */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h.  */
12171 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12173 #define shl_load innocuous_shl_load
12174
12175 /* System header to define __stub macros and hopefully few prototypes,
12176     which can conflict with char shl_load (); below.
12177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12178     <limits.h> exists even on freestanding compilers.  */
12179
12180 #ifdef __STDC__
12181 # include <limits.h>
12182 #else
12183 # include <assert.h>
12184 #endif
12185
12186 #undef shl_load
12187
12188 /* Override any GCC internal prototype to avoid an error.
12189    Use char because int might match the return type of a GCC
12190    builtin and then its argument prototype would still apply.  */
12191 #ifdef __cplusplus
12192 extern "C"
12193 #endif
12194 char shl_load ();
12195 /* The GNU C library defines this for functions which it implements
12196     to always fail with ENOSYS.  Some functions are actually named
12197     something starting with __ and the normal name is an alias.  */
12198 #if defined __stub_shl_load || defined __stub___shl_load
12199 choke me
12200 #endif
12201
12202 int
12203 main ()
12204 {
12205 return shl_load ();
12206   ;
12207   return 0;
12208 }
12209 _ACEOF
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (ac_try="$ac_link"
12212 case "(($ac_try" in
12213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214   *) ac_try_echo=$ac_try;;
12215 esac
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217   (eval "$ac_link") 2>conftest.er1
12218   ac_status=$?
12219   grep -v '^ *+' conftest.er1 >conftest.err
12220   rm -f conftest.er1
12221   cat conftest.err >&5
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); } && {
12224          test -z "$ac_c_werror_flag" ||
12225          test ! -s conftest.err
12226        } && test -s conftest$ac_exeext &&
12227        $as_test_x conftest$ac_exeext; then
12228   ac_cv_func_shl_load=yes
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233         ac_cv_func_shl_load=no
12234 fi
12235
12236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12237       conftest$ac_exeext conftest.$ac_ext
12238 fi
12239 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12240 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12241 if test $ac_cv_func_shl_load = yes; then
12242   lt_cv_dlopen="shl_load"
12243 else
12244   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12245 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12246 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12247   echo $ECHO_N "(cached) $ECHO_C" >&6
12248 else
12249   ac_check_lib_save_LIBS=$LIBS
12250 LIBS="-ldld  $LIBS"
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h.  */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h.  */
12257
12258 /* Override any GCC internal prototype to avoid an error.
12259    Use char because int might match the return type of a GCC
12260    builtin and then its argument prototype would still apply.  */
12261 #ifdef __cplusplus
12262 extern "C"
12263 #endif
12264 char shl_load ();
12265 int
12266 main ()
12267 {
12268 return shl_load ();
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277   *) ac_try_echo=$ac_try;;
12278 esac
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280   (eval "$ac_link") 2>conftest.er1
12281   ac_status=$?
12282   grep -v '^ *+' conftest.er1 >conftest.err
12283   rm -f conftest.er1
12284   cat conftest.err >&5
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); } && {
12287          test -z "$ac_c_werror_flag" ||
12288          test ! -s conftest.err
12289        } && test -s conftest$ac_exeext &&
12290        $as_test_x conftest$ac_exeext; then
12291   ac_cv_lib_dld_shl_load=yes
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296         ac_cv_lib_dld_shl_load=no
12297 fi
12298
12299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12300       conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12302 fi
12303 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12304 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12305 if test $ac_cv_lib_dld_shl_load = yes; then
12306   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12307 else
12308   { echo "$as_me:$LINENO: checking for dlopen" >&5
12309 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12310 if test "${ac_cv_func_dlopen+set}" = set; then
12311   echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313   cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h.  */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h.  */
12319 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12321 #define dlopen innocuous_dlopen
12322
12323 /* System header to define __stub macros and hopefully few prototypes,
12324     which can conflict with char dlopen (); below.
12325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12326     <limits.h> exists even on freestanding compilers.  */
12327
12328 #ifdef __STDC__
12329 # include <limits.h>
12330 #else
12331 # include <assert.h>
12332 #endif
12333
12334 #undef dlopen
12335
12336 /* Override any GCC internal prototype to avoid an error.
12337    Use char because int might match the return type of a GCC
12338    builtin and then its argument prototype would still apply.  */
12339 #ifdef __cplusplus
12340 extern "C"
12341 #endif
12342 char dlopen ();
12343 /* The GNU C library defines this for functions which it implements
12344     to always fail with ENOSYS.  Some functions are actually named
12345     something starting with __ and the normal name is an alias.  */
12346 #if defined __stub_dlopen || defined __stub___dlopen
12347 choke me
12348 #endif
12349
12350 int
12351 main ()
12352 {
12353 return dlopen ();
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext conftest$ac_exeext
12359 if { (ac_try="$ac_link"
12360 case "(($ac_try" in
12361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362   *) ac_try_echo=$ac_try;;
12363 esac
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365   (eval "$ac_link") 2>conftest.er1
12366   ac_status=$?
12367   grep -v '^ *+' conftest.er1 >conftest.err
12368   rm -f conftest.er1
12369   cat conftest.err >&5
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); } && {
12372          test -z "$ac_c_werror_flag" ||
12373          test ! -s conftest.err
12374        } && test -s conftest$ac_exeext &&
12375        $as_test_x conftest$ac_exeext; then
12376   ac_cv_func_dlopen=yes
12377 else
12378   echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381         ac_cv_func_dlopen=no
12382 fi
12383
12384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12385       conftest$ac_exeext conftest.$ac_ext
12386 fi
12387 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12388 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12389 if test $ac_cv_func_dlopen = yes; then
12390   lt_cv_dlopen="dlopen"
12391 else
12392   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12393 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12394 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12395   echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397   ac_check_lib_save_LIBS=$LIBS
12398 LIBS="-ldl  $LIBS"
12399 cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405
12406 /* Override any GCC internal prototype to avoid an error.
12407    Use char because int might match the return type of a GCC
12408    builtin and then its argument prototype would still apply.  */
12409 #ifdef __cplusplus
12410 extern "C"
12411 #endif
12412 char dlopen ();
12413 int
12414 main ()
12415 {
12416 return dlopen ();
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_link") 2>conftest.er1
12429   ac_status=$?
12430   grep -v '^ *+' conftest.er1 >conftest.err
12431   rm -f conftest.er1
12432   cat conftest.err >&5
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); } && {
12435          test -z "$ac_c_werror_flag" ||
12436          test ! -s conftest.err
12437        } && test -s conftest$ac_exeext &&
12438        $as_test_x conftest$ac_exeext; then
12439   ac_cv_lib_dl_dlopen=yes
12440 else
12441   echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444         ac_cv_lib_dl_dlopen=no
12445 fi
12446
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448       conftest$ac_exeext conftest.$ac_ext
12449 LIBS=$ac_check_lib_save_LIBS
12450 fi
12451 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12452 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12453 if test $ac_cv_lib_dl_dlopen = yes; then
12454   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12455 else
12456   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12457 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12458 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12459   echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461   ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-lsvld  $LIBS"
12463 cat >conftest.$ac_ext <<_ACEOF
12464 /* confdefs.h.  */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h.  */
12469
12470 /* Override any GCC internal prototype to avoid an error.
12471    Use char because int might match the return type of a GCC
12472    builtin and then its argument prototype would still apply.  */
12473 #ifdef __cplusplus
12474 extern "C"
12475 #endif
12476 char dlopen ();
12477 int
12478 main ()
12479 {
12480 return dlopen ();
12481   ;
12482   return 0;
12483 }
12484 _ACEOF
12485 rm -f conftest.$ac_objext conftest$ac_exeext
12486 if { (ac_try="$ac_link"
12487 case "(($ac_try" in
12488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489   *) ac_try_echo=$ac_try;;
12490 esac
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492   (eval "$ac_link") 2>conftest.er1
12493   ac_status=$?
12494   grep -v '^ *+' conftest.er1 >conftest.err
12495   rm -f conftest.er1
12496   cat conftest.err >&5
12497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498   (exit $ac_status); } && {
12499          test -z "$ac_c_werror_flag" ||
12500          test ! -s conftest.err
12501        } && test -s conftest$ac_exeext &&
12502        $as_test_x conftest$ac_exeext; then
12503   ac_cv_lib_svld_dlopen=yes
12504 else
12505   echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508         ac_cv_lib_svld_dlopen=no
12509 fi
12510
12511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12512       conftest$ac_exeext conftest.$ac_ext
12513 LIBS=$ac_check_lib_save_LIBS
12514 fi
12515 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12516 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12517 if test $ac_cv_lib_svld_dlopen = yes; then
12518   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12519 else
12520   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12521 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525   ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-ldld  $LIBS"
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533
12534 /* Override any GCC internal prototype to avoid an error.
12535    Use char because int might match the return type of a GCC
12536    builtin and then its argument prototype would still apply.  */
12537 #ifdef __cplusplus
12538 extern "C"
12539 #endif
12540 char dld_link ();
12541 int
12542 main ()
12543 {
12544 return dld_link ();
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553   *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556   (eval "$ac_link") 2>conftest.er1
12557   ac_status=$?
12558   grep -v '^ *+' conftest.er1 >conftest.err
12559   rm -f conftest.er1
12560   cat conftest.err >&5
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); } && {
12563          test -z "$ac_c_werror_flag" ||
12564          test ! -s conftest.err
12565        } && test -s conftest$ac_exeext &&
12566        $as_test_x conftest$ac_exeext; then
12567   ac_cv_lib_dld_dld_link=yes
12568 else
12569   echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12571
12572         ac_cv_lib_dld_dld_link=no
12573 fi
12574
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576       conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12578 fi
12579 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12580 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12581 if test $ac_cv_lib_dld_dld_link = yes; then
12582   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12583 fi
12584
12585
12586 fi
12587
12588
12589 fi
12590
12591
12592 fi
12593
12594
12595 fi
12596
12597
12598 fi
12599
12600     ;;
12601   esac
12602
12603   if test "x$lt_cv_dlopen" != xno; then
12604     enable_dlopen=yes
12605   else
12606     enable_dlopen=no
12607   fi
12608
12609   case $lt_cv_dlopen in
12610   dlopen)
12611     save_CPPFLAGS="$CPPFLAGS"
12612     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12613
12614     save_LDFLAGS="$LDFLAGS"
12615     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12616
12617     save_LIBS="$LIBS"
12618     LIBS="$lt_cv_dlopen_libs $LIBS"
12619
12620     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12621 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12622 if test "${lt_cv_dlopen_self+set}" = set; then
12623   echo $ECHO_N "(cached) $ECHO_C" >&6
12624 else
12625           if test "$cross_compiling" = yes; then :
12626   lt_cv_dlopen_self=cross
12627 else
12628   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12629   lt_status=$lt_dlunknown
12630   cat > conftest.$ac_ext <<_LT_EOF
12631 #line 12631 "configure"
12632 #include "confdefs.h"
12633
12634 #if HAVE_DLFCN_H
12635 #include <dlfcn.h>
12636 #endif
12637
12638 #include <stdio.h>
12639
12640 #ifdef RTLD_GLOBAL
12641 #  define LT_DLGLOBAL           RTLD_GLOBAL
12642 #else
12643 #  ifdef DL_GLOBAL
12644 #    define LT_DLGLOBAL         DL_GLOBAL
12645 #  else
12646 #    define LT_DLGLOBAL         0
12647 #  endif
12648 #endif
12649
12650 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12651    find out it does not work in some platform. */
12652 #ifndef LT_DLLAZY_OR_NOW
12653 #  ifdef RTLD_LAZY
12654 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12655 #  else
12656 #    ifdef DL_LAZY
12657 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12658 #    else
12659 #      ifdef RTLD_NOW
12660 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12661 #      else
12662 #        ifdef DL_NOW
12663 #          define LT_DLLAZY_OR_NOW      DL_NOW
12664 #        else
12665 #          define LT_DLLAZY_OR_NOW      0
12666 #        endif
12667 #      endif
12668 #    endif
12669 #  endif
12670 #endif
12671
12672 void fnord() { int i=42;}
12673 int main ()
12674 {
12675   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12676   int status = $lt_dlunknown;
12677
12678   if (self)
12679     {
12680       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12681       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12682       /* dlclose (self); */
12683     }
12684   else
12685     puts (dlerror ());
12686
12687   return status;
12688 }
12689 _LT_EOF
12690   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691   (eval $ac_link) 2>&5
12692   ac_status=$?
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12695     (./conftest; exit; ) >&5 2>/dev/null
12696     lt_status=$?
12697     case x$lt_status in
12698       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12699       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12700       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12701     esac
12702   else :
12703     # compilation failed
12704     lt_cv_dlopen_self=no
12705   fi
12706 fi
12707 rm -fr conftest*
12708
12709
12710 fi
12711 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12712 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12713
12714     if test "x$lt_cv_dlopen_self" = xyes; then
12715       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12716       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12717 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12718 if test "${lt_cv_dlopen_self_static+set}" = set; then
12719   echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721           if test "$cross_compiling" = yes; then :
12722   lt_cv_dlopen_self_static=cross
12723 else
12724   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12725   lt_status=$lt_dlunknown
12726   cat > conftest.$ac_ext <<_LT_EOF
12727 #line 12727 "configure"
12728 #include "confdefs.h"
12729
12730 #if HAVE_DLFCN_H
12731 #include <dlfcn.h>
12732 #endif
12733
12734 #include <stdio.h>
12735
12736 #ifdef RTLD_GLOBAL
12737 #  define LT_DLGLOBAL           RTLD_GLOBAL
12738 #else
12739 #  ifdef DL_GLOBAL
12740 #    define LT_DLGLOBAL         DL_GLOBAL
12741 #  else
12742 #    define LT_DLGLOBAL         0
12743 #  endif
12744 #endif
12745
12746 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12747    find out it does not work in some platform. */
12748 #ifndef LT_DLLAZY_OR_NOW
12749 #  ifdef RTLD_LAZY
12750 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12751 #  else
12752 #    ifdef DL_LAZY
12753 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12754 #    else
12755 #      ifdef RTLD_NOW
12756 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12757 #      else
12758 #        ifdef DL_NOW
12759 #          define LT_DLLAZY_OR_NOW      DL_NOW
12760 #        else
12761 #          define LT_DLLAZY_OR_NOW      0
12762 #        endif
12763 #      endif
12764 #    endif
12765 #  endif
12766 #endif
12767
12768 void fnord() { int i=42;}
12769 int main ()
12770 {
12771   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12772   int status = $lt_dlunknown;
12773
12774   if (self)
12775     {
12776       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12777       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12778       /* dlclose (self); */
12779     }
12780   else
12781     puts (dlerror ());
12782
12783   return status;
12784 }
12785 _LT_EOF
12786   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787   (eval $ac_link) 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12791     (./conftest; exit; ) >&5 2>/dev/null
12792     lt_status=$?
12793     case x$lt_status in
12794       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12795       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12796       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12797     esac
12798   else :
12799     # compilation failed
12800     lt_cv_dlopen_self_static=no
12801   fi
12802 fi
12803 rm -fr conftest*
12804
12805
12806 fi
12807 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12808 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12809     fi
12810
12811     CPPFLAGS="$save_CPPFLAGS"
12812     LDFLAGS="$save_LDFLAGS"
12813     LIBS="$save_LIBS"
12814     ;;
12815   esac
12816
12817   case $lt_cv_dlopen_self in
12818   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12819   *) enable_dlopen_self=unknown ;;
12820   esac
12821
12822   case $lt_cv_dlopen_self_static in
12823   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12824   *) enable_dlopen_self_static=unknown ;;
12825   esac
12826 fi
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844 striplib=
12845 old_striplib=
12846 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12847 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12848 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12849   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12850   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12851   { echo "$as_me:$LINENO: result: yes" >&5
12852 echo "${ECHO_T}yes" >&6; }
12853 else
12854 # FIXME - insert some real tests, host_os isn't really good enough
12855   case $host_os in
12856   darwin*)
12857     if test -n "$STRIP" ; then
12858       striplib="$STRIP -x"
12859       old_striplib="$STRIP -S"
12860       { echo "$as_me:$LINENO: result: yes" >&5
12861 echo "${ECHO_T}yes" >&6; }
12862     else
12863       { echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6; }
12865     fi
12866     ;;
12867   *)
12868     { echo "$as_me:$LINENO: result: no" >&5
12869 echo "${ECHO_T}no" >&6; }
12870     ;;
12871   esac
12872 fi
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885   # Report which library types will actually be built
12886   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12887 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12888   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12889 echo "${ECHO_T}$can_build_shared" >&6; }
12890
12891   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12892 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12893   test "$can_build_shared" = "no" && enable_shared=no
12894
12895   # On AIX, shared libraries and static libraries use the same namespace, and
12896   # are all built from PIC.
12897   case $host_os in
12898   aix3*)
12899     test "$enable_shared" = yes && enable_static=no
12900     if test -n "$RANLIB"; then
12901       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12902       postinstall_cmds='$RANLIB $lib'
12903     fi
12904     ;;
12905
12906   aix[4-9]*)
12907     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12908       test "$enable_shared" = yes && enable_static=no
12909     fi
12910     ;;
12911   esac
12912   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12913 echo "${ECHO_T}$enable_shared" >&6; }
12914
12915   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12916 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12917   # Make sure either enable_shared or enable_static is yes.
12918   test "$enable_shared" = yes || enable_static=yes
12919   { echo "$as_me:$LINENO: result: $enable_static" >&5
12920 echo "${ECHO_T}$enable_static" >&6; }
12921
12922
12923
12924
12925 fi
12926 ac_ext=c
12927 ac_cpp='$CPP $CPPFLAGS'
12928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12931
12932 CC="$lt_save_CC"
12933
12934
12935 ac_ext=cpp
12936 ac_cpp='$CXXCPP $CPPFLAGS'
12937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12940
12941 archive_cmds_need_lc_CXX=no
12942 allow_undefined_flag_CXX=
12943 always_export_symbols_CXX=no
12944 archive_expsym_cmds_CXX=
12945 compiler_needs_object_CXX=no
12946 export_dynamic_flag_spec_CXX=
12947 hardcode_direct_CXX=no
12948 hardcode_direct_absolute_CXX=no
12949 hardcode_libdir_flag_spec_CXX=
12950 hardcode_libdir_flag_spec_ld_CXX=
12951 hardcode_libdir_separator_CXX=
12952 hardcode_minus_L_CXX=no
12953 hardcode_shlibpath_var_CXX=unsupported
12954 hardcode_automatic_CXX=no
12955 inherit_rpath_CXX=no
12956 module_cmds_CXX=
12957 module_expsym_cmds_CXX=
12958 link_all_deplibs_CXX=unknown
12959 old_archive_cmds_CXX=$old_archive_cmds
12960 no_undefined_flag_CXX=
12961 whole_archive_flag_spec_CXX=
12962 enable_shared_with_static_runtimes_CXX=no
12963
12964 # Source file extension for C++ test sources.
12965 ac_ext=cpp
12966
12967 # Object file extension for compiled C++ test sources.
12968 objext=o
12969 objext_CXX=$objext
12970
12971 # No sense in running all these tests if we already determined that
12972 # the CXX compiler isn't working.  Some variables (like enable_shared)
12973 # are currently assumed to apply to all compilers on this platform,
12974 # and will be corrupted by setting them based on a non-working compiler.
12975 if test "$_lt_caught_CXX_error" != yes; then
12976   # Code to be used in simple compile tests
12977   lt_simple_compile_test_code="int some_variable = 0;"
12978
12979   # Code to be used in simple link tests
12980   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12981
12982   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12983
12984
12985
12986
12987
12988
12989 # If no C compiler was specified, use CC.
12990 LTCC=${LTCC-"$CC"}
12991
12992 # If no C compiler flags were specified, use CFLAGS.
12993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12994
12995 # Allow CC to be a program name with arguments.
12996 compiler=$CC
12997
12998
12999   # save warnings/boilerplate of simple test code
13000   ac_outfile=conftest.$ac_objext
13001 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13002 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13003 _lt_compiler_boilerplate=`cat conftest.err`
13004 $RM conftest*
13005
13006   ac_outfile=conftest.$ac_objext
13007 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13008 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13009 _lt_linker_boilerplate=`cat conftest.err`
13010 $RM -r conftest*
13011
13012
13013   # Allow CC to be a program name with arguments.
13014   lt_save_CC=$CC
13015   lt_save_LD=$LD
13016   lt_save_GCC=$GCC
13017   GCC=$GXX
13018   lt_save_with_gnu_ld=$with_gnu_ld
13019   lt_save_path_LD=$lt_cv_path_LD
13020   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13021     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13022   else
13023     $as_unset lt_cv_prog_gnu_ld
13024   fi
13025   if test -n "${lt_cv_path_LDCXX+set}"; then
13026     lt_cv_path_LD=$lt_cv_path_LDCXX
13027   else
13028     $as_unset lt_cv_path_LD
13029   fi
13030   test -z "${LDCXX+set}" || LD=$LDCXX
13031   CC=${CXX-"c++"}
13032   compiler=$CC
13033   compiler_CXX=$CC
13034   for cc_temp in $compiler""; do
13035   case $cc_temp in
13036     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13037     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13038     \-*) ;;
13039     *) break;;
13040   esac
13041 done
13042 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13043
13044
13045   if test -n "$compiler"; then
13046     # We don't want -fno-exception when compiling C++ code, so set the
13047     # no_builtin_flag separately
13048     if test "$GXX" = yes; then
13049       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13050     else
13051       lt_prog_compiler_no_builtin_flag_CXX=
13052     fi
13053
13054     if test "$GXX" = yes; then
13055       # Set up default GNU C++ configuration
13056
13057
13058
13059 # Check whether --with-gnu-ld was given.
13060 if test "${with_gnu_ld+set}" = set; then
13061   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13062 else
13063   with_gnu_ld=no
13064 fi
13065
13066 ac_prog=ld
13067 if test "$GCC" = yes; then
13068   # Check if gcc -print-prog-name=ld gives a path.
13069   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13070 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13071   case $host in
13072   *-*-mingw*)
13073     # gcc leaves a trailing carriage return which upsets mingw
13074     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13075   *)
13076     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13077   esac
13078   case $ac_prog in
13079     # Accept absolute paths.
13080     [\\/]* | ?:[\\/]*)
13081       re_direlt='/[^/][^/]*/\.\./'
13082       # Canonicalize the pathname of ld
13083       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13084       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13085         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13086       done
13087       test -z "$LD" && LD="$ac_prog"
13088       ;;
13089   "")
13090     # If it fails, then pretend we aren't using GCC.
13091     ac_prog=ld
13092     ;;
13093   *)
13094     # If it is relative, then search for the first ld in PATH.
13095     with_gnu_ld=unknown
13096     ;;
13097   esac
13098 elif test "$with_gnu_ld" = yes; then
13099   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13100 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13101 else
13102   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13103 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13104 fi
13105 if test "${lt_cv_path_LD+set}" = set; then
13106   echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108   if test -z "$LD"; then
13109   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13110   for ac_dir in $PATH; do
13111     IFS="$lt_save_ifs"
13112     test -z "$ac_dir" && ac_dir=.
13113     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13114       lt_cv_path_LD="$ac_dir/$ac_prog"
13115       # Check to see if the program is GNU ld.  I'd rather use --version,
13116       # but apparently some variants of GNU ld only accept -v.
13117       # Break only if it was the GNU/non-GNU ld that we prefer.
13118       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13119       *GNU* | *'with BFD'*)
13120         test "$with_gnu_ld" != no && break
13121         ;;
13122       *)
13123         test "$with_gnu_ld" != yes && break
13124         ;;
13125       esac
13126     fi
13127   done
13128   IFS="$lt_save_ifs"
13129 else
13130   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13131 fi
13132 fi
13133
13134 LD="$lt_cv_path_LD"
13135 if test -n "$LD"; then
13136   { echo "$as_me:$LINENO: result: $LD" >&5
13137 echo "${ECHO_T}$LD" >&6; }
13138 else
13139   { echo "$as_me:$LINENO: result: no" >&5
13140 echo "${ECHO_T}no" >&6; }
13141 fi
13142 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13143 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13144    { (exit 1); exit 1; }; }
13145 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13146 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13147 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13148   echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13151 case `$LD -v 2>&1 </dev/null` in
13152 *GNU* | *'with BFD'*)
13153   lt_cv_prog_gnu_ld=yes
13154   ;;
13155 *)
13156   lt_cv_prog_gnu_ld=no
13157   ;;
13158 esac
13159 fi
13160 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13161 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13162 with_gnu_ld=$lt_cv_prog_gnu_ld
13163
13164
13165
13166
13167
13168
13169
13170       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13171       # archiving commands below assume that GNU ld is being used.
13172       if test "$with_gnu_ld" = yes; then
13173         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13174         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'
13175
13176         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13177         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13178
13179         # If archive_cmds runs LD, not CC, wlarc should be empty
13180         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13181         #     investigate it a little bit more. (MM)
13182         wlarc='${wl}'
13183
13184         # ancient GNU ld didn't support --whole-archive et. al.
13185         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13186           $GREP 'no-whole-archive' > /dev/null; then
13187           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13188         else
13189           whole_archive_flag_spec_CXX=
13190         fi
13191       else
13192         with_gnu_ld=no
13193         wlarc=
13194
13195         # A generic and very simple default shared library creation
13196         # command for GNU C++ for the case where it uses the native
13197         # linker, instead of GNU ld.  If possible, this setting should
13198         # overridden to take advantage of the native linker features on
13199         # the platform it is being used on.
13200         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13201       fi
13202
13203       # Commands to make compiler produce verbose output that lists
13204       # what "hidden" libraries, object files and flags are used when
13205       # linking a shared library.
13206       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13207
13208     else
13209       GXX=no
13210       with_gnu_ld=no
13211       wlarc=
13212     fi
13213
13214     # PORTME: fill in a description of your system's C++ link characteristics
13215     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13216 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13217     ld_shlibs_CXX=yes
13218     case $host_os in
13219       aix3*)
13220         # FIXME: insert proper C++ library support
13221         ld_shlibs_CXX=no
13222         ;;
13223       aix[4-9]*)
13224         if test "$host_cpu" = ia64; then
13225           # On IA64, the linker does run time linking by default, so we don't
13226           # have to do anything special.
13227           aix_use_runtimelinking=no
13228           exp_sym_flag='-Bexport'
13229           no_entry_flag=""
13230         else
13231           aix_use_runtimelinking=no
13232
13233           # Test if we are trying to use run time linking or normal
13234           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13235           # need to do runtime linking.
13236           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13237             for ld_flag in $LDFLAGS; do
13238               case $ld_flag in
13239               *-brtl*)
13240                 aix_use_runtimelinking=yes
13241                 break
13242                 ;;
13243               esac
13244             done
13245             ;;
13246           esac
13247
13248           exp_sym_flag='-bexport'
13249           no_entry_flag='-bnoentry'
13250         fi
13251
13252         # When large executables or shared objects are built, AIX ld can
13253         # have problems creating the table of contents.  If linking a library
13254         # or program results in "error TOC overflow" add -mminimal-toc to
13255         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13256         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13257
13258         archive_cmds_CXX=''
13259         hardcode_direct_CXX=yes
13260         hardcode_direct_absolute_CXX=yes
13261         hardcode_libdir_separator_CXX=':'
13262         link_all_deplibs_CXX=yes
13263         file_list_spec_CXX='${wl}-f,'
13264
13265         if test "$GXX" = yes; then
13266           case $host_os in aix4.[012]|aix4.[012].*)
13267           # We only want to do this on AIX 4.2 and lower, the check
13268           # below for broken collect2 doesn't work under 4.3+
13269           collect2name=`${CC} -print-prog-name=collect2`
13270           if test -f "$collect2name" &&
13271              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13272           then
13273             # We have reworked collect2
13274             :
13275           else
13276             # We have old collect2
13277             hardcode_direct_CXX=unsupported
13278             # It fails to find uninstalled libraries when the uninstalled
13279             # path is not listed in the libpath.  Setting hardcode_minus_L
13280             # to unsupported forces relinking
13281             hardcode_minus_L_CXX=yes
13282             hardcode_libdir_flag_spec_CXX='-L$libdir'
13283             hardcode_libdir_separator_CXX=
13284           fi
13285           esac
13286           shared_flag='-shared'
13287           if test "$aix_use_runtimelinking" = yes; then
13288             shared_flag="$shared_flag "'${wl}-G'
13289           fi
13290         else
13291           # not using gcc
13292           if test "$host_cpu" = ia64; then
13293           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13294           # chokes on -Wl,-G. The following line is correct:
13295           shared_flag='-G'
13296           else
13297             if test "$aix_use_runtimelinking" = yes; then
13298               shared_flag='${wl}-G'
13299             else
13300               shared_flag='${wl}-bM:SRE'
13301             fi
13302           fi
13303         fi
13304
13305         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13306         # It seems that -bexpall does not export symbols beginning with
13307         # underscore (_), so it is better to generate a list of symbols to
13308         # export.
13309         always_export_symbols_CXX=yes
13310         if test "$aix_use_runtimelinking" = yes; then
13311           # Warning - without using the other runtime loading flags (-brtl),
13312           # -berok will link without error, but may produce a broken library.
13313           allow_undefined_flag_CXX='-berok'
13314           # Determine the default libpath from the value encoded in an empty
13315           # executable.
13316           cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h.  */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h.  */
13322
13323 int
13324 main ()
13325 {
13326
13327   ;
13328   return 0;
13329 }
13330 _ACEOF
13331 rm -f conftest.$ac_objext conftest$ac_exeext
13332 if { (ac_try="$ac_link"
13333 case "(($ac_try" in
13334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335   *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338   (eval "$ac_link") 2>conftest.er1
13339   ac_status=$?
13340   grep -v '^ *+' conftest.er1 >conftest.err
13341   rm -f conftest.er1
13342   cat conftest.err >&5
13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344   (exit $ac_status); } && {
13345          test -z "$ac_cxx_werror_flag" ||
13346          test ! -s conftest.err
13347        } && test -s conftest$ac_exeext &&
13348        $as_test_x conftest$ac_exeext; then
13349
13350 lt_aix_libpath_sed='
13351     /Import File Strings/,/^$/ {
13352         /^0/ {
13353             s/^0  *\(.*\)$/\1/
13354             p
13355         }
13356     }'
13357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13358 # Check for a 64-bit object if we didn't find anything.
13359 if test -z "$aix_libpath"; then
13360   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13361 fi
13362 else
13363   echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13365
13366
13367 fi
13368
13369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13370       conftest$ac_exeext conftest.$ac_ext
13371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13372
13373           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13374
13375           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"
13376         else
13377           if test "$host_cpu" = ia64; then
13378             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13379             allow_undefined_flag_CXX="-z nodefs"
13380             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"
13381           else
13382             # Determine the default libpath from the value encoded in an
13383             # empty executable.
13384             cat >conftest.$ac_ext <<_ACEOF
13385 /* confdefs.h.  */
13386 _ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h.  */
13390
13391 int
13392 main ()
13393 {
13394
13395   ;
13396   return 0;
13397 }
13398 _ACEOF
13399 rm -f conftest.$ac_objext conftest$ac_exeext
13400 if { (ac_try="$ac_link"
13401 case "(($ac_try" in
13402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403   *) ac_try_echo=$ac_try;;
13404 esac
13405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406   (eval "$ac_link") 2>conftest.er1
13407   ac_status=$?
13408   grep -v '^ *+' conftest.er1 >conftest.err
13409   rm -f conftest.er1
13410   cat conftest.err >&5
13411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412   (exit $ac_status); } && {
13413          test -z "$ac_cxx_werror_flag" ||
13414          test ! -s conftest.err
13415        } && test -s conftest$ac_exeext &&
13416        $as_test_x conftest$ac_exeext; then
13417
13418 lt_aix_libpath_sed='
13419     /Import File Strings/,/^$/ {
13420         /^0/ {
13421             s/^0  *\(.*\)$/\1/
13422             p
13423         }
13424     }'
13425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13426 # Check for a 64-bit object if we didn't find anything.
13427 if test -z "$aix_libpath"; then
13428   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13429 fi
13430 else
13431   echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13433
13434
13435 fi
13436
13437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13438       conftest$ac_exeext conftest.$ac_ext
13439 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13440
13441             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13442             # Warning - without using the other run time loading flags,
13443             # -berok will link without error, but may produce a broken library.
13444             no_undefined_flag_CXX=' ${wl}-bernotok'
13445             allow_undefined_flag_CXX=' ${wl}-berok'
13446             # Exported symbols can be pulled into shared objects from archives
13447             whole_archive_flag_spec_CXX='$convenience'
13448             archive_cmds_need_lc_CXX=yes
13449             # This is similar to how AIX traditionally builds its shared
13450             # libraries.
13451             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'
13452           fi
13453         fi
13454         ;;
13455
13456       beos*)
13457         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13458           allow_undefined_flag_CXX=unsupported
13459           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13460           # support --undefined.  This deserves some investigation.  FIXME
13461           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13462         else
13463           ld_shlibs_CXX=no
13464         fi
13465         ;;
13466
13467       chorus*)
13468         case $cc_basename in
13469           *)
13470           # FIXME: insert proper C++ library support
13471           ld_shlibs_CXX=no
13472           ;;
13473         esac
13474         ;;
13475
13476       cygwin* | mingw* | pw32* | cegcc*)
13477         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13478         # as there is no search path for DLLs.
13479         hardcode_libdir_flag_spec_CXX='-L$libdir'
13480         allow_undefined_flag_CXX=unsupported
13481         always_export_symbols_CXX=no
13482         enable_shared_with_static_runtimes_CXX=yes
13483
13484         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13485           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'
13486           # If the export-symbols file already is a .def file (1st line
13487           # is EXPORTS), use it as is; otherwise, prepend...
13488           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13489             cp $export_symbols $output_objdir/$soname.def;
13490           else
13491             echo EXPORTS > $output_objdir/$soname.def;
13492             cat $export_symbols >> $output_objdir/$soname.def;
13493           fi~
13494           $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'
13495         else
13496           ld_shlibs_CXX=no
13497         fi
13498         ;;
13499       darwin* | rhapsody*)
13500
13501
13502   archive_cmds_need_lc_CXX=no
13503   hardcode_direct_CXX=no
13504   hardcode_automatic_CXX=yes
13505   hardcode_shlibpath_var_CXX=unsupported
13506   whole_archive_flag_spec_CXX=''
13507   link_all_deplibs_CXX=yes
13508   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13509   case $cc_basename in
13510      ifort*) _lt_dar_can_shared=yes ;;
13511      *) _lt_dar_can_shared=$GCC ;;
13512   esac
13513   if test "$_lt_dar_can_shared" = "yes"; then
13514     output_verbose_link_cmd=echo
13515     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}"
13516     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13517     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}"
13518     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}"
13519        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13520       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}"
13521       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}"
13522     fi
13523
13524   else
13525   ld_shlibs_CXX=no
13526   fi
13527
13528         ;;
13529
13530       dgux*)
13531         case $cc_basename in
13532           ec++*)
13533             # FIXME: insert proper C++ library support
13534             ld_shlibs_CXX=no
13535             ;;
13536           ghcx*)
13537             # Green Hills C++ Compiler
13538             # FIXME: insert proper C++ library support
13539             ld_shlibs_CXX=no
13540             ;;
13541           *)
13542             # FIXME: insert proper C++ library support
13543             ld_shlibs_CXX=no
13544             ;;
13545         esac
13546         ;;
13547
13548       freebsd[12]*)
13549         # C++ shared libraries reported to be fairly broken before
13550         # switch to ELF
13551         ld_shlibs_CXX=no
13552         ;;
13553
13554       freebsd-elf*)
13555         archive_cmds_need_lc_CXX=no
13556         ;;
13557
13558       freebsd* | dragonfly*)
13559         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13560         # conventions
13561         ld_shlibs_CXX=yes
13562         ;;
13563
13564       gnu*)
13565         ;;
13566
13567       hpux9*)
13568         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13569         hardcode_libdir_separator_CXX=:
13570         export_dynamic_flag_spec_CXX='${wl}-E'
13571         hardcode_direct_CXX=yes
13572         hardcode_minus_L_CXX=yes # Not in the search PATH,
13573                                              # but as the default
13574                                              # location of the library.
13575
13576         case $cc_basename in
13577           CC*)
13578             # FIXME: insert proper C++ library support
13579             ld_shlibs_CXX=no
13580             ;;
13581           aCC*)
13582             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'
13583             # Commands to make compiler produce verbose output that lists
13584             # what "hidden" libraries, object files and flags are used when
13585             # linking a shared library.
13586             #
13587             # There doesn't appear to be a way to prevent this compiler from
13588             # explicitly linking system object files so we need to strip them
13589             # from the output so that they don't get included in the library
13590             # dependencies.
13591             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'
13592             ;;
13593           *)
13594             if test "$GXX" = yes; then
13595               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'
13596             else
13597               # FIXME: insert proper C++ library support
13598               ld_shlibs_CXX=no
13599             fi
13600             ;;
13601         esac
13602         ;;
13603
13604       hpux10*|hpux11*)
13605         if test $with_gnu_ld = no; then
13606           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13607           hardcode_libdir_separator_CXX=:
13608
13609           case $host_cpu in
13610             hppa*64*|ia64*)
13611               ;;
13612             *)
13613               export_dynamic_flag_spec_CXX='${wl}-E'
13614               ;;
13615           esac
13616         fi
13617         case $host_cpu in
13618           hppa*64*|ia64*)
13619             hardcode_direct_CXX=no
13620             hardcode_shlibpath_var_CXX=no
13621             ;;
13622           *)
13623             hardcode_direct_CXX=yes
13624             hardcode_direct_absolute_CXX=yes
13625             hardcode_minus_L_CXX=yes # Not in the search PATH,
13626                                                  # but as the default
13627                                                  # location of the library.
13628             ;;
13629         esac
13630
13631         case $cc_basename in
13632           CC*)
13633             # FIXME: insert proper C++ library support
13634             ld_shlibs_CXX=no
13635             ;;
13636           aCC*)
13637             case $host_cpu in
13638               hppa*64*)
13639                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13640                 ;;
13641               ia64*)
13642                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13643                 ;;
13644               *)
13645                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13646                 ;;
13647             esac
13648             # Commands to make compiler produce verbose output that lists
13649             # what "hidden" libraries, object files and flags are used when
13650             # linking a shared library.
13651             #
13652             # There doesn't appear to be a way to prevent this compiler from
13653             # explicitly linking system object files so we need to strip them
13654             # from the output so that they don't get included in the library
13655             # dependencies.
13656             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'
13657             ;;
13658           *)
13659             if test "$GXX" = yes; then
13660               if test $with_gnu_ld = no; then
13661                 case $host_cpu in
13662                   hppa*64*)
13663                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13664                     ;;
13665                   ia64*)
13666                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13667                     ;;
13668                   *)
13669                     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'
13670                     ;;
13671                 esac
13672               fi
13673             else
13674               # FIXME: insert proper C++ library support
13675               ld_shlibs_CXX=no
13676             fi
13677             ;;
13678         esac
13679         ;;
13680
13681       interix[3-9]*)
13682         hardcode_direct_CXX=no
13683         hardcode_shlibpath_var_CXX=no
13684         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13685         export_dynamic_flag_spec_CXX='${wl}-E'
13686         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13687         # Instead, shared libraries are loaded at an image base (0x10000000 by
13688         # default) and relocated if they conflict, which is a slow very memory
13689         # consuming and fragmenting process.  To avoid this, we pick a random,
13690         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13691         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13692         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'
13693         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'
13694         ;;
13695       irix5* | irix6*)
13696         case $cc_basename in
13697           CC*)
13698             # SGI C++
13699             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'
13700
13701             # Archives containing C++ object files must be created using
13702             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13703             # necessary to make sure instantiated templates are included
13704             # in the archive.
13705             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13706             ;;
13707           *)
13708             if test "$GXX" = yes; then
13709               if test "$with_gnu_ld" = no; then
13710                 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'
13711               else
13712                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13713               fi
13714             fi
13715             link_all_deplibs_CXX=yes
13716             ;;
13717         esac
13718         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13719         hardcode_libdir_separator_CXX=:
13720         inherit_rpath_CXX=yes
13721         ;;
13722
13723       linux* | k*bsd*-gnu)
13724         case $cc_basename in
13725           KCC*)
13726             # Kuck and Associates, Inc. (KAI) C++ Compiler
13727
13728             # KCC will only create a shared library if the output file
13729             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13730             # to its proper name (with version) after linking.
13731             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'
13732             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'
13733             # Commands to make compiler produce verbose output that lists
13734             # what "hidden" libraries, object files and flags are used when
13735             # linking a shared library.
13736             #
13737             # There doesn't appear to be a way to prevent this compiler from
13738             # explicitly linking system object files so we need to strip them
13739             # from the output so that they don't get included in the library
13740             # dependencies.
13741             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'
13742
13743             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13744             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13745
13746             # Archives containing C++ object files must be created using
13747             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13748             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13749             ;;
13750           icpc* | ecpc* )
13751             # Intel C++
13752             with_gnu_ld=yes
13753             # version 8.0 and above of icpc choke on multiply defined symbols
13754             # if we add $predep_objects and $postdep_objects, however 7.1 and
13755             # earlier do not add the objects themselves.
13756             case `$CC -V 2>&1` in
13757               *"Version 7."*)
13758                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13759                 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'
13760                 ;;
13761               *)  # Version 8.0 or newer
13762                 tmp_idyn=
13763                 case $host_cpu in
13764                   ia64*) tmp_idyn=' -i_dynamic';;
13765                 esac
13766                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13767                 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'
13768                 ;;
13769             esac
13770             archive_cmds_need_lc_CXX=no
13771             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13772             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13773             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13774             ;;
13775           pgCC* | pgcpp*)
13776             # Portland Group C++ compiler
13777             case `$CC -V` in
13778             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13779               prelink_cmds_CXX='tpldir=Template.dir~
13780                 rm -rf $tpldir~
13781                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13782                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13783               old_archive_cmds_CXX='tpldir=Template.dir~
13784                 rm -rf $tpldir~
13785                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13786                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13787                 $RANLIB $oldlib'
13788               archive_cmds_CXX='tpldir=Template.dir~
13789                 rm -rf $tpldir~
13790                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13791                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13792               archive_expsym_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 ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13796               ;;
13797             *) # Version 6 will use weak symbols
13798               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13799               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'
13800               ;;
13801             esac
13802
13803             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13804             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13805             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'
13806             ;;
13807           cxx*)
13808             # Compaq C++
13809             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13810             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'
13811
13812             runpath_var=LD_RUN_PATH
13813             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13814             hardcode_libdir_separator_CXX=:
13815
13816             # Commands to make compiler produce verbose output that lists
13817             # what "hidden" libraries, object files and flags are used when
13818             # linking a shared library.
13819             #
13820             # There doesn't appear to be a way to prevent this compiler from
13821             # explicitly linking system object files so we need to strip them
13822             # from the output so that they don't get included in the library
13823             # dependencies.
13824             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'
13825             ;;
13826           xl*)
13827             # IBM XL 8.0 on PPC, with GNU ld
13828             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13829             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13830             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13831             if test "x$supports_anon_versioning" = xyes; then
13832               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13833                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13834                 echo "local: *; };" >> $output_objdir/$libname.ver~
13835                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13836             fi
13837             ;;
13838           *)
13839             case `$CC -V 2>&1 | sed 5q` in
13840             *Sun\ C*)
13841               # Sun C++ 5.9
13842               no_undefined_flag_CXX=' -zdefs'
13843               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13844               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'
13845               hardcode_libdir_flag_spec_CXX='-R$libdir'
13846               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'
13847               compiler_needs_object_CXX=yes
13848
13849               # Not sure whether something based on
13850               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13851               # would be better.
13852               output_verbose_link_cmd='echo'
13853
13854               # Archives containing C++ object files must be created using
13855               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13856               # necessary to make sure instantiated templates are included
13857               # in the archive.
13858               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13859               ;;
13860             esac
13861             ;;
13862         esac
13863         ;;
13864
13865       lynxos*)
13866         # FIXME: insert proper C++ library support
13867         ld_shlibs_CXX=no
13868         ;;
13869
13870       m88k*)
13871         # FIXME: insert proper C++ library support
13872         ld_shlibs_CXX=no
13873         ;;
13874
13875       mvs*)
13876         case $cc_basename in
13877           cxx*)
13878             # FIXME: insert proper C++ library support
13879             ld_shlibs_CXX=no
13880             ;;
13881           *)
13882             # FIXME: insert proper C++ library support
13883             ld_shlibs_CXX=no
13884             ;;
13885         esac
13886         ;;
13887
13888       netbsd*)
13889         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13890           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13891           wlarc=
13892           hardcode_libdir_flag_spec_CXX='-R$libdir'
13893           hardcode_direct_CXX=yes
13894           hardcode_shlibpath_var_CXX=no
13895         fi
13896         # Workaround some broken pre-1.5 toolchains
13897         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13898         ;;
13899
13900       *nto* | *qnx*)
13901         ld_shlibs_CXX=yes
13902         ;;
13903
13904       openbsd2*)
13905         # C++ shared libraries are fairly broken
13906         ld_shlibs_CXX=no
13907         ;;
13908
13909       openbsd*)
13910         if test -f /usr/libexec/ld.so; then
13911           hardcode_direct_CXX=yes
13912           hardcode_shlibpath_var_CXX=no
13913           hardcode_direct_absolute_CXX=yes
13914           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13915           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13916           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13917             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13918             export_dynamic_flag_spec_CXX='${wl}-E'
13919             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13920           fi
13921           output_verbose_link_cmd=echo
13922         else
13923           ld_shlibs_CXX=no
13924         fi
13925         ;;
13926
13927       osf3* | osf4* | osf5*)
13928         case $cc_basename in
13929           KCC*)
13930             # Kuck and Associates, Inc. (KAI) C++ Compiler
13931
13932             # KCC will only create a shared library if the output file
13933             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13934             # to its proper name (with version) after linking.
13935             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'
13936
13937             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13938             hardcode_libdir_separator_CXX=:
13939
13940             # Archives containing C++ object files must be created using
13941             # the KAI C++ compiler.
13942             case $host in
13943               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13944               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13945             esac
13946             ;;
13947           RCC*)
13948             # Rational C++ 2.4.1
13949             # FIXME: insert proper C++ library support
13950             ld_shlibs_CXX=no
13951             ;;
13952           cxx*)
13953             case $host in
13954               osf3*)
13955                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13956                 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'
13957                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13958                 ;;
13959               *)
13960                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13961                 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'
13962                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13963                   echo "-hidden">> $lib.exp~
13964                   $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~
13965                   $RM $lib.exp'
13966                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13967                 ;;
13968             esac
13969
13970             hardcode_libdir_separator_CXX=:
13971
13972             # Commands to make compiler produce verbose output that lists
13973             # what "hidden" libraries, object files and flags are used when
13974             # linking a shared library.
13975             #
13976             # There doesn't appear to be a way to prevent this compiler from
13977             # explicitly linking system object files so we need to strip them
13978             # from the output so that they don't get included in the library
13979             # dependencies.
13980             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'
13981             ;;
13982           *)
13983             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13984               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13985               case $host in
13986                 osf3*)
13987                   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'
13988                   ;;
13989                 *)
13990                   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'
13991                   ;;
13992               esac
13993
13994               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13995               hardcode_libdir_separator_CXX=:
13996
13997               # Commands to make compiler produce verbose output that lists
13998               # what "hidden" libraries, object files and flags are used when
13999               # linking a shared library.
14000               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14001
14002             else
14003               # FIXME: insert proper C++ library support
14004               ld_shlibs_CXX=no
14005             fi
14006             ;;
14007         esac
14008         ;;
14009
14010       psos*)
14011         # FIXME: insert proper C++ library support
14012         ld_shlibs_CXX=no
14013         ;;
14014
14015       sunos4*)
14016         case $cc_basename in
14017           CC*)
14018             # Sun C++ 4.x
14019             # FIXME: insert proper C++ library support
14020             ld_shlibs_CXX=no
14021             ;;
14022           lcc*)
14023             # Lucid
14024             # FIXME: insert proper C++ library support
14025             ld_shlibs_CXX=no
14026             ;;
14027           *)
14028             # FIXME: insert proper C++ library support
14029             ld_shlibs_CXX=no
14030             ;;
14031         esac
14032         ;;
14033
14034       solaris*)
14035         case $cc_basename in
14036           CC*)
14037             # Sun C++ 4.2, 5.x and Centerline C++
14038             archive_cmds_need_lc_CXX=yes
14039             no_undefined_flag_CXX=' -zdefs'
14040             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14041             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14042               $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'
14043
14044             hardcode_libdir_flag_spec_CXX='-R$libdir'
14045             hardcode_shlibpath_var_CXX=no
14046             case $host_os in
14047               solaris2.[0-5] | solaris2.[0-5].*) ;;
14048               *)
14049                 # The compiler driver will combine and reorder linker options,
14050                 # but understands `-z linker_flag'.
14051                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14052                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14053                 ;;
14054             esac
14055             link_all_deplibs_CXX=yes
14056
14057             output_verbose_link_cmd='echo'
14058
14059             # Archives containing C++ object files must be created using
14060             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14061             # necessary to make sure instantiated templates are included
14062             # in the archive.
14063             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14064             ;;
14065           gcx*)
14066             # Green Hills C++ Compiler
14067             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14068
14069             # The C++ compiler must be used to create the archive.
14070             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14071             ;;
14072           *)
14073             # GNU C++ compiler with Solaris linker
14074             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14075               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14076               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14077                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14078                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14079                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14080
14081                 # Commands to make compiler produce verbose output that lists
14082                 # what "hidden" libraries, object files and flags are used when
14083                 # linking a shared library.
14084                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14085               else
14086                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14087                 # platform.
14088                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14089                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14090                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14091
14092                 # Commands to make compiler produce verbose output that lists
14093                 # what "hidden" libraries, object files and flags are used when
14094                 # linking a shared library.
14095                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14096               fi
14097
14098               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14099               case $host_os in
14100                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14101                 *)
14102                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14103                   ;;
14104               esac
14105             fi
14106             ;;
14107         esac
14108         ;;
14109
14110     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14111       no_undefined_flag_CXX='${wl}-z,text'
14112       archive_cmds_need_lc_CXX=no
14113       hardcode_shlibpath_var_CXX=no
14114       runpath_var='LD_RUN_PATH'
14115
14116       case $cc_basename in
14117         CC*)
14118           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14119           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14120           ;;
14121         *)
14122           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14123           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14124           ;;
14125       esac
14126       ;;
14127
14128       sysv5* | sco3.2v5* | sco5v6*)
14129         # Note: We can NOT use -z defs as we might desire, because we do not
14130         # link with -lc, and that would cause any symbols used from libc to
14131         # always be unresolved, which means just about no library would
14132         # ever link correctly.  If we're not using GNU ld we use -z text
14133         # though, which does catch some bad symbols but isn't as heavy-handed
14134         # as -z defs.
14135         no_undefined_flag_CXX='${wl}-z,text'
14136         allow_undefined_flag_CXX='${wl}-z,nodefs'
14137         archive_cmds_need_lc_CXX=no
14138         hardcode_shlibpath_var_CXX=no
14139         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14140         hardcode_libdir_separator_CXX=':'
14141         link_all_deplibs_CXX=yes
14142         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14143         runpath_var='LD_RUN_PATH'
14144
14145         case $cc_basename in
14146           CC*)
14147             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14148             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14149             ;;
14150           *)
14151             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14152             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14153             ;;
14154         esac
14155       ;;
14156
14157       tandem*)
14158         case $cc_basename in
14159           NCC*)
14160             # NonStop-UX NCC 3.20
14161             # FIXME: insert proper C++ library support
14162             ld_shlibs_CXX=no
14163             ;;
14164           *)
14165             # FIXME: insert proper C++ library support
14166             ld_shlibs_CXX=no
14167             ;;
14168         esac
14169         ;;
14170
14171       vxworks*)
14172         # FIXME: insert proper C++ library support
14173         ld_shlibs_CXX=no
14174         ;;
14175
14176       *)
14177         # FIXME: insert proper C++ library support
14178         ld_shlibs_CXX=no
14179         ;;
14180     esac
14181
14182     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14183 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14184     test "$ld_shlibs_CXX" = no && can_build_shared=no
14185
14186     GCC_CXX="$GXX"
14187     LD_CXX="$LD"
14188
14189     ## CAVEAT EMPTOR:
14190     ## There is no encapsulation within the following macros, do not change
14191     ## the running order or otherwise move them around unless you know exactly
14192     ## what you are doing...
14193     # Dependencies to place before and after the object being linked:
14194 predep_objects_CXX=
14195 postdep_objects_CXX=
14196 predeps_CXX=
14197 postdeps_CXX=
14198 compiler_lib_search_path_CXX=
14199
14200 cat > conftest.$ac_ext <<_LT_EOF
14201 class Foo
14202 {
14203 public:
14204   Foo (void) { a = 0; }
14205 private:
14206   int a;
14207 };
14208 _LT_EOF
14209
14210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14211   (eval $ac_compile) 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); }; then
14215   # Parse the compiler output and extract the necessary
14216   # objects, libraries and library flags.
14217
14218   # Sentinel used to keep track of whether or not we are before
14219   # the conftest object file.
14220   pre_test_object_deps_done=no
14221
14222   for p in `eval "$output_verbose_link_cmd"`; do
14223     case $p in
14224
14225     -L* | -R* | -l*)
14226        # Some compilers place space between "-{L,R}" and the path.
14227        # Remove the space.
14228        if test $p = "-L" ||
14229           test $p = "-R"; then
14230          prev=$p
14231          continue
14232        else
14233          prev=
14234        fi
14235
14236        if test "$pre_test_object_deps_done" = no; then
14237          case $p in
14238          -L* | -R*)
14239            # Internal compiler library paths should come after those
14240            # provided the user.  The postdeps already come after the
14241            # user supplied libs so there is no need to process them.
14242            if test -z "$compiler_lib_search_path_CXX"; then
14243              compiler_lib_search_path_CXX="${prev}${p}"
14244            else
14245              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14246            fi
14247            ;;
14248          # The "-l" case would never come before the object being
14249          # linked, so don't bother handling this case.
14250          esac
14251        else
14252          if test -z "$postdeps_CXX"; then
14253            postdeps_CXX="${prev}${p}"
14254          else
14255            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14256          fi
14257        fi
14258        ;;
14259
14260     *.$objext)
14261        # This assumes that the test object file only shows up
14262        # once in the compiler output.
14263        if test "$p" = "conftest.$objext"; then
14264          pre_test_object_deps_done=yes
14265          continue
14266        fi
14267
14268        if test "$pre_test_object_deps_done" = no; then
14269          if test -z "$predep_objects_CXX"; then
14270            predep_objects_CXX="$p"
14271          else
14272            predep_objects_CXX="$predep_objects_CXX $p"
14273          fi
14274        else
14275          if test -z "$postdep_objects_CXX"; then
14276            postdep_objects_CXX="$p"
14277          else
14278            postdep_objects_CXX="$postdep_objects_CXX $p"
14279          fi
14280        fi
14281        ;;
14282
14283     *) ;; # Ignore the rest.
14284
14285     esac
14286   done
14287
14288   # Clean up.
14289   rm -f a.out a.exe
14290 else
14291   echo "libtool.m4: error: problem compiling CXX test program"
14292 fi
14293
14294 $RM -f confest.$objext
14295
14296 # PORTME: override above test on systems where it is broken
14297 case $host_os in
14298 interix[3-9]*)
14299   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14300   # hack all around it, let's just trust "g++" to DTRT.
14301   predep_objects_CXX=
14302   postdep_objects_CXX=
14303   postdeps_CXX=
14304   ;;
14305
14306 linux*)
14307   case `$CC -V 2>&1 | sed 5q` in
14308   *Sun\ C*)
14309     # Sun C++ 5.9
14310
14311     # The more standards-conforming stlport4 library is
14312     # incompatible with the Cstd library. Avoid specifying
14313     # it if it's in CXXFLAGS. Ignore libCrun as
14314     # -library=stlport4 depends on it.
14315     case " $CXX $CXXFLAGS " in
14316     *" -library=stlport4 "*)
14317       solaris_use_stlport4=yes
14318       ;;
14319     esac
14320
14321     if test "$solaris_use_stlport4" != yes; then
14322       postdeps_CXX='-library=Cstd -library=Crun'
14323     fi
14324     ;;
14325   esac
14326   ;;
14327
14328 solaris*)
14329   case $cc_basename in
14330   CC*)
14331     # The more standards-conforming stlport4 library is
14332     # incompatible with the Cstd library. Avoid specifying
14333     # it if it's in CXXFLAGS. Ignore libCrun as
14334     # -library=stlport4 depends on it.
14335     case " $CXX $CXXFLAGS " in
14336     *" -library=stlport4 "*)
14337       solaris_use_stlport4=yes
14338       ;;
14339     esac
14340
14341     # Adding this requires a known-good setup of shared libraries for
14342     # Sun compiler versions before 5.6, else PIC objects from an old
14343     # archive will be linked into the output, leading to subtle bugs.
14344     if test "$solaris_use_stlport4" != yes; then
14345       postdeps_CXX='-library=Cstd -library=Crun'
14346     fi
14347     ;;
14348   esac
14349   ;;
14350 esac
14351
14352
14353 case " $postdeps_CXX " in
14354 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14355 esac
14356  compiler_lib_search_dirs_CXX=
14357 if test -n "${compiler_lib_search_path_CXX}"; then
14358  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14359 fi
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391     lt_prog_compiler_wl_CXX=
14392 lt_prog_compiler_pic_CXX=
14393 lt_prog_compiler_static_CXX=
14394
14395 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14396 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14397
14398   # C++ specific cases for pic, static, wl, etc.
14399   if test "$GXX" = yes; then
14400     lt_prog_compiler_wl_CXX='-Wl,'
14401     lt_prog_compiler_static_CXX='-static'
14402
14403     case $host_os in
14404     aix*)
14405       # All AIX code is PIC.
14406       if test "$host_cpu" = ia64; then
14407         # AIX 5 now supports IA64 processor
14408         lt_prog_compiler_static_CXX='-Bstatic'
14409       fi
14410       ;;
14411
14412     amigaos*)
14413       case $host_cpu in
14414       powerpc)
14415             # see comment about AmigaOS4 .so support
14416             lt_prog_compiler_pic_CXX='-fPIC'
14417         ;;
14418       m68k)
14419             # FIXME: we need at least 68020 code to build shared libraries, but
14420             # adding the `-m68020' flag to GCC prevents building anything better,
14421             # like `-m68040'.
14422             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14423         ;;
14424       esac
14425       ;;
14426
14427     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14428       # PIC is the default for these OSes.
14429       ;;
14430     mingw* | cygwin* | os2* | pw32* | cegcc*)
14431       # This hack is so that the source file can tell whether it is being
14432       # built for inclusion in a dll (and should export symbols for example).
14433       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14434       # (--disable-auto-import) libraries
14435       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14436       ;;
14437     darwin* | rhapsody*)
14438       # PIC is the default on this platform
14439       # Common symbols not allowed in MH_DYLIB files
14440       lt_prog_compiler_pic_CXX='-fno-common'
14441       ;;
14442     *djgpp*)
14443       # DJGPP does not support shared libraries at all
14444       lt_prog_compiler_pic_CXX=
14445       ;;
14446     interix[3-9]*)
14447       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14448       # Instead, we relocate shared libraries at runtime.
14449       ;;
14450     sysv4*MP*)
14451       if test -d /usr/nec; then
14452         lt_prog_compiler_pic_CXX=-Kconform_pic
14453       fi
14454       ;;
14455     hpux*)
14456       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14457       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14458       # sets the default TLS model and affects inlining.
14459       case $host_cpu in
14460       hppa*64*)
14461         ;;
14462       *)
14463         lt_prog_compiler_pic_CXX='-fPIC'
14464         ;;
14465       esac
14466       ;;
14467     *qnx* | *nto*)
14468       # QNX uses GNU C++, but need to define -shared option too, otherwise
14469       # it will coredump.
14470       lt_prog_compiler_pic_CXX='-fPIC -shared'
14471       ;;
14472     *)
14473       lt_prog_compiler_pic_CXX='-fPIC'
14474       ;;
14475     esac
14476   else
14477     case $host_os in
14478       aix[4-9]*)
14479         # All AIX code is PIC.
14480         if test "$host_cpu" = ia64; then
14481           # AIX 5 now supports IA64 processor
14482           lt_prog_compiler_static_CXX='-Bstatic'
14483         else
14484           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14485         fi
14486         ;;
14487       chorus*)
14488         case $cc_basename in
14489         cxch68*)
14490           # Green Hills C++ Compiler
14491           # _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"
14492           ;;
14493         esac
14494         ;;
14495       dgux*)
14496         case $cc_basename in
14497           ec++*)
14498             lt_prog_compiler_pic_CXX='-KPIC'
14499             ;;
14500           ghcx*)
14501             # Green Hills C++ Compiler
14502             lt_prog_compiler_pic_CXX='-pic'
14503             ;;
14504           *)
14505             ;;
14506         esac
14507         ;;
14508       freebsd* | dragonfly*)
14509         # FreeBSD uses GNU C++
14510         ;;
14511       hpux9* | hpux10* | hpux11*)
14512         case $cc_basename in
14513           CC*)
14514             lt_prog_compiler_wl_CXX='-Wl,'
14515             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14516             if test "$host_cpu" != ia64; then
14517               lt_prog_compiler_pic_CXX='+Z'
14518             fi
14519             ;;
14520           aCC*)
14521             lt_prog_compiler_wl_CXX='-Wl,'
14522             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14523             case $host_cpu in
14524             hppa*64*|ia64*)
14525               # +Z the default
14526               ;;
14527             *)
14528               lt_prog_compiler_pic_CXX='+Z'
14529               ;;
14530             esac
14531             ;;
14532           *)
14533             ;;
14534         esac
14535         ;;
14536       interix*)
14537         # This is c89, which is MS Visual C++ (no shared libs)
14538         # Anyone wants to do a port?
14539         ;;
14540       irix5* | irix6* | nonstopux*)
14541         case $cc_basename in
14542           CC*)
14543             lt_prog_compiler_wl_CXX='-Wl,'
14544             lt_prog_compiler_static_CXX='-non_shared'
14545             # CC pic flag -KPIC is the default.
14546             ;;
14547           *)
14548             ;;
14549         esac
14550         ;;
14551       linux* | k*bsd*-gnu)
14552         case $cc_basename in
14553           KCC*)
14554             # KAI C++ Compiler
14555             lt_prog_compiler_wl_CXX='--backend -Wl,'
14556             lt_prog_compiler_pic_CXX='-fPIC'
14557             ;;
14558           ecpc* )
14559             # old Intel C++ for x86_64 which still supported -KPIC.
14560             lt_prog_compiler_wl_CXX='-Wl,'
14561             lt_prog_compiler_pic_CXX='-KPIC'
14562             lt_prog_compiler_static_CXX='-static'
14563             ;;
14564           icpc* )
14565             # Intel C++, used to be incompatible with GCC.
14566             # ICC 10 doesn't accept -KPIC any more.
14567             lt_prog_compiler_wl_CXX='-Wl,'
14568             lt_prog_compiler_pic_CXX='-fPIC'
14569             lt_prog_compiler_static_CXX='-static'
14570             ;;
14571           pgCC* | pgcpp*)
14572             # Portland Group C++ compiler
14573             lt_prog_compiler_wl_CXX='-Wl,'
14574             lt_prog_compiler_pic_CXX='-fpic'
14575             lt_prog_compiler_static_CXX='-Bstatic'
14576             ;;
14577           cxx*)
14578             # Compaq C++
14579             # Make sure the PIC flag is empty.  It appears that all Alpha
14580             # Linux and Compaq Tru64 Unix objects are PIC.
14581             lt_prog_compiler_pic_CXX=
14582             lt_prog_compiler_static_CXX='-non_shared'
14583             ;;
14584           xlc* | xlC*)
14585             # IBM XL 8.0 on PPC
14586             lt_prog_compiler_wl_CXX='-Wl,'
14587             lt_prog_compiler_pic_CXX='-qpic'
14588             lt_prog_compiler_static_CXX='-qstaticlink'
14589             ;;
14590           *)
14591             case `$CC -V 2>&1 | sed 5q` in
14592             *Sun\ C*)
14593               # Sun C++ 5.9
14594               lt_prog_compiler_pic_CXX='-KPIC'
14595               lt_prog_compiler_static_CXX='-Bstatic'
14596               lt_prog_compiler_wl_CXX='-Qoption ld '
14597               ;;
14598             esac
14599             ;;
14600         esac
14601         ;;
14602       lynxos*)
14603         ;;
14604       m88k*)
14605         ;;
14606       mvs*)
14607         case $cc_basename in
14608           cxx*)
14609             lt_prog_compiler_pic_CXX='-W c,exportall'
14610             ;;
14611           *)
14612             ;;
14613         esac
14614         ;;
14615       netbsd*)
14616         ;;
14617       *qnx* | *nto*)
14618         # QNX uses GNU C++, but need to define -shared option too, otherwise
14619         # it will coredump.
14620         lt_prog_compiler_pic_CXX='-fPIC -shared'
14621         ;;
14622       osf3* | osf4* | osf5*)
14623         case $cc_basename in
14624           KCC*)
14625             lt_prog_compiler_wl_CXX='--backend -Wl,'
14626             ;;
14627           RCC*)
14628             # Rational C++ 2.4.1
14629             lt_prog_compiler_pic_CXX='-pic'
14630             ;;
14631           cxx*)
14632             # Digital/Compaq C++
14633             lt_prog_compiler_wl_CXX='-Wl,'
14634             # Make sure the PIC flag is empty.  It appears that all Alpha
14635             # Linux and Compaq Tru64 Unix objects are PIC.
14636             lt_prog_compiler_pic_CXX=
14637             lt_prog_compiler_static_CXX='-non_shared'
14638             ;;
14639           *)
14640             ;;
14641         esac
14642         ;;
14643       psos*)
14644         ;;
14645       solaris*)
14646         case $cc_basename in
14647           CC*)
14648             # Sun C++ 4.2, 5.x and Centerline C++
14649             lt_prog_compiler_pic_CXX='-KPIC'
14650             lt_prog_compiler_static_CXX='-Bstatic'
14651             lt_prog_compiler_wl_CXX='-Qoption ld '
14652             ;;
14653           gcx*)
14654             # Green Hills C++ Compiler
14655             lt_prog_compiler_pic_CXX='-PIC'
14656             ;;
14657           *)
14658             ;;
14659         esac
14660         ;;
14661       sunos4*)
14662         case $cc_basename in
14663           CC*)
14664             # Sun C++ 4.x
14665             lt_prog_compiler_pic_CXX='-pic'
14666             lt_prog_compiler_static_CXX='-Bstatic'
14667             ;;
14668           lcc*)
14669             # Lucid
14670             lt_prog_compiler_pic_CXX='-pic'
14671             ;;
14672           *)
14673             ;;
14674         esac
14675         ;;
14676       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14677         case $cc_basename in
14678           CC*)
14679             lt_prog_compiler_wl_CXX='-Wl,'
14680             lt_prog_compiler_pic_CXX='-KPIC'
14681             lt_prog_compiler_static_CXX='-Bstatic'
14682             ;;
14683         esac
14684         ;;
14685       tandem*)
14686         case $cc_basename in
14687           NCC*)
14688             # NonStop-UX NCC 3.20
14689             lt_prog_compiler_pic_CXX='-KPIC'
14690             ;;
14691           *)
14692             ;;
14693         esac
14694         ;;
14695       vxworks*)
14696         ;;
14697       *)
14698         lt_prog_compiler_can_build_shared_CXX=no
14699         ;;
14700     esac
14701   fi
14702
14703 case $host_os in
14704   # For platforms which do not support PIC, -DPIC is meaningless:
14705   *djgpp*)
14706     lt_prog_compiler_pic_CXX=
14707     ;;
14708   *)
14709     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14710     ;;
14711 esac
14712 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14713 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14714
14715
14716
14717 #
14718 # Check to make sure the PIC flag actually works.
14719 #
14720 if test -n "$lt_prog_compiler_pic_CXX"; then
14721   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14722 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14723 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14724   echo $ECHO_N "(cached) $ECHO_C" >&6
14725 else
14726   lt_cv_prog_compiler_pic_works_CXX=no
14727    ac_outfile=conftest.$ac_objext
14728    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14729    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14730    # Insert the option either (1) after the last *FLAGS variable, or
14731    # (2) before a word containing "conftest.", or (3) at the end.
14732    # Note that $ac_compile itself does not contain backslashes and begins
14733    # with a dollar sign (not a hyphen), so the echo should work correctly.
14734    # The option is referenced via a variable to avoid confusing sed.
14735    lt_compile=`echo "$ac_compile" | $SED \
14736    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14737    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14738    -e 's:$: $lt_compiler_flag:'`
14739    (eval echo "\"\$as_me:14739: $lt_compile\"" >&5)
14740    (eval "$lt_compile" 2>conftest.err)
14741    ac_status=$?
14742    cat conftest.err >&5
14743    echo "$as_me:14743: \$? = $ac_status" >&5
14744    if (exit $ac_status) && test -s "$ac_outfile"; then
14745      # The compiler can only warn and ignore the option if not recognized
14746      # So say no if there are warnings other than the usual output.
14747      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14748      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14749      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14750        lt_cv_prog_compiler_pic_works_CXX=yes
14751      fi
14752    fi
14753    $RM conftest*
14754
14755 fi
14756 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14757 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14758
14759 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14760     case $lt_prog_compiler_pic_CXX in
14761      "" | " "*) ;;
14762      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14763      esac
14764 else
14765     lt_prog_compiler_pic_CXX=
14766      lt_prog_compiler_can_build_shared_CXX=no
14767 fi
14768
14769 fi
14770
14771
14772
14773 #
14774 # Check to make sure the static flag actually works.
14775 #
14776 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14777 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14778 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14779 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14780   echo $ECHO_N "(cached) $ECHO_C" >&6
14781 else
14782   lt_cv_prog_compiler_static_works_CXX=no
14783    save_LDFLAGS="$LDFLAGS"
14784    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14785    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14786    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14787      # The linker can only warn and ignore the option if not recognized
14788      # So say no if there are warnings
14789      if test -s conftest.err; then
14790        # Append any errors to the config.log.
14791        cat conftest.err 1>&5
14792        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14793        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14794        if diff conftest.exp conftest.er2 >/dev/null; then
14795          lt_cv_prog_compiler_static_works_CXX=yes
14796        fi
14797      else
14798        lt_cv_prog_compiler_static_works_CXX=yes
14799      fi
14800    fi
14801    $RM -r conftest*
14802    LDFLAGS="$save_LDFLAGS"
14803
14804 fi
14805 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14806 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14807
14808 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14809     :
14810 else
14811     lt_prog_compiler_static_CXX=
14812 fi
14813
14814
14815
14816
14817     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14819 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14820   echo $ECHO_N "(cached) $ECHO_C" >&6
14821 else
14822   lt_cv_prog_compiler_c_o_CXX=no
14823    $RM -r conftest 2>/dev/null
14824    mkdir conftest
14825    cd conftest
14826    mkdir out
14827    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14828
14829    lt_compiler_flag="-o out/conftest2.$ac_objext"
14830    # Insert the option either (1) after the last *FLAGS variable, or
14831    # (2) before a word containing "conftest.", or (3) at the end.
14832    # Note that $ac_compile itself does not contain backslashes and begins
14833    # with a dollar sign (not a hyphen), so the echo should work correctly.
14834    lt_compile=`echo "$ac_compile" | $SED \
14835    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14836    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14837    -e 's:$: $lt_compiler_flag:'`
14838    (eval echo "\"\$as_me:14838: $lt_compile\"" >&5)
14839    (eval "$lt_compile" 2>out/conftest.err)
14840    ac_status=$?
14841    cat out/conftest.err >&5
14842    echo "$as_me:14842: \$? = $ac_status" >&5
14843    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14844    then
14845      # The compiler can only warn and ignore the option if not recognized
14846      # So say no if there are warnings
14847      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14848      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14849      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14850        lt_cv_prog_compiler_c_o_CXX=yes
14851      fi
14852    fi
14853    chmod u+w . 2>&5
14854    $RM conftest*
14855    # SGI C++ compiler will create directory out/ii_files/ for
14856    # template instantiation
14857    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14858    $RM out/* && rmdir out
14859    cd ..
14860    $RM -r conftest
14861    $RM conftest*
14862
14863 fi
14864 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14866
14867
14868
14869     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14871 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14872   echo $ECHO_N "(cached) $ECHO_C" >&6
14873 else
14874   lt_cv_prog_compiler_c_o_CXX=no
14875    $RM -r conftest 2>/dev/null
14876    mkdir conftest
14877    cd conftest
14878    mkdir out
14879    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14880
14881    lt_compiler_flag="-o out/conftest2.$ac_objext"
14882    # Insert the option either (1) after the last *FLAGS variable, or
14883    # (2) before a word containing "conftest.", or (3) at the end.
14884    # Note that $ac_compile itself does not contain backslashes and begins
14885    # with a dollar sign (not a hyphen), so the echo should work correctly.
14886    lt_compile=`echo "$ac_compile" | $SED \
14887    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14889    -e 's:$: $lt_compiler_flag:'`
14890    (eval echo "\"\$as_me:14890: $lt_compile\"" >&5)
14891    (eval "$lt_compile" 2>out/conftest.err)
14892    ac_status=$?
14893    cat out/conftest.err >&5
14894    echo "$as_me:14894: \$? = $ac_status" >&5
14895    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14896    then
14897      # The compiler can only warn and ignore the option if not recognized
14898      # So say no if there are warnings
14899      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14900      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14901      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14902        lt_cv_prog_compiler_c_o_CXX=yes
14903      fi
14904    fi
14905    chmod u+w . 2>&5
14906    $RM conftest*
14907    # SGI C++ compiler will create directory out/ii_files/ for
14908    # template instantiation
14909    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14910    $RM out/* && rmdir out
14911    cd ..
14912    $RM -r conftest
14913    $RM conftest*
14914
14915 fi
14916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14918
14919
14920
14921
14922 hard_links="nottested"
14923 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14924   # do not overwrite the value of need_locks provided by the user
14925   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14926 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14927   hard_links=yes
14928   $RM conftest*
14929   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14930   touch conftest.a
14931   ln conftest.a conftest.b 2>&5 || hard_links=no
14932   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14933   { echo "$as_me:$LINENO: result: $hard_links" >&5
14934 echo "${ECHO_T}$hard_links" >&6; }
14935   if test "$hard_links" = no; then
14936     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14937 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14938     need_locks=warn
14939   fi
14940 else
14941   need_locks=no
14942 fi
14943
14944
14945
14946     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14948
14949   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14950   case $host_os in
14951   aix[4-9]*)
14952     # If we're using GNU nm, then we don't want the "-C" option.
14953     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14954     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14955       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'
14956     else
14957       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'
14958     fi
14959     ;;
14960   pw32*)
14961     export_symbols_cmds_CXX="$ltdll_cmds"
14962   ;;
14963   cygwin* | mingw* | cegcc*)
14964     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'
14965   ;;
14966   *)
14967     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14968   ;;
14969   esac
14970   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14971
14972 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14973 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14974 test "$ld_shlibs_CXX" = no && can_build_shared=no
14975
14976 with_gnu_ld_CXX=$with_gnu_ld
14977
14978
14979
14980
14981
14982
14983 #
14984 # Do we need to explicitly link libc?
14985 #
14986 case "x$archive_cmds_need_lc_CXX" in
14987 x|xyes)
14988   # Assume -lc should be added
14989   archive_cmds_need_lc_CXX=yes
14990
14991   if test "$enable_shared" = yes && test "$GCC" = yes; then
14992     case $archive_cmds_CXX in
14993     *'~'*)
14994       # FIXME: we may have to deal with multi-command sequences.
14995       ;;
14996     '$CC '*)
14997       # Test whether the compiler implicitly links with -lc since on some
14998       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14999       # to ld, don't add -lc before -lgcc.
15000       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15002       $RM conftest*
15003       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15004
15005       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006   (eval $ac_compile) 2>&5
15007   ac_status=$?
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); } 2>conftest.err; then
15010         soname=conftest
15011         lib=conftest
15012         libobjs=conftest.$ac_objext
15013         deplibs=
15014         wl=$lt_prog_compiler_wl_CXX
15015         pic_flag=$lt_prog_compiler_pic_CXX
15016         compiler_flags=-v
15017         linker_flags=-v
15018         verstring=
15019         output_objdir=.
15020         libname=conftest
15021         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15022         allow_undefined_flag_CXX=
15023         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15024   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15025   ac_status=$?
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); }
15028         then
15029           archive_cmds_need_lc_CXX=no
15030         else
15031           archive_cmds_need_lc_CXX=yes
15032         fi
15033         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15034       else
15035         cat conftest.err 1>&5
15036       fi
15037       $RM conftest*
15038       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15039 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15040       ;;
15041     esac
15042   fi
15043   ;;
15044 esac
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15110 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15111
15112 library_names_spec=
15113 libname_spec='lib$name'
15114 soname_spec=
15115 shrext_cmds=".so"
15116 postinstall_cmds=
15117 postuninstall_cmds=
15118 finish_cmds=
15119 finish_eval=
15120 shlibpath_var=
15121 shlibpath_overrides_runpath=unknown
15122 version_type=none
15123 dynamic_linker="$host_os ld.so"
15124 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15125 need_lib_prefix=unknown
15126 hardcode_into_libs=no
15127
15128 # when you set need_version to no, make sure it does not cause -set_version
15129 # flags to be left without arguments
15130 need_version=unknown
15131
15132 case $host_os in
15133 aix3*)
15134   version_type=linux
15135   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15136   shlibpath_var=LIBPATH
15137
15138   # AIX 3 has no versioning support, so we append a major version to the name.
15139   soname_spec='${libname}${release}${shared_ext}$major'
15140   ;;
15141
15142 aix[4-9]*)
15143   version_type=linux
15144   need_lib_prefix=no
15145   need_version=no
15146   hardcode_into_libs=yes
15147   if test "$host_cpu" = ia64; then
15148     # AIX 5 supports IA64
15149     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15150     shlibpath_var=LD_LIBRARY_PATH
15151   else
15152     # With GCC up to 2.95.x, collect2 would create an import file
15153     # for dependence libraries.  The import file would start with
15154     # the line `#! .'.  This would cause the generated library to
15155     # depend on `.', always an invalid library.  This was fixed in
15156     # development snapshots of GCC prior to 3.0.
15157     case $host_os in
15158       aix4 | aix4.[01] | aix4.[01].*)
15159       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15160            echo ' yes '
15161            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15162         :
15163       else
15164         can_build_shared=no
15165       fi
15166       ;;
15167     esac
15168     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15169     # soname into executable. Probably we can add versioning support to
15170     # collect2, so additional links can be useful in future.
15171     if test "$aix_use_runtimelinking" = yes; then
15172       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15173       # instead of lib<name>.a to let people know that these are not
15174       # typical AIX shared libraries.
15175       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15176     else
15177       # We preserve .a as extension for shared libraries through AIX4.2
15178       # and later when we are not doing run time linking.
15179       library_names_spec='${libname}${release}.a $libname.a'
15180       soname_spec='${libname}${release}${shared_ext}$major'
15181     fi
15182     shlibpath_var=LIBPATH
15183   fi
15184   ;;
15185
15186 amigaos*)
15187   case $host_cpu in
15188   powerpc)
15189     # Since July 2007 AmigaOS4 officially supports .so libraries.
15190     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192     ;;
15193   m68k)
15194     library_names_spec='$libname.ixlibrary $libname.a'
15195     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15196     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'
15197     ;;
15198   esac
15199   ;;
15200
15201 beos*)
15202   library_names_spec='${libname}${shared_ext}'
15203   dynamic_linker="$host_os ld.so"
15204   shlibpath_var=LIBRARY_PATH
15205   ;;
15206
15207 bsdi[45]*)
15208   version_type=linux
15209   need_version=no
15210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211   soname_spec='${libname}${release}${shared_ext}$major'
15212   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15213   shlibpath_var=LD_LIBRARY_PATH
15214   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15215   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15216   # the default ld.so.conf also contains /usr/contrib/lib and
15217   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15218   # libtool to hard-code these into programs
15219   ;;
15220
15221 cygwin* | mingw* | pw32* | cegcc*)
15222   version_type=windows
15223   shrext_cmds=".dll"
15224   need_version=no
15225   need_lib_prefix=no
15226
15227   case $GCC,$host_os in
15228   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15229     library_names_spec='$libname.dll.a'
15230     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15231     postinstall_cmds='base_file=`basename \${file}`~
15232       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15233       dldir=$destdir/`dirname \$dlpath`~
15234       test -d \$dldir || mkdir -p \$dldir~
15235       $install_prog $dir/$dlname \$dldir/$dlname~
15236       chmod a+x \$dldir/$dlname~
15237       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15238         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15239       fi'
15240     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15241       dlpath=$dir/\$dldll~
15242        $RM \$dlpath'
15243     shlibpath_overrides_runpath=yes
15244
15245     case $host_os in
15246     cygwin*)
15247       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15248       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15249       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15250       ;;
15251     mingw* | cegcc*)
15252       # MinGW DLLs use traditional 'lib' prefix
15253       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15254       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15255       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15256         # It is most probably a Windows format PATH printed by
15257         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15258         # path with ; separators, and with drive letters. We can handle the
15259         # drive letters (cygwin fileutils understands them), so leave them,
15260         # especially as we might pass files found there to a mingw objdump,
15261         # which wouldn't understand a cygwinified path. Ahh.
15262         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15263       else
15264         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15265       fi
15266       ;;
15267     pw32*)
15268       # pw32 DLLs use 'pw' prefix rather than 'lib'
15269       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15270       ;;
15271     esac
15272     ;;
15273
15274   *)
15275     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15276     ;;
15277   esac
15278   dynamic_linker='Win32 ld.exe'
15279   # FIXME: first we should search . and the directory the executable is in
15280   shlibpath_var=PATH
15281   ;;
15282
15283 darwin* | rhapsody*)
15284   dynamic_linker="$host_os dyld"
15285   version_type=darwin
15286   need_lib_prefix=no
15287   need_version=no
15288   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15289   soname_spec='${libname}${release}${major}$shared_ext'
15290   shlibpath_overrides_runpath=yes
15291   shlibpath_var=DYLD_LIBRARY_PATH
15292   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15293
15294   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15295   ;;
15296
15297 dgux*)
15298   version_type=linux
15299   need_lib_prefix=no
15300   need_version=no
15301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15302   soname_spec='${libname}${release}${shared_ext}$major'
15303   shlibpath_var=LD_LIBRARY_PATH
15304   ;;
15305
15306 freebsd1*)
15307   dynamic_linker=no
15308   ;;
15309
15310 freebsd* | dragonfly*)
15311   # DragonFly does not have aout.  When/if they implement a new
15312   # versioning mechanism, adjust this.
15313   if test -x /usr/bin/objformat; then
15314     objformat=`/usr/bin/objformat`
15315   else
15316     case $host_os in
15317     freebsd[123]*) objformat=aout ;;
15318     *) objformat=elf ;;
15319     esac
15320   fi
15321   version_type=freebsd-$objformat
15322   case $version_type in
15323     freebsd-elf*)
15324       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15325       need_version=no
15326       need_lib_prefix=no
15327       ;;
15328     freebsd-*)
15329       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15330       need_version=yes
15331       ;;
15332   esac
15333   shlibpath_var=LD_LIBRARY_PATH
15334   case $host_os in
15335   freebsd2*)
15336     shlibpath_overrides_runpath=yes
15337     ;;
15338   freebsd3.[01]* | freebsdelf3.[01]*)
15339     shlibpath_overrides_runpath=yes
15340     hardcode_into_libs=yes
15341     ;;
15342   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15343   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15344     shlibpath_overrides_runpath=no
15345     hardcode_into_libs=yes
15346     ;;
15347   *) # from 4.6 on, and DragonFly
15348     shlibpath_overrides_runpath=yes
15349     hardcode_into_libs=yes
15350     ;;
15351   esac
15352   ;;
15353
15354 gnu*)
15355   version_type=linux
15356   need_lib_prefix=no
15357   need_version=no
15358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15359   soname_spec='${libname}${release}${shared_ext}$major'
15360   shlibpath_var=LD_LIBRARY_PATH
15361   hardcode_into_libs=yes
15362   ;;
15363
15364 hpux9* | hpux10* | hpux11*)
15365   # Give a soname corresponding to the major version so that dld.sl refuses to
15366   # link against other versions.
15367   version_type=sunos
15368   need_lib_prefix=no
15369   need_version=no
15370   case $host_cpu in
15371   ia64*)
15372     shrext_cmds='.so'
15373     hardcode_into_libs=yes
15374     dynamic_linker="$host_os dld.so"
15375     shlibpath_var=LD_LIBRARY_PATH
15376     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15377     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378     soname_spec='${libname}${release}${shared_ext}$major'
15379     if test "X$HPUX_IA64_MODE" = X32; then
15380       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15381     else
15382       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15383     fi
15384     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15385     ;;
15386   hppa*64*)
15387     shrext_cmds='.sl'
15388     hardcode_into_libs=yes
15389     dynamic_linker="$host_os dld.sl"
15390     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15391     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393     soname_spec='${libname}${release}${shared_ext}$major'
15394     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15395     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15396     ;;
15397   *)
15398     shrext_cmds='.sl'
15399     dynamic_linker="$host_os dld.sl"
15400     shlibpath_var=SHLIB_PATH
15401     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15402     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403     soname_spec='${libname}${release}${shared_ext}$major'
15404     ;;
15405   esac
15406   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15407   postinstall_cmds='chmod 555 $lib'
15408   ;;
15409
15410 interix[3-9]*)
15411   version_type=linux
15412   need_lib_prefix=no
15413   need_version=no
15414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15415   soname_spec='${libname}${release}${shared_ext}$major'
15416   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15417   shlibpath_var=LD_LIBRARY_PATH
15418   shlibpath_overrides_runpath=no
15419   hardcode_into_libs=yes
15420   ;;
15421
15422 irix5* | irix6* | nonstopux*)
15423   case $host_os in
15424     nonstopux*) version_type=nonstopux ;;
15425     *)
15426         if test "$lt_cv_prog_gnu_ld" = yes; then
15427                 version_type=linux
15428         else
15429                 version_type=irix
15430         fi ;;
15431   esac
15432   need_lib_prefix=no
15433   need_version=no
15434   soname_spec='${libname}${release}${shared_ext}$major'
15435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15436   case $host_os in
15437   irix5* | nonstopux*)
15438     libsuff= shlibsuff=
15439     ;;
15440   *)
15441     case $LD in # libtool.m4 will add one of these switches to LD
15442     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15443       libsuff= shlibsuff= libmagic=32-bit;;
15444     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15445       libsuff=32 shlibsuff=N32 libmagic=N32;;
15446     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15447       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15448     *) libsuff= shlibsuff= libmagic=never-match;;
15449     esac
15450     ;;
15451   esac
15452   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15453   shlibpath_overrides_runpath=no
15454   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15455   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15456   hardcode_into_libs=yes
15457   ;;
15458
15459 # No shared lib support for Linux oldld, aout, or coff.
15460 linux*oldld* | linux*aout* | linux*coff*)
15461   dynamic_linker=no
15462   ;;
15463
15464 # This must be Linux ELF.
15465 linux* | k*bsd*-gnu)
15466   version_type=linux
15467   need_lib_prefix=no
15468   need_version=no
15469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470   soname_spec='${libname}${release}${shared_ext}$major'
15471   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15472   shlibpath_var=LD_LIBRARY_PATH
15473   shlibpath_overrides_runpath=no
15474   # Some binutils ld are patched to set DT_RUNPATH
15475   save_LDFLAGS=$LDFLAGS
15476   save_libdir=$libdir
15477   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15478        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15479   cat >conftest.$ac_ext <<_ACEOF
15480 /* confdefs.h.  */
15481 _ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h.  */
15485
15486 int
15487 main ()
15488 {
15489
15490   ;
15491   return 0;
15492 }
15493 _ACEOF
15494 rm -f conftest.$ac_objext conftest$ac_exeext
15495 if { (ac_try="$ac_link"
15496 case "(($ac_try" in
15497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498   *) ac_try_echo=$ac_try;;
15499 esac
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501   (eval "$ac_link") 2>conftest.er1
15502   ac_status=$?
15503   grep -v '^ *+' conftest.er1 >conftest.err
15504   rm -f conftest.er1
15505   cat conftest.err >&5
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); } && {
15508          test -z "$ac_cxx_werror_flag" ||
15509          test ! -s conftest.err
15510        } && test -s conftest$ac_exeext &&
15511        $as_test_x conftest$ac_exeext; then
15512   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15513   shlibpath_overrides_runpath=yes
15514 fi
15515
15516 else
15517   echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15519
15520
15521 fi
15522
15523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15524       conftest$ac_exeext conftest.$ac_ext
15525   LDFLAGS=$save_LDFLAGS
15526   libdir=$save_libdir
15527
15528   # This implies no fast_install, which is unacceptable.
15529   # Some rework will be needed to allow for fast_install
15530   # before this can be enabled.
15531   hardcode_into_libs=yes
15532
15533   # Append ld.so.conf contents to the search path
15534   if test -f /etc/ld.so.conf; then
15535     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' ' '`
15536     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15537   fi
15538
15539   # We used to test for /lib/ld.so.1 and disable shared libraries on
15540   # powerpc, because MkLinux only supported shared libraries with the
15541   # GNU dynamic linker.  Since this was broken with cross compilers,
15542   # most powerpc-linux boxes support dynamic linking these days and
15543   # people can always --disable-shared, the test was removed, and we
15544   # assume the GNU/Linux dynamic linker is in use.
15545   dynamic_linker='GNU/Linux ld.so'
15546   ;;
15547
15548 netbsd*)
15549   version_type=sunos
15550   need_lib_prefix=no
15551   need_version=no
15552   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15554     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15555     dynamic_linker='NetBSD (a.out) ld.so'
15556   else
15557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15558     soname_spec='${libname}${release}${shared_ext}$major'
15559     dynamic_linker='NetBSD ld.elf_so'
15560   fi
15561   shlibpath_var=LD_LIBRARY_PATH
15562   shlibpath_overrides_runpath=yes
15563   hardcode_into_libs=yes
15564   ;;
15565
15566 newsos6)
15567   version_type=linux
15568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569   shlibpath_var=LD_LIBRARY_PATH
15570   shlibpath_overrides_runpath=yes
15571   ;;
15572
15573 *nto* | *qnx*)
15574   version_type=qnx
15575   need_lib_prefix=no
15576   need_version=no
15577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578   soname_spec='${libname}${release}${shared_ext}$major'
15579   shlibpath_var=LD_LIBRARY_PATH
15580   shlibpath_overrides_runpath=no
15581   hardcode_into_libs=yes
15582   dynamic_linker='ldqnx.so'
15583   ;;
15584
15585 openbsd*)
15586   version_type=sunos
15587   sys_lib_dlsearch_path_spec="/usr/lib"
15588   need_lib_prefix=no
15589   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15590   case $host_os in
15591     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15592     *)                          need_version=no  ;;
15593   esac
15594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15595   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15596   shlibpath_var=LD_LIBRARY_PATH
15597   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15598     case $host_os in
15599       openbsd2.[89] | openbsd2.[89].*)
15600         shlibpath_overrides_runpath=no
15601         ;;
15602       *)
15603         shlibpath_overrides_runpath=yes
15604         ;;
15605       esac
15606   else
15607     shlibpath_overrides_runpath=yes
15608   fi
15609   ;;
15610
15611 os2*)
15612   libname_spec='$name'
15613   shrext_cmds=".dll"
15614   need_lib_prefix=no
15615   library_names_spec='$libname${shared_ext} $libname.a'
15616   dynamic_linker='OS/2 ld.exe'
15617   shlibpath_var=LIBPATH
15618   ;;
15619
15620 osf3* | osf4* | osf5*)
15621   version_type=osf
15622   need_lib_prefix=no
15623   need_version=no
15624   soname_spec='${libname}${release}${shared_ext}$major'
15625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626   shlibpath_var=LD_LIBRARY_PATH
15627   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15628   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15629   ;;
15630
15631 rdos*)
15632   dynamic_linker=no
15633   ;;
15634
15635 solaris*)
15636   version_type=linux
15637   need_lib_prefix=no
15638   need_version=no
15639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640   soname_spec='${libname}${release}${shared_ext}$major'
15641   shlibpath_var=LD_LIBRARY_PATH
15642   shlibpath_overrides_runpath=yes
15643   hardcode_into_libs=yes
15644   # ldd complains unless libraries are executable
15645   postinstall_cmds='chmod +x $lib'
15646   ;;
15647
15648 sunos4*)
15649   version_type=sunos
15650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15651   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15652   shlibpath_var=LD_LIBRARY_PATH
15653   shlibpath_overrides_runpath=yes
15654   if test "$with_gnu_ld" = yes; then
15655     need_lib_prefix=no
15656   fi
15657   need_version=yes
15658   ;;
15659
15660 sysv4 | sysv4.3*)
15661   version_type=linux
15662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663   soname_spec='${libname}${release}${shared_ext}$major'
15664   shlibpath_var=LD_LIBRARY_PATH
15665   case $host_vendor in
15666     sni)
15667       shlibpath_overrides_runpath=no
15668       need_lib_prefix=no
15669       runpath_var=LD_RUN_PATH
15670       ;;
15671     siemens)
15672       need_lib_prefix=no
15673       ;;
15674     motorola)
15675       need_lib_prefix=no
15676       need_version=no
15677       shlibpath_overrides_runpath=no
15678       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15679       ;;
15680   esac
15681   ;;
15682
15683 sysv4*MP*)
15684   if test -d /usr/nec ;then
15685     version_type=linux
15686     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15687     soname_spec='$libname${shared_ext}.$major'
15688     shlibpath_var=LD_LIBRARY_PATH
15689   fi
15690   ;;
15691
15692 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15693   version_type=freebsd-elf
15694   need_lib_prefix=no
15695   need_version=no
15696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15697   soname_spec='${libname}${release}${shared_ext}$major'
15698   shlibpath_var=LD_LIBRARY_PATH
15699   shlibpath_overrides_runpath=yes
15700   hardcode_into_libs=yes
15701   if test "$with_gnu_ld" = yes; then
15702     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15703   else
15704     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15705     case $host_os in
15706       sco3.2v5*)
15707         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15708         ;;
15709     esac
15710   fi
15711   sys_lib_dlsearch_path_spec='/usr/lib'
15712   ;;
15713
15714 tpf*)
15715   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15716   version_type=linux
15717   need_lib_prefix=no
15718   need_version=no
15719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720   shlibpath_var=LD_LIBRARY_PATH
15721   shlibpath_overrides_runpath=no
15722   hardcode_into_libs=yes
15723   ;;
15724
15725 uts4*)
15726   version_type=linux
15727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728   soname_spec='${libname}${release}${shared_ext}$major'
15729   shlibpath_var=LD_LIBRARY_PATH
15730   ;;
15731
15732 *)
15733   dynamic_linker=no
15734   ;;
15735 esac
15736 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15737 echo "${ECHO_T}$dynamic_linker" >&6; }
15738 test "$dynamic_linker" = no && can_build_shared=no
15739
15740 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15741 if test "$GCC" = yes; then
15742   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15743 fi
15744
15745 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15746   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15747 fi
15748 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15749   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15750 fi
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15788 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15789 hardcode_action_CXX=
15790 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15791    test -n "$runpath_var_CXX" ||
15792    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15793
15794   # We can hardcode non-existent directories.
15795   if test "$hardcode_direct_CXX" != no &&
15796      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15797      # have to relink, otherwise we might link with an installed library
15798      # when we should be linking with a yet-to-be-installed one
15799      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15800      test "$hardcode_minus_L_CXX" != no; then
15801     # Linking always hardcodes the temporary library directory.
15802     hardcode_action_CXX=relink
15803   else
15804     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15805     hardcode_action_CXX=immediate
15806   fi
15807 else
15808   # We cannot hardcode anything, or else we can only hardcode existing
15809   # directories.
15810   hardcode_action_CXX=unsupported
15811 fi
15812 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15813 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15814
15815 if test "$hardcode_action_CXX" = relink ||
15816    test "$inherit_rpath_CXX" = yes; then
15817   # Fast installation is not supported
15818   enable_fast_install=no
15819 elif test "$shlibpath_overrides_runpath" = yes ||
15820      test "$enable_shared" = no; then
15821   # Fast installation is not necessary
15822   enable_fast_install=needless
15823 fi
15824
15825
15826
15827
15828
15829
15830
15831   fi # test -n "$compiler"
15832
15833   CC=$lt_save_CC
15834   LDCXX=$LD
15835   LD=$lt_save_LD
15836   GCC=$lt_save_GCC
15837   with_gnu_ld=$lt_save_with_gnu_ld
15838   lt_cv_path_LDCXX=$lt_cv_path_LD
15839   lt_cv_path_LD=$lt_save_path_LD
15840   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15841   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15842 fi # test "$_lt_caught_CXX_error" != yes
15843
15844 ac_ext=c
15845 ac_cpp='$CPP $CPPFLAGS'
15846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862         ac_config_commands="$ac_config_commands libtool"
15863
15864
15865
15866
15867 # Only expand once:
15868
15869
15870
15871
15872 if test x$use_libtool != xno; then
15873    DEFAULT_OBJECT_TYPE=".lo"
15874    DEFAULT_ARCHIVE_TYPE=".la"
15875    DEFAULT_SHARED_OBJECT_TYPE=".la"
15876    LIBTOOL="\$(LIBTOOL)"
15877    LIBTOOL_INSTALL_TARGET="libtool-install"
15878    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15879    LIBTOOL_CLEAN_TARGET="libtool-clean"
15880    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15881 else
15882    DEFAULT_OBJECT_TYPE=".o"
15883    DEFAULT_ARCHIVE_TYPE=".a"
15884    DEFAULT_SHARED_OBJECT_TYPE=".so"
15885    LIBTOOL="# \$(LIBTOOL)"
15886    LIBTOOL_INSTALL_TARGET=""
15887    LIBTOOL_UNINSTALL_TARGET=""
15888    LIBTOOL_CLEAN_TARGET=""
15889    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15890 fi
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901 # Check whether --enable-includes was given.
15902 if test "${enable_includes+set}" = set; then
15903   enableval=$enable_includes;
15904        if test x$enableval = xno; then
15905           install_includes=no
15906        fi
15907
15908
15909 fi
15910
15911
15912
15913 if test x$use_libtool != xno -a x$install_includes != no; then
15914    INCLUDE_INSTALL_TARGET="install-includes"
15915    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15916 else
15917    INCLUDE_INSTALL_TARGET=""
15918    INCLUDE_UNINSTALL_TARGET=""
15919 fi
15920 # Turn off install of includes
15921 INCLUDE_INSTALL_TARGET=""
15922 INCLUDE_UNINSTALL_TARGET=""
15923
15924
15925
15926
15927 { echo "$as_me:$LINENO: checking host system type" >&5
15928 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15929 if test "${ac_cv_host+set}" = set; then
15930   echo $ECHO_N "(cached) $ECHO_C" >&6
15931 else
15932   if test "x$host_alias" = x; then
15933   ac_cv_host=$ac_cv_build
15934 else
15935   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15936     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15937 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15938    { (exit 1); exit 1; }; }
15939 fi
15940
15941 fi
15942 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15943 echo "${ECHO_T}$ac_cv_host" >&6; }
15944 case $ac_cv_host in
15945 *-*-*) ;;
15946 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15947 echo "$as_me: error: invalid value of canonical host" >&2;}
15948    { (exit 1); exit 1; }; };;
15949 esac
15950 host=$ac_cv_host
15951 ac_save_IFS=$IFS; IFS='-'
15952 set x $ac_cv_host
15953 shift
15954 host_cpu=$1
15955 host_vendor=$2
15956 shift; shift
15957 # Remember, the first character of IFS is used to create $*,
15958 # except with old shells:
15959 host_os=$*
15960 IFS=$ac_save_IFS
15961 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15962
15963
15964 case $host_os in
15965   *cygwin* ) CYGWIN=yes;;
15966          * ) CYGWIN=no;;
15967 esac
15968
15969 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15970 then
15971
15972
15973 if $TRUEPRG; then
15974   HAVE_SUN_OS_TRUE=
15975   HAVE_SUN_OS_FALSE='#'
15976 else
15977   HAVE_SUN_OS_TRUE='#'
15978   HAVE_SUN_OS_FALSE=
15979 fi
15980         cat >>confdefs.h <<\_ACEOF
15981 #define HAVE_SUN_OS 1
15982 _ACEOF
15983
15984 else
15985
15986
15987 if $FALSEPRG; then
15988   HAVE_SUN_OS_TRUE=
15989   HAVE_SUN_OS_FALSE='#'
15990 else
15991   HAVE_SUN_OS_TRUE='#'
15992   HAVE_SUN_OS_FALSE=
15993 fi
15994 fi
15995
15996 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15997 then
15998
15999
16000 if $TRUEPRG; then
16001   HAVE_OSF1_OS_TRUE=
16002   HAVE_OSF1_OS_FALSE='#'
16003 else
16004   HAVE_OSF1_OS_TRUE='#'
16005   HAVE_OSF1_OS_FALSE=
16006 fi
16007         cat >>confdefs.h <<\_ACEOF
16008 #define HAVE_OSF1_OS 1
16009 _ACEOF
16010
16011 else
16012
16013
16014 if $FALSEPRG; then
16015   HAVE_OSF1_OS_TRUE=
16016   HAVE_OSF1_OS_FALSE='#'
16017 else
16018   HAVE_OSF1_OS_TRUE='#'
16019   HAVE_OSF1_OS_FALSE=
16020 fi
16021 fi
16022
16023 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16024 then
16025
16026
16027 if $TRUEPRG; then
16028   HAVE_AIX_OS_TRUE=
16029   HAVE_AIX_OS_FALSE='#'
16030 else
16031   HAVE_AIX_OS_TRUE='#'
16032   HAVE_AIX_OS_FALSE=
16033 fi
16034         cat >>confdefs.h <<\_ACEOF
16035 #define HAVE_AIX_OS 1
16036 _ACEOF
16037
16038 else
16039
16040
16041 if $FALSEPRG; then
16042   HAVE_AIX_OS_TRUE=
16043   HAVE_AIX_OS_FALSE='#'
16044 else
16045   HAVE_AIX_OS_TRUE='#'
16046   HAVE_AIX_OS_FALSE=
16047 fi
16048 fi
16049
16050 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16051 then
16052
16053
16054 if $TRUEPRG; then
16055   HAVE_HPUX_OS_TRUE=
16056   HAVE_HPUX_OS_FALSE='#'
16057 else
16058   HAVE_HPUX_OS_TRUE='#'
16059   HAVE_HPUX_OS_FALSE=
16060 fi
16061         cat >>confdefs.h <<\_ACEOF
16062 #define HAVE_HPUX_OS 1
16063 _ACEOF
16064
16065 else
16066
16067
16068 if $FALSEPRG; then
16069   HAVE_HPUX_OS_TRUE=
16070   HAVE_HPUX_OS_FALSE='#'
16071 else
16072   HAVE_HPUX_OS_TRUE='#'
16073   HAVE_HPUX_OS_FALSE=
16074 fi
16075 fi
16076
16077 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16078 then
16079
16080
16081 if $TRUEPRG; then
16082   HAVE_LINUX_OS_TRUE=
16083   HAVE_LINUX_OS_FALSE='#'
16084 else
16085   HAVE_LINUX_OS_TRUE='#'
16086   HAVE_LINUX_OS_FALSE=
16087 fi
16088         cat >>confdefs.h <<\_ACEOF
16089 #define HAVE_LINUX_OS 1
16090 _ACEOF
16091
16092 else
16093
16094
16095 if $FALSEPRG; then
16096   HAVE_LINUX_OS_TRUE=
16097   HAVE_LINUX_OS_FALSE='#'
16098 else
16099   HAVE_LINUX_OS_TRUE='#'
16100   HAVE_LINUX_OS_FALSE=
16101 fi
16102 fi
16103
16104 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16105 then
16106
16107
16108 if $TRUEPRG; then
16109   HAVE_FREEBSD_OS_TRUE=
16110   HAVE_FREEBSD_OS_FALSE='#'
16111 else
16112   HAVE_FREEBSD_OS_TRUE='#'
16113   HAVE_FREEBSD_OS_FALSE=
16114 fi
16115         cat >>confdefs.h <<\_ACEOF
16116 #define HAVE_FREEBSD_OS 1
16117 _ACEOF
16118
16119 else
16120
16121
16122 if $FALSEPRG; then
16123   HAVE_FREEBSD_OS_TRUE=
16124   HAVE_FREEBSD_OS_FALSE='#'
16125 else
16126   HAVE_FREEBSD_OS_TRUE='#'
16127   HAVE_FREEBSD_OS_FALSE=
16128 fi
16129 fi
16130
16131 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16132 then
16133
16134
16135 if $TRUEPRG; then
16136   HAVE_NETBSD_OS_TRUE=
16137   HAVE_NETBSD_OS_FALSE='#'
16138 else
16139   HAVE_NETBSD_OS_TRUE='#'
16140   HAVE_NETBSD_OS_FALSE=
16141 fi
16142         cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_NETBSD_OS 1
16144 _ACEOF
16145
16146 else
16147
16148
16149 if $FALSEPRG; then
16150   HAVE_NETBSD_OS_TRUE=
16151   HAVE_NETBSD_OS_FALSE='#'
16152 else
16153   HAVE_NETBSD_OS_TRUE='#'
16154   HAVE_NETBSD_OS_FALSE=
16155 fi
16156 fi
16157
16158 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16159 then
16160
16161
16162 if $TRUEPRG; then
16163   HAVE_OPENBSD_OS_TRUE=
16164   HAVE_OPENBSD_OS_FALSE='#'
16165 else
16166   HAVE_OPENBSD_OS_TRUE='#'
16167   HAVE_OPENBSD_OS_FALSE=
16168 fi
16169         cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_OPENBSD_OS 1
16171 _ACEOF
16172
16173 else
16174
16175
16176 if $FALSEPRG; then
16177   HAVE_OPENBSD_OS_TRUE=
16178   HAVE_OPENBSD_OS_FALSE='#'
16179 else
16180   HAVE_OPENBSD_OS_TRUE='#'
16181   HAVE_OPENBSD_OS_FALSE=
16182 fi
16183 fi
16184
16185 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16186 then
16187
16188
16189 if $TRUEPRG; then
16190   HAVE_BSDI_OS_TRUE=
16191   HAVE_BSDI_OS_FALSE='#'
16192 else
16193   HAVE_BSDI_OS_TRUE='#'
16194   HAVE_BSDI_OS_FALSE=
16195 fi
16196         cat >>confdefs.h <<\_ACEOF
16197 #define HAVE_BSDI_OS 1
16198 _ACEOF
16199
16200 else
16201
16202
16203 if $FALSEPRG; then
16204   HAVE_BSDI_OS_TRUE=
16205   HAVE_BSDI_OS_FALSE='#'
16206 else
16207   HAVE_BSDI_OS_TRUE='#'
16208   HAVE_BSDI_OS_FALSE=
16209 fi
16210 fi
16211
16212 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16213 then
16214
16215
16216 if $TRUEPRG; then
16217   HAVE_SGI_OS_TRUE=
16218   HAVE_SGI_OS_FALSE='#'
16219 else
16220   HAVE_SGI_OS_TRUE='#'
16221   HAVE_SGI_OS_FALSE=
16222 fi
16223         cat >>confdefs.h <<\_ACEOF
16224 #define HAVE_SGI_OS 1
16225 _ACEOF
16226
16227 else
16228
16229
16230 if $FALSEPRG; then
16231   HAVE_SGI_OS_TRUE=
16232   HAVE_SGI_OS_FALSE='#'
16233 else
16234   HAVE_SGI_OS_TRUE='#'
16235   HAVE_SGI_OS_FALSE=
16236 fi
16237 fi
16238
16239 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16240 then
16241
16242
16243 if $TRUEPRG; then
16244   HAVE_IRIX_OS_TRUE=
16245   HAVE_IRIX_OS_FALSE='#'
16246 else
16247   HAVE_IRIX_OS_TRUE='#'
16248   HAVE_IRIX_OS_FALSE=
16249 fi
16250         cat >>confdefs.h <<\_ACEOF
16251 #define HAVE_IRIX_OS 1
16252 _ACEOF
16253
16254 else
16255
16256
16257 if $FALSEPRG; then
16258   HAVE_IRIX_OS_TRUE=
16259   HAVE_IRIX_OS_FALSE='#'
16260 else
16261   HAVE_IRIX_OS_TRUE='#'
16262   HAVE_IRIX_OS_FALSE=
16263 fi
16264 fi
16265
16266 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16267 then
16268
16269
16270 if $TRUEPRG; then
16271   HAVE_DARWIN_OS_TRUE=
16272   HAVE_DARWIN_OS_FALSE='#'
16273 else
16274   HAVE_DARWIN_OS_TRUE='#'
16275   HAVE_DARWIN_OS_FALSE=
16276 fi
16277     cat >>confdefs.h <<\_ACEOF
16278 #define HAVE_DARWIN_OS 1
16279 _ACEOF
16280
16281 else
16282
16283
16284 if $FALSEPRG; then
16285   HAVE_DARWIN_OS_TRUE=
16286   HAVE_DARWIN_OS_FALSE='#'
16287 else
16288   HAVE_DARWIN_OS_TRUE='#'
16289   HAVE_DARWIN_OS_FALSE=
16290 fi
16291 fi
16292
16293
16294 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16295 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16296 if test "x$DISTNAME" != "x"
16297 then
16298         echo "distname set to $DISTNAME"
16299 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16300 then
16301         DISTNAME=alpha
16302 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16303 then
16304         DISTNAME=aix
16305 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16306 then
16307         DISTNAME=hpux
16308 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16309 then
16310         DISTNAME=solaris
16311 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16312 then
16313         DISTNAME=freebsd
16314 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16315 then
16316         DISTNAME=netbsd
16317 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16318 then
16319         DISTNAME=openbsd
16320 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16321 then
16322         DISTNAME=irix
16323 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16324 then
16325         DISTNAME=bsdi
16326 elif test -f /etc/SuSE-release
16327 then
16328         DISTNAME=suse
16329 elif test -d /etc/SuSEconfig
16330 then
16331         DISTNAME=suse5
16332 elif test -f /etc/mandrake-release
16333 then
16334         DISTNAME=mandrake
16335 elif test -f /etc/whitebox-release
16336 then
16337        DISTNAME=redhat
16338 elif test -f /etc/redhat-release
16339 then
16340         DISTNAME=redhat
16341 elif test -f /etc/gentoo-release
16342 then
16343         DISTNAME=gentoo
16344 elif test -f /etc/debian_version
16345 then
16346         DISTNAME=debian
16347 elif test -f /etc/slackware-version
16348 then
16349         DISTNAME=slackware
16350 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16351 then
16352     DISTNAME=darwin
16353 elif test -f /etc/engarde-version
16354 then
16355         DISTNAME=engarde
16356 elif test "$CYGWIN" = yes
16357 then
16358         DISTNAME=cygwin
16359         cat >>confdefs.h <<\_ACEOF
16360 #define HAVE_CYGWIN 1
16361 _ACEOF
16362
16363 else
16364         DISTNAME=unknown
16365 fi
16366 { echo "$as_me:$LINENO: result: done" >&5
16367 echo "${ECHO_T}done" >&6; }
16368
16369
16370 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16371 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16372 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16373 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16374   echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376   cat >conftest.make <<\_ACEOF
16377 SHELL = /bin/sh
16378 all:
16379         @echo '@@@%%%=$(MAKE)=@@@%%%'
16380 _ACEOF
16381 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16382 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16383   *@@@%%%=?*=@@@%%%*)
16384     eval ac_cv_prog_make_${ac_make}_set=yes;;
16385   *)
16386     eval ac_cv_prog_make_${ac_make}_set=no;;
16387 esac
16388 rm -f conftest.make
16389 fi
16390 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16391   { echo "$as_me:$LINENO: result: yes" >&5
16392 echo "${ECHO_T}yes" >&6; }
16393   SET_MAKE=
16394 else
16395   { echo "$as_me:$LINENO: result: no" >&5
16396 echo "${ECHO_T}no" >&6; }
16397   SET_MAKE="MAKE=${MAKE-make}"
16398 fi
16399
16400
16401
16402         MKINSTALLDIRS=
16403   if test -n "$ac_aux_dir"; then
16404     case "$ac_aux_dir" in
16405       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16406       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16407     esac
16408   fi
16409   if test -z "$MKINSTALLDIRS"; then
16410     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16411   fi
16412
16413
16414
16415   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16416 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16417     # Check whether --enable-nls was given.
16418 if test "${enable_nls+set}" = set; then
16419   enableval=$enable_nls; USE_NLS=$enableval
16420 else
16421   USE_NLS=yes
16422 fi
16423
16424   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16425 echo "${ECHO_T}$USE_NLS" >&6; }
16426
16427
16428
16429
16430
16431
16432 # Prepare PATH_SEPARATOR.
16433 # The user is always right.
16434 if test "${PATH_SEPARATOR+set}" != set; then
16435   echo "#! /bin/sh" >conf$$.sh
16436   echo  "exit 0"   >>conf$$.sh
16437   chmod +x conf$$.sh
16438   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16439     PATH_SEPARATOR=';'
16440   else
16441     PATH_SEPARATOR=:
16442   fi
16443   rm -f conf$$.sh
16444 fi
16445
16446 # Find out how to test for executable files. Don't use a zero-byte file,
16447 # as systems may use methods other than mode bits to determine executability.
16448 cat >conf$$.file <<_ASEOF
16449 #! /bin/sh
16450 exit 0
16451 _ASEOF
16452 chmod +x conf$$.file
16453 if test -x conf$$.file >/dev/null 2>&1; then
16454   ac_executable_p="test -x"
16455 else
16456   ac_executable_p="test -f"
16457 fi
16458 rm -f conf$$.file
16459
16460 # Extract the first word of "msgfmt", so it can be a program name with args.
16461 set dummy msgfmt; ac_word=$2
16462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16464 if test "${ac_cv_path_MSGFMT+set}" = set; then
16465   echo $ECHO_N "(cached) $ECHO_C" >&6
16466 else
16467   case "$MSGFMT" in
16468   [\\/]* | ?:[\\/]*)
16469     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16470     ;;
16471   *)
16472     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16473     for ac_dir in $PATH; do
16474       IFS="$ac_save_IFS"
16475       test -z "$ac_dir" && ac_dir=.
16476       for ac_exec_ext in '' $ac_executable_extensions; do
16477         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16478           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16479           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16480      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16481             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16482             break 2
16483           fi
16484         fi
16485       done
16486     done
16487     IFS="$ac_save_IFS"
16488   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16489     ;;
16490 esac
16491 fi
16492 MSGFMT="$ac_cv_path_MSGFMT"
16493 if test "$MSGFMT" != ":"; then
16494   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16495 echo "${ECHO_T}$MSGFMT" >&6; }
16496 else
16497   { echo "$as_me:$LINENO: result: no" >&5
16498 echo "${ECHO_T}no" >&6; }
16499 fi
16500
16501   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16502 set dummy gmsgfmt; ac_word=$2
16503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16505 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16506   echo $ECHO_N "(cached) $ECHO_C" >&6
16507 else
16508   case $GMSGFMT in
16509   [\\/]* | ?:[\\/]*)
16510   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16511   ;;
16512   *)
16513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16514 for as_dir in $PATH
16515 do
16516   IFS=$as_save_IFS
16517   test -z "$as_dir" && as_dir=.
16518   for ac_exec_ext in '' $ac_executable_extensions; do
16519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16520     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16522     break 2
16523   fi
16524 done
16525 done
16526 IFS=$as_save_IFS
16527
16528   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16529   ;;
16530 esac
16531 fi
16532 GMSGFMT=$ac_cv_path_GMSGFMT
16533 if test -n "$GMSGFMT"; then
16534   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16535 echo "${ECHO_T}$GMSGFMT" >&6; }
16536 else
16537   { echo "$as_me:$LINENO: result: no" >&5
16538 echo "${ECHO_T}no" >&6; }
16539 fi
16540
16541
16542
16543
16544 # Prepare PATH_SEPARATOR.
16545 # The user is always right.
16546 if test "${PATH_SEPARATOR+set}" != set; then
16547   echo "#! /bin/sh" >conf$$.sh
16548   echo  "exit 0"   >>conf$$.sh
16549   chmod +x conf$$.sh
16550   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16551     PATH_SEPARATOR=';'
16552   else
16553     PATH_SEPARATOR=:
16554   fi
16555   rm -f conf$$.sh
16556 fi
16557
16558 # Find out how to test for executable files. Don't use a zero-byte file,
16559 # as systems may use methods other than mode bits to determine executability.
16560 cat >conf$$.file <<_ASEOF
16561 #! /bin/sh
16562 exit 0
16563 _ASEOF
16564 chmod +x conf$$.file
16565 if test -x conf$$.file >/dev/null 2>&1; then
16566   ac_executable_p="test -x"
16567 else
16568   ac_executable_p="test -f"
16569 fi
16570 rm -f conf$$.file
16571
16572 # Extract the first word of "xgettext", so it can be a program name with args.
16573 set dummy xgettext; ac_word=$2
16574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16576 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16577   echo $ECHO_N "(cached) $ECHO_C" >&6
16578 else
16579   case "$XGETTEXT" in
16580   [\\/]* | ?:[\\/]*)
16581     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16582     ;;
16583   *)
16584     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16585     for ac_dir in $PATH; do
16586       IFS="$ac_save_IFS"
16587       test -z "$ac_dir" && ac_dir=.
16588       for ac_exec_ext in '' $ac_executable_extensions; do
16589         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16590           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16591           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16592      (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
16593             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16594             break 2
16595           fi
16596         fi
16597       done
16598     done
16599     IFS="$ac_save_IFS"
16600   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16601     ;;
16602 esac
16603 fi
16604 XGETTEXT="$ac_cv_path_XGETTEXT"
16605 if test "$XGETTEXT" != ":"; then
16606   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16607 echo "${ECHO_T}$XGETTEXT" >&6; }
16608 else
16609   { echo "$as_me:$LINENO: result: no" >&5
16610 echo "${ECHO_T}no" >&6; }
16611 fi
16612
16613     rm -f messages.po
16614
16615
16616 # Prepare PATH_SEPARATOR.
16617 # The user is always right.
16618 if test "${PATH_SEPARATOR+set}" != set; then
16619   echo "#! /bin/sh" >conf$$.sh
16620   echo  "exit 0"   >>conf$$.sh
16621   chmod +x conf$$.sh
16622   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16623     PATH_SEPARATOR=';'
16624   else
16625     PATH_SEPARATOR=:
16626   fi
16627   rm -f conf$$.sh
16628 fi
16629
16630 # Find out how to test for executable files. Don't use a zero-byte file,
16631 # as systems may use methods other than mode bits to determine executability.
16632 cat >conf$$.file <<_ASEOF
16633 #! /bin/sh
16634 exit 0
16635 _ASEOF
16636 chmod +x conf$$.file
16637 if test -x conf$$.file >/dev/null 2>&1; then
16638   ac_executable_p="test -x"
16639 else
16640   ac_executable_p="test -f"
16641 fi
16642 rm -f conf$$.file
16643
16644 # Extract the first word of "msgmerge", so it can be a program name with args.
16645 set dummy msgmerge; ac_word=$2
16646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16648 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16649   echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651   case "$MSGMERGE" in
16652   [\\/]* | ?:[\\/]*)
16653     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16654     ;;
16655   *)
16656     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16657     for ac_dir in $PATH; do
16658       IFS="$ac_save_IFS"
16659       test -z "$ac_dir" && ac_dir=.
16660       for ac_exec_ext in '' $ac_executable_extensions; do
16661         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16662           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16663           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16664             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16665             break 2
16666           fi
16667         fi
16668       done
16669     done
16670     IFS="$ac_save_IFS"
16671   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16672     ;;
16673 esac
16674 fi
16675 MSGMERGE="$ac_cv_path_MSGMERGE"
16676 if test "$MSGMERGE" != ":"; then
16677   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16678 echo "${ECHO_T}$MSGMERGE" >&6; }
16679 else
16680   { echo "$as_me:$LINENO: result: no" >&5
16681 echo "${ECHO_T}no" >&6; }
16682 fi
16683
16684
16685       if test "$GMSGFMT" != ":"; then
16686             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16687        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16688       : ;
16689     else
16690       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16691       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16692 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16693       GMSGFMT=":"
16694     fi
16695   fi
16696
16697       if test "$XGETTEXT" != ":"; then
16698             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16699        (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
16700       : ;
16701     else
16702       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16703 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16704       XGETTEXT=":"
16705     fi
16706         rm -f messages.po
16707   fi
16708
16709   ac_config_commands="$ac_config_commands default-1"
16710
16711
16712
16713       if test "X$prefix" = "XNONE"; then
16714     acl_final_prefix="$ac_default_prefix"
16715   else
16716     acl_final_prefix="$prefix"
16717   fi
16718   if test "X$exec_prefix" = "XNONE"; then
16719     acl_final_exec_prefix='${prefix}'
16720   else
16721     acl_final_exec_prefix="$exec_prefix"
16722   fi
16723   acl_save_prefix="$prefix"
16724   prefix="$acl_final_prefix"
16725   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16726   prefix="$acl_save_prefix"
16727
16728
16729 # Check whether --with-gnu-ld was given.
16730 if test "${with_gnu_ld+set}" = set; then
16731   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16732 else
16733   with_gnu_ld=no
16734 fi
16735
16736 # Prepare PATH_SEPARATOR.
16737 # The user is always right.
16738 if test "${PATH_SEPARATOR+set}" != set; then
16739   echo "#! /bin/sh" >conf$$.sh
16740   echo  "exit 0"   >>conf$$.sh
16741   chmod +x conf$$.sh
16742   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16743     PATH_SEPARATOR=';'
16744   else
16745     PATH_SEPARATOR=:
16746   fi
16747   rm -f conf$$.sh
16748 fi
16749 ac_prog=ld
16750 if test "$GCC" = yes; then
16751   # Check if gcc -print-prog-name=ld gives a path.
16752   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16753 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16754   case $host in
16755   *-*-mingw*)
16756     # gcc leaves a trailing carriage return which upsets mingw
16757     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16758   *)
16759     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16760   esac
16761   case $ac_prog in
16762     # Accept absolute paths.
16763     [\\/]* | [A-Za-z]:[\\/]*)
16764       re_direlt='/[^/][^/]*/\.\./'
16765       # Canonicalize the path of ld
16766       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16767       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16768         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16769       done
16770       test -z "$LD" && LD="$ac_prog"
16771       ;;
16772   "")
16773     # If it fails, then pretend we aren't using GCC.
16774     ac_prog=ld
16775     ;;
16776   *)
16777     # If it is relative, then search for the first ld in PATH.
16778     with_gnu_ld=unknown
16779     ;;
16780   esac
16781 elif test "$with_gnu_ld" = yes; then
16782   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16783 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16784 else
16785   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16786 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16787 fi
16788 if test "${acl_cv_path_LD+set}" = set; then
16789   echo $ECHO_N "(cached) $ECHO_C" >&6
16790 else
16791   if test -z "$LD"; then
16792   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16793   for ac_dir in $PATH; do
16794     test -z "$ac_dir" && ac_dir=.
16795     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16796       acl_cv_path_LD="$ac_dir/$ac_prog"
16797       # Check to see if the program is GNU ld.  I'd rather use --version,
16798       # but apparently some GNU ld's only accept -v.
16799       # Break only if it was the GNU/non-GNU ld that we prefer.
16800       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16801       *GNU* | *'with BFD'*)
16802         test "$with_gnu_ld" != no && break ;;
16803       *)
16804         test "$with_gnu_ld" != yes && break ;;
16805       esac
16806     fi
16807   done
16808   IFS="$ac_save_ifs"
16809 else
16810   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16811 fi
16812 fi
16813
16814 LD="$acl_cv_path_LD"
16815 if test -n "$LD"; then
16816   { echo "$as_me:$LINENO: result: $LD" >&5
16817 echo "${ECHO_T}$LD" >&6; }
16818 else
16819   { echo "$as_me:$LINENO: result: no" >&5
16820 echo "${ECHO_T}no" >&6; }
16821 fi
16822 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16823 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16824    { (exit 1); exit 1; }; }
16825 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16826 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16827 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16828   echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16831 case `$LD -v 2>&1 </dev/null` in
16832 *GNU* | *'with BFD'*)
16833   acl_cv_prog_gnu_ld=yes ;;
16834 *)
16835   acl_cv_prog_gnu_ld=no ;;
16836 esac
16837 fi
16838 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16839 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16840 with_gnu_ld=$acl_cv_prog_gnu_ld
16841
16842
16843
16844
16845                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16846 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16847 if test "${acl_cv_rpath+set}" = set; then
16848   echo $ECHO_N "(cached) $ECHO_C" >&6
16849 else
16850
16851     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16852     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16853     . ./conftest.sh
16854     rm -f ./conftest.sh
16855     acl_cv_rpath=done
16856
16857 fi
16858 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16859 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16860   wl="$acl_cv_wl"
16861   libext="$acl_cv_libext"
16862   shlibext="$acl_cv_shlibext"
16863   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16864   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16865   hardcode_direct="$acl_cv_hardcode_direct"
16866   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16867     # Check whether --enable-rpath was given.
16868 if test "${enable_rpath+set}" = set; then
16869   enableval=$enable_rpath; :
16870 else
16871   enable_rpath=yes
16872 fi
16873
16874
16875
16876
16877
16878
16879
16880
16881     use_additional=yes
16882
16883   acl_save_prefix="$prefix"
16884   prefix="$acl_final_prefix"
16885   acl_save_exec_prefix="$exec_prefix"
16886   exec_prefix="$acl_final_exec_prefix"
16887
16888     eval additional_includedir=\"$includedir\"
16889     eval additional_libdir=\"$libdir\"
16890
16891   exec_prefix="$acl_save_exec_prefix"
16892   prefix="$acl_save_prefix"
16893
16894
16895 # Check whether --with-libiconv-prefix was given.
16896 if test "${with_libiconv_prefix+set}" = set; then
16897   withval=$with_libiconv_prefix;
16898     if test "X$withval" = "Xno"; then
16899       use_additional=no
16900     else
16901       if test "X$withval" = "X"; then
16902
16903   acl_save_prefix="$prefix"
16904   prefix="$acl_final_prefix"
16905   acl_save_exec_prefix="$exec_prefix"
16906   exec_prefix="$acl_final_exec_prefix"
16907
16908           eval additional_includedir=\"$includedir\"
16909           eval additional_libdir=\"$libdir\"
16910
16911   exec_prefix="$acl_save_exec_prefix"
16912   prefix="$acl_save_prefix"
16913
16914       else
16915         additional_includedir="$withval/include"
16916         additional_libdir="$withval/lib"
16917       fi
16918     fi
16919
16920 fi
16921
16922       LIBICONV=
16923   LTLIBICONV=
16924   INCICONV=
16925   rpathdirs=
16926   ltrpathdirs=
16927   names_already_handled=
16928   names_next_round='iconv '
16929   while test -n "$names_next_round"; do
16930     names_this_round="$names_next_round"
16931     names_next_round=
16932     for name in $names_this_round; do
16933       already_handled=
16934       for n in $names_already_handled; do
16935         if test "$n" = "$name"; then
16936           already_handled=yes
16937           break
16938         fi
16939       done
16940       if test -z "$already_handled"; then
16941         names_already_handled="$names_already_handled $name"
16942                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16943         eval value=\"\$HAVE_LIB$uppername\"
16944         if test -n "$value"; then
16945           if test "$value" = yes; then
16946             eval value=\"\$LIB$uppername\"
16947             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16948             eval value=\"\$LTLIB$uppername\"
16949             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16950           else
16951                                     :
16952           fi
16953         else
16954                               found_dir=
16955           found_la=
16956           found_so=
16957           found_a=
16958           if test $use_additional = yes; then
16959             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16960               found_dir="$additional_libdir"
16961               found_so="$additional_libdir/lib$name.$shlibext"
16962               if test -f "$additional_libdir/lib$name.la"; then
16963                 found_la="$additional_libdir/lib$name.la"
16964               fi
16965             else
16966               if test -f "$additional_libdir/lib$name.$libext"; then
16967                 found_dir="$additional_libdir"
16968                 found_a="$additional_libdir/lib$name.$libext"
16969                 if test -f "$additional_libdir/lib$name.la"; then
16970                   found_la="$additional_libdir/lib$name.la"
16971                 fi
16972               fi
16973             fi
16974           fi
16975           if test "X$found_dir" = "X"; then
16976             for x in $LDFLAGS $LTLIBICONV; do
16977
16978   acl_save_prefix="$prefix"
16979   prefix="$acl_final_prefix"
16980   acl_save_exec_prefix="$exec_prefix"
16981   exec_prefix="$acl_final_exec_prefix"
16982   eval x=\"$x\"
16983   exec_prefix="$acl_save_exec_prefix"
16984   prefix="$acl_save_prefix"
16985
16986               case "$x" in
16987                 -L*)
16988                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16989                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16990                     found_dir="$dir"
16991                     found_so="$dir/lib$name.$shlibext"
16992                     if test -f "$dir/lib$name.la"; then
16993                       found_la="$dir/lib$name.la"
16994                     fi
16995                   else
16996                     if test -f "$dir/lib$name.$libext"; then
16997                       found_dir="$dir"
16998                       found_a="$dir/lib$name.$libext"
16999                       if test -f "$dir/lib$name.la"; then
17000                         found_la="$dir/lib$name.la"
17001                       fi
17002                     fi
17003                   fi
17004                   ;;
17005               esac
17006               if test "X$found_dir" != "X"; then
17007                 break
17008               fi
17009             done
17010           fi
17011           if test "X$found_dir" != "X"; then
17012                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17013             if test "X$found_so" != "X"; then
17014                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17015                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17016               else
17017                                                                                 haveit=
17018                 for x in $ltrpathdirs; do
17019                   if test "X$x" = "X$found_dir"; then
17020                     haveit=yes
17021                     break
17022                   fi
17023                 done
17024                 if test -z "$haveit"; then
17025                   ltrpathdirs="$ltrpathdirs $found_dir"
17026                 fi
17027                                 if test "$hardcode_direct" = yes; then
17028                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17029                 else
17030                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17031                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17032                                                             haveit=
17033                     for x in $rpathdirs; do
17034                       if test "X$x" = "X$found_dir"; then
17035                         haveit=yes
17036                         break
17037                       fi
17038                     done
17039                     if test -z "$haveit"; then
17040                       rpathdirs="$rpathdirs $found_dir"
17041                     fi
17042                   else
17043                                                                                 haveit=
17044                     for x in $LDFLAGS $LIBICONV; do
17045
17046   acl_save_prefix="$prefix"
17047   prefix="$acl_final_prefix"
17048   acl_save_exec_prefix="$exec_prefix"
17049   exec_prefix="$acl_final_exec_prefix"
17050   eval x=\"$x\"
17051   exec_prefix="$acl_save_exec_prefix"
17052   prefix="$acl_save_prefix"
17053
17054                       if test "X$x" = "X-L$found_dir"; then
17055                         haveit=yes
17056                         break
17057                       fi
17058                     done
17059                     if test -z "$haveit"; then
17060                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17061                     fi
17062                     if test "$hardcode_minus_L" != no; then
17063                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17064                     else
17065                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17066                     fi
17067                   fi
17068                 fi
17069               fi
17070             else
17071               if test "X$found_a" != "X"; then
17072                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17073               else
17074                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17075               fi
17076             fi
17077                         additional_includedir=
17078             case "$found_dir" in
17079               */lib | */lib/)
17080                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17081                 additional_includedir="$basedir/include"
17082                 ;;
17083             esac
17084             if test "X$additional_includedir" != "X"; then
17085                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17086                 haveit=
17087                 if test "X$additional_includedir" = "X/usr/local/include"; then
17088                   if test -n "$GCC"; then
17089                     case $host_os in
17090                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17091                     esac
17092                   fi
17093                 fi
17094                 if test -z "$haveit"; then
17095                   for x in $CPPFLAGS $INCICONV; do
17096
17097   acl_save_prefix="$prefix"
17098   prefix="$acl_final_prefix"
17099   acl_save_exec_prefix="$exec_prefix"
17100   exec_prefix="$acl_final_exec_prefix"
17101   eval x=\"$x\"
17102   exec_prefix="$acl_save_exec_prefix"
17103   prefix="$acl_save_prefix"
17104
17105                     if test "X$x" = "X-I$additional_includedir"; then
17106                       haveit=yes
17107                       break
17108                     fi
17109                   done
17110                   if test -z "$haveit"; then
17111                     if test -d "$additional_includedir"; then
17112                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17113                     fi
17114                   fi
17115                 fi
17116               fi
17117             fi
17118                         if test -n "$found_la"; then
17119                                                         save_libdir="$libdir"
17120               case "$found_la" in
17121                 */* | *\\*) . "$found_la" ;;
17122                 *) . "./$found_la" ;;
17123               esac
17124               libdir="$save_libdir"
17125                             for dep in $dependency_libs; do
17126                 case "$dep" in
17127                   -L*)
17128                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17129                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17130                       haveit=
17131                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17132                         if test -n "$GCC"; then
17133                           case $host_os in
17134                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17135                           esac
17136                         fi
17137                       fi
17138                       if test -z "$haveit"; then
17139                         haveit=
17140                         for x in $LDFLAGS $LIBICONV; do
17141
17142   acl_save_prefix="$prefix"
17143   prefix="$acl_final_prefix"
17144   acl_save_exec_prefix="$exec_prefix"
17145   exec_prefix="$acl_final_exec_prefix"
17146   eval x=\"$x\"
17147   exec_prefix="$acl_save_exec_prefix"
17148   prefix="$acl_save_prefix"
17149
17150                           if test "X$x" = "X-L$additional_libdir"; then
17151                             haveit=yes
17152                             break
17153                           fi
17154                         done
17155                         if test -z "$haveit"; then
17156                           if test -d "$additional_libdir"; then
17157                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17158                           fi
17159                         fi
17160                         haveit=
17161                         for x in $LDFLAGS $LTLIBICONV; do
17162
17163   acl_save_prefix="$prefix"
17164   prefix="$acl_final_prefix"
17165   acl_save_exec_prefix="$exec_prefix"
17166   exec_prefix="$acl_final_exec_prefix"
17167   eval x=\"$x\"
17168   exec_prefix="$acl_save_exec_prefix"
17169   prefix="$acl_save_prefix"
17170
17171                           if test "X$x" = "X-L$additional_libdir"; then
17172                             haveit=yes
17173                             break
17174                           fi
17175                         done
17176                         if test -z "$haveit"; then
17177                           if test -d "$additional_libdir"; then
17178                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17179                           fi
17180                         fi
17181                       fi
17182                     fi
17183                     ;;
17184                   -R*)
17185                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17186                     if test "$enable_rpath" != no; then
17187                                                                   haveit=
17188                       for x in $rpathdirs; do
17189                         if test "X$x" = "X$dir"; then
17190                           haveit=yes
17191                           break
17192                         fi
17193                       done
17194                       if test -z "$haveit"; then
17195                         rpathdirs="$rpathdirs $dir"
17196                       fi
17197                                                                   haveit=
17198                       for x in $ltrpathdirs; do
17199                         if test "X$x" = "X$dir"; then
17200                           haveit=yes
17201                           break
17202                         fi
17203                       done
17204                       if test -z "$haveit"; then
17205                         ltrpathdirs="$ltrpathdirs $dir"
17206                       fi
17207                     fi
17208                     ;;
17209                   -l*)
17210                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17211                     ;;
17212                   *.la)
17213                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17214                     ;;
17215                   *)
17216                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17217                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17218                     ;;
17219                 esac
17220               done
17221             fi
17222           else
17223                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17224             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17225           fi
17226         fi
17227       fi
17228     done
17229   done
17230   if test "X$rpathdirs" != "X"; then
17231     if test -n "$hardcode_libdir_separator"; then
17232                         alldirs=
17233       for found_dir in $rpathdirs; do
17234         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17235       done
17236             acl_save_libdir="$libdir"
17237       libdir="$alldirs"
17238       eval flag=\"$hardcode_libdir_flag_spec\"
17239       libdir="$acl_save_libdir"
17240       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17241     else
17242             for found_dir in $rpathdirs; do
17243         acl_save_libdir="$libdir"
17244         libdir="$found_dir"
17245         eval flag=\"$hardcode_libdir_flag_spec\"
17246         libdir="$acl_save_libdir"
17247         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17248       done
17249     fi
17250   fi
17251   if test "X$ltrpathdirs" != "X"; then
17252             for found_dir in $ltrpathdirs; do
17253       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17254     done
17255   fi
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17275 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17276 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17277   echo $ECHO_N "(cached) $ECHO_C" >&6
17278 else
17279   gt_save_CPPFLAGS="$CPPFLAGS"
17280      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17281      gt_save_LIBS="$LIBS"
17282      LIBS="$LIBS -framework CoreFoundation"
17283      cat >conftest.$ac_ext <<_ACEOF
17284 /* confdefs.h.  */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h.  */
17289 #include <CFPreferences.h>
17290 int
17291 main ()
17292 {
17293 CFPreferencesCopyAppValue(NULL, NULL)
17294   ;
17295   return 0;
17296 }
17297 _ACEOF
17298 rm -f conftest.$ac_objext conftest$ac_exeext
17299 if { (ac_try="$ac_link"
17300 case "(($ac_try" in
17301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302   *) ac_try_echo=$ac_try;;
17303 esac
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305   (eval "$ac_link") 2>conftest.er1
17306   ac_status=$?
17307   grep -v '^ *+' conftest.er1 >conftest.err
17308   rm -f conftest.er1
17309   cat conftest.err >&5
17310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311   (exit $ac_status); } && {
17312          test -z "$ac_c_werror_flag" ||
17313          test ! -s conftest.err
17314        } && test -s conftest$ac_exeext &&
17315        $as_test_x conftest$ac_exeext; then
17316   gt_cv_func_CFPreferencesCopyAppValue=yes
17317 else
17318   echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17320
17321         gt_cv_func_CFPreferencesCopyAppValue=no
17322 fi
17323
17324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17325       conftest$ac_exeext conftest.$ac_ext
17326      CPPFLAGS="$gt_save_CPPFLAGS"
17327      LIBS="$gt_save_LIBS"
17328 fi
17329 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17330 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17331   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17332
17333 cat >>confdefs.h <<\_ACEOF
17334 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17335 _ACEOF
17336
17337   fi
17338     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17339 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17340 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17341   echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343   gt_save_CPPFLAGS="$CPPFLAGS"
17344      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17345      gt_save_LIBS="$LIBS"
17346      LIBS="$LIBS -framework CoreFoundation"
17347      cat >conftest.$ac_ext <<_ACEOF
17348 /* confdefs.h.  */
17349 _ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h.  */
17353 #include <CFLocale.h>
17354 int
17355 main ()
17356 {
17357 CFLocaleCopyCurrent();
17358   ;
17359   return 0;
17360 }
17361 _ACEOF
17362 rm -f conftest.$ac_objext conftest$ac_exeext
17363 if { (ac_try="$ac_link"
17364 case "(($ac_try" in
17365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366   *) ac_try_echo=$ac_try;;
17367 esac
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369   (eval "$ac_link") 2>conftest.er1
17370   ac_status=$?
17371   grep -v '^ *+' conftest.er1 >conftest.err
17372   rm -f conftest.er1
17373   cat conftest.err >&5
17374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375   (exit $ac_status); } && {
17376          test -z "$ac_c_werror_flag" ||
17377          test ! -s conftest.err
17378        } && test -s conftest$ac_exeext &&
17379        $as_test_x conftest$ac_exeext; then
17380   gt_cv_func_CFLocaleCopyCurrent=yes
17381 else
17382   echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17384
17385         gt_cv_func_CFLocaleCopyCurrent=no
17386 fi
17387
17388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17389       conftest$ac_exeext conftest.$ac_ext
17390      CPPFLAGS="$gt_save_CPPFLAGS"
17391      LIBS="$gt_save_LIBS"
17392 fi
17393 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17394 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17395   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17396
17397 cat >>confdefs.h <<\_ACEOF
17398 #define HAVE_CFLOCALECOPYCURRENT 1
17399 _ACEOF
17400
17401   fi
17402   INTL_MACOSX_LIBS=
17403   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17404     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17405   fi
17406
17407
17408
17409
17410   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17411 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17412     # Check whether --enable-nls was given.
17413 if test "${enable_nls+set}" = set; then
17414   enableval=$enable_nls; USE_NLS=$enableval
17415 else
17416   USE_NLS=yes
17417 fi
17418
17419   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17420 echo "${ECHO_T}$USE_NLS" >&6; }
17421
17422
17423
17424
17425   LIBINTL=
17426   LTLIBINTL=
17427   POSUB=
17428
17429     if test "$USE_NLS" = "yes"; then
17430     gt_use_preinstalled_gnugettext=no
17431
17432
17433
17434
17435
17436
17437         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17438 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17439 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17440   echo $ECHO_N "(cached) $ECHO_C" >&6
17441 else
17442   cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h.  */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h.  */
17448 #include <libintl.h>
17449 extern int _nl_msg_cat_cntr;
17450 extern int *_nl_domain_bindings;
17451 int
17452 main ()
17453 {
17454 bindtextdomain ("", "");
17455 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17456   ;
17457   return 0;
17458 }
17459 _ACEOF
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (ac_try="$ac_link"
17462 case "(($ac_try" in
17463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464   *) ac_try_echo=$ac_try;;
17465 esac
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467   (eval "$ac_link") 2>conftest.er1
17468   ac_status=$?
17469   grep -v '^ *+' conftest.er1 >conftest.err
17470   rm -f conftest.er1
17471   cat conftest.err >&5
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); } && {
17474          test -z "$ac_c_werror_flag" ||
17475          test ! -s conftest.err
17476        } && test -s conftest$ac_exeext &&
17477        $as_test_x conftest$ac_exeext; then
17478   gt_cv_func_gnugettext1_libc=yes
17479 else
17480   echo "$as_me: failed program was:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17482
17483         gt_cv_func_gnugettext1_libc=no
17484 fi
17485
17486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17487       conftest$ac_exeext conftest.$ac_ext
17488 fi
17489 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17490 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17491
17492         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17493
17494
17495
17496
17497
17498           am_save_CPPFLAGS="$CPPFLAGS"
17499
17500   for element in $INCICONV; do
17501     haveit=
17502     for x in $CPPFLAGS; do
17503
17504   acl_save_prefix="$prefix"
17505   prefix="$acl_final_prefix"
17506   acl_save_exec_prefix="$exec_prefix"
17507   exec_prefix="$acl_final_exec_prefix"
17508   eval x=\"$x\"
17509   exec_prefix="$acl_save_exec_prefix"
17510   prefix="$acl_save_prefix"
17511
17512       if test "X$x" = "X$element"; then
17513         haveit=yes
17514         break
17515       fi
17516     done
17517     if test -z "$haveit"; then
17518       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17519     fi
17520   done
17521
17522
17523   { echo "$as_me:$LINENO: checking for iconv" >&5
17524 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17525 if test "${am_cv_func_iconv+set}" = set; then
17526   echo $ECHO_N "(cached) $ECHO_C" >&6
17527 else
17528
17529     am_cv_func_iconv="no, consider installing GNU libiconv"
17530     am_cv_lib_iconv=no
17531     cat >conftest.$ac_ext <<_ACEOF
17532 /* confdefs.h.  */
17533 _ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h.  */
17537 #include <stdlib.h>
17538 #include <iconv.h>
17539 int
17540 main ()
17541 {
17542 iconv_t cd = iconv_open("","");
17543        iconv(cd,NULL,NULL,NULL,NULL);
17544        iconv_close(cd);
17545   ;
17546   return 0;
17547 }
17548 _ACEOF
17549 rm -f conftest.$ac_objext conftest$ac_exeext
17550 if { (ac_try="$ac_link"
17551 case "(($ac_try" in
17552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553   *) ac_try_echo=$ac_try;;
17554 esac
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556   (eval "$ac_link") 2>conftest.er1
17557   ac_status=$?
17558   grep -v '^ *+' conftest.er1 >conftest.err
17559   rm -f conftest.er1
17560   cat conftest.err >&5
17561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); } && {
17563          test -z "$ac_c_werror_flag" ||
17564          test ! -s conftest.err
17565        } && test -s conftest$ac_exeext &&
17566        $as_test_x conftest$ac_exeext; then
17567   am_cv_func_iconv=yes
17568 else
17569   echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17571
17572
17573 fi
17574
17575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17576       conftest$ac_exeext conftest.$ac_ext
17577     if test "$am_cv_func_iconv" != yes; then
17578       am_save_LIBS="$LIBS"
17579       LIBS="$LIBS $LIBICONV"
17580       cat >conftest.$ac_ext <<_ACEOF
17581 /* confdefs.h.  */
17582 _ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h.  */
17586 #include <stdlib.h>
17587 #include <iconv.h>
17588 int
17589 main ()
17590 {
17591 iconv_t cd = iconv_open("","");
17592          iconv(cd,NULL,NULL,NULL,NULL);
17593          iconv_close(cd);
17594   ;
17595   return 0;
17596 }
17597 _ACEOF
17598 rm -f conftest.$ac_objext conftest$ac_exeext
17599 if { (ac_try="$ac_link"
17600 case "(($ac_try" in
17601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602   *) ac_try_echo=$ac_try;;
17603 esac
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605   (eval "$ac_link") 2>conftest.er1
17606   ac_status=$?
17607   grep -v '^ *+' conftest.er1 >conftest.err
17608   rm -f conftest.er1
17609   cat conftest.err >&5
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); } && {
17612          test -z "$ac_c_werror_flag" ||
17613          test ! -s conftest.err
17614        } && test -s conftest$ac_exeext &&
17615        $as_test_x conftest$ac_exeext; then
17616   am_cv_lib_iconv=yes
17617         am_cv_func_iconv=yes
17618 else
17619   echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17621
17622
17623 fi
17624
17625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17626       conftest$ac_exeext conftest.$ac_ext
17627       LIBS="$am_save_LIBS"
17628     fi
17629
17630 fi
17631 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17632 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17633   if test "$am_cv_func_iconv" = yes; then
17634
17635 cat >>confdefs.h <<\_ACEOF
17636 #define HAVE_ICONV 1
17637 _ACEOF
17638
17639   fi
17640   if test "$am_cv_lib_iconv" = yes; then
17641     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17642 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17643     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17644 echo "${ECHO_T}$LIBICONV" >&6; }
17645   else
17646             CPPFLAGS="$am_save_CPPFLAGS"
17647     LIBICONV=
17648     LTLIBICONV=
17649   fi
17650
17651
17652
17653
17654
17655
17656     use_additional=yes
17657
17658   acl_save_prefix="$prefix"
17659   prefix="$acl_final_prefix"
17660   acl_save_exec_prefix="$exec_prefix"
17661   exec_prefix="$acl_final_exec_prefix"
17662
17663     eval additional_includedir=\"$includedir\"
17664     eval additional_libdir=\"$libdir\"
17665
17666   exec_prefix="$acl_save_exec_prefix"
17667   prefix="$acl_save_prefix"
17668
17669
17670 # Check whether --with-libintl-prefix was given.
17671 if test "${with_libintl_prefix+set}" = set; then
17672   withval=$with_libintl_prefix;
17673     if test "X$withval" = "Xno"; then
17674       use_additional=no
17675     else
17676       if test "X$withval" = "X"; then
17677
17678   acl_save_prefix="$prefix"
17679   prefix="$acl_final_prefix"
17680   acl_save_exec_prefix="$exec_prefix"
17681   exec_prefix="$acl_final_exec_prefix"
17682
17683           eval additional_includedir=\"$includedir\"
17684           eval additional_libdir=\"$libdir\"
17685
17686   exec_prefix="$acl_save_exec_prefix"
17687   prefix="$acl_save_prefix"
17688
17689       else
17690         additional_includedir="$withval/include"
17691         additional_libdir="$withval/lib"
17692       fi
17693     fi
17694
17695 fi
17696
17697       LIBINTL=
17698   LTLIBINTL=
17699   INCINTL=
17700   rpathdirs=
17701   ltrpathdirs=
17702   names_already_handled=
17703   names_next_round='intl '
17704   while test -n "$names_next_round"; do
17705     names_this_round="$names_next_round"
17706     names_next_round=
17707     for name in $names_this_round; do
17708       already_handled=
17709       for n in $names_already_handled; do
17710         if test "$n" = "$name"; then
17711           already_handled=yes
17712           break
17713         fi
17714       done
17715       if test -z "$already_handled"; then
17716         names_already_handled="$names_already_handled $name"
17717                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17718         eval value=\"\$HAVE_LIB$uppername\"
17719         if test -n "$value"; then
17720           if test "$value" = yes; then
17721             eval value=\"\$LIB$uppername\"
17722             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17723             eval value=\"\$LTLIB$uppername\"
17724             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17725           else
17726                                     :
17727           fi
17728         else
17729                               found_dir=
17730           found_la=
17731           found_so=
17732           found_a=
17733           if test $use_additional = yes; then
17734             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17735               found_dir="$additional_libdir"
17736               found_so="$additional_libdir/lib$name.$shlibext"
17737               if test -f "$additional_libdir/lib$name.la"; then
17738                 found_la="$additional_libdir/lib$name.la"
17739               fi
17740             else
17741               if test -f "$additional_libdir/lib$name.$libext"; then
17742                 found_dir="$additional_libdir"
17743                 found_a="$additional_libdir/lib$name.$libext"
17744                 if test -f "$additional_libdir/lib$name.la"; then
17745                   found_la="$additional_libdir/lib$name.la"
17746                 fi
17747               fi
17748             fi
17749           fi
17750           if test "X$found_dir" = "X"; then
17751             for x in $LDFLAGS $LTLIBINTL; do
17752
17753   acl_save_prefix="$prefix"
17754   prefix="$acl_final_prefix"
17755   acl_save_exec_prefix="$exec_prefix"
17756   exec_prefix="$acl_final_exec_prefix"
17757   eval x=\"$x\"
17758   exec_prefix="$acl_save_exec_prefix"
17759   prefix="$acl_save_prefix"
17760
17761               case "$x" in
17762                 -L*)
17763                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17764                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17765                     found_dir="$dir"
17766                     found_so="$dir/lib$name.$shlibext"
17767                     if test -f "$dir/lib$name.la"; then
17768                       found_la="$dir/lib$name.la"
17769                     fi
17770                   else
17771                     if test -f "$dir/lib$name.$libext"; then
17772                       found_dir="$dir"
17773                       found_a="$dir/lib$name.$libext"
17774                       if test -f "$dir/lib$name.la"; then
17775                         found_la="$dir/lib$name.la"
17776                       fi
17777                     fi
17778                   fi
17779                   ;;
17780               esac
17781               if test "X$found_dir" != "X"; then
17782                 break
17783               fi
17784             done
17785           fi
17786           if test "X$found_dir" != "X"; then
17787                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17788             if test "X$found_so" != "X"; then
17789                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17790                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17791               else
17792                                                                                 haveit=
17793                 for x in $ltrpathdirs; do
17794                   if test "X$x" = "X$found_dir"; then
17795                     haveit=yes
17796                     break
17797                   fi
17798                 done
17799                 if test -z "$haveit"; then
17800                   ltrpathdirs="$ltrpathdirs $found_dir"
17801                 fi
17802                                 if test "$hardcode_direct" = yes; then
17803                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17804                 else
17805                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17806                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17807                                                             haveit=
17808                     for x in $rpathdirs; do
17809                       if test "X$x" = "X$found_dir"; then
17810                         haveit=yes
17811                         break
17812                       fi
17813                     done
17814                     if test -z "$haveit"; then
17815                       rpathdirs="$rpathdirs $found_dir"
17816                     fi
17817                   else
17818                                                                                 haveit=
17819                     for x in $LDFLAGS $LIBINTL; do
17820
17821   acl_save_prefix="$prefix"
17822   prefix="$acl_final_prefix"
17823   acl_save_exec_prefix="$exec_prefix"
17824   exec_prefix="$acl_final_exec_prefix"
17825   eval x=\"$x\"
17826   exec_prefix="$acl_save_exec_prefix"
17827   prefix="$acl_save_prefix"
17828
17829                       if test "X$x" = "X-L$found_dir"; then
17830                         haveit=yes
17831                         break
17832                       fi
17833                     done
17834                     if test -z "$haveit"; then
17835                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17836                     fi
17837                     if test "$hardcode_minus_L" != no; then
17838                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17839                     else
17840                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17841                     fi
17842                   fi
17843                 fi
17844               fi
17845             else
17846               if test "X$found_a" != "X"; then
17847                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17848               else
17849                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17850               fi
17851             fi
17852                         additional_includedir=
17853             case "$found_dir" in
17854               */lib | */lib/)
17855                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17856                 additional_includedir="$basedir/include"
17857                 ;;
17858             esac
17859             if test "X$additional_includedir" != "X"; then
17860                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17861                 haveit=
17862                 if test "X$additional_includedir" = "X/usr/local/include"; then
17863                   if test -n "$GCC"; then
17864                     case $host_os in
17865                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17866                     esac
17867                   fi
17868                 fi
17869                 if test -z "$haveit"; then
17870                   for x in $CPPFLAGS $INCINTL; do
17871
17872   acl_save_prefix="$prefix"
17873   prefix="$acl_final_prefix"
17874   acl_save_exec_prefix="$exec_prefix"
17875   exec_prefix="$acl_final_exec_prefix"
17876   eval x=\"$x\"
17877   exec_prefix="$acl_save_exec_prefix"
17878   prefix="$acl_save_prefix"
17879
17880                     if test "X$x" = "X-I$additional_includedir"; then
17881                       haveit=yes
17882                       break
17883                     fi
17884                   done
17885                   if test -z "$haveit"; then
17886                     if test -d "$additional_includedir"; then
17887                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17888                     fi
17889                   fi
17890                 fi
17891               fi
17892             fi
17893                         if test -n "$found_la"; then
17894                                                         save_libdir="$libdir"
17895               case "$found_la" in
17896                 */* | *\\*) . "$found_la" ;;
17897                 *) . "./$found_la" ;;
17898               esac
17899               libdir="$save_libdir"
17900                             for dep in $dependency_libs; do
17901                 case "$dep" in
17902                   -L*)
17903                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17904                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17905                       haveit=
17906                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17907                         if test -n "$GCC"; then
17908                           case $host_os in
17909                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17910                           esac
17911                         fi
17912                       fi
17913                       if test -z "$haveit"; then
17914                         haveit=
17915                         for x in $LDFLAGS $LIBINTL; do
17916
17917   acl_save_prefix="$prefix"
17918   prefix="$acl_final_prefix"
17919   acl_save_exec_prefix="$exec_prefix"
17920   exec_prefix="$acl_final_exec_prefix"
17921   eval x=\"$x\"
17922   exec_prefix="$acl_save_exec_prefix"
17923   prefix="$acl_save_prefix"
17924
17925                           if test "X$x" = "X-L$additional_libdir"; then
17926                             haveit=yes
17927                             break
17928                           fi
17929                         done
17930                         if test -z "$haveit"; then
17931                           if test -d "$additional_libdir"; then
17932                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17933                           fi
17934                         fi
17935                         haveit=
17936                         for x in $LDFLAGS $LTLIBINTL; do
17937
17938   acl_save_prefix="$prefix"
17939   prefix="$acl_final_prefix"
17940   acl_save_exec_prefix="$exec_prefix"
17941   exec_prefix="$acl_final_exec_prefix"
17942   eval x=\"$x\"
17943   exec_prefix="$acl_save_exec_prefix"
17944   prefix="$acl_save_prefix"
17945
17946                           if test "X$x" = "X-L$additional_libdir"; then
17947                             haveit=yes
17948                             break
17949                           fi
17950                         done
17951                         if test -z "$haveit"; then
17952                           if test -d "$additional_libdir"; then
17953                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17954                           fi
17955                         fi
17956                       fi
17957                     fi
17958                     ;;
17959                   -R*)
17960                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17961                     if test "$enable_rpath" != no; then
17962                                                                   haveit=
17963                       for x in $rpathdirs; do
17964                         if test "X$x" = "X$dir"; then
17965                           haveit=yes
17966                           break
17967                         fi
17968                       done
17969                       if test -z "$haveit"; then
17970                         rpathdirs="$rpathdirs $dir"
17971                       fi
17972                                                                   haveit=
17973                       for x in $ltrpathdirs; do
17974                         if test "X$x" = "X$dir"; then
17975                           haveit=yes
17976                           break
17977                         fi
17978                       done
17979                       if test -z "$haveit"; then
17980                         ltrpathdirs="$ltrpathdirs $dir"
17981                       fi
17982                     fi
17983                     ;;
17984                   -l*)
17985                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17986                     ;;
17987                   *.la)
17988                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17989                     ;;
17990                   *)
17991                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17992                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17993                     ;;
17994                 esac
17995               done
17996             fi
17997           else
17998                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17999             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18000           fi
18001         fi
18002       fi
18003     done
18004   done
18005   if test "X$rpathdirs" != "X"; then
18006     if test -n "$hardcode_libdir_separator"; then
18007                         alldirs=
18008       for found_dir in $rpathdirs; do
18009         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18010       done
18011             acl_save_libdir="$libdir"
18012       libdir="$alldirs"
18013       eval flag=\"$hardcode_libdir_flag_spec\"
18014       libdir="$acl_save_libdir"
18015       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18016     else
18017             for found_dir in $rpathdirs; do
18018         acl_save_libdir="$libdir"
18019         libdir="$found_dir"
18020         eval flag=\"$hardcode_libdir_flag_spec\"
18021         libdir="$acl_save_libdir"
18022         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18023       done
18024     fi
18025   fi
18026   if test "X$ltrpathdirs" != "X"; then
18027             for found_dir in $ltrpathdirs; do
18028       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18029     done
18030   fi
18031
18032           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18033 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18034 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18035   echo $ECHO_N "(cached) $ECHO_C" >&6
18036 else
18037   gt_save_CPPFLAGS="$CPPFLAGS"
18038             CPPFLAGS="$CPPFLAGS $INCINTL"
18039             gt_save_LIBS="$LIBS"
18040             LIBS="$LIBS $LIBINTL"
18041                         cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h.  */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h.  */
18047 #include <libintl.h>
18048 extern int _nl_msg_cat_cntr;
18049 extern
18050 #ifdef __cplusplus
18051 "C"
18052 #endif
18053 const char *_nl_expand_alias (const char *);
18054 int
18055 main ()
18056 {
18057 bindtextdomain ("", "");
18058 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18059   ;
18060   return 0;
18061 }
18062 _ACEOF
18063 rm -f conftest.$ac_objext conftest$ac_exeext
18064 if { (ac_try="$ac_link"
18065 case "(($ac_try" in
18066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067   *) ac_try_echo=$ac_try;;
18068 esac
18069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070   (eval "$ac_link") 2>conftest.er1
18071   ac_status=$?
18072   grep -v '^ *+' conftest.er1 >conftest.err
18073   rm -f conftest.er1
18074   cat conftest.err >&5
18075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076   (exit $ac_status); } && {
18077          test -z "$ac_c_werror_flag" ||
18078          test ! -s conftest.err
18079        } && test -s conftest$ac_exeext &&
18080        $as_test_x conftest$ac_exeext; then
18081   gt_cv_func_gnugettext1_libintl=yes
18082 else
18083   echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18085
18086         gt_cv_func_gnugettext1_libintl=no
18087 fi
18088
18089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18090       conftest$ac_exeext conftest.$ac_ext
18091                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18092               LIBS="$LIBS $LIBICONV"
18093               cat >conftest.$ac_ext <<_ACEOF
18094 /* confdefs.h.  */
18095 _ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h.  */
18099 #include <libintl.h>
18100 extern int _nl_msg_cat_cntr;
18101 extern
18102 #ifdef __cplusplus
18103 "C"
18104 #endif
18105 const char *_nl_expand_alias (const char *);
18106 int
18107 main ()
18108 {
18109 bindtextdomain ("", "");
18110 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18111   ;
18112   return 0;
18113 }
18114 _ACEOF
18115 rm -f conftest.$ac_objext conftest$ac_exeext
18116 if { (ac_try="$ac_link"
18117 case "(($ac_try" in
18118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119   *) ac_try_echo=$ac_try;;
18120 esac
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122   (eval "$ac_link") 2>conftest.er1
18123   ac_status=$?
18124   grep -v '^ *+' conftest.er1 >conftest.err
18125   rm -f conftest.er1
18126   cat conftest.err >&5
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); } && {
18129          test -z "$ac_c_werror_flag" ||
18130          test ! -s conftest.err
18131        } && test -s conftest$ac_exeext &&
18132        $as_test_x conftest$ac_exeext; then
18133   LIBINTL="$LIBINTL $LIBICONV"
18134                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18135                 gt_cv_func_gnugettext1_libintl=yes
18136
18137 else
18138   echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18140
18141
18142 fi
18143
18144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18145       conftest$ac_exeext conftest.$ac_ext
18146             fi
18147             CPPFLAGS="$gt_save_CPPFLAGS"
18148             LIBS="$gt_save_LIBS"
18149 fi
18150 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18151 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18152         fi
18153
18154                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18155            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18156                 && test "$PACKAGE" != gettext-runtime \
18157                 && test "$PACKAGE" != gettext-tools; }; then
18158           gt_use_preinstalled_gnugettext=yes
18159         else
18160                     LIBINTL=
18161           LTLIBINTL=
18162           INCINTL=
18163         fi
18164
18165
18166
18167     if test -n "$INTL_MACOSX_LIBS"; then
18168       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18169          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18170                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18171         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18172       fi
18173     fi
18174
18175     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18176        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18177
18178 cat >>confdefs.h <<\_ACEOF
18179 #define ENABLE_NLS 1
18180 _ACEOF
18181
18182     else
18183       USE_NLS=no
18184     fi
18185   fi
18186
18187   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18188 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18189   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18190 echo "${ECHO_T}$USE_NLS" >&6; }
18191   if test "$USE_NLS" = "yes"; then
18192     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18193 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18194     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18195       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18196         gt_source="external libintl"
18197       else
18198         gt_source="libc"
18199       fi
18200     else
18201       gt_source="included intl directory"
18202     fi
18203     { echo "$as_me:$LINENO: result: $gt_source" >&5
18204 echo "${ECHO_T}$gt_source" >&6; }
18205   fi
18206
18207   if test "$USE_NLS" = "yes"; then
18208
18209     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18210       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18211         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18212 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18213         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18214 echo "${ECHO_T}$LIBINTL" >&6; }
18215
18216   for element in $INCINTL; do
18217     haveit=
18218     for x in $CPPFLAGS; do
18219
18220   acl_save_prefix="$prefix"
18221   prefix="$acl_final_prefix"
18222   acl_save_exec_prefix="$exec_prefix"
18223   exec_prefix="$acl_final_exec_prefix"
18224   eval x=\"$x\"
18225   exec_prefix="$acl_save_exec_prefix"
18226   prefix="$acl_save_prefix"
18227
18228       if test "X$x" = "X$element"; then
18229         haveit=yes
18230         break
18231       fi
18232     done
18233     if test -z "$haveit"; then
18234       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18235     fi
18236   done
18237
18238       fi
18239
18240
18241 cat >>confdefs.h <<\_ACEOF
18242 #define HAVE_GETTEXT 1
18243 _ACEOF
18244
18245
18246 cat >>confdefs.h <<\_ACEOF
18247 #define HAVE_DCGETTEXT 1
18248 _ACEOF
18249
18250     fi
18251
18252         POSUB=po
18253   fi
18254
18255
18256
18257     INTLLIBS="$LIBINTL"
18258
18259
18260
18261
18262
18263
18264 if test x${prefix} = xNONE ; then
18265    if test `eval echo ${datarootdir}` = NONE/share ; then
18266       datarootdir=/usr/share
18267    fi
18268 fi
18269
18270 if test x${prefix} = xNONE ; then
18271    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18272       sysconfdir=/etc/bacula
18273    fi
18274
18275    if test `eval echo ${libdir}` = NONE/lib ; then
18276       libdir=/usr/lib
18277    fi
18278
18279    if test `eval echo ${includedir}` = NONE/include ; then
18280       includedir=/usr/include
18281    fi
18282
18283    prefix=
18284 fi
18285 sysconfdir=`eval echo ${sysconfdir}`
18286 datarootdir=`eval echo ${datarootdir}`
18287 libdir=`eval echo ${libdir}`
18288 includedir=`eval echo ${includedir}
18289 localedir=`eval echo ${datarootdir}/locale`
18290 cat >>confdefs.h <<_ACEOF
18291 #define SYSCONFDIR "$sysconfdir"
18292 _ACEOF
18293
18294 cat >>confdefs.h <<_ACEOF
18295 #define LOCALEDIR "$localedir"
18296 _ACEOF
18297
18298
18299 if test x${exec_prefix} = xNONE ; then
18300    exec_prefix=${prefix}
18301 fi
18302
18303 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18304    sbindir=${exec_prefix}/sbin
18305 fi
18306 sbindir=`eval echo ${sbindir}`
18307
18308 if test x$mandir = x'${prefix}/man' ; then
18309    mandir=/usr/share/man
18310 fi
18311
18312 for ac_prog in msgfmt
18313 do
18314   # Extract the first word of "$ac_prog", so it can be a program name with args.
18315 set dummy $ac_prog; ac_word=$2
18316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18318 if test "${ac_cv_path_MSGFMT+set}" = set; then
18319   echo $ECHO_N "(cached) $ECHO_C" >&6
18320 else
18321   case $MSGFMT in
18322   [\\/]* | ?:[\\/]*)
18323   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18324   ;;
18325   *)
18326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18327 for as_dir in $PATH
18328 do
18329   IFS=$as_save_IFS
18330   test -z "$as_dir" && as_dir=.
18331   for ac_exec_ext in '' $ac_executable_extensions; do
18332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18333     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18335     break 2
18336   fi
18337 done
18338 done
18339 IFS=$as_save_IFS
18340
18341   ;;
18342 esac
18343 fi
18344 MSGFMT=$ac_cv_path_MSGFMT
18345 if test -n "$MSGFMT"; then
18346   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18347 echo "${ECHO_T}$MSGFMT" >&6; }
18348 else
18349   { echo "$as_me:$LINENO: result: no" >&5
18350 echo "${ECHO_T}no" >&6; }
18351 fi
18352
18353
18354   test -n "$MSGFMT" && break
18355 done
18356 test -n "$MSGFMT" || MSGFMT="no"
18357
18358 if test "$MSGFMT" = "no"
18359 then
18360    echo 'msgfmt program not found, disabling NLS !'
18361    USE_NLS=no
18362    USE_INCLUDED_LIBINTL=no
18363 #else
18364
18365     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18366 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18367 if test "${ac_cv_gnu_library_2+set}" = set; then
18368   echo $ECHO_N "(cached) $ECHO_C" >&6
18369 else
18370   cat >conftest.$ac_ext <<_ACEOF
18371 /* confdefs.h.  */
18372 _ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h.  */
18376
18377 #include <features.h>
18378 #ifdef __GNU_LIBRARY__
18379  #if (__GLIBC__ >= 2)
18380   Lucky GNU user
18381  #endif
18382 #endif
18383
18384 _ACEOF
18385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18386   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18387   ac_cv_gnu_library_2=yes
18388 else
18389   ac_cv_gnu_library_2=no
18390 fi
18391 rm -f conftest*
18392
18393
18394
18395 fi
18396 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18397 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18398
18399     GLIBC2="$ac_cv_gnu_library_2"
18400
18401
18402 if test -n "$ac_tool_prefix"; then
18403   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18404 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18407 if test "${ac_cv_prog_RANLIB+set}" = set; then
18408   echo $ECHO_N "(cached) $ECHO_C" >&6
18409 else
18410   if test -n "$RANLIB"; then
18411   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18412 else
18413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18414 for as_dir in $PATH
18415 do
18416   IFS=$as_save_IFS
18417   test -z "$as_dir" && as_dir=.
18418   for ac_exec_ext in '' $ac_executable_extensions; do
18419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18420     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18422     break 2
18423   fi
18424 done
18425 done
18426 IFS=$as_save_IFS
18427
18428 fi
18429 fi
18430 RANLIB=$ac_cv_prog_RANLIB
18431 if test -n "$RANLIB"; then
18432   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18433 echo "${ECHO_T}$RANLIB" >&6; }
18434 else
18435   { echo "$as_me:$LINENO: result: no" >&5
18436 echo "${ECHO_T}no" >&6; }
18437 fi
18438
18439
18440 fi
18441 if test -z "$ac_cv_prog_RANLIB"; then
18442   ac_ct_RANLIB=$RANLIB
18443   # Extract the first word of "ranlib", so it can be a program name with args.
18444 set dummy ranlib; ac_word=$2
18445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18447 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18448   echo $ECHO_N "(cached) $ECHO_C" >&6
18449 else
18450   if test -n "$ac_ct_RANLIB"; then
18451   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18452 else
18453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18454 for as_dir in $PATH
18455 do
18456   IFS=$as_save_IFS
18457   test -z "$as_dir" && as_dir=.
18458   for ac_exec_ext in '' $ac_executable_extensions; do
18459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18460     ac_cv_prog_ac_ct_RANLIB="ranlib"
18461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18462     break 2
18463   fi
18464 done
18465 done
18466 IFS=$as_save_IFS
18467
18468 fi
18469 fi
18470 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18471 if test -n "$ac_ct_RANLIB"; then
18472   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18473 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18474 else
18475   { echo "$as_me:$LINENO: result: no" >&5
18476 echo "${ECHO_T}no" >&6; }
18477 fi
18478
18479   if test "x$ac_ct_RANLIB" = x; then
18480     RANLIB=":"
18481   else
18482     case $cross_compiling:$ac_tool_warned in
18483 yes:)
18484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18485 whose name does not start with the host triplet.  If you think this
18486 configuration is useful to you, please write to autoconf@gnu.org." >&5
18487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18488 whose name does not start with the host triplet.  If you think this
18489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18490 ac_tool_warned=yes ;;
18491 esac
18492     RANLIB=$ac_ct_RANLIB
18493   fi
18494 else
18495   RANLIB="$ac_cv_prog_RANLIB"
18496 fi
18497
18498
18499         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18500 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18501 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18502   echo $ECHO_N "(cached) $ECHO_C" >&6
18503 else
18504   ac_check_lib_save_LIBS=$LIBS
18505 LIBS="-lcposix  $LIBS"
18506 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h.  */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h.  */
18512
18513 /* Override any GCC internal prototype to avoid an error.
18514    Use char because int might match the return type of a GCC
18515    builtin and then its argument prototype would still apply.  */
18516 #ifdef __cplusplus
18517 extern "C"
18518 #endif
18519 char strerror ();
18520 int
18521 main ()
18522 {
18523 return strerror ();
18524   ;
18525   return 0;
18526 }
18527 _ACEOF
18528 rm -f conftest.$ac_objext conftest$ac_exeext
18529 if { (ac_try="$ac_link"
18530 case "(($ac_try" in
18531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532   *) ac_try_echo=$ac_try;;
18533 esac
18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535   (eval "$ac_link") 2>conftest.er1
18536   ac_status=$?
18537   grep -v '^ *+' conftest.er1 >conftest.err
18538   rm -f conftest.er1
18539   cat conftest.err >&5
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); } && {
18542          test -z "$ac_c_werror_flag" ||
18543          test ! -s conftest.err
18544        } && test -s conftest$ac_exeext &&
18545        $as_test_x conftest$ac_exeext; then
18546   ac_cv_lib_cposix_strerror=yes
18547 else
18548   echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18550
18551         ac_cv_lib_cposix_strerror=no
18552 fi
18553
18554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18555       conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18557 fi
18558 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18559 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18560 if test $ac_cv_lib_cposix_strerror = yes; then
18561   LIBS="$LIBS -lcposix"
18562 fi
18563
18564
18565
18566 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18567 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18568 if test "${ac_cv_c_const+set}" = set; then
18569   echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571   cat >conftest.$ac_ext <<_ACEOF
18572 /* confdefs.h.  */
18573 _ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h.  */
18577
18578 int
18579 main ()
18580 {
18581 /* FIXME: Include the comments suggested by Paul. */
18582 #ifndef __cplusplus
18583   /* Ultrix mips cc rejects this.  */
18584   typedef int charset[2];
18585   const charset cs;
18586   /* SunOS 4.1.1 cc rejects this.  */
18587   char const *const *pcpcc;
18588   char **ppc;
18589   /* NEC SVR4.0.2 mips cc rejects this.  */
18590   struct point {int x, y;};
18591   static struct point const zero = {0,0};
18592   /* AIX XL C 1.02.0.0 rejects this.
18593      It does not let you subtract one const X* pointer from another in
18594      an arm of an if-expression whose if-part is not a constant
18595      expression */
18596   const char *g = "string";
18597   pcpcc = &g + (g ? g-g : 0);
18598   /* HPUX 7.0 cc rejects these. */
18599   ++pcpcc;
18600   ppc = (char**) pcpcc;
18601   pcpcc = (char const *const *) ppc;
18602   { /* SCO 3.2v4 cc rejects this.  */
18603     char *t;
18604     char const *s = 0 ? (char *) 0 : (char const *) 0;
18605
18606     *t++ = 0;
18607     if (s) return 0;
18608   }
18609   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18610     int x[] = {25, 17};
18611     const int *foo = &x[0];
18612     ++foo;
18613   }
18614   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18615     typedef const int *iptr;
18616     iptr p = 0;
18617     ++p;
18618   }
18619   { /* AIX XL C 1.02.0.0 rejects this saying
18620        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18621     struct s { int j; const int *ap[3]; };
18622     struct s *b; b->j = 5;
18623   }
18624   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18625     const int foo = 10;
18626     if (!foo) return 0;
18627   }
18628   return !cs[0] && !zero.x;
18629 #endif
18630
18631   ;
18632   return 0;
18633 }
18634 _ACEOF
18635 rm -f conftest.$ac_objext
18636 if { (ac_try="$ac_compile"
18637 case "(($ac_try" in
18638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639   *) ac_try_echo=$ac_try;;
18640 esac
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642   (eval "$ac_compile") 2>conftest.er1
18643   ac_status=$?
18644   grep -v '^ *+' conftest.er1 >conftest.err
18645   rm -f conftest.er1
18646   cat conftest.err >&5
18647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648   (exit $ac_status); } && {
18649          test -z "$ac_c_werror_flag" ||
18650          test ! -s conftest.err
18651        } && test -s conftest.$ac_objext; then
18652   ac_cv_c_const=yes
18653 else
18654   echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18656
18657         ac_cv_c_const=no
18658 fi
18659
18660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18661 fi
18662 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18663 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18664 if test $ac_cv_c_const = no; then
18665
18666 cat >>confdefs.h <<\_ACEOF
18667 #define const
18668 _ACEOF
18669
18670 fi
18671
18672
18673   { echo "$as_me:$LINENO: checking for signed" >&5
18674 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18675 if test "${bh_cv_c_signed+set}" = set; then
18676   echo $ECHO_N "(cached) $ECHO_C" >&6
18677 else
18678   cat >conftest.$ac_ext <<_ACEOF
18679 /* confdefs.h.  */
18680 _ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h.  */
18684
18685 int
18686 main ()
18687 {
18688 signed char x;
18689   ;
18690   return 0;
18691 }
18692 _ACEOF
18693 rm -f conftest.$ac_objext
18694 if { (ac_try="$ac_compile"
18695 case "(($ac_try" in
18696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697   *) ac_try_echo=$ac_try;;
18698 esac
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700   (eval "$ac_compile") 2>conftest.er1
18701   ac_status=$?
18702   grep -v '^ *+' conftest.er1 >conftest.err
18703   rm -f conftest.er1
18704   cat conftest.err >&5
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); } && {
18707          test -z "$ac_c_werror_flag" ||
18708          test ! -s conftest.err
18709        } && test -s conftest.$ac_objext; then
18710   bh_cv_c_signed=yes
18711 else
18712   echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715         bh_cv_c_signed=no
18716 fi
18717
18718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18719 fi
18720 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18721 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18722   if test $bh_cv_c_signed = no; then
18723
18724 cat >>confdefs.h <<\_ACEOF
18725 #define signed
18726 _ACEOF
18727
18728   fi
18729
18730 { echo "$as_me:$LINENO: checking for inline" >&5
18731 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18732 if test "${ac_cv_c_inline+set}" = set; then
18733   echo $ECHO_N "(cached) $ECHO_C" >&6
18734 else
18735   ac_cv_c_inline=no
18736 for ac_kw in inline __inline__ __inline; do
18737   cat >conftest.$ac_ext <<_ACEOF
18738 /* confdefs.h.  */
18739 _ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h.  */
18743 #ifndef __cplusplus
18744 typedef int foo_t;
18745 static $ac_kw foo_t static_foo () {return 0; }
18746 $ac_kw foo_t foo () {return 0; }
18747 #endif
18748
18749 _ACEOF
18750 rm -f conftest.$ac_objext
18751 if { (ac_try="$ac_compile"
18752 case "(($ac_try" in
18753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754   *) ac_try_echo=$ac_try;;
18755 esac
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757   (eval "$ac_compile") 2>conftest.er1
18758   ac_status=$?
18759   grep -v '^ *+' conftest.er1 >conftest.err
18760   rm -f conftest.er1
18761   cat conftest.err >&5
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); } && {
18764          test -z "$ac_c_werror_flag" ||
18765          test ! -s conftest.err
18766        } && test -s conftest.$ac_objext; then
18767   ac_cv_c_inline=$ac_kw
18768 else
18769   echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18771
18772
18773 fi
18774
18775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18776   test "$ac_cv_c_inline" != no && break
18777 done
18778
18779 fi
18780 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18781 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18782
18783
18784 case $ac_cv_c_inline in
18785   inline | yes) ;;
18786   *)
18787     case $ac_cv_c_inline in
18788       no) ac_val=;;
18789       *) ac_val=$ac_cv_c_inline;;
18790     esac
18791     cat >>confdefs.h <<_ACEOF
18792 #ifndef __cplusplus
18793 #define inline $ac_val
18794 #endif
18795 _ACEOF
18796     ;;
18797 esac
18798
18799 { echo "$as_me:$LINENO: checking for off_t" >&5
18800 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18801 if test "${ac_cv_type_off_t+set}" = set; then
18802   echo $ECHO_N "(cached) $ECHO_C" >&6
18803 else
18804   cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h.  */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h.  */
18810 $ac_includes_default
18811 typedef off_t ac__type_new_;
18812 int
18813 main ()
18814 {
18815 if ((ac__type_new_ *) 0)
18816   return 0;
18817 if (sizeof (ac__type_new_))
18818   return 0;
18819   ;
18820   return 0;
18821 }
18822 _ACEOF
18823 rm -f conftest.$ac_objext
18824 if { (ac_try="$ac_compile"
18825 case "(($ac_try" in
18826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827   *) ac_try_echo=$ac_try;;
18828 esac
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830   (eval "$ac_compile") 2>conftest.er1
18831   ac_status=$?
18832   grep -v '^ *+' conftest.er1 >conftest.err
18833   rm -f conftest.er1
18834   cat conftest.err >&5
18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836   (exit $ac_status); } && {
18837          test -z "$ac_c_werror_flag" ||
18838          test ! -s conftest.err
18839        } && test -s conftest.$ac_objext; then
18840   ac_cv_type_off_t=yes
18841 else
18842   echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18844
18845         ac_cv_type_off_t=no
18846 fi
18847
18848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18849 fi
18850 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18851 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18852 if test $ac_cv_type_off_t = yes; then
18853   :
18854 else
18855
18856 cat >>confdefs.h <<_ACEOF
18857 #define off_t long int
18858 _ACEOF
18859
18860 fi
18861
18862 { echo "$as_me:$LINENO: checking for size_t" >&5
18863 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18864 if test "${ac_cv_type_size_t+set}" = set; then
18865   echo $ECHO_N "(cached) $ECHO_C" >&6
18866 else
18867   cat >conftest.$ac_ext <<_ACEOF
18868 /* confdefs.h.  */
18869 _ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h.  */
18873 $ac_includes_default
18874 typedef size_t ac__type_new_;
18875 int
18876 main ()
18877 {
18878 if ((ac__type_new_ *) 0)
18879   return 0;
18880 if (sizeof (ac__type_new_))
18881   return 0;
18882   ;
18883   return 0;
18884 }
18885 _ACEOF
18886 rm -f conftest.$ac_objext
18887 if { (ac_try="$ac_compile"
18888 case "(($ac_try" in
18889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890   *) ac_try_echo=$ac_try;;
18891 esac
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893   (eval "$ac_compile") 2>conftest.er1
18894   ac_status=$?
18895   grep -v '^ *+' conftest.er1 >conftest.err
18896   rm -f conftest.er1
18897   cat conftest.err >&5
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); } && {
18900          test -z "$ac_c_werror_flag" ||
18901          test ! -s conftest.err
18902        } && test -s conftest.$ac_objext; then
18903   ac_cv_type_size_t=yes
18904 else
18905   echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18907
18908         ac_cv_type_size_t=no
18909 fi
18910
18911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18912 fi
18913 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18914 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18915 if test $ac_cv_type_size_t = yes; then
18916   :
18917 else
18918
18919 cat >>confdefs.h <<_ACEOF
18920 #define size_t unsigned int
18921 _ACEOF
18922
18923 fi
18924
18925
18926   { echo "$as_me:$LINENO: checking for long long" >&5
18927 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18928 if test "${ac_cv_type_long_long+set}" = set; then
18929   echo $ECHO_N "(cached) $ECHO_C" >&6
18930 else
18931   cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h.  */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h.  */
18937 long long ll = 1LL; int i = 63;
18938 int
18939 main ()
18940 {
18941 long long llmax = (long long) -1;
18942      return ll << i | ll >> i | llmax / ll | llmax % ll;
18943   ;
18944   return 0;
18945 }
18946 _ACEOF
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (ac_try="$ac_link"
18949 case "(($ac_try" in
18950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951   *) ac_try_echo=$ac_try;;
18952 esac
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954   (eval "$ac_link") 2>conftest.er1
18955   ac_status=$?
18956   grep -v '^ *+' conftest.er1 >conftest.err
18957   rm -f conftest.er1
18958   cat conftest.err >&5
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); } && {
18961          test -z "$ac_c_werror_flag" ||
18962          test ! -s conftest.err
18963        } && test -s conftest$ac_exeext &&
18964        $as_test_x conftest$ac_exeext; then
18965   ac_cv_type_long_long=yes
18966 else
18967   echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970         ac_cv_type_long_long=no
18971 fi
18972
18973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18974       conftest$ac_exeext conftest.$ac_ext
18975 fi
18976 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18977 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18978   if test $ac_cv_type_long_long = yes; then
18979
18980 cat >>confdefs.h <<\_ACEOF
18981 #define HAVE_LONG_LONG 1
18982 _ACEOF
18983
18984   fi
18985
18986
18987   { echo "$as_me:$LINENO: checking for long double" >&5
18988 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18989 if test "${gt_cv_c_long_double+set}" = set; then
18990   echo $ECHO_N "(cached) $ECHO_C" >&6
18991 else
18992   if test "$GCC" = yes; then
18993        gt_cv_c_long_double=yes
18994      else
18995        cat >conftest.$ac_ext <<_ACEOF
18996 /* confdefs.h.  */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h.  */
19001
19002          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19003          long double foo = 0.0;
19004          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19005          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19006
19007 int
19008 main ()
19009 {
19010
19011   ;
19012   return 0;
19013 }
19014 _ACEOF
19015 rm -f conftest.$ac_objext
19016 if { (ac_try="$ac_compile"
19017 case "(($ac_try" in
19018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019   *) ac_try_echo=$ac_try;;
19020 esac
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022   (eval "$ac_compile") 2>conftest.er1
19023   ac_status=$?
19024   grep -v '^ *+' conftest.er1 >conftest.err
19025   rm -f conftest.er1
19026   cat conftest.err >&5
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); } && {
19029          test -z "$ac_c_werror_flag" ||
19030          test ! -s conftest.err
19031        } && test -s conftest.$ac_objext; then
19032   gt_cv_c_long_double=yes
19033 else
19034   echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19036
19037         gt_cv_c_long_double=no
19038 fi
19039
19040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19041      fi
19042 fi
19043 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19044 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19045   if test $gt_cv_c_long_double = yes; then
19046
19047 cat >>confdefs.h <<\_ACEOF
19048 #define HAVE_LONG_DOUBLE 1
19049 _ACEOF
19050
19051   fi
19052
19053
19054   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19055 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19056 if test "${gt_cv_c_wchar_t+set}" = set; then
19057   echo $ECHO_N "(cached) $ECHO_C" >&6
19058 else
19059   cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h.  */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h.  */
19065 #include <stddef.h>
19066        wchar_t foo = (wchar_t)'\0';
19067 int
19068 main ()
19069 {
19070
19071   ;
19072   return 0;
19073 }
19074 _ACEOF
19075 rm -f conftest.$ac_objext
19076 if { (ac_try="$ac_compile"
19077 case "(($ac_try" in
19078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079   *) ac_try_echo=$ac_try;;
19080 esac
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082   (eval "$ac_compile") 2>conftest.er1
19083   ac_status=$?
19084   grep -v '^ *+' conftest.er1 >conftest.err
19085   rm -f conftest.er1
19086   cat conftest.err >&5
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); } && {
19089          test -z "$ac_c_werror_flag" ||
19090          test ! -s conftest.err
19091        } && test -s conftest.$ac_objext; then
19092   gt_cv_c_wchar_t=yes
19093 else
19094   echo "$as_me: failed program was:" >&5
19095 sed 's/^/| /' conftest.$ac_ext >&5
19096
19097         gt_cv_c_wchar_t=no
19098 fi
19099
19100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19101 fi
19102 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19103 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19104   if test $gt_cv_c_wchar_t = yes; then
19105
19106 cat >>confdefs.h <<\_ACEOF
19107 #define HAVE_WCHAR_T 1
19108 _ACEOF
19109
19110   fi
19111
19112
19113   { echo "$as_me:$LINENO: checking for wint_t" >&5
19114 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19115 if test "${gt_cv_c_wint_t+set}" = set; then
19116   echo $ECHO_N "(cached) $ECHO_C" >&6
19117 else
19118   cat >conftest.$ac_ext <<_ACEOF
19119 /* confdefs.h.  */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h.  */
19124 #include <wchar.h>
19125        wint_t foo = (wchar_t)'\0';
19126 int
19127 main ()
19128 {
19129
19130   ;
19131   return 0;
19132 }
19133 _ACEOF
19134 rm -f conftest.$ac_objext
19135 if { (ac_try="$ac_compile"
19136 case "(($ac_try" in
19137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138   *) ac_try_echo=$ac_try;;
19139 esac
19140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141   (eval "$ac_compile") 2>conftest.er1
19142   ac_status=$?
19143   grep -v '^ *+' conftest.er1 >conftest.err
19144   rm -f conftest.er1
19145   cat conftest.err >&5
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); } && {
19148          test -z "$ac_c_werror_flag" ||
19149          test ! -s conftest.err
19150        } && test -s conftest.$ac_objext; then
19151   gt_cv_c_wint_t=yes
19152 else
19153   echo "$as_me: failed program was:" >&5
19154 sed 's/^/| /' conftest.$ac_ext >&5
19155
19156         gt_cv_c_wint_t=no
19157 fi
19158
19159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19160 fi
19161 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19162 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19163   if test $gt_cv_c_wint_t = yes; then
19164
19165 cat >>confdefs.h <<\_ACEOF
19166 #define HAVE_WINT_T 1
19167 _ACEOF
19168
19169   fi
19170
19171
19172   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19173 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19174 if test "${gl_cv_header_inttypes_h+set}" = set; then
19175   echo $ECHO_N "(cached) $ECHO_C" >&6
19176 else
19177   cat >conftest.$ac_ext <<_ACEOF
19178 /* confdefs.h.  */
19179 _ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h.  */
19183 #include <sys/types.h>
19184 #include <inttypes.h>
19185 int
19186 main ()
19187 {
19188 uintmax_t i = (uintmax_t) -1;
19189   ;
19190   return 0;
19191 }
19192 _ACEOF
19193 rm -f conftest.$ac_objext
19194 if { (ac_try="$ac_compile"
19195 case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200   (eval "$ac_compile") 2>conftest.er1
19201   ac_status=$?
19202   grep -v '^ *+' conftest.er1 >conftest.err
19203   rm -f conftest.er1
19204   cat conftest.err >&5
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); } && {
19207          test -z "$ac_c_werror_flag" ||
19208          test ! -s conftest.err
19209        } && test -s conftest.$ac_objext; then
19210   gl_cv_header_inttypes_h=yes
19211 else
19212   echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19214
19215         gl_cv_header_inttypes_h=no
19216 fi
19217
19218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19219 fi
19220 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19221 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19222   if test $gl_cv_header_inttypes_h = yes; then
19223
19224 cat >>confdefs.h <<_ACEOF
19225 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19226 _ACEOF
19227
19228   fi
19229
19230
19231   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19232 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19233 if test "${gl_cv_header_stdint_h+set}" = set; then
19234   echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236   cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h.  */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h.  */
19242 #include <sys/types.h>
19243 #include <stdint.h>
19244 int
19245 main ()
19246 {
19247 uintmax_t i = (uintmax_t) -1;
19248   ;
19249   return 0;
19250 }
19251 _ACEOF
19252 rm -f conftest.$ac_objext
19253 if { (ac_try="$ac_compile"
19254 case "(($ac_try" in
19255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256   *) ac_try_echo=$ac_try;;
19257 esac
19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259   (eval "$ac_compile") 2>conftest.er1
19260   ac_status=$?
19261   grep -v '^ *+' conftest.er1 >conftest.err
19262   rm -f conftest.er1
19263   cat conftest.err >&5
19264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265   (exit $ac_status); } && {
19266          test -z "$ac_c_werror_flag" ||
19267          test ! -s conftest.err
19268        } && test -s conftest.$ac_objext; then
19269   gl_cv_header_stdint_h=yes
19270 else
19271   echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19273
19274         gl_cv_header_stdint_h=no
19275 fi
19276
19277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19278 fi
19279 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19280 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19281   if test $gl_cv_header_stdint_h = yes; then
19282
19283 cat >>confdefs.h <<_ACEOF
19284 #define HAVE_STDINT_H_WITH_UINTMAX 1
19285 _ACEOF
19286
19287   fi
19288
19289
19290
19291
19292   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19293 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19294 if test "${gt_cv_c_intmax_t+set}" = set; then
19295   echo $ECHO_N "(cached) $ECHO_C" >&6
19296 else
19297   cat >conftest.$ac_ext <<_ACEOF
19298 /* confdefs.h.  */
19299 _ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h.  */
19303
19304 #include <stddef.h>
19305 #include <stdlib.h>
19306 #if HAVE_STDINT_H_WITH_UINTMAX
19307 #include <stdint.h>
19308 #endif
19309 #if HAVE_INTTYPES_H_WITH_UINTMAX
19310 #include <inttypes.h>
19311 #endif
19312
19313 int
19314 main ()
19315 {
19316 intmax_t x = -1;
19317   ;
19318   return 0;
19319 }
19320 _ACEOF
19321 rm -f conftest.$ac_objext
19322 if { (ac_try="$ac_compile"
19323 case "(($ac_try" in
19324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325   *) ac_try_echo=$ac_try;;
19326 esac
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328   (eval "$ac_compile") 2>conftest.er1
19329   ac_status=$?
19330   grep -v '^ *+' conftest.er1 >conftest.err
19331   rm -f conftest.er1
19332   cat conftest.err >&5
19333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334   (exit $ac_status); } && {
19335          test -z "$ac_c_werror_flag" ||
19336          test ! -s conftest.err
19337        } && test -s conftest.$ac_objext; then
19338   gt_cv_c_intmax_t=yes
19339 else
19340   echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19342
19343         gt_cv_c_intmax_t=no
19344 fi
19345
19346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19347 fi
19348 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19349 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19350   if test $gt_cv_c_intmax_t = yes; then
19351
19352 cat >>confdefs.h <<\_ACEOF
19353 #define HAVE_INTMAX_T 1
19354 _ACEOF
19355
19356   fi
19357
19358
19359
19360   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19361 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19362 if test "${gt_cv_func_printf_posix+set}" = set; then
19363   echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365
19366       if test "$cross_compiling" = yes; then
19367
19368         cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h.  */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h.  */
19374
19375 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19376   notposix
19377 #endif
19378
19379 _ACEOF
19380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19381   $EGREP "notposix" >/dev/null 2>&1; then
19382   gt_cv_func_printf_posix="guessing no"
19383 else
19384   gt_cv_func_printf_posix="guessing yes"
19385 fi
19386 rm -f conftest*
19387
19388
19389 else
19390   cat >conftest.$ac_ext <<_ACEOF
19391 /* confdefs.h.  */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h.  */
19396
19397 #include <stdio.h>
19398 #include <string.h>
19399 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19400    dollar expansion (possibly an autoconf bug).  */
19401 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19402 static char buf[100];
19403 int main ()
19404 {
19405   sprintf (buf, format, 33, 55);
19406   return (strcmp (buf, "55 33") != 0);
19407 }
19408 _ACEOF
19409 rm -f conftest$ac_exeext
19410 if { (ac_try="$ac_link"
19411 case "(($ac_try" in
19412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413   *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416   (eval "$ac_link") 2>&5
19417   ac_status=$?
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19420   { (case "(($ac_try" in
19421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422   *) ac_try_echo=$ac_try;;
19423 esac
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425   (eval "$ac_try") 2>&5
19426   ac_status=$?
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); }; }; then
19429   gt_cv_func_printf_posix=yes
19430 else
19431   echo "$as_me: program exited with status $ac_status" >&5
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19434
19435 ( exit $ac_status )
19436 gt_cv_func_printf_posix=no
19437 fi
19438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19439 fi
19440
19441
19442
19443 fi
19444 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19445 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19446   case $gt_cv_func_printf_posix in
19447     *yes)
19448
19449 cat >>confdefs.h <<\_ACEOF
19450 #define HAVE_POSIX_PRINTF 1
19451 _ACEOF
19452
19453       ;;
19454   esac
19455
19456 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19457 # for constant arguments.  Useless!
19458 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19459 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19460 if test "${ac_cv_working_alloca_h+set}" = set; then
19461   echo $ECHO_N "(cached) $ECHO_C" >&6
19462 else
19463   cat >conftest.$ac_ext <<_ACEOF
19464 /* confdefs.h.  */
19465 _ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h.  */
19469 #include <alloca.h>
19470 int
19471 main ()
19472 {
19473 char *p = (char *) alloca (2 * sizeof (int));
19474                           if (p) return 0;
19475   ;
19476   return 0;
19477 }
19478 _ACEOF
19479 rm -f conftest.$ac_objext conftest$ac_exeext
19480 if { (ac_try="$ac_link"
19481 case "(($ac_try" in
19482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483   *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486   (eval "$ac_link") 2>conftest.er1
19487   ac_status=$?
19488   grep -v '^ *+' conftest.er1 >conftest.err
19489   rm -f conftest.er1
19490   cat conftest.err >&5
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); } && {
19493          test -z "$ac_c_werror_flag" ||
19494          test ! -s conftest.err
19495        } && test -s conftest$ac_exeext &&
19496        $as_test_x conftest$ac_exeext; then
19497   ac_cv_working_alloca_h=yes
19498 else
19499   echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19501
19502         ac_cv_working_alloca_h=no
19503 fi
19504
19505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19506       conftest$ac_exeext conftest.$ac_ext
19507 fi
19508 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19509 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19510 if test $ac_cv_working_alloca_h = yes; then
19511
19512 cat >>confdefs.h <<\_ACEOF
19513 #define HAVE_ALLOCA_H 1
19514 _ACEOF
19515
19516 fi
19517
19518 { echo "$as_me:$LINENO: checking for alloca" >&5
19519 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19520 if test "${ac_cv_func_alloca_works+set}" = set; then
19521   echo $ECHO_N "(cached) $ECHO_C" >&6
19522 else
19523   cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h.  */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h.  */
19529 #ifdef __GNUC__
19530 # define alloca __builtin_alloca
19531 #else
19532 # ifdef _MSC_VER
19533 #  include <malloc.h>
19534 #  define alloca _alloca
19535 # else
19536 #  ifdef HAVE_ALLOCA_H
19537 #   include <alloca.h>
19538 #  else
19539 #   ifdef _AIX
19540  #pragma alloca
19541 #   else
19542 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19543 char *alloca ();
19544 #    endif
19545 #   endif
19546 #  endif
19547 # endif
19548 #endif
19549
19550 int
19551 main ()
19552 {
19553 char *p = (char *) alloca (1);
19554                                     if (p) return 0;
19555   ;
19556   return 0;
19557 }
19558 _ACEOF
19559 rm -f conftest.$ac_objext conftest$ac_exeext
19560 if { (ac_try="$ac_link"
19561 case "(($ac_try" in
19562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563   *) ac_try_echo=$ac_try;;
19564 esac
19565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566   (eval "$ac_link") 2>conftest.er1
19567   ac_status=$?
19568   grep -v '^ *+' conftest.er1 >conftest.err
19569   rm -f conftest.er1
19570   cat conftest.err >&5
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); } && {
19573          test -z "$ac_c_werror_flag" ||
19574          test ! -s conftest.err
19575        } && test -s conftest$ac_exeext &&
19576        $as_test_x conftest$ac_exeext; then
19577   ac_cv_func_alloca_works=yes
19578 else
19579   echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582         ac_cv_func_alloca_works=no
19583 fi
19584
19585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19586       conftest$ac_exeext conftest.$ac_ext
19587 fi
19588 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19589 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19590
19591 if test $ac_cv_func_alloca_works = yes; then
19592
19593 cat >>confdefs.h <<\_ACEOF
19594 #define HAVE_ALLOCA 1
19595 _ACEOF
19596
19597 else
19598   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19599 # that cause trouble.  Some versions do not even contain alloca or
19600 # contain a buggy version.  If you still want to use their alloca,
19601 # use ar to extract alloca.o from them instead of compiling alloca.c.
19602
19603 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19604
19605 cat >>confdefs.h <<\_ACEOF
19606 #define C_ALLOCA 1
19607 _ACEOF
19608
19609
19610 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19611 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19612 if test "${ac_cv_os_cray+set}" = set; then
19613   echo $ECHO_N "(cached) $ECHO_C" >&6
19614 else
19615   cat >conftest.$ac_ext <<_ACEOF
19616 /* confdefs.h.  */
19617 _ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h.  */
19621 #if defined CRAY && ! defined CRAY2
19622 webecray
19623 #else
19624 wenotbecray
19625 #endif
19626
19627 _ACEOF
19628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19629   $EGREP "webecray" >/dev/null 2>&1; then
19630   ac_cv_os_cray=yes
19631 else
19632   ac_cv_os_cray=no
19633 fi
19634 rm -f conftest*
19635
19636 fi
19637 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19638 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19639 if test $ac_cv_os_cray = yes; then
19640   for ac_func in _getb67 GETB67 getb67; do
19641     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19645   echo $ECHO_N "(cached) $ECHO_C" >&6
19646 else
19647   cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h.  */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h.  */
19653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19655 #define $ac_func innocuous_$ac_func
19656
19657 /* System header to define __stub macros and hopefully few prototypes,
19658     which can conflict with char $ac_func (); below.
19659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19660     <limits.h> exists even on freestanding compilers.  */
19661
19662 #ifdef __STDC__
19663 # include <limits.h>
19664 #else
19665 # include <assert.h>
19666 #endif
19667
19668 #undef $ac_func
19669
19670 /* Override any GCC internal prototype to avoid an error.
19671    Use char because int might match the return type of a GCC
19672    builtin and then its argument prototype would still apply.  */
19673 #ifdef __cplusplus
19674 extern "C"
19675 #endif
19676 char $ac_func ();
19677 /* The GNU C library defines this for functions which it implements
19678     to always fail with ENOSYS.  Some functions are actually named
19679     something starting with __ and the normal name is an alias.  */
19680 #if defined __stub_$ac_func || defined __stub___$ac_func
19681 choke me
19682 #endif
19683
19684 int
19685 main ()
19686 {
19687 return $ac_func ();
19688   ;
19689   return 0;
19690 }
19691 _ACEOF
19692 rm -f conftest.$ac_objext conftest$ac_exeext
19693 if { (ac_try="$ac_link"
19694 case "(($ac_try" in
19695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696   *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699   (eval "$ac_link") 2>conftest.er1
19700   ac_status=$?
19701   grep -v '^ *+' conftest.er1 >conftest.err
19702   rm -f conftest.er1
19703   cat conftest.err >&5
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); } && {
19706          test -z "$ac_c_werror_flag" ||
19707          test ! -s conftest.err
19708        } && test -s conftest$ac_exeext &&
19709        $as_test_x conftest$ac_exeext; then
19710   eval "$as_ac_var=yes"
19711 else
19712   echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19714
19715         eval "$as_ac_var=no"
19716 fi
19717
19718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19719       conftest$ac_exeext conftest.$ac_ext
19720 fi
19721 ac_res=`eval echo '${'$as_ac_var'}'`
19722                { echo "$as_me:$LINENO: result: $ac_res" >&5
19723 echo "${ECHO_T}$ac_res" >&6; }
19724 if test `eval echo '${'$as_ac_var'}'` = yes; then
19725
19726 cat >>confdefs.h <<_ACEOF
19727 #define CRAY_STACKSEG_END $ac_func
19728 _ACEOF
19729
19730     break
19731 fi
19732
19733   done
19734 fi
19735
19736 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19737 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19738 if test "${ac_cv_c_stack_direction+set}" = set; then
19739   echo $ECHO_N "(cached) $ECHO_C" >&6
19740 else
19741   if test "$cross_compiling" = yes; then
19742   ac_cv_c_stack_direction=0
19743 else
19744   cat >conftest.$ac_ext <<_ACEOF
19745 /* confdefs.h.  */
19746 _ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h.  */
19750 $ac_includes_default
19751 int
19752 find_stack_direction ()
19753 {
19754   static char *addr = 0;
19755   auto char dummy;
19756   if (addr == 0)
19757     {
19758       addr = &dummy;
19759       return find_stack_direction ();
19760     }
19761   else
19762     return (&dummy > addr) ? 1 : -1;
19763 }
19764
19765 int
19766 main ()
19767 {
19768   return find_stack_direction () < 0;
19769 }
19770 _ACEOF
19771 rm -f conftest$ac_exeext
19772 if { (ac_try="$ac_link"
19773 case "(($ac_try" in
19774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775   *) ac_try_echo=$ac_try;;
19776 esac
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778   (eval "$ac_link") 2>&5
19779   ac_status=$?
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19782   { (case "(($ac_try" in
19783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784   *) ac_try_echo=$ac_try;;
19785 esac
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787   (eval "$ac_try") 2>&5
19788   ac_status=$?
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); }; }; then
19791   ac_cv_c_stack_direction=1
19792 else
19793   echo "$as_me: program exited with status $ac_status" >&5
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19796
19797 ( exit $ac_status )
19798 ac_cv_c_stack_direction=-1
19799 fi
19800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19801 fi
19802
19803
19804 fi
19805 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19806 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19807
19808 cat >>confdefs.h <<_ACEOF
19809 #define STACK_DIRECTION $ac_cv_c_stack_direction
19810 _ACEOF
19811
19812
19813 fi
19814
19815
19816
19817 for ac_header in stdlib.h unistd.h
19818 do
19819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19821   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19824   echo $ECHO_N "(cached) $ECHO_C" >&6
19825 fi
19826 ac_res=`eval echo '${'$as_ac_Header'}'`
19827                { echo "$as_me:$LINENO: result: $ac_res" >&5
19828 echo "${ECHO_T}$ac_res" >&6; }
19829 else
19830   # Is the header compilable?
19831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19833 cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h.  */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h.  */
19839 $ac_includes_default
19840 #include <$ac_header>
19841 _ACEOF
19842 rm -f conftest.$ac_objext
19843 if { (ac_try="$ac_compile"
19844 case "(($ac_try" in
19845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846   *) ac_try_echo=$ac_try;;
19847 esac
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849   (eval "$ac_compile") 2>conftest.er1
19850   ac_status=$?
19851   grep -v '^ *+' conftest.er1 >conftest.err
19852   rm -f conftest.er1
19853   cat conftest.err >&5
19854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855   (exit $ac_status); } && {
19856          test -z "$ac_c_werror_flag" ||
19857          test ! -s conftest.err
19858        } && test -s conftest.$ac_objext; then
19859   ac_header_compiler=yes
19860 else
19861   echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19863
19864         ac_header_compiler=no
19865 fi
19866
19867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19869 echo "${ECHO_T}$ac_header_compiler" >&6; }
19870
19871 # Is the header present?
19872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19874 cat >conftest.$ac_ext <<_ACEOF
19875 /* confdefs.h.  */
19876 _ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h.  */
19880 #include <$ac_header>
19881 _ACEOF
19882 if { (ac_try="$ac_cpp conftest.$ac_ext"
19883 case "(($ac_try" in
19884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885   *) ac_try_echo=$ac_try;;
19886 esac
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19889   ac_status=$?
19890   grep -v '^ *+' conftest.er1 >conftest.err
19891   rm -f conftest.er1
19892   cat conftest.err >&5
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); } >/dev/null && {
19895          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19896          test ! -s conftest.err
19897        }; then
19898   ac_header_preproc=yes
19899 else
19900   echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19902
19903   ac_header_preproc=no
19904 fi
19905
19906 rm -f conftest.err conftest.$ac_ext
19907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19908 echo "${ECHO_T}$ac_header_preproc" >&6; }
19909
19910 # So?  What about this header?
19911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19912   yes:no: )
19913     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19917     ac_header_preproc=yes
19918     ;;
19919   no:yes:* )
19920     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19922     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19923 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19924     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19926     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19927 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19930     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19932
19933     ;;
19934 esac
19935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19938   echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940   eval "$as_ac_Header=\$ac_header_preproc"
19941 fi
19942 ac_res=`eval echo '${'$as_ac_Header'}'`
19943                { echo "$as_me:$LINENO: result: $ac_res" >&5
19944 echo "${ECHO_T}$ac_res" >&6; }
19945
19946 fi
19947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19948   cat >>confdefs.h <<_ACEOF
19949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19950 _ACEOF
19951
19952 fi
19953
19954 done
19955
19956
19957 for ac_func in getpagesize
19958 do
19959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19963   echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965   cat >conftest.$ac_ext <<_ACEOF
19966 /* confdefs.h.  */
19967 _ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h.  */
19971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19973 #define $ac_func innocuous_$ac_func
19974
19975 /* System header to define __stub macros and hopefully few prototypes,
19976     which can conflict with char $ac_func (); below.
19977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19978     <limits.h> exists even on freestanding compilers.  */
19979
19980 #ifdef __STDC__
19981 # include <limits.h>
19982 #else
19983 # include <assert.h>
19984 #endif
19985
19986 #undef $ac_func
19987
19988 /* Override any GCC internal prototype to avoid an error.
19989    Use char because int might match the return type of a GCC
19990    builtin and then its argument prototype would still apply.  */
19991 #ifdef __cplusplus
19992 extern "C"
19993 #endif
19994 char $ac_func ();
19995 /* The GNU C library defines this for functions which it implements
19996     to always fail with ENOSYS.  Some functions are actually named
19997     something starting with __ and the normal name is an alias.  */
19998 #if defined __stub_$ac_func || defined __stub___$ac_func
19999 choke me
20000 #endif
20001
20002 int
20003 main ()
20004 {
20005 return $ac_func ();
20006   ;
20007   return 0;
20008 }
20009 _ACEOF
20010 rm -f conftest.$ac_objext conftest$ac_exeext
20011 if { (ac_try="$ac_link"
20012 case "(($ac_try" in
20013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014   *) ac_try_echo=$ac_try;;
20015 esac
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017   (eval "$ac_link") 2>conftest.er1
20018   ac_status=$?
20019   grep -v '^ *+' conftest.er1 >conftest.err
20020   rm -f conftest.er1
20021   cat conftest.err >&5
20022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); } && {
20024          test -z "$ac_c_werror_flag" ||
20025          test ! -s conftest.err
20026        } && test -s conftest$ac_exeext &&
20027        $as_test_x conftest$ac_exeext; then
20028   eval "$as_ac_var=yes"
20029 else
20030   echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20032
20033         eval "$as_ac_var=no"
20034 fi
20035
20036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20037       conftest$ac_exeext conftest.$ac_ext
20038 fi
20039 ac_res=`eval echo '${'$as_ac_var'}'`
20040                { echo "$as_me:$LINENO: result: $ac_res" >&5
20041 echo "${ECHO_T}$ac_res" >&6; }
20042 if test `eval echo '${'$as_ac_var'}'` = yes; then
20043   cat >>confdefs.h <<_ACEOF
20044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20045 _ACEOF
20046
20047 fi
20048 done
20049
20050 { echo "$as_me:$LINENO: checking for working mmap" >&5
20051 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20052 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20053   echo $ECHO_N "(cached) $ECHO_C" >&6
20054 else
20055   if test "$cross_compiling" = yes; then
20056   ac_cv_func_mmap_fixed_mapped=no
20057 else
20058   cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h.  */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h.  */
20064 $ac_includes_default
20065 /* malloc might have been renamed as rpl_malloc. */
20066 #undef malloc
20067
20068 /* Thanks to Mike Haertel and Jim Avera for this test.
20069    Here is a matrix of mmap possibilities:
20070         mmap private not fixed
20071         mmap private fixed at somewhere currently unmapped
20072         mmap private fixed at somewhere already mapped
20073         mmap shared not fixed
20074         mmap shared fixed at somewhere currently unmapped
20075         mmap shared fixed at somewhere already mapped
20076    For private mappings, we should verify that changes cannot be read()
20077    back from the file, nor mmap's back from the file at a different
20078    address.  (There have been systems where private was not correctly
20079    implemented like the infamous i386 svr4.0, and systems where the
20080    VM page cache was not coherent with the file system buffer cache
20081    like early versions of FreeBSD and possibly contemporary NetBSD.)
20082    For shared mappings, we should conversely verify that changes get
20083    propagated back to all the places they're supposed to be.
20084
20085    Grep wants private fixed already mapped.
20086    The main things grep needs to know about mmap are:
20087    * does it exist and is it safe to write into the mmap'd area
20088    * how to use it (BSD variants)  */
20089
20090 #include <fcntl.h>
20091 #include <sys/mman.h>
20092
20093 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20094 char *malloc ();
20095 #endif
20096
20097 /* This mess was copied from the GNU getpagesize.h.  */
20098 #ifndef HAVE_GETPAGESIZE
20099 /* Assume that all systems that can run configure have sys/param.h.  */
20100 # ifndef HAVE_SYS_PARAM_H
20101 #  define HAVE_SYS_PARAM_H 1
20102 # endif
20103
20104 # ifdef _SC_PAGESIZE
20105 #  define getpagesize() sysconf(_SC_PAGESIZE)
20106 # else /* no _SC_PAGESIZE */
20107 #  ifdef HAVE_SYS_PARAM_H
20108 #   include <sys/param.h>
20109 #   ifdef EXEC_PAGESIZE
20110 #    define getpagesize() EXEC_PAGESIZE
20111 #   else /* no EXEC_PAGESIZE */
20112 #    ifdef NBPG
20113 #     define getpagesize() NBPG * CLSIZE
20114 #     ifndef CLSIZE
20115 #      define CLSIZE 1
20116 #     endif /* no CLSIZE */
20117 #    else /* no NBPG */
20118 #     ifdef NBPC
20119 #      define getpagesize() NBPC
20120 #     else /* no NBPC */
20121 #      ifdef PAGESIZE
20122 #       define getpagesize() PAGESIZE
20123 #      endif /* PAGESIZE */
20124 #     endif /* no NBPC */
20125 #    endif /* no NBPG */
20126 #   endif /* no EXEC_PAGESIZE */
20127 #  else /* no HAVE_SYS_PARAM_H */
20128 #   define getpagesize() 8192   /* punt totally */
20129 #  endif /* no HAVE_SYS_PARAM_H */
20130 # endif /* no _SC_PAGESIZE */
20131
20132 #endif /* no HAVE_GETPAGESIZE */
20133
20134 int
20135 main ()
20136 {
20137   char *data, *data2, *data3;
20138   int i, pagesize;
20139   int fd;
20140
20141   pagesize = getpagesize ();
20142
20143   /* First, make a file with some known garbage in it. */
20144   data = (char *) malloc (pagesize);
20145   if (!data)
20146     return 1;
20147   for (i = 0; i < pagesize; ++i)
20148     *(data + i) = rand ();
20149   umask (0);
20150   fd = creat ("conftest.mmap", 0600);
20151   if (fd < 0)
20152     return 1;
20153   if (write (fd, data, pagesize) != pagesize)
20154     return 1;
20155   close (fd);
20156
20157   /* Next, try to mmap the file at a fixed address which already has
20158      something else allocated at it.  If we can, also make sure that
20159      we see the same garbage.  */
20160   fd = open ("conftest.mmap", O_RDWR);
20161   if (fd < 0)
20162     return 1;
20163   data2 = (char *) malloc (2 * pagesize);
20164   if (!data2)
20165     return 1;
20166   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20167   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20168                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20169     return 1;
20170   for (i = 0; i < pagesize; ++i)
20171     if (*(data + i) != *(data2 + i))
20172       return 1;
20173
20174   /* Finally, make sure that changes to the mapped area do not
20175      percolate back to the file as seen by read().  (This is a bug on
20176      some variants of i386 svr4.0.)  */
20177   for (i = 0; i < pagesize; ++i)
20178     *(data2 + i) = *(data2 + i) + 1;
20179   data3 = (char *) malloc (pagesize);
20180   if (!data3)
20181     return 1;
20182   if (read (fd, data3, pagesize) != pagesize)
20183     return 1;
20184   for (i = 0; i < pagesize; ++i)
20185     if (*(data + i) != *(data3 + i))
20186       return 1;
20187   close (fd);
20188   return 0;
20189 }
20190 _ACEOF
20191 rm -f conftest$ac_exeext
20192 if { (ac_try="$ac_link"
20193 case "(($ac_try" in
20194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195   *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198   (eval "$ac_link") 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20202   { (case "(($ac_try" in
20203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204   *) ac_try_echo=$ac_try;;
20205 esac
20206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207   (eval "$ac_try") 2>&5
20208   ac_status=$?
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); }; }; then
20211   ac_cv_func_mmap_fixed_mapped=yes
20212 else
20213   echo "$as_me: program exited with status $ac_status" >&5
20214 echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20216
20217 ( exit $ac_status )
20218 ac_cv_func_mmap_fixed_mapped=no
20219 fi
20220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20221 fi
20222
20223
20224 fi
20225 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20226 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20227 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20228
20229 cat >>confdefs.h <<\_ACEOF
20230 #define HAVE_MMAP 1
20231 _ACEOF
20232
20233 fi
20234 rm -f conftest.mmap
20235
20236
20237     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20238 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20239 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20240   echo $ECHO_N "(cached) $ECHO_C" >&6
20241 else
20242   cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h.  */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h.  */
20248
20249 #include <features.h>
20250 #ifdef __GNU_LIBRARY__
20251  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20252   Lucky GNU user
20253  #endif
20254 #endif
20255
20256 _ACEOF
20257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20258   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20259   ac_cv_gnu_library_2_1=yes
20260 else
20261   ac_cv_gnu_library_2_1=no
20262 fi
20263 rm -f conftest*
20264
20265
20266
20267 fi
20268 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20269 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20270
20271     GLIBC21="$ac_cv_gnu_library_2_1"
20272
20273
20274
20275
20276   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20277 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20278 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20279   echo $ECHO_N "(cached) $ECHO_C" >&6
20280 else
20281
20282       if test "$cross_compiling" = yes; then
20283
20284           # Guess based on the CPU.
20285           case "$host_cpu" in
20286             alpha* | i3456786 | m68k | s390*)
20287               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20288             *)
20289               gt_cv_int_divbyzero_sigfpe="guessing no";;
20290           esac
20291
20292 else
20293   cat >conftest.$ac_ext <<_ACEOF
20294 /* confdefs.h.  */
20295 _ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h.  */
20299
20300 #include <stdlib.h>
20301 #include <signal.h>
20302
20303 static void
20304 #ifdef __cplusplus
20305 sigfpe_handler (int sig)
20306 #else
20307 sigfpe_handler (sig) int sig;
20308 #endif
20309 {
20310   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20311   exit (sig != SIGFPE);
20312 }
20313
20314 int x = 1;
20315 int y = 0;
20316 int z;
20317 int nan;
20318
20319 int main ()
20320 {
20321   signal (SIGFPE, sigfpe_handler);
20322 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20323 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20324   signal (SIGTRAP, sigfpe_handler);
20325 #endif
20326 /* Linux/SPARC yields signal SIGILL.  */
20327 #if defined (__sparc__) && defined (__linux__)
20328   signal (SIGILL, sigfpe_handler);
20329 #endif
20330
20331   z = x / y;
20332   nan = y / y;
20333   exit (1);
20334 }
20335
20336 _ACEOF
20337 rm -f conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341   *) ac_try_echo=$ac_try;;
20342 esac
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344   (eval "$ac_link") 2>&5
20345   ac_status=$?
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20348   { (case "(($ac_try" in
20349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350   *) ac_try_echo=$ac_try;;
20351 esac
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353   (eval "$ac_try") 2>&5
20354   ac_status=$?
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); }; }; then
20357   gt_cv_int_divbyzero_sigfpe=yes
20358 else
20359   echo "$as_me: program exited with status $ac_status" >&5
20360 echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20362
20363 ( exit $ac_status )
20364 gt_cv_int_divbyzero_sigfpe=no
20365 fi
20366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20367 fi
20368
20369
20370
20371 fi
20372 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20373 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20374   case "$gt_cv_int_divbyzero_sigfpe" in
20375     *yes) value=1;;
20376     *) value=0;;
20377   esac
20378
20379 cat >>confdefs.h <<_ACEOF
20380 #define INTDIV0_RAISES_SIGFPE $value
20381 _ACEOF
20382
20383
20384
20385   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20386 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20387 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20388   echo $ECHO_N "(cached) $ECHO_C" >&6
20389 else
20390   cat >conftest.$ac_ext <<_ACEOF
20391 /* confdefs.h.  */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h.  */
20396 unsigned long long ull = 1ULL; int i = 63;
20397 int
20398 main ()
20399 {
20400 unsigned long long ullmax = (unsigned long long) -1;
20401      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20402   ;
20403   return 0;
20404 }
20405 _ACEOF
20406 rm -f conftest.$ac_objext conftest$ac_exeext
20407 if { (ac_try="$ac_link"
20408 case "(($ac_try" in
20409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410   *) ac_try_echo=$ac_try;;
20411 esac
20412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20413   (eval "$ac_link") 2>conftest.er1
20414   ac_status=$?
20415   grep -v '^ *+' conftest.er1 >conftest.err
20416   rm -f conftest.er1
20417   cat conftest.err >&5
20418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419   (exit $ac_status); } && {
20420          test -z "$ac_c_werror_flag" ||
20421          test ! -s conftest.err
20422        } && test -s conftest$ac_exeext &&
20423        $as_test_x conftest$ac_exeext; then
20424   ac_cv_type_unsigned_long_long=yes
20425 else
20426   echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20428
20429         ac_cv_type_unsigned_long_long=no
20430 fi
20431
20432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20433       conftest$ac_exeext conftest.$ac_ext
20434 fi
20435 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20436 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20437   if test $ac_cv_type_unsigned_long_long = yes; then
20438
20439 cat >>confdefs.h <<\_ACEOF
20440 #define HAVE_UNSIGNED_LONG_LONG 1
20441 _ACEOF
20442
20443   fi
20444
20445
20446
20447
20448   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20449
20450     test $ac_cv_type_unsigned_long_long = yes \
20451       && ac_type='unsigned long long' \
20452       || ac_type='unsigned long'
20453
20454 cat >>confdefs.h <<_ACEOF
20455 #define uintmax_t $ac_type
20456 _ACEOF
20457
20458   else
20459
20460 cat >>confdefs.h <<\_ACEOF
20461 #define HAVE_UINTMAX_T 1
20462 _ACEOF
20463
20464   fi
20465
20466
20467   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20468 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20469 if test "${gt_cv_header_inttypes_h+set}" = set; then
20470   echo $ECHO_N "(cached) $ECHO_C" >&6
20471 else
20472
20473     cat >conftest.$ac_ext <<_ACEOF
20474 /* confdefs.h.  */
20475 _ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h.  */
20479 #include <sys/types.h>
20480 #include <inttypes.h>
20481 int
20482 main ()
20483 {
20484
20485   ;
20486   return 0;
20487 }
20488 _ACEOF
20489 rm -f conftest.$ac_objext
20490 if { (ac_try="$ac_compile"
20491 case "(($ac_try" in
20492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493   *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496   (eval "$ac_compile") 2>conftest.er1
20497   ac_status=$?
20498   grep -v '^ *+' conftest.er1 >conftest.err
20499   rm -f conftest.er1
20500   cat conftest.err >&5
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); } && {
20503          test -z "$ac_c_werror_flag" ||
20504          test ! -s conftest.err
20505        } && test -s conftest.$ac_objext; then
20506   gt_cv_header_inttypes_h=yes
20507 else
20508   echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20510
20511         gt_cv_header_inttypes_h=no
20512 fi
20513
20514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20515
20516 fi
20517 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20518 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20519   if test $gt_cv_header_inttypes_h = yes; then
20520
20521 cat >>confdefs.h <<_ACEOF
20522 #define HAVE_INTTYPES_H 1
20523 _ACEOF
20524
20525   fi
20526
20527
20528
20529   if test $gt_cv_header_inttypes_h = yes; then
20530     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20531 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20532 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20533   echo $ECHO_N "(cached) $ECHO_C" >&6
20534 else
20535
20536         cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h.  */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h.  */
20542 #include <inttypes.h>
20543 #ifdef PRId32
20544 char *p = PRId32;
20545 #endif
20546
20547 int
20548 main ()
20549 {
20550
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest.$ac_objext
20556 if { (ac_try="$ac_compile"
20557 case "(($ac_try" in
20558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559   *) ac_try_echo=$ac_try;;
20560 esac
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562   (eval "$ac_compile") 2>conftest.er1
20563   ac_status=$?
20564   grep -v '^ *+' conftest.er1 >conftest.err
20565   rm -f conftest.er1
20566   cat conftest.err >&5
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); } && {
20569          test -z "$ac_c_werror_flag" ||
20570          test ! -s conftest.err
20571        } && test -s conftest.$ac_objext; then
20572   gt_cv_inttypes_pri_broken=no
20573 else
20574   echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20576
20577         gt_cv_inttypes_pri_broken=yes
20578 fi
20579
20580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581
20582 fi
20583 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20584 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20585   fi
20586   if test "$gt_cv_inttypes_pri_broken" = yes; then
20587
20588 cat >>confdefs.h <<_ACEOF
20589 #define PRI_MACROS_BROKEN 1
20590 _ACEOF
20591
20592   fi
20593
20594
20595
20596 for ac_header in stdint.h
20597 do
20598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20600   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20603   echo $ECHO_N "(cached) $ECHO_C" >&6
20604 fi
20605 ac_res=`eval echo '${'$as_ac_Header'}'`
20606                { echo "$as_me:$LINENO: result: $ac_res" >&5
20607 echo "${ECHO_T}$ac_res" >&6; }
20608 else
20609   # Is the header compilable?
20610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20612 cat >conftest.$ac_ext <<_ACEOF
20613 /* confdefs.h.  */
20614 _ACEOF
20615 cat confdefs.h >>conftest.$ac_ext
20616 cat >>conftest.$ac_ext <<_ACEOF
20617 /* end confdefs.h.  */
20618 $ac_includes_default
20619 #include <$ac_header>
20620 _ACEOF
20621 rm -f conftest.$ac_objext
20622 if { (ac_try="$ac_compile"
20623 case "(($ac_try" in
20624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625   *) ac_try_echo=$ac_try;;
20626 esac
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628   (eval "$ac_compile") 2>conftest.er1
20629   ac_status=$?
20630   grep -v '^ *+' conftest.er1 >conftest.err
20631   rm -f conftest.er1
20632   cat conftest.err >&5
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); } && {
20635          test -z "$ac_c_werror_flag" ||
20636          test ! -s conftest.err
20637        } && test -s conftest.$ac_objext; then
20638   ac_header_compiler=yes
20639 else
20640   echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20642
20643         ac_header_compiler=no
20644 fi
20645
20646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20648 echo "${ECHO_T}$ac_header_compiler" >&6; }
20649
20650 # Is the header present?
20651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20653 cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h.  */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h.  */
20659 #include <$ac_header>
20660 _ACEOF
20661 if { (ac_try="$ac_cpp conftest.$ac_ext"
20662 case "(($ac_try" in
20663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664   *) ac_try_echo=$ac_try;;
20665 esac
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20668   ac_status=$?
20669   grep -v '^ *+' conftest.er1 >conftest.err
20670   rm -f conftest.er1
20671   cat conftest.err >&5
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); } >/dev/null && {
20674          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20675          test ! -s conftest.err
20676        }; then
20677   ac_header_preproc=yes
20678 else
20679   echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20681
20682   ac_header_preproc=no
20683 fi
20684
20685 rm -f conftest.err conftest.$ac_ext
20686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20687 echo "${ECHO_T}$ac_header_preproc" >&6; }
20688
20689 # So?  What about this header?
20690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20691   yes:no: )
20692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20696     ac_header_preproc=yes
20697     ;;
20698   no:yes:* )
20699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20711
20712     ;;
20713 esac
20714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20717   echo $ECHO_N "(cached) $ECHO_C" >&6
20718 else
20719   eval "$as_ac_Header=\$ac_header_preproc"
20720 fi
20721 ac_res=`eval echo '${'$as_ac_Header'}'`
20722                { echo "$as_me:$LINENO: result: $ac_res" >&5
20723 echo "${ECHO_T}$ac_res" >&6; }
20724
20725 fi
20726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20727   cat >>confdefs.h <<_ACEOF
20728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20729 _ACEOF
20730
20731 fi
20732
20733 done
20734
20735     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20736 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20737   result=
20738   cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744
20745 #include <limits.h>
20746 #if HAVE_STDINT_H
20747 #include <stdint.h>
20748 #endif
20749 #ifdef SIZE_MAX
20750 Found it
20751 #endif
20752
20753 _ACEOF
20754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20755   $EGREP "Found it" >/dev/null 2>&1; then
20756   result=yes
20757 fi
20758 rm -f conftest*
20759
20760   if test -z "$result"; then
20761                     if test "$cross_compiling" = yes; then
20762   # Depending upon the size, compute the lo and hi bounds.
20763 cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h.  */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h.  */
20769 #include <stddef.h>
20770 int
20771 main ()
20772 {
20773 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20774 test_array [0] = 0
20775
20776   ;
20777   return 0;
20778 }
20779 _ACEOF
20780 rm -f conftest.$ac_objext
20781 if { (ac_try="$ac_compile"
20782 case "(($ac_try" in
20783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784   *) ac_try_echo=$ac_try;;
20785 esac
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787   (eval "$ac_compile") 2>conftest.er1
20788   ac_status=$?
20789   grep -v '^ *+' conftest.er1 >conftest.err
20790   rm -f conftest.er1
20791   cat conftest.err >&5
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); } && {
20794          test -z "$ac_c_werror_flag" ||
20795          test ! -s conftest.err
20796        } && test -s conftest.$ac_objext; then
20797   ac_lo=0 ac_mid=0
20798   while :; do
20799     cat >conftest.$ac_ext <<_ACEOF
20800 /* confdefs.h.  */
20801 _ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h.  */
20805 #include <stddef.h>
20806 int
20807 main ()
20808 {
20809 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20810 test_array [0] = 0
20811
20812   ;
20813   return 0;
20814 }
20815 _ACEOF
20816 rm -f conftest.$ac_objext
20817 if { (ac_try="$ac_compile"
20818 case "(($ac_try" in
20819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820   *) ac_try_echo=$ac_try;;
20821 esac
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823   (eval "$ac_compile") 2>conftest.er1
20824   ac_status=$?
20825   grep -v '^ *+' conftest.er1 >conftest.err
20826   rm -f conftest.er1
20827   cat conftest.err >&5
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); } && {
20830          test -z "$ac_c_werror_flag" ||
20831          test ! -s conftest.err
20832        } && test -s conftest.$ac_objext; then
20833   ac_hi=$ac_mid; break
20834 else
20835   echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20837
20838         ac_lo=`expr $ac_mid + 1`
20839                         if test $ac_lo -le $ac_mid; then
20840                           ac_lo= ac_hi=
20841                           break
20842                         fi
20843                         ac_mid=`expr 2 '*' $ac_mid + 1`
20844 fi
20845
20846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847   done
20848 else
20849   echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20851
20852         cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h.  */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h.  */
20858 #include <stddef.h>
20859 int
20860 main ()
20861 {
20862 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20863 test_array [0] = 0
20864
20865   ;
20866   return 0;
20867 }
20868 _ACEOF
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873   *) ac_try_echo=$ac_try;;
20874 esac
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876   (eval "$ac_compile") 2>conftest.er1
20877   ac_status=$?
20878   grep -v '^ *+' conftest.er1 >conftest.err
20879   rm -f conftest.er1
20880   cat conftest.err >&5
20881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882   (exit $ac_status); } && {
20883          test -z "$ac_c_werror_flag" ||
20884          test ! -s conftest.err
20885        } && test -s conftest.$ac_objext; then
20886   ac_hi=-1 ac_mid=-1
20887   while :; do
20888     cat >conftest.$ac_ext <<_ACEOF
20889 /* confdefs.h.  */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h.  */
20894 #include <stddef.h>
20895 int
20896 main ()
20897 {
20898 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20899 test_array [0] = 0
20900
20901   ;
20902   return 0;
20903 }
20904 _ACEOF
20905 rm -f conftest.$ac_objext
20906 if { (ac_try="$ac_compile"
20907 case "(($ac_try" in
20908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909   *) ac_try_echo=$ac_try;;
20910 esac
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912   (eval "$ac_compile") 2>conftest.er1
20913   ac_status=$?
20914   grep -v '^ *+' conftest.er1 >conftest.err
20915   rm -f conftest.er1
20916   cat conftest.err >&5
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); } && {
20919          test -z "$ac_c_werror_flag" ||
20920          test ! -s conftest.err
20921        } && test -s conftest.$ac_objext; then
20922   ac_lo=$ac_mid; break
20923 else
20924   echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20926
20927         ac_hi=`expr '(' $ac_mid ')' - 1`
20928                         if test $ac_mid -le $ac_hi; then
20929                           ac_lo= ac_hi=
20930                           break
20931                         fi
20932                         ac_mid=`expr 2 '*' $ac_mid`
20933 fi
20934
20935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20936   done
20937 else
20938   echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20940
20941         ac_lo= ac_hi=
20942 fi
20943
20944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20945 fi
20946
20947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 # Binary search between lo and hi bounds.
20949 while test "x$ac_lo" != "x$ac_hi"; do
20950   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20951   cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h.  */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h.  */
20957 #include <stddef.h>
20958 int
20959 main ()
20960 {
20961 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20962 test_array [0] = 0
20963
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 rm -f conftest.$ac_objext
20969 if { (ac_try="$ac_compile"
20970 case "(($ac_try" in
20971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972   *) ac_try_echo=$ac_try;;
20973 esac
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975   (eval "$ac_compile") 2>conftest.er1
20976   ac_status=$?
20977   grep -v '^ *+' conftest.er1 >conftest.err
20978   rm -f conftest.er1
20979   cat conftest.err >&5
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); } && {
20982          test -z "$ac_c_werror_flag" ||
20983          test ! -s conftest.err
20984        } && test -s conftest.$ac_objext; then
20985   ac_hi=$ac_mid
20986 else
20987   echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20989
20990         ac_lo=`expr '(' $ac_mid ')' + 1`
20991 fi
20992
20993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20994 done
20995 case $ac_lo in
20996 ?*) res_hi=$ac_lo;;
20997 '') result=? ;;
20998 esac
20999 else
21000   cat >conftest.$ac_ext <<_ACEOF
21001 /* confdefs.h.  */
21002 _ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h.  */
21006 #include <stddef.h>
21007 static long int longval () { return ~(size_t)0 / 10; }
21008 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21009 #include <stdio.h>
21010 #include <stdlib.h>
21011 int
21012 main ()
21013 {
21014
21015   FILE *f = fopen ("conftest.val", "w");
21016   if (! f)
21017     return 1;
21018   if ((~(size_t)0 / 10) < 0)
21019     {
21020       long int i = longval ();
21021       if (i != (~(size_t)0 / 10))
21022         return 1;
21023       fprintf (f, "%ld\n", i);
21024     }
21025   else
21026     {
21027       unsigned long int i = ulongval ();
21028       if (i != (~(size_t)0 / 10))
21029         return 1;
21030       fprintf (f, "%lu\n", i);
21031     }
21032   return ferror (f) || fclose (f) != 0;
21033
21034   ;
21035   return 0;
21036 }
21037 _ACEOF
21038 rm -f conftest$ac_exeext
21039 if { (ac_try="$ac_link"
21040 case "(($ac_try" in
21041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042   *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045   (eval "$ac_link") 2>&5
21046   ac_status=$?
21047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21049   { (case "(($ac_try" in
21050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051   *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054   (eval "$ac_try") 2>&5
21055   ac_status=$?
21056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057   (exit $ac_status); }; }; then
21058   res_hi=`cat conftest.val`
21059 else
21060   echo "$as_me: program exited with status $ac_status" >&5
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21063
21064 ( exit $ac_status )
21065 result=?
21066 fi
21067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21068 fi
21069 rm -f conftest.val
21070
21071     if test "$cross_compiling" = yes; then
21072   # Depending upon the size, compute the lo and hi bounds.
21073 cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h.  */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h.  */
21079 #include <stddef.h>
21080 int
21081 main ()
21082 {
21083 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21084 test_array [0] = 0
21085
21086   ;
21087   return 0;
21088 }
21089 _ACEOF
21090 rm -f conftest.$ac_objext
21091 if { (ac_try="$ac_compile"
21092 case "(($ac_try" in
21093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094   *) ac_try_echo=$ac_try;;
21095 esac
21096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097   (eval "$ac_compile") 2>conftest.er1
21098   ac_status=$?
21099   grep -v '^ *+' conftest.er1 >conftest.err
21100   rm -f conftest.er1
21101   cat conftest.err >&5
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); } && {
21104          test -z "$ac_c_werror_flag" ||
21105          test ! -s conftest.err
21106        } && test -s conftest.$ac_objext; then
21107   ac_lo=0 ac_mid=0
21108   while :; do
21109     cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h.  */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h.  */
21115 #include <stddef.h>
21116 int
21117 main ()
21118 {
21119 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21120 test_array [0] = 0
21121
21122   ;
21123   return 0;
21124 }
21125 _ACEOF
21126 rm -f conftest.$ac_objext
21127 if { (ac_try="$ac_compile"
21128 case "(($ac_try" in
21129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130   *) ac_try_echo=$ac_try;;
21131 esac
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133   (eval "$ac_compile") 2>conftest.er1
21134   ac_status=$?
21135   grep -v '^ *+' conftest.er1 >conftest.err
21136   rm -f conftest.er1
21137   cat conftest.err >&5
21138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139   (exit $ac_status); } && {
21140          test -z "$ac_c_werror_flag" ||
21141          test ! -s conftest.err
21142        } && test -s conftest.$ac_objext; then
21143   ac_hi=$ac_mid; break
21144 else
21145   echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21147
21148         ac_lo=`expr $ac_mid + 1`
21149                         if test $ac_lo -le $ac_mid; then
21150                           ac_lo= ac_hi=
21151                           break
21152                         fi
21153                         ac_mid=`expr 2 '*' $ac_mid + 1`
21154 fi
21155
21156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21157   done
21158 else
21159   echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21161
21162         cat >conftest.$ac_ext <<_ACEOF
21163 /* confdefs.h.  */
21164 _ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h.  */
21168 #include <stddef.h>
21169 int
21170 main ()
21171 {
21172 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21173 test_array [0] = 0
21174
21175   ;
21176   return 0;
21177 }
21178 _ACEOF
21179 rm -f conftest.$ac_objext
21180 if { (ac_try="$ac_compile"
21181 case "(($ac_try" in
21182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21183   *) ac_try_echo=$ac_try;;
21184 esac
21185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21186   (eval "$ac_compile") 2>conftest.er1
21187   ac_status=$?
21188   grep -v '^ *+' conftest.er1 >conftest.err
21189   rm -f conftest.er1
21190   cat conftest.err >&5
21191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192   (exit $ac_status); } && {
21193          test -z "$ac_c_werror_flag" ||
21194          test ! -s conftest.err
21195        } && test -s conftest.$ac_objext; then
21196   ac_hi=-1 ac_mid=-1
21197   while :; do
21198     cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h.  */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h.  */
21204 #include <stddef.h>
21205 int
21206 main ()
21207 {
21208 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21209 test_array [0] = 0
21210
21211   ;
21212   return 0;
21213 }
21214 _ACEOF
21215 rm -f conftest.$ac_objext
21216 if { (ac_try="$ac_compile"
21217 case "(($ac_try" in
21218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219   *) ac_try_echo=$ac_try;;
21220 esac
21221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222   (eval "$ac_compile") 2>conftest.er1
21223   ac_status=$?
21224   grep -v '^ *+' conftest.er1 >conftest.err
21225   rm -f conftest.er1
21226   cat conftest.err >&5
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); } && {
21229          test -z "$ac_c_werror_flag" ||
21230          test ! -s conftest.err
21231        } && test -s conftest.$ac_objext; then
21232   ac_lo=$ac_mid; break
21233 else
21234   echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21236
21237         ac_hi=`expr '(' $ac_mid ')' - 1`
21238                         if test $ac_mid -le $ac_hi; then
21239                           ac_lo= ac_hi=
21240                           break
21241                         fi
21242                         ac_mid=`expr 2 '*' $ac_mid`
21243 fi
21244
21245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246   done
21247 else
21248   echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21250
21251         ac_lo= ac_hi=
21252 fi
21253
21254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21255 fi
21256
21257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21258 # Binary search between lo and hi bounds.
21259 while test "x$ac_lo" != "x$ac_hi"; do
21260   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21261   cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h.  */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h.  */
21267 #include <stddef.h>
21268 int
21269 main ()
21270 {
21271 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21272 test_array [0] = 0
21273
21274   ;
21275   return 0;
21276 }
21277 _ACEOF
21278 rm -f conftest.$ac_objext
21279 if { (ac_try="$ac_compile"
21280 case "(($ac_try" in
21281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282   *) ac_try_echo=$ac_try;;
21283 esac
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285   (eval "$ac_compile") 2>conftest.er1
21286   ac_status=$?
21287   grep -v '^ *+' conftest.er1 >conftest.err
21288   rm -f conftest.er1
21289   cat conftest.err >&5
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); } && {
21292          test -z "$ac_c_werror_flag" ||
21293          test ! -s conftest.err
21294        } && test -s conftest.$ac_objext; then
21295   ac_hi=$ac_mid
21296 else
21297   echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21299
21300         ac_lo=`expr '(' $ac_mid ')' + 1`
21301 fi
21302
21303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21304 done
21305 case $ac_lo in
21306 ?*) res_lo=$ac_lo;;
21307 '') result=? ;;
21308 esac
21309 else
21310   cat >conftest.$ac_ext <<_ACEOF
21311 /* confdefs.h.  */
21312 _ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h.  */
21316 #include <stddef.h>
21317 static long int longval () { return ~(size_t)0 % 10; }
21318 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21319 #include <stdio.h>
21320 #include <stdlib.h>
21321 int
21322 main ()
21323 {
21324
21325   FILE *f = fopen ("conftest.val", "w");
21326   if (! f)
21327     return 1;
21328   if ((~(size_t)0 % 10) < 0)
21329     {
21330       long int i = longval ();
21331       if (i != (~(size_t)0 % 10))
21332         return 1;
21333       fprintf (f, "%ld\n", i);
21334     }
21335   else
21336     {
21337       unsigned long int i = ulongval ();
21338       if (i != (~(size_t)0 % 10))
21339         return 1;
21340       fprintf (f, "%lu\n", i);
21341     }
21342   return ferror (f) || fclose (f) != 0;
21343
21344   ;
21345   return 0;
21346 }
21347 _ACEOF
21348 rm -f conftest$ac_exeext
21349 if { (ac_try="$ac_link"
21350 case "(($ac_try" in
21351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352   *) ac_try_echo=$ac_try;;
21353 esac
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355   (eval "$ac_link") 2>&5
21356   ac_status=$?
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21359   { (case "(($ac_try" in
21360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361   *) ac_try_echo=$ac_try;;
21362 esac
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364   (eval "$ac_try") 2>&5
21365   ac_status=$?
21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367   (exit $ac_status); }; }; then
21368   res_lo=`cat conftest.val`
21369 else
21370   echo "$as_me: program exited with status $ac_status" >&5
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374 ( exit $ac_status )
21375 result=?
21376 fi
21377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21378 fi
21379 rm -f conftest.val
21380
21381     if test "$cross_compiling" = yes; then
21382   # Depending upon the size, compute the lo and hi bounds.
21383 cat >conftest.$ac_ext <<_ACEOF
21384 /* confdefs.h.  */
21385 _ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h.  */
21389 #include <stddef.h>
21390 int
21391 main ()
21392 {
21393 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21394 test_array [0] = 0
21395
21396   ;
21397   return 0;
21398 }
21399 _ACEOF
21400 rm -f conftest.$ac_objext
21401 if { (ac_try="$ac_compile"
21402 case "(($ac_try" in
21403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404   *) ac_try_echo=$ac_try;;
21405 esac
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407   (eval "$ac_compile") 2>conftest.er1
21408   ac_status=$?
21409   grep -v '^ *+' conftest.er1 >conftest.err
21410   rm -f conftest.er1
21411   cat conftest.err >&5
21412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413   (exit $ac_status); } && {
21414          test -z "$ac_c_werror_flag" ||
21415          test ! -s conftest.err
21416        } && test -s conftest.$ac_objext; then
21417   ac_lo=0 ac_mid=0
21418   while :; do
21419     cat >conftest.$ac_ext <<_ACEOF
21420 /* confdefs.h.  */
21421 _ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h.  */
21425 #include <stddef.h>
21426 int
21427 main ()
21428 {
21429 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21430 test_array [0] = 0
21431
21432   ;
21433   return 0;
21434 }
21435 _ACEOF
21436 rm -f conftest.$ac_objext
21437 if { (ac_try="$ac_compile"
21438 case "(($ac_try" in
21439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440   *) ac_try_echo=$ac_try;;
21441 esac
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443   (eval "$ac_compile") 2>conftest.er1
21444   ac_status=$?
21445   grep -v '^ *+' conftest.er1 >conftest.err
21446   rm -f conftest.er1
21447   cat conftest.err >&5
21448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449   (exit $ac_status); } && {
21450          test -z "$ac_c_werror_flag" ||
21451          test ! -s conftest.err
21452        } && test -s conftest.$ac_objext; then
21453   ac_hi=$ac_mid; break
21454 else
21455   echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458         ac_lo=`expr $ac_mid + 1`
21459                         if test $ac_lo -le $ac_mid; then
21460                           ac_lo= ac_hi=
21461                           break
21462                         fi
21463                         ac_mid=`expr 2 '*' $ac_mid + 1`
21464 fi
21465
21466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467   done
21468 else
21469   echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21471
21472         cat >conftest.$ac_ext <<_ACEOF
21473 /* confdefs.h.  */
21474 _ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h.  */
21478 #include <stddef.h>
21479 int
21480 main ()
21481 {
21482 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21483 test_array [0] = 0
21484
21485   ;
21486   return 0;
21487 }
21488 _ACEOF
21489 rm -f conftest.$ac_objext
21490 if { (ac_try="$ac_compile"
21491 case "(($ac_try" in
21492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21493   *) ac_try_echo=$ac_try;;
21494 esac
21495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496   (eval "$ac_compile") 2>conftest.er1
21497   ac_status=$?
21498   grep -v '^ *+' conftest.er1 >conftest.err
21499   rm -f conftest.er1
21500   cat conftest.err >&5
21501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502   (exit $ac_status); } && {
21503          test -z "$ac_c_werror_flag" ||
21504          test ! -s conftest.err
21505        } && test -s conftest.$ac_objext; then
21506   ac_hi=-1 ac_mid=-1
21507   while :; do
21508     cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h.  */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h.  */
21514 #include <stddef.h>
21515 int
21516 main ()
21517 {
21518 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21519 test_array [0] = 0
21520
21521   ;
21522   return 0;
21523 }
21524 _ACEOF
21525 rm -f conftest.$ac_objext
21526 if { (ac_try="$ac_compile"
21527 case "(($ac_try" in
21528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529   *) ac_try_echo=$ac_try;;
21530 esac
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532   (eval "$ac_compile") 2>conftest.er1
21533   ac_status=$?
21534   grep -v '^ *+' conftest.er1 >conftest.err
21535   rm -f conftest.er1
21536   cat conftest.err >&5
21537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538   (exit $ac_status); } && {
21539          test -z "$ac_c_werror_flag" ||
21540          test ! -s conftest.err
21541        } && test -s conftest.$ac_objext; then
21542   ac_lo=$ac_mid; break
21543 else
21544   echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21546
21547         ac_hi=`expr '(' $ac_mid ')' - 1`
21548                         if test $ac_mid -le $ac_hi; then
21549                           ac_lo= ac_hi=
21550                           break
21551                         fi
21552                         ac_mid=`expr 2 '*' $ac_mid`
21553 fi
21554
21555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556   done
21557 else
21558   echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21560
21561         ac_lo= ac_hi=
21562 fi
21563
21564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21565 fi
21566
21567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21568 # Binary search between lo and hi bounds.
21569 while test "x$ac_lo" != "x$ac_hi"; do
21570   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21571   cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h.  */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h.  */
21577 #include <stddef.h>
21578 int
21579 main ()
21580 {
21581 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21582 test_array [0] = 0
21583
21584   ;
21585   return 0;
21586 }
21587 _ACEOF
21588 rm -f conftest.$ac_objext
21589 if { (ac_try="$ac_compile"
21590 case "(($ac_try" in
21591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592   *) ac_try_echo=$ac_try;;
21593 esac
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595   (eval "$ac_compile") 2>conftest.er1
21596   ac_status=$?
21597   grep -v '^ *+' conftest.er1 >conftest.err
21598   rm -f conftest.er1
21599   cat conftest.err >&5
21600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); } && {
21602          test -z "$ac_c_werror_flag" ||
21603          test ! -s conftest.err
21604        } && test -s conftest.$ac_objext; then
21605   ac_hi=$ac_mid
21606 else
21607   echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21609
21610         ac_lo=`expr '(' $ac_mid ')' + 1`
21611 fi
21612
21613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21614 done
21615 case $ac_lo in
21616 ?*) fits_in_uint=$ac_lo;;
21617 '') result=? ;;
21618 esac
21619 else
21620   cat >conftest.$ac_ext <<_ACEOF
21621 /* confdefs.h.  */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h.  */
21626 #include <stddef.h>
21627 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21628 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21629 #include <stdio.h>
21630 #include <stdlib.h>
21631 int
21632 main ()
21633 {
21634
21635   FILE *f = fopen ("conftest.val", "w");
21636   if (! f)
21637     return 1;
21638   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21639     {
21640       long int i = longval ();
21641       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21642         return 1;
21643       fprintf (f, "%ld\n", i);
21644     }
21645   else
21646     {
21647       unsigned long int i = ulongval ();
21648       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21649         return 1;
21650       fprintf (f, "%lu\n", i);
21651     }
21652   return ferror (f) || fclose (f) != 0;
21653
21654   ;
21655   return 0;
21656 }
21657 _ACEOF
21658 rm -f conftest$ac_exeext
21659 if { (ac_try="$ac_link"
21660 case "(($ac_try" in
21661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662   *) ac_try_echo=$ac_try;;
21663 esac
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665   (eval "$ac_link") 2>&5
21666   ac_status=$?
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21669   { (case "(($ac_try" in
21670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21671   *) ac_try_echo=$ac_try;;
21672 esac
21673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21674   (eval "$ac_try") 2>&5
21675   ac_status=$?
21676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677   (exit $ac_status); }; }; then
21678   fits_in_uint=`cat conftest.val`
21679 else
21680   echo "$as_me: program exited with status $ac_status" >&5
21681 echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21683
21684 ( exit $ac_status )
21685 result=?
21686 fi
21687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21688 fi
21689 rm -f conftest.val
21690
21691     if test "$fits_in_uint" = 1; then
21692                   cat >conftest.$ac_ext <<_ACEOF
21693 /* confdefs.h.  */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h.  */
21698 #include <stddef.h>
21699         extern size_t foo;
21700         extern unsigned long foo;
21701
21702 int
21703 main ()
21704 {
21705
21706   ;
21707   return 0;
21708 }
21709 _ACEOF
21710 rm -f conftest.$ac_objext
21711 if { (ac_try="$ac_compile"
21712 case "(($ac_try" in
21713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714   *) ac_try_echo=$ac_try;;
21715 esac
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717   (eval "$ac_compile") 2>conftest.er1
21718   ac_status=$?
21719   grep -v '^ *+' conftest.er1 >conftest.err
21720   rm -f conftest.er1
21721   cat conftest.err >&5
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); } && {
21724          test -z "$ac_c_werror_flag" ||
21725          test ! -s conftest.err
21726        } && test -s conftest.$ac_objext; then
21727   fits_in_uint=0
21728 else
21729   echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21731
21732
21733 fi
21734
21735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21736     fi
21737     if test -z "$result"; then
21738       if test "$fits_in_uint" = 1; then
21739         result="$res_hi$res_lo"U
21740       else
21741         result="$res_hi$res_lo"UL
21742       fi
21743     else
21744             result='~(size_t)0'
21745     fi
21746   fi
21747   { echo "$as_me:$LINENO: result: $result" >&5
21748 echo "${ECHO_T}$result" >&6; }
21749   if test "$result" != yes; then
21750
21751 cat >>confdefs.h <<_ACEOF
21752 #define SIZE_MAX $result
21753 _ACEOF
21754
21755   fi
21756
21757
21758
21759
21760
21761 for ac_header in stdint.h
21762 do
21763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21765   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21768   echo $ECHO_N "(cached) $ECHO_C" >&6
21769 fi
21770 ac_res=`eval echo '${'$as_ac_Header'}'`
21771                { echo "$as_me:$LINENO: result: $ac_res" >&5
21772 echo "${ECHO_T}$ac_res" >&6; }
21773 else
21774   # Is the header compilable?
21775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21777 cat >conftest.$ac_ext <<_ACEOF
21778 /* confdefs.h.  */
21779 _ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h.  */
21783 $ac_includes_default
21784 #include <$ac_header>
21785 _ACEOF
21786 rm -f conftest.$ac_objext
21787 if { (ac_try="$ac_compile"
21788 case "(($ac_try" in
21789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790   *) ac_try_echo=$ac_try;;
21791 esac
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793   (eval "$ac_compile") 2>conftest.er1
21794   ac_status=$?
21795   grep -v '^ *+' conftest.er1 >conftest.err
21796   rm -f conftest.er1
21797   cat conftest.err >&5
21798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799   (exit $ac_status); } && {
21800          test -z "$ac_c_werror_flag" ||
21801          test ! -s conftest.err
21802        } && test -s conftest.$ac_objext; then
21803   ac_header_compiler=yes
21804 else
21805   echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21807
21808         ac_header_compiler=no
21809 fi
21810
21811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21813 echo "${ECHO_T}$ac_header_compiler" >&6; }
21814
21815 # Is the header present?
21816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21818 cat >conftest.$ac_ext <<_ACEOF
21819 /* confdefs.h.  */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h.  */
21824 #include <$ac_header>
21825 _ACEOF
21826 if { (ac_try="$ac_cpp conftest.$ac_ext"
21827 case "(($ac_try" in
21828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829   *) ac_try_echo=$ac_try;;
21830 esac
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21833   ac_status=$?
21834   grep -v '^ *+' conftest.er1 >conftest.err
21835   rm -f conftest.er1
21836   cat conftest.err >&5
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); } >/dev/null && {
21839          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21840          test ! -s conftest.err
21841        }; then
21842   ac_header_preproc=yes
21843 else
21844   echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21846
21847   ac_header_preproc=no
21848 fi
21849
21850 rm -f conftest.err conftest.$ac_ext
21851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21852 echo "${ECHO_T}$ac_header_preproc" >&6; }
21853
21854 # So?  What about this header?
21855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21856   yes:no: )
21857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21861     ac_header_preproc=yes
21862     ;;
21863   no:yes:* )
21864     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21866     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21867 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21868     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21870     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21871 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21874     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21876
21877     ;;
21878 esac
21879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21882   echo $ECHO_N "(cached) $ECHO_C" >&6
21883 else
21884   eval "$as_ac_Header=\$ac_header_preproc"
21885 fi
21886 ac_res=`eval echo '${'$as_ac_Header'}'`
21887                { echo "$as_me:$LINENO: result: $ac_res" >&5
21888 echo "${ECHO_T}$ac_res" >&6; }
21889
21890 fi
21891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21892   cat >>confdefs.h <<_ACEOF
21893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21894 _ACEOF
21895
21896 fi
21897
21898 done
21899
21900
21901
21902
21903
21904
21905
21906
21907   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21908 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21909 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21910   echo $ECHO_N "(cached) $ECHO_C" >&6
21911 else
21912   cat >conftest.$ac_ext <<_ACEOF
21913 /* confdefs.h.  */
21914 _ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h.  */
21918 $ac_includes_default
21919 typedef ptrdiff_t ac__type_new_;
21920 int
21921 main ()
21922 {
21923 if ((ac__type_new_ *) 0)
21924   return 0;
21925 if (sizeof (ac__type_new_))
21926   return 0;
21927   ;
21928   return 0;
21929 }
21930 _ACEOF
21931 rm -f conftest.$ac_objext
21932 if { (ac_try="$ac_compile"
21933 case "(($ac_try" in
21934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935   *) ac_try_echo=$ac_try;;
21936 esac
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938   (eval "$ac_compile") 2>conftest.er1
21939   ac_status=$?
21940   grep -v '^ *+' conftest.er1 >conftest.err
21941   rm -f conftest.er1
21942   cat conftest.err >&5
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); } && {
21945          test -z "$ac_c_werror_flag" ||
21946          test ! -s conftest.err
21947        } && test -s conftest.$ac_objext; then
21948   ac_cv_type_ptrdiff_t=yes
21949 else
21950   echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21952
21953         ac_cv_type_ptrdiff_t=no
21954 fi
21955
21956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21957 fi
21958 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21959 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21960 if test $ac_cv_type_ptrdiff_t = yes; then
21961   :
21962 else
21963
21964 cat >>confdefs.h <<\_ACEOF
21965 #define ptrdiff_t long
21966 _ACEOF
21967
21968
21969 fi
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21982 stdlib.h string.h unistd.h sys/param.h
21983 do
21984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21986   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21989   echo $ECHO_N "(cached) $ECHO_C" >&6
21990 fi
21991 ac_res=`eval echo '${'$as_ac_Header'}'`
21992                { echo "$as_me:$LINENO: result: $ac_res" >&5
21993 echo "${ECHO_T}$ac_res" >&6; }
21994 else
21995   # Is the header compilable?
21996 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21998 cat >conftest.$ac_ext <<_ACEOF
21999 /* confdefs.h.  */
22000 _ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h.  */
22004 $ac_includes_default
22005 #include <$ac_header>
22006 _ACEOF
22007 rm -f conftest.$ac_objext
22008 if { (ac_try="$ac_compile"
22009 case "(($ac_try" in
22010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011   *) ac_try_echo=$ac_try;;
22012 esac
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014   (eval "$ac_compile") 2>conftest.er1
22015   ac_status=$?
22016   grep -v '^ *+' conftest.er1 >conftest.err
22017   rm -f conftest.er1
22018   cat conftest.err >&5
22019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020   (exit $ac_status); } && {
22021          test -z "$ac_c_werror_flag" ||
22022          test ! -s conftest.err
22023        } && test -s conftest.$ac_objext; then
22024   ac_header_compiler=yes
22025 else
22026   echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22028
22029         ac_header_compiler=no
22030 fi
22031
22032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22034 echo "${ECHO_T}$ac_header_compiler" >&6; }
22035
22036 # Is the header present?
22037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22039 cat >conftest.$ac_ext <<_ACEOF
22040 /* confdefs.h.  */
22041 _ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h.  */
22045 #include <$ac_header>
22046 _ACEOF
22047 if { (ac_try="$ac_cpp conftest.$ac_ext"
22048 case "(($ac_try" in
22049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050   *) ac_try_echo=$ac_try;;
22051 esac
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22054   ac_status=$?
22055   grep -v '^ *+' conftest.er1 >conftest.err
22056   rm -f conftest.er1
22057   cat conftest.err >&5
22058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059   (exit $ac_status); } >/dev/null && {
22060          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22061          test ! -s conftest.err
22062        }; then
22063   ac_header_preproc=yes
22064 else
22065   echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22067
22068   ac_header_preproc=no
22069 fi
22070
22071 rm -f conftest.err conftest.$ac_ext
22072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22073 echo "${ECHO_T}$ac_header_preproc" >&6; }
22074
22075 # So?  What about this header?
22076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22077   yes:no: )
22078     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22082     ac_header_preproc=yes
22083     ;;
22084   no:yes:* )
22085     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22087     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22088 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22089     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22091     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22092 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22095     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22097
22098     ;;
22099 esac
22100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22103   echo $ECHO_N "(cached) $ECHO_C" >&6
22104 else
22105   eval "$as_ac_Header=\$ac_header_preproc"
22106 fi
22107 ac_res=`eval echo '${'$as_ac_Header'}'`
22108                { echo "$as_me:$LINENO: result: $ac_res" >&5
22109 echo "${ECHO_T}$ac_res" >&6; }
22110
22111 fi
22112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22113   cat >>confdefs.h <<_ACEOF
22114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22115 _ACEOF
22116
22117 fi
22118
22119 done
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22145 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22146 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22147 __fsetlocking
22148 do
22149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22153   echo $ECHO_N "(cached) $ECHO_C" >&6
22154 else
22155   cat >conftest.$ac_ext <<_ACEOF
22156 /* confdefs.h.  */
22157 _ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h.  */
22161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22163 #define $ac_func innocuous_$ac_func
22164
22165 /* System header to define __stub macros and hopefully few prototypes,
22166     which can conflict with char $ac_func (); below.
22167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22168     <limits.h> exists even on freestanding compilers.  */
22169
22170 #ifdef __STDC__
22171 # include <limits.h>
22172 #else
22173 # include <assert.h>
22174 #endif
22175
22176 #undef $ac_func
22177
22178 /* Override any GCC internal prototype to avoid an error.
22179    Use char because int might match the return type of a GCC
22180    builtin and then its argument prototype would still apply.  */
22181 #ifdef __cplusplus
22182 extern "C"
22183 #endif
22184 char $ac_func ();
22185 /* The GNU C library defines this for functions which it implements
22186     to always fail with ENOSYS.  Some functions are actually named
22187     something starting with __ and the normal name is an alias.  */
22188 #if defined __stub_$ac_func || defined __stub___$ac_func
22189 choke me
22190 #endif
22191
22192 int
22193 main ()
22194 {
22195 return $ac_func ();
22196   ;
22197   return 0;
22198 }
22199 _ACEOF
22200 rm -f conftest.$ac_objext conftest$ac_exeext
22201 if { (ac_try="$ac_link"
22202 case "(($ac_try" in
22203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204   *) ac_try_echo=$ac_try;;
22205 esac
22206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22207   (eval "$ac_link") 2>conftest.er1
22208   ac_status=$?
22209   grep -v '^ *+' conftest.er1 >conftest.err
22210   rm -f conftest.er1
22211   cat conftest.err >&5
22212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213   (exit $ac_status); } && {
22214          test -z "$ac_c_werror_flag" ||
22215          test ! -s conftest.err
22216        } && test -s conftest$ac_exeext &&
22217        $as_test_x conftest$ac_exeext; then
22218   eval "$as_ac_var=yes"
22219 else
22220   echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22222
22223         eval "$as_ac_var=no"
22224 fi
22225
22226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22227       conftest$ac_exeext conftest.$ac_ext
22228 fi
22229 ac_res=`eval echo '${'$as_ac_var'}'`
22230                { echo "$as_me:$LINENO: result: $ac_res" >&5
22231 echo "${ECHO_T}$ac_res" >&6; }
22232 if test `eval echo '${'$as_ac_var'}'` = yes; then
22233   cat >>confdefs.h <<_ACEOF
22234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22235 _ACEOF
22236
22237 fi
22238 done
22239
22240
22241
22242   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22243 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22244 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22245   echo $ECHO_N "(cached) $ECHO_C" >&6
22246 else
22247   cat >conftest.$ac_ext <<_ACEOF
22248 /* confdefs.h.  */
22249 _ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h.  */
22253 #include <stdio.h>
22254 int
22255 main ()
22256 {
22257
22258 #ifndef _snprintf
22259   char *p = (char *) _snprintf;
22260 #endif
22261
22262   ;
22263   return 0;
22264 }
22265 _ACEOF
22266 rm -f conftest.$ac_objext
22267 if { (ac_try="$ac_compile"
22268 case "(($ac_try" in
22269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270   *) ac_try_echo=$ac_try;;
22271 esac
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273   (eval "$ac_compile") 2>conftest.er1
22274   ac_status=$?
22275   grep -v '^ *+' conftest.er1 >conftest.err
22276   rm -f conftest.er1
22277   cat conftest.err >&5
22278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279   (exit $ac_status); } && {
22280          test -z "$ac_c_werror_flag" ||
22281          test ! -s conftest.err
22282        } && test -s conftest.$ac_objext; then
22283   ac_cv_have_decl__snprintf=yes
22284 else
22285   echo "$as_me: failed program was:" >&5
22286 sed 's/^/| /' conftest.$ac_ext >&5
22287
22288         ac_cv_have_decl__snprintf=no
22289 fi
22290
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 fi
22293 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22294 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22295   if test $ac_cv_have_decl__snprintf = yes; then
22296     gt_value=1
22297   else
22298     gt_value=0
22299   fi
22300
22301 cat >>confdefs.h <<_ACEOF
22302 #define HAVE_DECL__SNPRINTF $gt_value
22303 _ACEOF
22304
22305
22306
22307   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22308 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22309 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22310   echo $ECHO_N "(cached) $ECHO_C" >&6
22311 else
22312   cat >conftest.$ac_ext <<_ACEOF
22313 /* confdefs.h.  */
22314 _ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h.  */
22318 #include <stdio.h>
22319 int
22320 main ()
22321 {
22322
22323 #ifndef _snwprintf
22324   char *p = (char *) _snwprintf;
22325 #endif
22326
22327   ;
22328   return 0;
22329 }
22330 _ACEOF
22331 rm -f conftest.$ac_objext
22332 if { (ac_try="$ac_compile"
22333 case "(($ac_try" in
22334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335   *) ac_try_echo=$ac_try;;
22336 esac
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338   (eval "$ac_compile") 2>conftest.er1
22339   ac_status=$?
22340   grep -v '^ *+' conftest.er1 >conftest.err
22341   rm -f conftest.er1
22342   cat conftest.err >&5
22343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344   (exit $ac_status); } && {
22345          test -z "$ac_c_werror_flag" ||
22346          test ! -s conftest.err
22347        } && test -s conftest.$ac_objext; then
22348   ac_cv_have_decl__snwprintf=yes
22349 else
22350   echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22352
22353         ac_cv_have_decl__snwprintf=no
22354 fi
22355
22356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357 fi
22358 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22359 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22360   if test $ac_cv_have_decl__snwprintf = yes; then
22361     gt_value=1
22362   else
22363     gt_value=0
22364   fi
22365
22366 cat >>confdefs.h <<_ACEOF
22367 #define HAVE_DECL__SNWPRINTF $gt_value
22368 _ACEOF
22369
22370
22371
22372
22373   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22374 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22375 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22376   echo $ECHO_N "(cached) $ECHO_C" >&6
22377 else
22378   cat >conftest.$ac_ext <<_ACEOF
22379 /* confdefs.h.  */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h.  */
22384 #include <stdio.h>
22385 int
22386 main ()
22387 {
22388
22389 #ifndef feof_unlocked
22390   char *p = (char *) feof_unlocked;
22391 #endif
22392
22393   ;
22394   return 0;
22395 }
22396 _ACEOF
22397 rm -f conftest.$ac_objext
22398 if { (ac_try="$ac_compile"
22399 case "(($ac_try" in
22400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22401   *) ac_try_echo=$ac_try;;
22402 esac
22403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22404   (eval "$ac_compile") 2>conftest.er1
22405   ac_status=$?
22406   grep -v '^ *+' conftest.er1 >conftest.err
22407   rm -f conftest.er1
22408   cat conftest.err >&5
22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410   (exit $ac_status); } && {
22411          test -z "$ac_c_werror_flag" ||
22412          test ! -s conftest.err
22413        } && test -s conftest.$ac_objext; then
22414   ac_cv_have_decl_feof_unlocked=yes
22415 else
22416   echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22418
22419         ac_cv_have_decl_feof_unlocked=no
22420 fi
22421
22422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22423 fi
22424 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22425 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22426   if test $ac_cv_have_decl_feof_unlocked = yes; then
22427     gt_value=1
22428   else
22429     gt_value=0
22430   fi
22431
22432 cat >>confdefs.h <<_ACEOF
22433 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22434 _ACEOF
22435
22436
22437
22438   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22439 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22440 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22441   echo $ECHO_N "(cached) $ECHO_C" >&6
22442 else
22443   cat >conftest.$ac_ext <<_ACEOF
22444 /* confdefs.h.  */
22445 _ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h.  */
22449 #include <stdio.h>
22450 int
22451 main ()
22452 {
22453
22454 #ifndef fgets_unlocked
22455   char *p = (char *) fgets_unlocked;
22456 #endif
22457
22458   ;
22459   return 0;
22460 }
22461 _ACEOF
22462 rm -f conftest.$ac_objext
22463 if { (ac_try="$ac_compile"
22464 case "(($ac_try" in
22465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466   *) ac_try_echo=$ac_try;;
22467 esac
22468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469   (eval "$ac_compile") 2>conftest.er1
22470   ac_status=$?
22471   grep -v '^ *+' conftest.er1 >conftest.err
22472   rm -f conftest.er1
22473   cat conftest.err >&5
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); } && {
22476          test -z "$ac_c_werror_flag" ||
22477          test ! -s conftest.err
22478        } && test -s conftest.$ac_objext; then
22479   ac_cv_have_decl_fgets_unlocked=yes
22480 else
22481   echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22483
22484         ac_cv_have_decl_fgets_unlocked=no
22485 fi
22486
22487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22488 fi
22489 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22490 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22491   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22492     gt_value=1
22493   else
22494     gt_value=0
22495   fi
22496
22497 cat >>confdefs.h <<_ACEOF
22498 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22499 _ACEOF
22500
22501
22502
22503   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22504 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22505 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22506   echo $ECHO_N "(cached) $ECHO_C" >&6
22507 else
22508   cat >conftest.$ac_ext <<_ACEOF
22509 /* confdefs.h.  */
22510 _ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h.  */
22514 #include <stdio.h>
22515 int
22516 main ()
22517 {
22518
22519 #ifndef getc_unlocked
22520   char *p = (char *) getc_unlocked;
22521 #endif
22522
22523   ;
22524   return 0;
22525 }
22526 _ACEOF
22527 rm -f conftest.$ac_objext
22528 if { (ac_try="$ac_compile"
22529 case "(($ac_try" in
22530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22531   *) ac_try_echo=$ac_try;;
22532 esac
22533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22534   (eval "$ac_compile") 2>conftest.er1
22535   ac_status=$?
22536   grep -v '^ *+' conftest.er1 >conftest.err
22537   rm -f conftest.er1
22538   cat conftest.err >&5
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); } && {
22541          test -z "$ac_c_werror_flag" ||
22542          test ! -s conftest.err
22543        } && test -s conftest.$ac_objext; then
22544   ac_cv_have_decl_getc_unlocked=yes
22545 else
22546   echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22548
22549         ac_cv_have_decl_getc_unlocked=no
22550 fi
22551
22552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22553 fi
22554 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22555 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22556   if test $ac_cv_have_decl_getc_unlocked = yes; then
22557     gt_value=1
22558   else
22559     gt_value=0
22560   fi
22561
22562 cat >>confdefs.h <<_ACEOF
22563 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22564 _ACEOF
22565
22566
22567
22568   case $gt_cv_func_printf_posix in
22569     *yes) HAVE_POSIX_PRINTF=1 ;;
22570     *) HAVE_POSIX_PRINTF=0 ;;
22571   esac
22572
22573   if test "$ac_cv_func_asprintf" = yes; then
22574     HAVE_ASPRINTF=1
22575   else
22576     HAVE_ASPRINTF=0
22577   fi
22578
22579   if test "$ac_cv_func_snprintf" = yes; then
22580     HAVE_SNPRINTF=1
22581   else
22582     HAVE_SNPRINTF=0
22583   fi
22584
22585   if test "$ac_cv_func_wprintf" = yes; then
22586     HAVE_WPRINTF=1
22587   else
22588     HAVE_WPRINTF=0
22589   fi
22590
22591
22592
22593
22594
22595
22596
22597           am_save_CPPFLAGS="$CPPFLAGS"
22598
22599   for element in $INCICONV; do
22600     haveit=
22601     for x in $CPPFLAGS; do
22602
22603   acl_save_prefix="$prefix"
22604   prefix="$acl_final_prefix"
22605   acl_save_exec_prefix="$exec_prefix"
22606   exec_prefix="$acl_final_exec_prefix"
22607   eval x=\"$x\"
22608   exec_prefix="$acl_save_exec_prefix"
22609   prefix="$acl_save_prefix"
22610
22611       if test "X$x" = "X$element"; then
22612         haveit=yes
22613         break
22614       fi
22615     done
22616     if test -z "$haveit"; then
22617       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22618     fi
22619   done
22620
22621
22622   { echo "$as_me:$LINENO: checking for iconv" >&5
22623 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22624 if test "${am_cv_func_iconv+set}" = set; then
22625   echo $ECHO_N "(cached) $ECHO_C" >&6
22626 else
22627
22628     am_cv_func_iconv="no, consider installing GNU libiconv"
22629     am_cv_lib_iconv=no
22630     cat >conftest.$ac_ext <<_ACEOF
22631 /* confdefs.h.  */
22632 _ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h.  */
22636 #include <stdlib.h>
22637 #include <iconv.h>
22638 int
22639 main ()
22640 {
22641 iconv_t cd = iconv_open("","");
22642        iconv(cd,NULL,NULL,NULL,NULL);
22643        iconv_close(cd);
22644   ;
22645   return 0;
22646 }
22647 _ACEOF
22648 rm -f conftest.$ac_objext conftest$ac_exeext
22649 if { (ac_try="$ac_link"
22650 case "(($ac_try" in
22651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652   *) ac_try_echo=$ac_try;;
22653 esac
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655   (eval "$ac_link") 2>conftest.er1
22656   ac_status=$?
22657   grep -v '^ *+' conftest.er1 >conftest.err
22658   rm -f conftest.er1
22659   cat conftest.err >&5
22660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661   (exit $ac_status); } && {
22662          test -z "$ac_c_werror_flag" ||
22663          test ! -s conftest.err
22664        } && test -s conftest$ac_exeext &&
22665        $as_test_x conftest$ac_exeext; then
22666   am_cv_func_iconv=yes
22667 else
22668   echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22670
22671
22672 fi
22673
22674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22675       conftest$ac_exeext conftest.$ac_ext
22676     if test "$am_cv_func_iconv" != yes; then
22677       am_save_LIBS="$LIBS"
22678       LIBS="$LIBS $LIBICONV"
22679       cat >conftest.$ac_ext <<_ACEOF
22680 /* confdefs.h.  */
22681 _ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h.  */
22685 #include <stdlib.h>
22686 #include <iconv.h>
22687 int
22688 main ()
22689 {
22690 iconv_t cd = iconv_open("","");
22691          iconv(cd,NULL,NULL,NULL,NULL);
22692          iconv_close(cd);
22693   ;
22694   return 0;
22695 }
22696 _ACEOF
22697 rm -f conftest.$ac_objext conftest$ac_exeext
22698 if { (ac_try="$ac_link"
22699 case "(($ac_try" in
22700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701   *) ac_try_echo=$ac_try;;
22702 esac
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704   (eval "$ac_link") 2>conftest.er1
22705   ac_status=$?
22706   grep -v '^ *+' conftest.er1 >conftest.err
22707   rm -f conftest.er1
22708   cat conftest.err >&5
22709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710   (exit $ac_status); } && {
22711          test -z "$ac_c_werror_flag" ||
22712          test ! -s conftest.err
22713        } && test -s conftest$ac_exeext &&
22714        $as_test_x conftest$ac_exeext; then
22715   am_cv_lib_iconv=yes
22716         am_cv_func_iconv=yes
22717 else
22718   echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22720
22721
22722 fi
22723
22724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22725       conftest$ac_exeext conftest.$ac_ext
22726       LIBS="$am_save_LIBS"
22727     fi
22728
22729 fi
22730 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22731 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22732   if test "$am_cv_func_iconv" = yes; then
22733
22734 cat >>confdefs.h <<\_ACEOF
22735 #define HAVE_ICONV 1
22736 _ACEOF
22737
22738   fi
22739   if test "$am_cv_lib_iconv" = yes; then
22740     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22741 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22742     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22743 echo "${ECHO_T}$LIBICONV" >&6; }
22744   else
22745             CPPFLAGS="$am_save_CPPFLAGS"
22746     LIBICONV=
22747     LTLIBICONV=
22748   fi
22749
22750
22751
22752   if test "$am_cv_func_iconv" = yes; then
22753     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22754 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22755     if test "${am_cv_proto_iconv+set}" = set; then
22756   echo $ECHO_N "(cached) $ECHO_C" >&6
22757 else
22758
22759       cat >conftest.$ac_ext <<_ACEOF
22760 /* confdefs.h.  */
22761 _ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h.  */
22765
22766 #include <stdlib.h>
22767 #include <iconv.h>
22768 extern
22769 #ifdef __cplusplus
22770 "C"
22771 #endif
22772 #if defined(__STDC__) || defined(__cplusplus)
22773 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22774 #else
22775 size_t iconv();
22776 #endif
22777
22778 int
22779 main ()
22780 {
22781
22782   ;
22783   return 0;
22784 }
22785 _ACEOF
22786 rm -f conftest.$ac_objext
22787 if { (ac_try="$ac_compile"
22788 case "(($ac_try" in
22789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22790   *) ac_try_echo=$ac_try;;
22791 esac
22792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22793   (eval "$ac_compile") 2>conftest.er1
22794   ac_status=$?
22795   grep -v '^ *+' conftest.er1 >conftest.err
22796   rm -f conftest.er1
22797   cat conftest.err >&5
22798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799   (exit $ac_status); } && {
22800          test -z "$ac_c_werror_flag" ||
22801          test ! -s conftest.err
22802        } && test -s conftest.$ac_objext; then
22803   am_cv_proto_iconv_arg1=""
22804 else
22805   echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22807
22808         am_cv_proto_iconv_arg1="const"
22809 fi
22810
22811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22812       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22813 fi
22814
22815     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22816     { echo "$as_me:$LINENO: result: ${ac_t:-
22817          }$am_cv_proto_iconv" >&5
22818 echo "${ECHO_T}${ac_t:-
22819          }$am_cv_proto_iconv" >&6; }
22820
22821 cat >>confdefs.h <<_ACEOF
22822 #define ICONV_CONST $am_cv_proto_iconv_arg1
22823 _ACEOF
22824
22825   fi
22826
22827
22828   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22829 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22830 if test "${am_cv_langinfo_codeset+set}" = set; then
22831   echo $ECHO_N "(cached) $ECHO_C" >&6
22832 else
22833   cat >conftest.$ac_ext <<_ACEOF
22834 /* confdefs.h.  */
22835 _ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h.  */
22839 #include <langinfo.h>
22840 int
22841 main ()
22842 {
22843 char* cs = nl_langinfo(CODESET);
22844   ;
22845   return 0;
22846 }
22847 _ACEOF
22848 rm -f conftest.$ac_objext conftest$ac_exeext
22849 if { (ac_try="$ac_link"
22850 case "(($ac_try" in
22851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852   *) ac_try_echo=$ac_try;;
22853 esac
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855   (eval "$ac_link") 2>conftest.er1
22856   ac_status=$?
22857   grep -v '^ *+' conftest.er1 >conftest.err
22858   rm -f conftest.er1
22859   cat conftest.err >&5
22860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861   (exit $ac_status); } && {
22862          test -z "$ac_c_werror_flag" ||
22863          test ! -s conftest.err
22864        } && test -s conftest$ac_exeext &&
22865        $as_test_x conftest$ac_exeext; then
22866   am_cv_langinfo_codeset=yes
22867 else
22868   echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22870
22871         am_cv_langinfo_codeset=no
22872 fi
22873
22874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22875       conftest$ac_exeext conftest.$ac_ext
22876
22877 fi
22878 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22879 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22880   if test $am_cv_langinfo_codeset = yes; then
22881
22882 cat >>confdefs.h <<\_ACEOF
22883 #define HAVE_LANGINFO_CODESET 1
22884 _ACEOF
22885
22886   fi
22887
22888   if test $ac_cv_header_locale_h = yes; then
22889
22890   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22891 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22892 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22893   echo $ECHO_N "(cached) $ECHO_C" >&6
22894 else
22895   cat >conftest.$ac_ext <<_ACEOF
22896 /* confdefs.h.  */
22897 _ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h.  */
22901 #include <locale.h>
22902 int
22903 main ()
22904 {
22905 return LC_MESSAGES
22906   ;
22907   return 0;
22908 }
22909 _ACEOF
22910 rm -f conftest.$ac_objext conftest$ac_exeext
22911 if { (ac_try="$ac_link"
22912 case "(($ac_try" in
22913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914   *) ac_try_echo=$ac_try;;
22915 esac
22916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22917   (eval "$ac_link") 2>conftest.er1
22918   ac_status=$?
22919   grep -v '^ *+' conftest.er1 >conftest.err
22920   rm -f conftest.er1
22921   cat conftest.err >&5
22922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923   (exit $ac_status); } && {
22924          test -z "$ac_c_werror_flag" ||
22925          test ! -s conftest.err
22926        } && test -s conftest$ac_exeext &&
22927        $as_test_x conftest$ac_exeext; then
22928   gt_cv_val_LC_MESSAGES=yes
22929 else
22930   echo "$as_me: failed program was:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22932
22933         gt_cv_val_LC_MESSAGES=no
22934 fi
22935
22936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22937       conftest$ac_exeext conftest.$ac_ext
22938 fi
22939 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22940 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22941   if test $gt_cv_val_LC_MESSAGES = yes; then
22942
22943 cat >>confdefs.h <<\_ACEOF
22944 #define HAVE_LC_MESSAGES 1
22945 _ACEOF
22946
22947   fi
22948
22949   fi
22950
22951   if test -n "$INTL_MACOSX_LIBS"; then
22952     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22953   fi
22954
22955                       for ac_prog in bison
22956 do
22957   # Extract the first word of "$ac_prog", so it can be a program name with args.
22958 set dummy $ac_prog; ac_word=$2
22959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22961 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22962   echo $ECHO_N "(cached) $ECHO_C" >&6
22963 else
22964   if test -n "$INTLBISON"; then
22965   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22966 else
22967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22968 for as_dir in $PATH
22969 do
22970   IFS=$as_save_IFS
22971   test -z "$as_dir" && as_dir=.
22972   for ac_exec_ext in '' $ac_executable_extensions; do
22973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22974     ac_cv_prog_INTLBISON="$ac_prog"
22975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22976     break 2
22977   fi
22978 done
22979 done
22980 IFS=$as_save_IFS
22981
22982 fi
22983 fi
22984 INTLBISON=$ac_cv_prog_INTLBISON
22985 if test -n "$INTLBISON"; then
22986   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22987 echo "${ECHO_T}$INTLBISON" >&6; }
22988 else
22989   { echo "$as_me:$LINENO: result: no" >&5
22990 echo "${ECHO_T}no" >&6; }
22991 fi
22992
22993
22994   test -n "$INTLBISON" && break
22995 done
22996
22997   if test -z "$INTLBISON"; then
22998     ac_verc_fail=yes
22999   else
23000         { echo "$as_me:$LINENO: checking version of bison" >&5
23001 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23002     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23003     case $ac_prog_version in
23004       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23005       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23006          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23007       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23008     esac
23009     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23010 echo "${ECHO_T}$ac_prog_version" >&6; }
23011   fi
23012   if test $ac_verc_fail = yes; then
23013     INTLBISON=:
23014   fi
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23032 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23033 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23034   echo $ECHO_N "(cached) $ECHO_C" >&6
23035 else
23036   gt_save_CPPFLAGS="$CPPFLAGS"
23037      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23038      gt_save_LIBS="$LIBS"
23039      LIBS="$LIBS -framework CoreFoundation"
23040      cat >conftest.$ac_ext <<_ACEOF
23041 /* confdefs.h.  */
23042 _ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h.  */
23046 #include <CFPreferences.h>
23047 int
23048 main ()
23049 {
23050 CFPreferencesCopyAppValue(NULL, NULL)
23051   ;
23052   return 0;
23053 }
23054 _ACEOF
23055 rm -f conftest.$ac_objext conftest$ac_exeext
23056 if { (ac_try="$ac_link"
23057 case "(($ac_try" in
23058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059   *) ac_try_echo=$ac_try;;
23060 esac
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062   (eval "$ac_link") 2>conftest.er1
23063   ac_status=$?
23064   grep -v '^ *+' conftest.er1 >conftest.err
23065   rm -f conftest.er1
23066   cat conftest.err >&5
23067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068   (exit $ac_status); } && {
23069          test -z "$ac_c_werror_flag" ||
23070          test ! -s conftest.err
23071        } && test -s conftest$ac_exeext &&
23072        $as_test_x conftest$ac_exeext; then
23073   gt_cv_func_CFPreferencesCopyAppValue=yes
23074 else
23075   echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23077
23078         gt_cv_func_CFPreferencesCopyAppValue=no
23079 fi
23080
23081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23082       conftest$ac_exeext conftest.$ac_ext
23083      CPPFLAGS="$gt_save_CPPFLAGS"
23084      LIBS="$gt_save_LIBS"
23085 fi
23086 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23087 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23088   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23089
23090 cat >>confdefs.h <<\_ACEOF
23091 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23092 _ACEOF
23093
23094   fi
23095     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23096 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23097 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23098   echo $ECHO_N "(cached) $ECHO_C" >&6
23099 else
23100   gt_save_CPPFLAGS="$CPPFLAGS"
23101      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23102      gt_save_LIBS="$LIBS"
23103      LIBS="$LIBS -framework CoreFoundation"
23104      cat >conftest.$ac_ext <<_ACEOF
23105 /* confdefs.h.  */
23106 _ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h.  */
23110 #include <CFLocale.h>
23111 int
23112 main ()
23113 {
23114 CFLocaleCopyCurrent();
23115   ;
23116   return 0;
23117 }
23118 _ACEOF
23119 rm -f conftest.$ac_objext conftest$ac_exeext
23120 if { (ac_try="$ac_link"
23121 case "(($ac_try" in
23122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123   *) ac_try_echo=$ac_try;;
23124 esac
23125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23126   (eval "$ac_link") 2>conftest.er1
23127   ac_status=$?
23128   grep -v '^ *+' conftest.er1 >conftest.err
23129   rm -f conftest.er1
23130   cat conftest.err >&5
23131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132   (exit $ac_status); } && {
23133          test -z "$ac_c_werror_flag" ||
23134          test ! -s conftest.err
23135        } && test -s conftest$ac_exeext &&
23136        $as_test_x conftest$ac_exeext; then
23137   gt_cv_func_CFLocaleCopyCurrent=yes
23138 else
23139   echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23141
23142         gt_cv_func_CFLocaleCopyCurrent=no
23143 fi
23144
23145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23146       conftest$ac_exeext conftest.$ac_ext
23147      CPPFLAGS="$gt_save_CPPFLAGS"
23148      LIBS="$gt_save_LIBS"
23149 fi
23150 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23151 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23152   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23153
23154 cat >>confdefs.h <<\_ACEOF
23155 #define HAVE_CFLOCALECOPYCURRENT 1
23156 _ACEOF
23157
23158   fi
23159   INTL_MACOSX_LIBS=
23160   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23161     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23162   fi
23163
23164
23165
23166
23167   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23168 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23169     # Check whether --enable-nls was given.
23170 if test "${enable_nls+set}" = set; then
23171   enableval=$enable_nls; USE_NLS=$enableval
23172 else
23173   USE_NLS=yes
23174 fi
23175
23176   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23177 echo "${ECHO_T}$USE_NLS" >&6; }
23178
23179
23180
23181
23182     BUILD_INCLUDED_LIBINTL=no
23183     USE_INCLUDED_LIBINTL=no
23184
23185   LIBINTL=
23186   LTLIBINTL=
23187   POSUB=
23188
23189     if test "$USE_NLS" = "yes"; then
23190     gt_use_preinstalled_gnugettext=no
23191
23192       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23193 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23194
23195 # Check whether --with-included-gettext was given.
23196 if test "${with_included_gettext+set}" = set; then
23197   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23198 else
23199   nls_cv_force_use_gnu_gettext=no
23200 fi
23201
23202       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23203 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23204
23205       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23206       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23207
23208
23209
23210
23211
23212
23213         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23214 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23215 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23216   echo $ECHO_N "(cached) $ECHO_C" >&6
23217 else
23218   cat >conftest.$ac_ext <<_ACEOF
23219 /* confdefs.h.  */
23220 _ACEOF
23221 cat confdefs.h >>conftest.$ac_ext
23222 cat >>conftest.$ac_ext <<_ACEOF
23223 /* end confdefs.h.  */
23224 #include <libintl.h>
23225 extern int _nl_msg_cat_cntr;
23226 extern int *_nl_domain_bindings;
23227 int
23228 main ()
23229 {
23230 bindtextdomain ("", "");
23231 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23232   ;
23233   return 0;
23234 }
23235 _ACEOF
23236 rm -f conftest.$ac_objext conftest$ac_exeext
23237 if { (ac_try="$ac_link"
23238 case "(($ac_try" in
23239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23240   *) ac_try_echo=$ac_try;;
23241 esac
23242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23243   (eval "$ac_link") 2>conftest.er1
23244   ac_status=$?
23245   grep -v '^ *+' conftest.er1 >conftest.err
23246   rm -f conftest.er1
23247   cat conftest.err >&5
23248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249   (exit $ac_status); } && {
23250          test -z "$ac_c_werror_flag" ||
23251          test ! -s conftest.err
23252        } && test -s conftest$ac_exeext &&
23253        $as_test_x conftest$ac_exeext; then
23254   gt_cv_func_gnugettext1_libc=yes
23255 else
23256   echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.$ac_ext >&5
23258
23259         gt_cv_func_gnugettext1_libc=no
23260 fi
23261
23262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23263       conftest$ac_exeext conftest.$ac_ext
23264 fi
23265 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23266 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23267
23268         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23269
23270
23271
23272     use_additional=yes
23273
23274   acl_save_prefix="$prefix"
23275   prefix="$acl_final_prefix"
23276   acl_save_exec_prefix="$exec_prefix"
23277   exec_prefix="$acl_final_exec_prefix"
23278
23279     eval additional_includedir=\"$includedir\"
23280     eval additional_libdir=\"$libdir\"
23281
23282   exec_prefix="$acl_save_exec_prefix"
23283   prefix="$acl_save_prefix"
23284
23285
23286 # Check whether --with-libintl-prefix was given.
23287 if test "${with_libintl_prefix+set}" = set; then
23288   withval=$with_libintl_prefix;
23289     if test "X$withval" = "Xno"; then
23290       use_additional=no
23291     else
23292       if test "X$withval" = "X"; then
23293
23294   acl_save_prefix="$prefix"
23295   prefix="$acl_final_prefix"
23296   acl_save_exec_prefix="$exec_prefix"
23297   exec_prefix="$acl_final_exec_prefix"
23298
23299           eval additional_includedir=\"$includedir\"
23300           eval additional_libdir=\"$libdir\"
23301
23302   exec_prefix="$acl_save_exec_prefix"
23303   prefix="$acl_save_prefix"
23304
23305       else
23306         additional_includedir="$withval/include"
23307         additional_libdir="$withval/lib"
23308       fi
23309     fi
23310
23311 fi
23312
23313       LIBINTL=
23314   LTLIBINTL=
23315   INCINTL=
23316   rpathdirs=
23317   ltrpathdirs=
23318   names_already_handled=
23319   names_next_round='intl '
23320   while test -n "$names_next_round"; do
23321     names_this_round="$names_next_round"
23322     names_next_round=
23323     for name in $names_this_round; do
23324       already_handled=
23325       for n in $names_already_handled; do
23326         if test "$n" = "$name"; then
23327           already_handled=yes
23328           break
23329         fi
23330       done
23331       if test -z "$already_handled"; then
23332         names_already_handled="$names_already_handled $name"
23333                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23334         eval value=\"\$HAVE_LIB$uppername\"
23335         if test -n "$value"; then
23336           if test "$value" = yes; then
23337             eval value=\"\$LIB$uppername\"
23338             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23339             eval value=\"\$LTLIB$uppername\"
23340             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23341           else
23342                                     :
23343           fi
23344         else
23345                               found_dir=
23346           found_la=
23347           found_so=
23348           found_a=
23349           if test $use_additional = yes; then
23350             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23351               found_dir="$additional_libdir"
23352               found_so="$additional_libdir/lib$name.$shlibext"
23353               if test -f "$additional_libdir/lib$name.la"; then
23354                 found_la="$additional_libdir/lib$name.la"
23355               fi
23356             else
23357               if test -f "$additional_libdir/lib$name.$libext"; then
23358                 found_dir="$additional_libdir"
23359                 found_a="$additional_libdir/lib$name.$libext"
23360                 if test -f "$additional_libdir/lib$name.la"; then
23361                   found_la="$additional_libdir/lib$name.la"
23362                 fi
23363               fi
23364             fi
23365           fi
23366           if test "X$found_dir" = "X"; then
23367             for x in $LDFLAGS $LTLIBINTL; do
23368
23369   acl_save_prefix="$prefix"
23370   prefix="$acl_final_prefix"
23371   acl_save_exec_prefix="$exec_prefix"
23372   exec_prefix="$acl_final_exec_prefix"
23373   eval x=\"$x\"
23374   exec_prefix="$acl_save_exec_prefix"
23375   prefix="$acl_save_prefix"
23376
23377               case "$x" in
23378                 -L*)
23379                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23380                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23381                     found_dir="$dir"
23382                     found_so="$dir/lib$name.$shlibext"
23383                     if test -f "$dir/lib$name.la"; then
23384                       found_la="$dir/lib$name.la"
23385                     fi
23386                   else
23387                     if test -f "$dir/lib$name.$libext"; then
23388                       found_dir="$dir"
23389                       found_a="$dir/lib$name.$libext"
23390                       if test -f "$dir/lib$name.la"; then
23391                         found_la="$dir/lib$name.la"
23392                       fi
23393                     fi
23394                   fi
23395                   ;;
23396               esac
23397               if test "X$found_dir" != "X"; then
23398                 break
23399               fi
23400             done
23401           fi
23402           if test "X$found_dir" != "X"; then
23403                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23404             if test "X$found_so" != "X"; then
23405                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23406                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23407               else
23408                                                                                 haveit=
23409                 for x in $ltrpathdirs; do
23410                   if test "X$x" = "X$found_dir"; then
23411                     haveit=yes
23412                     break
23413                   fi
23414                 done
23415                 if test -z "$haveit"; then
23416                   ltrpathdirs="$ltrpathdirs $found_dir"
23417                 fi
23418                                 if test "$hardcode_direct" = yes; then
23419                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23420                 else
23421                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23422                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23423                                                             haveit=
23424                     for x in $rpathdirs; do
23425                       if test "X$x" = "X$found_dir"; then
23426                         haveit=yes
23427                         break
23428                       fi
23429                     done
23430                     if test -z "$haveit"; then
23431                       rpathdirs="$rpathdirs $found_dir"
23432                     fi
23433                   else
23434                                                                                 haveit=
23435                     for x in $LDFLAGS $LIBINTL; do
23436
23437   acl_save_prefix="$prefix"
23438   prefix="$acl_final_prefix"
23439   acl_save_exec_prefix="$exec_prefix"
23440   exec_prefix="$acl_final_exec_prefix"
23441   eval x=\"$x\"
23442   exec_prefix="$acl_save_exec_prefix"
23443   prefix="$acl_save_prefix"
23444
23445                       if test "X$x" = "X-L$found_dir"; then
23446                         haveit=yes
23447                         break
23448                       fi
23449                     done
23450                     if test -z "$haveit"; then
23451                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23452                     fi
23453                     if test "$hardcode_minus_L" != no; then
23454                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23455                     else
23456                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23457                     fi
23458                   fi
23459                 fi
23460               fi
23461             else
23462               if test "X$found_a" != "X"; then
23463                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23464               else
23465                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23466               fi
23467             fi
23468                         additional_includedir=
23469             case "$found_dir" in
23470               */lib | */lib/)
23471                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23472                 additional_includedir="$basedir/include"
23473                 ;;
23474             esac
23475             if test "X$additional_includedir" != "X"; then
23476                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23477                 haveit=
23478                 if test "X$additional_includedir" = "X/usr/local/include"; then
23479                   if test -n "$GCC"; then
23480                     case $host_os in
23481                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23482                     esac
23483                   fi
23484                 fi
23485                 if test -z "$haveit"; then
23486                   for x in $CPPFLAGS $INCINTL; do
23487
23488   acl_save_prefix="$prefix"
23489   prefix="$acl_final_prefix"
23490   acl_save_exec_prefix="$exec_prefix"
23491   exec_prefix="$acl_final_exec_prefix"
23492   eval x=\"$x\"
23493   exec_prefix="$acl_save_exec_prefix"
23494   prefix="$acl_save_prefix"
23495
23496                     if test "X$x" = "X-I$additional_includedir"; then
23497                       haveit=yes
23498                       break
23499                     fi
23500                   done
23501                   if test -z "$haveit"; then
23502                     if test -d "$additional_includedir"; then
23503                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23504                     fi
23505                   fi
23506                 fi
23507               fi
23508             fi
23509                         if test -n "$found_la"; then
23510                                                         save_libdir="$libdir"
23511               case "$found_la" in
23512                 */* | *\\*) . "$found_la" ;;
23513                 *) . "./$found_la" ;;
23514               esac
23515               libdir="$save_libdir"
23516                             for dep in $dependency_libs; do
23517                 case "$dep" in
23518                   -L*)
23519                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23520                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23521                       haveit=
23522                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23523                         if test -n "$GCC"; then
23524                           case $host_os in
23525                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23526                           esac
23527                         fi
23528                       fi
23529                       if test -z "$haveit"; then
23530                         haveit=
23531                         for x in $LDFLAGS $LIBINTL; do
23532
23533   acl_save_prefix="$prefix"
23534   prefix="$acl_final_prefix"
23535   acl_save_exec_prefix="$exec_prefix"
23536   exec_prefix="$acl_final_exec_prefix"
23537   eval x=\"$x\"
23538   exec_prefix="$acl_save_exec_prefix"
23539   prefix="$acl_save_prefix"
23540
23541                           if test "X$x" = "X-L$additional_libdir"; then
23542                             haveit=yes
23543                             break
23544                           fi
23545                         done
23546                         if test -z "$haveit"; then
23547                           if test -d "$additional_libdir"; then
23548                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23549                           fi
23550                         fi
23551                         haveit=
23552                         for x in $LDFLAGS $LTLIBINTL; do
23553
23554   acl_save_prefix="$prefix"
23555   prefix="$acl_final_prefix"
23556   acl_save_exec_prefix="$exec_prefix"
23557   exec_prefix="$acl_final_exec_prefix"
23558   eval x=\"$x\"
23559   exec_prefix="$acl_save_exec_prefix"
23560   prefix="$acl_save_prefix"
23561
23562                           if test "X$x" = "X-L$additional_libdir"; then
23563                             haveit=yes
23564                             break
23565                           fi
23566                         done
23567                         if test -z "$haveit"; then
23568                           if test -d "$additional_libdir"; then
23569                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23570                           fi
23571                         fi
23572                       fi
23573                     fi
23574                     ;;
23575                   -R*)
23576                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23577                     if test "$enable_rpath" != no; then
23578                                                                   haveit=
23579                       for x in $rpathdirs; do
23580                         if test "X$x" = "X$dir"; then
23581                           haveit=yes
23582                           break
23583                         fi
23584                       done
23585                       if test -z "$haveit"; then
23586                         rpathdirs="$rpathdirs $dir"
23587                       fi
23588                                                                   haveit=
23589                       for x in $ltrpathdirs; do
23590                         if test "X$x" = "X$dir"; then
23591                           haveit=yes
23592                           break
23593                         fi
23594                       done
23595                       if test -z "$haveit"; then
23596                         ltrpathdirs="$ltrpathdirs $dir"
23597                       fi
23598                     fi
23599                     ;;
23600                   -l*)
23601                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23602                     ;;
23603                   *.la)
23604                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23605                     ;;
23606                   *)
23607                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23608                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23609                     ;;
23610                 esac
23611               done
23612             fi
23613           else
23614                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23615             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23616           fi
23617         fi
23618       fi
23619     done
23620   done
23621   if test "X$rpathdirs" != "X"; then
23622     if test -n "$hardcode_libdir_separator"; then
23623                         alldirs=
23624       for found_dir in $rpathdirs; do
23625         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23626       done
23627             acl_save_libdir="$libdir"
23628       libdir="$alldirs"
23629       eval flag=\"$hardcode_libdir_flag_spec\"
23630       libdir="$acl_save_libdir"
23631       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23632     else
23633             for found_dir in $rpathdirs; do
23634         acl_save_libdir="$libdir"
23635         libdir="$found_dir"
23636         eval flag=\"$hardcode_libdir_flag_spec\"
23637         libdir="$acl_save_libdir"
23638         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23639       done
23640     fi
23641   fi
23642   if test "X$ltrpathdirs" != "X"; then
23643             for found_dir in $ltrpathdirs; do
23644       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23645     done
23646   fi
23647
23648           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23649 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23650 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23651   echo $ECHO_N "(cached) $ECHO_C" >&6
23652 else
23653   gt_save_CPPFLAGS="$CPPFLAGS"
23654             CPPFLAGS="$CPPFLAGS $INCINTL"
23655             gt_save_LIBS="$LIBS"
23656             LIBS="$LIBS $LIBINTL"
23657                         cat >conftest.$ac_ext <<_ACEOF
23658 /* confdefs.h.  */
23659 _ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h.  */
23663 #include <libintl.h>
23664 extern int _nl_msg_cat_cntr;
23665 extern
23666 #ifdef __cplusplus
23667 "C"
23668 #endif
23669 const char *_nl_expand_alias (const char *);
23670 int
23671 main ()
23672 {
23673 bindtextdomain ("", "");
23674 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23675   ;
23676   return 0;
23677 }
23678 _ACEOF
23679 rm -f conftest.$ac_objext conftest$ac_exeext
23680 if { (ac_try="$ac_link"
23681 case "(($ac_try" in
23682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23683   *) ac_try_echo=$ac_try;;
23684 esac
23685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23686   (eval "$ac_link") 2>conftest.er1
23687   ac_status=$?
23688   grep -v '^ *+' conftest.er1 >conftest.err
23689   rm -f conftest.er1
23690   cat conftest.err >&5
23691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692   (exit $ac_status); } && {
23693          test -z "$ac_c_werror_flag" ||
23694          test ! -s conftest.err
23695        } && test -s conftest$ac_exeext &&
23696        $as_test_x conftest$ac_exeext; then
23697   gt_cv_func_gnugettext1_libintl=yes
23698 else
23699   echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23701
23702         gt_cv_func_gnugettext1_libintl=no
23703 fi
23704
23705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23706       conftest$ac_exeext conftest.$ac_ext
23707                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23708               LIBS="$LIBS $LIBICONV"
23709               cat >conftest.$ac_ext <<_ACEOF
23710 /* confdefs.h.  */
23711 _ACEOF
23712 cat confdefs.h >>conftest.$ac_ext
23713 cat >>conftest.$ac_ext <<_ACEOF
23714 /* end confdefs.h.  */
23715 #include <libintl.h>
23716 extern int _nl_msg_cat_cntr;
23717 extern
23718 #ifdef __cplusplus
23719 "C"
23720 #endif
23721 const char *_nl_expand_alias (const char *);
23722 int
23723 main ()
23724 {
23725 bindtextdomain ("", "");
23726 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23727   ;
23728   return 0;
23729 }
23730 _ACEOF
23731 rm -f conftest.$ac_objext conftest$ac_exeext
23732 if { (ac_try="$ac_link"
23733 case "(($ac_try" in
23734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23735   *) ac_try_echo=$ac_try;;
23736 esac
23737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23738   (eval "$ac_link") 2>conftest.er1
23739   ac_status=$?
23740   grep -v '^ *+' conftest.er1 >conftest.err
23741   rm -f conftest.er1
23742   cat conftest.err >&5
23743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744   (exit $ac_status); } && {
23745          test -z "$ac_c_werror_flag" ||
23746          test ! -s conftest.err
23747        } && test -s conftest$ac_exeext &&
23748        $as_test_x conftest$ac_exeext; then
23749   LIBINTL="$LIBINTL $LIBICONV"
23750                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23751                 gt_cv_func_gnugettext1_libintl=yes
23752
23753 else
23754   echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23756
23757
23758 fi
23759
23760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23761       conftest$ac_exeext conftest.$ac_ext
23762             fi
23763             CPPFLAGS="$gt_save_CPPFLAGS"
23764             LIBS="$gt_save_LIBS"
23765 fi
23766 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23767 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23768         fi
23769
23770                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23771            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23772                 && test "$PACKAGE" != gettext-runtime \
23773                 && test "$PACKAGE" != gettext-tools; }; then
23774           gt_use_preinstalled_gnugettext=yes
23775         else
23776                     LIBINTL=
23777           LTLIBINTL=
23778           INCINTL=
23779         fi
23780
23781
23782         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23783                               nls_cv_use_gnu_gettext=yes
23784         fi
23785       fi
23786
23787       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23788                 BUILD_INCLUDED_LIBINTL=yes
23789         USE_INCLUDED_LIBINTL=yes
23790         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23791         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23792         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23793       fi
23794
23795       CATOBJEXT=
23796       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23797          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23798                 CATOBJEXT=.gmo
23799       fi
23800
23801
23802     if test -n "$INTL_MACOSX_LIBS"; then
23803       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23804          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23805                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23806         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23807       fi
23808     fi
23809
23810     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23811        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23812
23813 cat >>confdefs.h <<\_ACEOF
23814 #define ENABLE_NLS 1
23815 _ACEOF
23816
23817     else
23818       USE_NLS=no
23819     fi
23820   fi
23821
23822   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23823 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23824   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23825 echo "${ECHO_T}$USE_NLS" >&6; }
23826   if test "$USE_NLS" = "yes"; then
23827     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23828 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23829     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23830       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23831         gt_source="external libintl"
23832       else
23833         gt_source="libc"
23834       fi
23835     else
23836       gt_source="included intl directory"
23837     fi
23838     { echo "$as_me:$LINENO: result: $gt_source" >&5
23839 echo "${ECHO_T}$gt_source" >&6; }
23840   fi
23841
23842   if test "$USE_NLS" = "yes"; then
23843
23844     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23845       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23846         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23847 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23848         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23849 echo "${ECHO_T}$LIBINTL" >&6; }
23850
23851   for element in $INCINTL; do
23852     haveit=
23853     for x in $CPPFLAGS; do
23854
23855   acl_save_prefix="$prefix"
23856   prefix="$acl_final_prefix"
23857   acl_save_exec_prefix="$exec_prefix"
23858   exec_prefix="$acl_final_exec_prefix"
23859   eval x=\"$x\"
23860   exec_prefix="$acl_save_exec_prefix"
23861   prefix="$acl_save_prefix"
23862
23863       if test "X$x" = "X$element"; then
23864         haveit=yes
23865         break
23866       fi
23867     done
23868     if test -z "$haveit"; then
23869       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23870     fi
23871   done
23872
23873       fi
23874
23875
23876 cat >>confdefs.h <<\_ACEOF
23877 #define HAVE_GETTEXT 1
23878 _ACEOF
23879
23880
23881 cat >>confdefs.h <<\_ACEOF
23882 #define HAVE_DCGETTEXT 1
23883 _ACEOF
23884
23885     fi
23886
23887         POSUB=po
23888   fi
23889
23890
23891             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23892       BUILD_INCLUDED_LIBINTL=yes
23893     fi
23894
23895
23896
23897
23898
23899         nls_cv_header_intl=
23900     nls_cv_header_libgt=
23901
23902         DATADIRNAME=share
23903
23904
23905         INSTOBJEXT=.mo
23906
23907
23908         GENCAT=gencat
23909
23910
23911         INTLOBJS=
23912     if test "$USE_INCLUDED_LIBINTL" = yes; then
23913       INTLOBJS="\$(GETTOBJS)"
23914     fi
23915
23916
23917         INTL_LIBTOOL_SUFFIX_PREFIX=
23918
23919
23920
23921     INTLLIBS="$LIBINTL"
23922
23923
23924
23925
23926
23927
23928 fi
23929
23930 support_mysql=no
23931 support_sqlite=no
23932 support_sqlite3=no
23933 support_postgresql=no
23934 support_dbi=no
23935 support_smartalloc=yes
23936 support_readline=yes
23937 support_conio=yes
23938 support_gnome=no
23939 support_bat=no
23940 support_wx_console=no
23941 support_tls=no
23942 support_crypto=no
23943 gnome_version=
23944 wx_version=
23945 support_static_tools=no
23946 support_static_fd=no
23947 support_static_sd=no
23948 support_static_dir=no
23949 support_static_cons=no
23950 support_python=no
23951 build_client_only=no
23952 build_dird=yes
23953 build_stored=yes
23954 cats=
23955 db_type=Internal
23956 DB_TYPE=bdb
23957
23958
23959 # Check whether --enable-gnome was given.
23960 if test "${enable_gnome+set}" = set; then
23961   enableval=$enable_gnome;
23962        if test x$enableval = xyes; then
23963           support_gnome=yes
23964        fi
23965
23966
23967 fi
23968
23969
23970 GNOME_DIR=
23971 if test x$support_gnome = xyes; then
23972    abc=`$PKGCONFIG --exists libgnomeui-2.0`
23973    pkg=$?
23974    if test $pkg = 0; then
23975       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23976       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23977       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23978       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23979
23980
23981
23982
23983       GNOME_DIR=src/gnome2-console
23984       gnome_version="Version 2.x"
23985    else
23986       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23987 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23988    { (exit 1); exit 1; }; }
23989    fi
23990 fi
23991
23992
23993 # Check whether --enable-bat was given.
23994 if test "${enable_bat+set}" = set; then
23995   enableval=$enable_bat;
23996        if test x$enableval = xyes; then
23997
23998 cat >>confdefs.h <<\_ACEOF
23999 #define HAVE_BAT 1
24000 _ACEOF
24001
24002           support_bat=yes
24003        fi
24004
24005
24006 fi
24007
24008
24009 BAT_DIR=
24010 if test x$support_bat = xyes; then
24011    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24012    pkg=$?
24013    if test $pkg = 0; then
24014       BAT_DIR=src/qt-console
24015    else
24016       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24017 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24018    { (exit 1); exit 1; }; }
24019    fi
24020 fi
24021
24022 got_qwt=no
24023 QWT_INC=
24024 QWT_LDFLAGS=
24025 QWT_LIB=
24026 QWT=
24027 no_qwt=no
24028 if test x$support_bat = xyes; then
24029    { echo "$as_me:$LINENO: checking for qwt support" >&5
24030 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24031
24032 # Check whether --with-qwt was given.
24033 if test "${with_qwt+set}" = set; then
24034   withval=$with_qwt;
24035           case "$with_qwt" in
24036           no)
24037              no_qwt=yes
24038              ;;
24039           yes|*)
24040              if test -f ${with_qwt}/include/qwt.h; then
24041                 QWT_INC="${with_qwt}/include"
24042                 QWT_LDFLAGS="-L${with_qwt}/lib"
24043                 QWT_LIB="-lqwt"
24044                 QWT="qwt"
24045              fi
24046              ;;
24047           esac
24048
24049
24050 fi
24051
24052
24053             if test $no_qwt = no; then
24054       if test x$QWT_INC = x; then
24055          for root in /usr /usr/local; do
24056             for ver in qwt qwt5 qwt-qt4; do
24057                if test -f ${root}/include/${ver}/qwt.h; then
24058                   QWT_INC="${root}/include/${ver}"
24059                   if test -d ${root}/lib64/; then
24060                      QWT_LDFLAGS="-L${root}/lib64"
24061                   elif test -d ${root}/lib/64/; then
24062                      QWT_LDFLAGS="-L${root}/64"
24063                   else
24064                      QWT_LDFLAGS="-L${root}/lib"
24065                   fi
24066                   QWT_LIB="-lqwt"
24067                   QWT="qwt"
24068                   got_qwt=yes
24069                   break;
24070                fi
24071             done
24072          done
24073       fi
24074    fi
24075    if test x$QWT_INC = x; then
24076       { echo "$as_me:$LINENO: result: no" >&5
24077 echo "${ECHO_T}no" >&6; }
24078    else
24079
24080 cat >>confdefs.h <<\_ACEOF
24081 #define HAVE_QWT 1
24082 _ACEOF
24083
24084       { echo "$as_me:$LINENO: result: yes" >&5
24085 echo "${ECHO_T}yes" >&6; }
24086    fi
24087 fi
24088
24089
24090
24091
24092
24093
24094
24095 # Check whether --enable-bwx-console was given.
24096 if test "${enable_bwx_console+set}" = set; then
24097   enableval=$enable_bwx_console;
24098        if test x$enableval = xyes; then
24099           support_wx_console=yes
24100        fi
24101
24102
24103 fi
24104
24105
24106 WX_DIR=
24107 if test x$support_wx_console = xyes; then
24108    abc=`$WXCONFIG $WXFLAGS --cppflags`
24109    pkg=$?
24110    if test $pkg = 0; then
24111       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24112       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24113       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24114
24115
24116
24117       WX_DIR=src/wx-console
24118    else
24119       echo " "
24120       echo "wx-config program not found. bwx-console disabled."
24121       echo " "
24122       support_wx_console=no
24123    fi
24124 fi
24125
24126
24127 # Check whether --enable-tray-monitor was given.
24128 if test "${enable_tray_monitor+set}" = set; then
24129   enableval=$enable_tray_monitor;
24130        if test x$enableval = xyes; then
24131           support_tray_monitor=yes
24132        fi
24133
24134
24135 fi
24136
24137
24138 TRAY_MONITOR_DIR=
24139 if test x$support_tray_monitor = xyes; then
24140    abc=`$PKGCONFIG --exists gtk+-2.0`
24141    pkg=$?
24142    if test $pkg = 0; then
24143       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24144       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24145
24146
24147       TRAY_MONITOR_DIR=src/tray-monitor
24148       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24149       pkg=$?
24150       if test $pkg = 0; then
24151
24152 cat >>confdefs.h <<\_ACEOF
24153 #define HAVE_GTK_2_4 1
24154 _ACEOF
24155
24156       fi
24157    fi
24158 fi
24159
24160
24161 # Check whether --enable-smartalloc was given.
24162 if test "${enable_smartalloc+set}" = set; then
24163   enableval=$enable_smartalloc;
24164        if test x$enableval = xno; then
24165           support_smartalloc=no
24166        fi
24167
24168
24169 fi
24170
24171
24172 if test x$support_smartalloc = xyes; then
24173
24174 cat >>confdefs.h <<\_ACEOF
24175 #define SMARTALLOC 1
24176 _ACEOF
24177
24178 fi
24179
24180 # Check whether --enable-static-tools was given.
24181 if test "${enable_static_tools+set}" = set; then
24182   enableval=$enable_static_tools;
24183        if test x$enableval = xyes; then
24184           support_static_tools=yes
24185        fi
24186
24187
24188 fi
24189
24190
24191 TTOOL_LDFLAGS=
24192 if test x$support_static_tools = xyes; then
24193    TTOOL_LDFLAGS="-static"
24194 fi
24195
24196
24197 # Check whether --enable-static-fd was given.
24198 if test "${enable_static_fd+set}" = set; then
24199   enableval=$enable_static_fd;
24200        if test x$enableval = xyes; then
24201           support_static_fd=yes
24202        fi
24203
24204
24205 fi
24206
24207
24208 STATIC_FD=
24209 if test x$support_static_fd = xyes; then
24210    STATIC_FD="static-bacula-fd"
24211 fi
24212
24213
24214 # Check whether --enable-static-sd was given.
24215 if test "${enable_static_sd+set}" = set; then
24216   enableval=$enable_static_sd;
24217        if test x$enableval = xyes; then
24218           support_static_sd=yes
24219        fi
24220
24221
24222 fi
24223
24224
24225 STATIC_SD=
24226 if test x$support_static_sd = xyes; then
24227    STATIC_SD="static-bacula-sd"
24228 fi
24229
24230
24231 # Check whether --enable-static-dir was given.
24232 if test "${enable_static_dir+set}" = set; then
24233   enableval=$enable_static_dir;
24234        if test x$enableval = xyes; then
24235           support_static_dir=yes
24236        fi
24237
24238
24239 fi
24240
24241
24242 STATIC_DIR=
24243 if test x$support_static_dir = xyes; then
24244    STATIC_DIR="static-bacula-dir"
24245 fi
24246
24247
24248 # Check whether --enable-static-cons was given.
24249 if test "${enable_static_cons+set}" = set; then
24250   enableval=$enable_static_cons;
24251        if test x$enableval = xyes; then
24252           support_static_cons=yes
24253        fi
24254
24255
24256 fi
24257
24258
24259 STATIC_CONS=
24260 STATIC_GNOME_CONS=
24261 STATIC_WX_CONS=
24262 if test x$support_static_cons = xyes; then
24263    STATIC_CONS="static-bconsole"
24264    STATIC_GNOME_CONS="static-bgnome-console"
24265    STATIC_WX_CONS="static-bwx-console"
24266 fi
24267
24268
24269
24270
24271 # Check whether --enable-client-only was given.
24272 if test "${enable_client_only+set}" = set; then
24273   enableval=$enable_client_only;
24274        if test x$enableval = xyes; then
24275           build_client_only=yes
24276           db_type=None
24277           DB_TYPE=none
24278        fi
24279
24280
24281 fi
24282
24283 if test x$build_client_only = xno; then
24284    ALL_DIRS="subdirs"
24285 else
24286    ALL_DIRS=""
24287 fi
24288
24289
24290 # Check whether --enable-build-dird was given.
24291 if test "${enable_build_dird+set}" = set; then
24292   enableval=$enable_build_dird;
24293        if test x$enableval = xno; then
24294           build_dird=no
24295        fi
24296
24297
24298 fi
24299
24300 if test x$build_dird = xyes; then
24301    DIRD_DIR="src/dird"
24302    DIR_TOOLS="DIRTOOLS"
24303 else
24304    DIRD_DIR=""
24305    DIR_TOOLS="NODIRTOOLS"
24306 fi
24307
24308
24309
24310 # Check whether --enable-build-stored was given.
24311 if test "${enable_build_stored+set}" = set; then
24312   enableval=$enable_build_stored;
24313       if test x$enableval = xno; then
24314          build_stored=no
24315       fi
24316
24317
24318 fi
24319
24320 if test x$build_stored = xyes; then
24321    STORED_DIR="src/stored"
24322 else
24323    STORED_DIR=""
24324 fi
24325
24326
24327 # Check whether --enable-conio was given.
24328 if test "${enable_conio+set}" = set; then
24329   enableval=$enable_conio;
24330        if test x$enableval = xno; then
24331           support_conio=no
24332        fi
24333
24334
24335 fi
24336
24337
24338
24339 support_ipv6=yes
24340 # Check whether --enable-ipv6 was given.
24341 if test "${enable_ipv6+set}" = set; then
24342   enableval=$enable_ipv6;
24343        if test x$enableval = xno; then
24344           support_ipv6=no
24345        fi
24346
24347
24348 fi
24349
24350
24351 if test x$support_ipv6 = xyes; then
24352     cat >conftest.$ac_ext <<_ACEOF
24353 /* confdefs.h.  */
24354 _ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h.  */
24358  #include <sys/types.h>
24359 #include <sys/socket.h>
24360 #include <netinet/in.h>
24361 int
24362 main ()
24363 {
24364 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24365   ;
24366   return 0;
24367 }
24368 _ACEOF
24369 rm -f conftest.$ac_objext conftest$ac_exeext
24370 if { (ac_try="$ac_link"
24371 case "(($ac_try" in
24372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24373   *) ac_try_echo=$ac_try;;
24374 esac
24375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24376   (eval "$ac_link") 2>conftest.er1
24377   ac_status=$?
24378   grep -v '^ *+' conftest.er1 >conftest.err
24379   rm -f conftest.er1
24380   cat conftest.err >&5
24381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382   (exit $ac_status); } && {
24383          test -z "$ac_c_werror_flag" ||
24384          test ! -s conftest.err
24385        } && test -s conftest$ac_exeext &&
24386        $as_test_x conftest$ac_exeext; then
24387   support_ipv6=yes
24388 else
24389   echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24391
24392         support_ipv6=no
24393 fi
24394
24395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24396       conftest$ac_exeext conftest.$ac_ext
24397 fi
24398
24399 if test x$support_ipv6 = xyes; then
24400
24401 cat >>confdefs.h <<\_ACEOF
24402 #define HAVE_IPV6 1
24403 _ACEOF
24404
24405 fi
24406
24407 got_conio="no"
24408 if test x$support_conio = xyes; then
24409    if test "${ac_cv_header_termcap_h+set}" = set; then
24410   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24411 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24412 if test "${ac_cv_header_termcap_h+set}" = set; then
24413   echo $ECHO_N "(cached) $ECHO_C" >&6
24414 fi
24415 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24416 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24417 else
24418   # Is the header compilable?
24419 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24420 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24421 cat >conftest.$ac_ext <<_ACEOF
24422 /* confdefs.h.  */
24423 _ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h.  */
24427 $ac_includes_default
24428 #include <termcap.h>
24429 _ACEOF
24430 rm -f conftest.$ac_objext
24431 if { (ac_try="$ac_compile"
24432 case "(($ac_try" in
24433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24434   *) ac_try_echo=$ac_try;;
24435 esac
24436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24437   (eval "$ac_compile") 2>conftest.er1
24438   ac_status=$?
24439   grep -v '^ *+' conftest.er1 >conftest.err
24440   rm -f conftest.er1
24441   cat conftest.err >&5
24442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443   (exit $ac_status); } && {
24444          test -z "$ac_c_werror_flag" ||
24445          test ! -s conftest.err
24446        } && test -s conftest.$ac_objext; then
24447   ac_header_compiler=yes
24448 else
24449   echo "$as_me: failed program was:" >&5
24450 sed 's/^/| /' conftest.$ac_ext >&5
24451
24452         ac_header_compiler=no
24453 fi
24454
24455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24457 echo "${ECHO_T}$ac_header_compiler" >&6; }
24458
24459 # Is the header present?
24460 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24461 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24462 cat >conftest.$ac_ext <<_ACEOF
24463 /* confdefs.h.  */
24464 _ACEOF
24465 cat confdefs.h >>conftest.$ac_ext
24466 cat >>conftest.$ac_ext <<_ACEOF
24467 /* end confdefs.h.  */
24468 #include <termcap.h>
24469 _ACEOF
24470 if { (ac_try="$ac_cpp conftest.$ac_ext"
24471 case "(($ac_try" in
24472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24473   *) ac_try_echo=$ac_try;;
24474 esac
24475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24476   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24477   ac_status=$?
24478   grep -v '^ *+' conftest.er1 >conftest.err
24479   rm -f conftest.er1
24480   cat conftest.err >&5
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); } >/dev/null && {
24483          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24484          test ! -s conftest.err
24485        }; then
24486   ac_header_preproc=yes
24487 else
24488   echo "$as_me: failed program was:" >&5
24489 sed 's/^/| /' conftest.$ac_ext >&5
24490
24491   ac_header_preproc=no
24492 fi
24493
24494 rm -f conftest.err conftest.$ac_ext
24495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24496 echo "${ECHO_T}$ac_header_preproc" >&6; }
24497
24498 # So?  What about this header?
24499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24500   yes:no: )
24501     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24502 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24503     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24504 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24505     ac_header_preproc=yes
24506     ;;
24507   no:yes:* )
24508     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24509 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24510     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24511 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24512     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24513 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24514     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24515 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24516     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24517 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24518     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24519 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24520
24521     ;;
24522 esac
24523 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24524 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24525 if test "${ac_cv_header_termcap_h+set}" = set; then
24526   echo $ECHO_N "(cached) $ECHO_C" >&6
24527 else
24528   ac_cv_header_termcap_h=$ac_header_preproc
24529 fi
24530 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24531 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24532
24533 fi
24534 if test $ac_cv_header_termcap_h = yes; then
24535    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24536 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24537 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24538   echo $ECHO_N "(cached) $ECHO_C" >&6
24539 else
24540   ac_check_lib_save_LIBS=$LIBS
24541 LIBS="-ltermcap  $LIBS"
24542 cat >conftest.$ac_ext <<_ACEOF
24543 /* confdefs.h.  */
24544 _ACEOF
24545 cat confdefs.h >>conftest.$ac_ext
24546 cat >>conftest.$ac_ext <<_ACEOF
24547 /* end confdefs.h.  */
24548
24549 /* Override any GCC internal prototype to avoid an error.
24550    Use char because int might match the return type of a GCC
24551    builtin and then its argument prototype would still apply.  */
24552 #ifdef __cplusplus
24553 extern "C"
24554 #endif
24555 char tgetent ();
24556 int
24557 main ()
24558 {
24559 return tgetent ();
24560   ;
24561   return 0;
24562 }
24563 _ACEOF
24564 rm -f conftest.$ac_objext conftest$ac_exeext
24565 if { (ac_try="$ac_link"
24566 case "(($ac_try" in
24567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24568   *) ac_try_echo=$ac_try;;
24569 esac
24570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24571   (eval "$ac_link") 2>conftest.er1
24572   ac_status=$?
24573   grep -v '^ *+' conftest.er1 >conftest.err
24574   rm -f conftest.er1
24575   cat conftest.err >&5
24576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577   (exit $ac_status); } && {
24578          test -z "$ac_c_werror_flag" ||
24579          test ! -s conftest.err
24580        } && test -s conftest$ac_exeext &&
24581        $as_test_x conftest$ac_exeext; then
24582   ac_cv_lib_termcap_tgetent=yes
24583 else
24584   echo "$as_me: failed program was:" >&5
24585 sed 's/^/| /' conftest.$ac_ext >&5
24586
24587         ac_cv_lib_termcap_tgetent=no
24588 fi
24589
24590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24591       conftest$ac_exeext conftest.$ac_ext
24592 LIBS=$ac_check_lib_save_LIBS
24593 fi
24594 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24595 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24596 if test $ac_cv_lib_termcap_tgetent = yes; then
24597    CONS_LIBS="-ltermcap"
24598     CONS_OBJ="conio.o"
24599     CONS_SRC="conio.c"
24600     got_conio="yes"
24601     support_readline=no
24602
24603 cat >>confdefs.h <<\_ACEOF
24604 #define HAVE_CONIO 1
24605 _ACEOF
24606
24607
24608 else
24609    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24610 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24611 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24612   echo $ECHO_N "(cached) $ECHO_C" >&6
24613 else
24614   ac_check_lib_save_LIBS=$LIBS
24615 LIBS="-lncurses  $LIBS"
24616 cat >conftest.$ac_ext <<_ACEOF
24617 /* confdefs.h.  */
24618 _ACEOF
24619 cat confdefs.h >>conftest.$ac_ext
24620 cat >>conftest.$ac_ext <<_ACEOF
24621 /* end confdefs.h.  */
24622
24623 /* Override any GCC internal prototype to avoid an error.
24624    Use char because int might match the return type of a GCC
24625    builtin and then its argument prototype would still apply.  */
24626 #ifdef __cplusplus
24627 extern "C"
24628 #endif
24629 char tgetent ();
24630 int
24631 main ()
24632 {
24633 return tgetent ();
24634   ;
24635   return 0;
24636 }
24637 _ACEOF
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (ac_try="$ac_link"
24640 case "(($ac_try" in
24641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642   *) ac_try_echo=$ac_try;;
24643 esac
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645   (eval "$ac_link") 2>conftest.er1
24646   ac_status=$?
24647   grep -v '^ *+' conftest.er1 >conftest.err
24648   rm -f conftest.er1
24649   cat conftest.err >&5
24650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651   (exit $ac_status); } && {
24652          test -z "$ac_c_werror_flag" ||
24653          test ! -s conftest.err
24654        } && test -s conftest$ac_exeext &&
24655        $as_test_x conftest$ac_exeext; then
24656   ac_cv_lib_ncurses_tgetent=yes
24657 else
24658   echo "$as_me: failed program was:" >&5
24659 sed 's/^/| /' conftest.$ac_ext >&5
24660
24661         ac_cv_lib_ncurses_tgetent=no
24662 fi
24663
24664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24665       conftest$ac_exeext conftest.$ac_ext
24666 LIBS=$ac_check_lib_save_LIBS
24667 fi
24668 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24669 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24670 if test $ac_cv_lib_ncurses_tgetent = yes; then
24671    CONS_LIBS="-lncurses"
24672       CONS_OBJ="conio.o"
24673       CONS_SRC="conio.c"
24674       got_conio="yes"
24675       support_readline=no
24676
24677 cat >>confdefs.h <<\_ACEOF
24678 #define HAVE_CONIO 1
24679 _ACEOF
24680
24681
24682 fi
24683
24684
24685 fi
24686
24687
24688 else
24689
24690
24691 for ac_header in curses.h
24692 do
24693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24695   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24698   echo $ECHO_N "(cached) $ECHO_C" >&6
24699 fi
24700 ac_res=`eval echo '${'$as_ac_Header'}'`
24701                { echo "$as_me:$LINENO: result: $ac_res" >&5
24702 echo "${ECHO_T}$ac_res" >&6; }
24703 else
24704   # Is the header compilable?
24705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24707 cat >conftest.$ac_ext <<_ACEOF
24708 /* confdefs.h.  */
24709 _ACEOF
24710 cat confdefs.h >>conftest.$ac_ext
24711 cat >>conftest.$ac_ext <<_ACEOF
24712 /* end confdefs.h.  */
24713 $ac_includes_default
24714 #include <$ac_header>
24715 _ACEOF
24716 rm -f conftest.$ac_objext
24717 if { (ac_try="$ac_compile"
24718 case "(($ac_try" in
24719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720   *) ac_try_echo=$ac_try;;
24721 esac
24722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723   (eval "$ac_compile") 2>conftest.er1
24724   ac_status=$?
24725   grep -v '^ *+' conftest.er1 >conftest.err
24726   rm -f conftest.er1
24727   cat conftest.err >&5
24728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729   (exit $ac_status); } && {
24730          test -z "$ac_c_werror_flag" ||
24731          test ! -s conftest.err
24732        } && test -s conftest.$ac_objext; then
24733   ac_header_compiler=yes
24734 else
24735   echo "$as_me: failed program was:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24737
24738         ac_header_compiler=no
24739 fi
24740
24741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24743 echo "${ECHO_T}$ac_header_compiler" >&6; }
24744
24745 # Is the header present?
24746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24748 cat >conftest.$ac_ext <<_ACEOF
24749 /* confdefs.h.  */
24750 _ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h.  */
24754 #include <$ac_header>
24755 _ACEOF
24756 if { (ac_try="$ac_cpp conftest.$ac_ext"
24757 case "(($ac_try" in
24758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759   *) ac_try_echo=$ac_try;;
24760 esac
24761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24763   ac_status=$?
24764   grep -v '^ *+' conftest.er1 >conftest.err
24765   rm -f conftest.er1
24766   cat conftest.err >&5
24767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768   (exit $ac_status); } >/dev/null && {
24769          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24770          test ! -s conftest.err
24771        }; then
24772   ac_header_preproc=yes
24773 else
24774   echo "$as_me: failed program was:" >&5
24775 sed 's/^/| /' conftest.$ac_ext >&5
24776
24777   ac_header_preproc=no
24778 fi
24779
24780 rm -f conftest.err conftest.$ac_ext
24781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24782 echo "${ECHO_T}$ac_header_preproc" >&6; }
24783
24784 # So?  What about this header?
24785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24786   yes:no: )
24787     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24791     ac_header_preproc=yes
24792     ;;
24793   no:yes:* )
24794     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24796     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24797 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24798     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24800     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24801 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24804     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24806
24807     ;;
24808 esac
24809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24812   echo $ECHO_N "(cached) $ECHO_C" >&6
24813 else
24814   eval "$as_ac_Header=\$ac_header_preproc"
24815 fi
24816 ac_res=`eval echo '${'$as_ac_Header'}'`
24817                { echo "$as_me:$LINENO: result: $ac_res" >&5
24818 echo "${ECHO_T}$ac_res" >&6; }
24819
24820 fi
24821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24822   cat >>confdefs.h <<_ACEOF
24823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24824 _ACEOF
24825
24826 fi
24827
24828 done
24829
24830     { echo "$as_me:$LINENO: checking for term.h" >&5
24831 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24832 if test "${ac_cv_header_term_h+set}" = set; then
24833   echo $ECHO_N "(cached) $ECHO_C" >&6
24834 else
24835   cat >conftest.$ac_ext <<_ACEOF
24836 /* confdefs.h.  */
24837 _ACEOF
24838 cat confdefs.h >>conftest.$ac_ext
24839 cat >>conftest.$ac_ext <<_ACEOF
24840 /* end confdefs.h.  */
24841 #if HAVE_CURSES_H
24842 #include <curses.h>
24843 #endif
24844
24845
24846 #include <term.h>
24847 _ACEOF
24848 rm -f conftest.$ac_objext
24849 if { (ac_try="$ac_compile"
24850 case "(($ac_try" in
24851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852   *) ac_try_echo=$ac_try;;
24853 esac
24854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24855   (eval "$ac_compile") 2>conftest.er1
24856   ac_status=$?
24857   grep -v '^ *+' conftest.er1 >conftest.err
24858   rm -f conftest.er1
24859   cat conftest.err >&5
24860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861   (exit $ac_status); } && {
24862          test -z "$ac_c_werror_flag" ||
24863          test ! -s conftest.err
24864        } && test -s conftest.$ac_objext; then
24865   ac_cv_header_term_h=yes
24866 else
24867   echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24869
24870         ac_cv_header_term_h=no
24871 fi
24872
24873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24874 fi
24875 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24876 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24877 if test $ac_cv_header_term_h = yes; then
24878    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24879 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24880 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24881   echo $ECHO_N "(cached) $ECHO_C" >&6
24882 else
24883   ac_check_lib_save_LIBS=$LIBS
24884 LIBS="-lcurses  $LIBS"
24885 cat >conftest.$ac_ext <<_ACEOF
24886 /* confdefs.h.  */
24887 _ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h.  */
24891
24892 /* Override any GCC internal prototype to avoid an error.
24893    Use char because int might match the return type of a GCC
24894    builtin and then its argument prototype would still apply.  */
24895 #ifdef __cplusplus
24896 extern "C"
24897 #endif
24898 char tgetent ();
24899 int
24900 main ()
24901 {
24902 return tgetent ();
24903   ;
24904   return 0;
24905 }
24906 _ACEOF
24907 rm -f conftest.$ac_objext conftest$ac_exeext
24908 if { (ac_try="$ac_link"
24909 case "(($ac_try" in
24910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24911   *) ac_try_echo=$ac_try;;
24912 esac
24913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24914   (eval "$ac_link") 2>conftest.er1
24915   ac_status=$?
24916   grep -v '^ *+' conftest.er1 >conftest.err
24917   rm -f conftest.er1
24918   cat conftest.err >&5
24919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920   (exit $ac_status); } && {
24921          test -z "$ac_c_werror_flag" ||
24922          test ! -s conftest.err
24923        } && test -s conftest$ac_exeext &&
24924        $as_test_x conftest$ac_exeext; then
24925   ac_cv_lib_curses_tgetent=yes
24926 else
24927   echo "$as_me: failed program was:" >&5
24928 sed 's/^/| /' conftest.$ac_ext >&5
24929
24930         ac_cv_lib_curses_tgetent=no
24931 fi
24932
24933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24934       conftest$ac_exeext conftest.$ac_ext
24935 LIBS=$ac_check_lib_save_LIBS
24936 fi
24937 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24938 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24939 if test $ac_cv_lib_curses_tgetent = yes; then
24940    CONS_LIBS="-lcurses"
24941          CONS_OBJ="conio.o"
24942          CONS_SRC="conio.c"
24943          got_conio="yes"
24944          support_readline=no
24945
24946 cat >>confdefs.h <<\_ACEOF
24947 #define HAVE_CONIO 1
24948 _ACEOF
24949
24950
24951 fi
24952
24953
24954 else
24955    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24956 fi
24957
24958
24959
24960 fi
24961
24962
24963 fi
24964
24965
24966 # Check whether --enable-readline was given.
24967 if test "${enable_readline+set}" = set; then
24968   enableval=$enable_readline;
24969        if test x$enableval = xno; then
24970           support_readline=no
24971        fi
24972
24973
24974 fi
24975
24976
24977 got_readline="no"
24978 READLINE_SRC=
24979 if test x$support_readline = xyes; then
24980
24981 # Check whether --with-readline was given.
24982 if test "${with_readline+set}" = set; then
24983   withval=$with_readline;
24984           case "$with_readline" in
24985           no)
24986              :
24987              ;;
24988           yes|*)
24989              if test -f ${with_readline}/readline.h; then
24990                 CONS_INC="-I${with_readline}"
24991                 CONS_LDFLAGS="-L$with_readline"
24992              elif test -f ${with_readline}/include/readline/readline.h; then
24993                 CONS_INC="-I${with_readline}/include/readline"
24994                 CONS_LDFLAGS="-L${with_readline}/lib"
24995                 with_readline="${with_readline}/include/readline"
24996              else
24997                 with_readline="/usr/include/readline"
24998              fi
24999
25000              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25002   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25003 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25005   echo $ECHO_N "(cached) $ECHO_C" >&6
25006 fi
25007 ac_res=`eval echo '${'$as_ac_Header'}'`
25008                { echo "$as_me:$LINENO: result: $ac_res" >&5
25009 echo "${ECHO_T}$ac_res" >&6; }
25010 else
25011   # Is the header compilable?
25012 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25013 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25014 cat >conftest.$ac_ext <<_ACEOF
25015 /* confdefs.h.  */
25016 _ACEOF
25017 cat confdefs.h >>conftest.$ac_ext
25018 cat >>conftest.$ac_ext <<_ACEOF
25019 /* end confdefs.h.  */
25020 $ac_includes_default
25021 #include <${with_readline}/readline.h>
25022 _ACEOF
25023 rm -f conftest.$ac_objext
25024 if { (ac_try="$ac_compile"
25025 case "(($ac_try" in
25026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25027   *) ac_try_echo=$ac_try;;
25028 esac
25029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25030   (eval "$ac_compile") 2>conftest.er1
25031   ac_status=$?
25032   grep -v '^ *+' conftest.er1 >conftest.err
25033   rm -f conftest.er1
25034   cat conftest.err >&5
25035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); } && {
25037          test -z "$ac_c_werror_flag" ||
25038          test ! -s conftest.err
25039        } && test -s conftest.$ac_objext; then
25040   ac_header_compiler=yes
25041 else
25042   echo "$as_me: failed program was:" >&5
25043 sed 's/^/| /' conftest.$ac_ext >&5
25044
25045         ac_header_compiler=no
25046 fi
25047
25048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25050 echo "${ECHO_T}$ac_header_compiler" >&6; }
25051
25052 # Is the header present?
25053 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25054 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25055 cat >conftest.$ac_ext <<_ACEOF
25056 /* confdefs.h.  */
25057 _ACEOF
25058 cat confdefs.h >>conftest.$ac_ext
25059 cat >>conftest.$ac_ext <<_ACEOF
25060 /* end confdefs.h.  */
25061 #include <${with_readline}/readline.h>
25062 _ACEOF
25063 if { (ac_try="$ac_cpp conftest.$ac_ext"
25064 case "(($ac_try" in
25065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25066   *) ac_try_echo=$ac_try;;
25067 esac
25068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25069   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25070   ac_status=$?
25071   grep -v '^ *+' conftest.er1 >conftest.err
25072   rm -f conftest.er1
25073   cat conftest.err >&5
25074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075   (exit $ac_status); } >/dev/null && {
25076          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25077          test ! -s conftest.err
25078        }; then
25079   ac_header_preproc=yes
25080 else
25081   echo "$as_me: failed program was:" >&5
25082 sed 's/^/| /' conftest.$ac_ext >&5
25083
25084   ac_header_preproc=no
25085 fi
25086
25087 rm -f conftest.err conftest.$ac_ext
25088 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25089 echo "${ECHO_T}$ac_header_preproc" >&6; }
25090
25091 # So?  What about this header?
25092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25093   yes:no: )
25094     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25095 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25096     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25097 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25098     ac_header_preproc=yes
25099     ;;
25100   no:yes:* )
25101     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25102 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25103     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25104 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25105     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25106 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25107     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25108 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25109     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25110 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25111     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25112 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25113
25114     ;;
25115 esac
25116 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25117 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25119   echo $ECHO_N "(cached) $ECHO_C" >&6
25120 else
25121   eval "$as_ac_Header=\$ac_header_preproc"
25122 fi
25123 ac_res=`eval echo '${'$as_ac_Header'}'`
25124                { echo "$as_me:$LINENO: result: $ac_res" >&5
25125 echo "${ECHO_T}$ac_res" >&6; }
25126
25127 fi
25128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25129
25130
25131 cat >>confdefs.h <<\_ACEOF
25132 #define HAVE_READLINE 1
25133 _ACEOF
25134
25135                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25136                     got_readline="yes"
25137
25138 else
25139
25140                     echo " "
25141                     echo "readline.h not found. readline turned off ..."
25142                     echo " "
25143
25144
25145 fi
25146
25147
25148              ;;
25149           esac
25150
25151 else
25152
25153                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25154   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25155 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25156 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25157   echo $ECHO_N "(cached) $ECHO_C" >&6
25158 fi
25159 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25160 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25161 else
25162   # Is the header compilable?
25163 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25164 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25165 cat >conftest.$ac_ext <<_ACEOF
25166 /* confdefs.h.  */
25167 _ACEOF
25168 cat confdefs.h >>conftest.$ac_ext
25169 cat >>conftest.$ac_ext <<_ACEOF
25170 /* end confdefs.h.  */
25171 $ac_includes_default
25172 #include </usr/include/readline/readline.h>
25173 _ACEOF
25174 rm -f conftest.$ac_objext
25175 if { (ac_try="$ac_compile"
25176 case "(($ac_try" in
25177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25178   *) ac_try_echo=$ac_try;;
25179 esac
25180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25181   (eval "$ac_compile") 2>conftest.er1
25182   ac_status=$?
25183   grep -v '^ *+' conftest.er1 >conftest.err
25184   rm -f conftest.er1
25185   cat conftest.err >&5
25186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187   (exit $ac_status); } && {
25188          test -z "$ac_c_werror_flag" ||
25189          test ! -s conftest.err
25190        } && test -s conftest.$ac_objext; then
25191   ac_header_compiler=yes
25192 else
25193   echo "$as_me: failed program was:" >&5
25194 sed 's/^/| /' conftest.$ac_ext >&5
25195
25196         ac_header_compiler=no
25197 fi
25198
25199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25201 echo "${ECHO_T}$ac_header_compiler" >&6; }
25202
25203 # Is the header present?
25204 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25205 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25206 cat >conftest.$ac_ext <<_ACEOF
25207 /* confdefs.h.  */
25208 _ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h.  */
25212 #include </usr/include/readline/readline.h>
25213 _ACEOF
25214 if { (ac_try="$ac_cpp conftest.$ac_ext"
25215 case "(($ac_try" in
25216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217   *) ac_try_echo=$ac_try;;
25218 esac
25219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25220   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25221   ac_status=$?
25222   grep -v '^ *+' conftest.er1 >conftest.err
25223   rm -f conftest.er1
25224   cat conftest.err >&5
25225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226   (exit $ac_status); } >/dev/null && {
25227          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25228          test ! -s conftest.err
25229        }; then
25230   ac_header_preproc=yes
25231 else
25232   echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25234
25235   ac_header_preproc=no
25236 fi
25237
25238 rm -f conftest.err conftest.$ac_ext
25239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25240 echo "${ECHO_T}$ac_header_preproc" >&6; }
25241
25242 # So?  What about this header?
25243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25244   yes:no: )
25245     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25246 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25247     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25248 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25249     ac_header_preproc=yes
25250     ;;
25251   no:yes:* )
25252     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25253 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25254     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25255 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25256     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25257 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25258     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25259 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25260     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25261 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25262     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25263 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25264
25265     ;;
25266 esac
25267 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25268 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25269 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25270   echo $ECHO_N "(cached) $ECHO_C" >&6
25271 else
25272   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25273 fi
25274 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25275 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25276
25277 fi
25278 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25279
25280
25281 cat >>confdefs.h <<\_ACEOF
25282 #define HAVE_READLINE 1
25283 _ACEOF
25284
25285                 got_readline="yes"
25286                 CONS_INC="-I/usr/include/readline"
25287                 CONS_LIBS="-lreadline -ltermcap"
25288
25289 else
25290
25291                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25293   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25294 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25296   echo $ECHO_N "(cached) $ECHO_C" >&6
25297 fi
25298 ac_res=`eval echo '${'$as_ac_Header'}'`
25299                { echo "$as_me:$LINENO: result: $ac_res" >&5
25300 echo "${ECHO_T}$ac_res" >&6; }
25301 else
25302   # Is the header compilable?
25303 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25304 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25305 cat >conftest.$ac_ext <<_ACEOF
25306 /* confdefs.h.  */
25307 _ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h.  */
25311 $ac_includes_default
25312 #include <${TOP_DIR}/depkgs/readline/readline.h>
25313 _ACEOF
25314 rm -f conftest.$ac_objext
25315 if { (ac_try="$ac_compile"
25316 case "(($ac_try" in
25317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318   *) ac_try_echo=$ac_try;;
25319 esac
25320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321   (eval "$ac_compile") 2>conftest.er1
25322   ac_status=$?
25323   grep -v '^ *+' conftest.er1 >conftest.err
25324   rm -f conftest.er1
25325   cat conftest.err >&5
25326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327   (exit $ac_status); } && {
25328          test -z "$ac_c_werror_flag" ||
25329          test ! -s conftest.err
25330        } && test -s conftest.$ac_objext; then
25331   ac_header_compiler=yes
25332 else
25333   echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.$ac_ext >&5
25335
25336         ac_header_compiler=no
25337 fi
25338
25339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25341 echo "${ECHO_T}$ac_header_compiler" >&6; }
25342
25343 # Is the header present?
25344 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25345 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25346 cat >conftest.$ac_ext <<_ACEOF
25347 /* confdefs.h.  */
25348 _ACEOF
25349 cat confdefs.h >>conftest.$ac_ext
25350 cat >>conftest.$ac_ext <<_ACEOF
25351 /* end confdefs.h.  */
25352 #include <${TOP_DIR}/depkgs/readline/readline.h>
25353 _ACEOF
25354 if { (ac_try="$ac_cpp conftest.$ac_ext"
25355 case "(($ac_try" in
25356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25357   *) ac_try_echo=$ac_try;;
25358 esac
25359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25361   ac_status=$?
25362   grep -v '^ *+' conftest.er1 >conftest.err
25363   rm -f conftest.er1
25364   cat conftest.err >&5
25365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366   (exit $ac_status); } >/dev/null && {
25367          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25368          test ! -s conftest.err
25369        }; then
25370   ac_header_preproc=yes
25371 else
25372   echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25374
25375   ac_header_preproc=no
25376 fi
25377
25378 rm -f conftest.err conftest.$ac_ext
25379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25380 echo "${ECHO_T}$ac_header_preproc" >&6; }
25381
25382 # So?  What about this header?
25383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25384   yes:no: )
25385     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25386 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25387     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25388 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25389     ac_header_preproc=yes
25390     ;;
25391   no:yes:* )
25392     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25393 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25394     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25395 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25396     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25397 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25398     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25399 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25400     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25401 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25402     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25403 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25404
25405     ;;
25406 esac
25407 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25408 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25410   echo $ECHO_N "(cached) $ECHO_C" >&6
25411 else
25412   eval "$as_ac_Header=\$ac_header_preproc"
25413 fi
25414 ac_res=`eval echo '${'$as_ac_Header'}'`
25415                { echo "$as_me:$LINENO: result: $ac_res" >&5
25416 echo "${ECHO_T}$ac_res" >&6; }
25417
25418 fi
25419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25420
25421
25422 cat >>confdefs.h <<\_ACEOF
25423 #define HAVE_READLINE 1
25424 _ACEOF
25425
25426                         got_readline="yes"
25427                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25428                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25429                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25430                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25431
25432 else
25433
25434                         echo " "
25435                         echo "readline.h not found. readline turned off ..."
25436                         echo " "
25437
25438
25439 fi
25440
25441
25442
25443
25444 fi
25445
25446
25447
25448
25449 fi
25450
25451 fi
25452
25453
25454
25455
25456
25457
25458
25459
25460 MAKE_SHELL=/bin/sh
25461
25462 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25463 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25464 if test "${ac_cv_header_stat_broken+set}" = set; then
25465   echo $ECHO_N "(cached) $ECHO_C" >&6
25466 else
25467   cat >conftest.$ac_ext <<_ACEOF
25468 /* confdefs.h.  */
25469 _ACEOF
25470 cat confdefs.h >>conftest.$ac_ext
25471 cat >>conftest.$ac_ext <<_ACEOF
25472 /* end confdefs.h.  */
25473 #include <sys/types.h>
25474 #include <sys/stat.h>
25475
25476 #if defined S_ISBLK && defined S_IFDIR
25477 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25478 #endif
25479
25480 #if defined S_ISBLK && defined S_IFCHR
25481 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25482 #endif
25483
25484 #if defined S_ISLNK && defined S_IFREG
25485 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25486 #endif
25487
25488 #if defined S_ISSOCK && defined S_IFREG
25489 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25490 #endif
25491
25492 _ACEOF
25493 rm -f conftest.$ac_objext
25494 if { (ac_try="$ac_compile"
25495 case "(($ac_try" in
25496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25497   *) ac_try_echo=$ac_try;;
25498 esac
25499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25500   (eval "$ac_compile") 2>conftest.er1
25501   ac_status=$?
25502   grep -v '^ *+' conftest.er1 >conftest.err
25503   rm -f conftest.er1
25504   cat conftest.err >&5
25505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506   (exit $ac_status); } && {
25507          test -z "$ac_c_werror_flag" ||
25508          test ! -s conftest.err
25509        } && test -s conftest.$ac_objext; then
25510   ac_cv_header_stat_broken=no
25511 else
25512   echo "$as_me: failed program was:" >&5
25513 sed 's/^/| /' conftest.$ac_ext >&5
25514
25515         ac_cv_header_stat_broken=yes
25516 fi
25517
25518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25519 fi
25520 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25521 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25522 if test $ac_cv_header_stat_broken = yes; then
25523
25524 cat >>confdefs.h <<\_ACEOF
25525 #define STAT_MACROS_BROKEN 1
25526 _ACEOF
25527
25528 fi
25529
25530
25531
25532
25533
25534
25535 ac_header_dirent=no
25536 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25537   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25538 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25539 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25541   echo $ECHO_N "(cached) $ECHO_C" >&6
25542 else
25543   cat >conftest.$ac_ext <<_ACEOF
25544 /* confdefs.h.  */
25545 _ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h.  */
25549 #include <sys/types.h>
25550 #include <$ac_hdr>
25551
25552 int
25553 main ()
25554 {
25555 if ((DIR *) 0)
25556 return 0;
25557   ;
25558   return 0;
25559 }
25560 _ACEOF
25561 rm -f conftest.$ac_objext
25562 if { (ac_try="$ac_compile"
25563 case "(($ac_try" in
25564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25565   *) ac_try_echo=$ac_try;;
25566 esac
25567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25568   (eval "$ac_compile") 2>conftest.er1
25569   ac_status=$?
25570   grep -v '^ *+' conftest.er1 >conftest.err
25571   rm -f conftest.er1
25572   cat conftest.err >&5
25573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574   (exit $ac_status); } && {
25575          test -z "$ac_c_werror_flag" ||
25576          test ! -s conftest.err
25577        } && test -s conftest.$ac_objext; then
25578   eval "$as_ac_Header=yes"
25579 else
25580   echo "$as_me: failed program was:" >&5
25581 sed 's/^/| /' conftest.$ac_ext >&5
25582
25583         eval "$as_ac_Header=no"
25584 fi
25585
25586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25587 fi
25588 ac_res=`eval echo '${'$as_ac_Header'}'`
25589                { echo "$as_me:$LINENO: result: $ac_res" >&5
25590 echo "${ECHO_T}$ac_res" >&6; }
25591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25592   cat >>confdefs.h <<_ACEOF
25593 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25594 _ACEOF
25595
25596 ac_header_dirent=$ac_hdr; break
25597 fi
25598
25599 done
25600 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25601 if test $ac_header_dirent = dirent.h; then
25602   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25603 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25604 if test "${ac_cv_search_opendir+set}" = set; then
25605   echo $ECHO_N "(cached) $ECHO_C" >&6
25606 else
25607   ac_func_search_save_LIBS=$LIBS
25608 cat >conftest.$ac_ext <<_ACEOF
25609 /* confdefs.h.  */
25610 _ACEOF
25611 cat confdefs.h >>conftest.$ac_ext
25612 cat >>conftest.$ac_ext <<_ACEOF
25613 /* end confdefs.h.  */
25614
25615 /* Override any GCC internal prototype to avoid an error.
25616    Use char because int might match the return type of a GCC
25617    builtin and then its argument prototype would still apply.  */
25618 #ifdef __cplusplus
25619 extern "C"
25620 #endif
25621 char opendir ();
25622 int
25623 main ()
25624 {
25625 return opendir ();
25626   ;
25627   return 0;
25628 }
25629 _ACEOF
25630 for ac_lib in '' dir; do
25631   if test -z "$ac_lib"; then
25632     ac_res="none required"
25633   else
25634     ac_res=-l$ac_lib
25635     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25636   fi
25637   rm -f conftest.$ac_objext conftest$ac_exeext
25638 if { (ac_try="$ac_link"
25639 case "(($ac_try" in
25640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641   *) ac_try_echo=$ac_try;;
25642 esac
25643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644   (eval "$ac_link") 2>conftest.er1
25645   ac_status=$?
25646   grep -v '^ *+' conftest.er1 >conftest.err
25647   rm -f conftest.er1
25648   cat conftest.err >&5
25649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650   (exit $ac_status); } && {
25651          test -z "$ac_c_werror_flag" ||
25652          test ! -s conftest.err
25653        } && test -s conftest$ac_exeext &&
25654        $as_test_x conftest$ac_exeext; then
25655   ac_cv_search_opendir=$ac_res
25656 else
25657   echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25659
25660
25661 fi
25662
25663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25664       conftest$ac_exeext
25665   if test "${ac_cv_search_opendir+set}" = set; then
25666   break
25667 fi
25668 done
25669 if test "${ac_cv_search_opendir+set}" = set; then
25670   :
25671 else
25672   ac_cv_search_opendir=no
25673 fi
25674 rm conftest.$ac_ext
25675 LIBS=$ac_func_search_save_LIBS
25676 fi
25677 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25678 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25679 ac_res=$ac_cv_search_opendir
25680 if test "$ac_res" != no; then
25681   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25682
25683 fi
25684
25685 else
25686   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25687 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25688 if test "${ac_cv_search_opendir+set}" = set; then
25689   echo $ECHO_N "(cached) $ECHO_C" >&6
25690 else
25691   ac_func_search_save_LIBS=$LIBS
25692 cat >conftest.$ac_ext <<_ACEOF
25693 /* confdefs.h.  */
25694 _ACEOF
25695 cat confdefs.h >>conftest.$ac_ext
25696 cat >>conftest.$ac_ext <<_ACEOF
25697 /* end confdefs.h.  */
25698
25699 /* Override any GCC internal prototype to avoid an error.
25700    Use char because int might match the return type of a GCC
25701    builtin and then its argument prototype would still apply.  */
25702 #ifdef __cplusplus
25703 extern "C"
25704 #endif
25705 char opendir ();
25706 int
25707 main ()
25708 {
25709 return opendir ();
25710   ;
25711   return 0;
25712 }
25713 _ACEOF
25714 for ac_lib in '' x; do
25715   if test -z "$ac_lib"; then
25716     ac_res="none required"
25717   else
25718     ac_res=-l$ac_lib
25719     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25720   fi
25721   rm -f conftest.$ac_objext conftest$ac_exeext
25722 if { (ac_try="$ac_link"
25723 case "(($ac_try" in
25724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25725   *) ac_try_echo=$ac_try;;
25726 esac
25727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25728   (eval "$ac_link") 2>conftest.er1
25729   ac_status=$?
25730   grep -v '^ *+' conftest.er1 >conftest.err
25731   rm -f conftest.er1
25732   cat conftest.err >&5
25733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734   (exit $ac_status); } && {
25735          test -z "$ac_c_werror_flag" ||
25736          test ! -s conftest.err
25737        } && test -s conftest$ac_exeext &&
25738        $as_test_x conftest$ac_exeext; then
25739   ac_cv_search_opendir=$ac_res
25740 else
25741   echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25743
25744
25745 fi
25746
25747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25748       conftest$ac_exeext
25749   if test "${ac_cv_search_opendir+set}" = set; then
25750   break
25751 fi
25752 done
25753 if test "${ac_cv_search_opendir+set}" = set; then
25754   :
25755 else
25756   ac_cv_search_opendir=no
25757 fi
25758 rm conftest.$ac_ext
25759 LIBS=$ac_func_search_save_LIBS
25760 fi
25761 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25762 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25763 ac_res=$ac_cv_search_opendir
25764 if test "$ac_res" != no; then
25765   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25766
25767 fi
25768
25769 fi
25770
25771
25772
25773
25774
25775
25776
25777
25778 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25779 do
25780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25784   echo $ECHO_N "(cached) $ECHO_C" >&6
25785 else
25786   cat >conftest.$ac_ext <<_ACEOF
25787 /* confdefs.h.  */
25788 _ACEOF
25789 cat confdefs.h >>conftest.$ac_ext
25790 cat >>conftest.$ac_ext <<_ACEOF
25791 /* end confdefs.h.  */
25792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25794 #define $ac_func innocuous_$ac_func
25795
25796 /* System header to define __stub macros and hopefully few prototypes,
25797     which can conflict with char $ac_func (); below.
25798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25799     <limits.h> exists even on freestanding compilers.  */
25800
25801 #ifdef __STDC__
25802 # include <limits.h>
25803 #else
25804 # include <assert.h>
25805 #endif
25806
25807 #undef $ac_func
25808
25809 /* Override any GCC internal prototype to avoid an error.
25810    Use char because int might match the return type of a GCC
25811    builtin and then its argument prototype would still apply.  */
25812 #ifdef __cplusplus
25813 extern "C"
25814 #endif
25815 char $ac_func ();
25816 /* The GNU C library defines this for functions which it implements
25817     to always fail with ENOSYS.  Some functions are actually named
25818     something starting with __ and the normal name is an alias.  */
25819 #if defined __stub_$ac_func || defined __stub___$ac_func
25820 choke me
25821 #endif
25822
25823 int
25824 main ()
25825 {
25826 return $ac_func ();
25827   ;
25828   return 0;
25829 }
25830 _ACEOF
25831 rm -f conftest.$ac_objext conftest$ac_exeext
25832 if { (ac_try="$ac_link"
25833 case "(($ac_try" in
25834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835   *) ac_try_echo=$ac_try;;
25836 esac
25837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25838   (eval "$ac_link") 2>conftest.er1
25839   ac_status=$?
25840   grep -v '^ *+' conftest.er1 >conftest.err
25841   rm -f conftest.er1
25842   cat conftest.err >&5
25843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844   (exit $ac_status); } && {
25845          test -z "$ac_c_werror_flag" ||
25846          test ! -s conftest.err
25847        } && test -s conftest$ac_exeext &&
25848        $as_test_x conftest$ac_exeext; then
25849   eval "$as_ac_var=yes"
25850 else
25851   echo "$as_me: failed program was:" >&5
25852 sed 's/^/| /' conftest.$ac_ext >&5
25853
25854         eval "$as_ac_var=no"
25855 fi
25856
25857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25858       conftest$ac_exeext conftest.$ac_ext
25859 fi
25860 ac_res=`eval echo '${'$as_ac_var'}'`
25861                { echo "$as_me:$LINENO: result: $ac_res" >&5
25862 echo "${ECHO_T}$ac_res" >&6; }
25863 if test `eval echo '${'$as_ac_var'}'` = yes; then
25864   cat >>confdefs.h <<_ACEOF
25865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25866 _ACEOF
25867
25868 fi
25869 done
25870
25871
25872
25873 for ac_func in nanosleep nl_langinfo
25874 do
25875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25879   echo $ECHO_N "(cached) $ECHO_C" >&6
25880 else
25881   cat >conftest.$ac_ext <<_ACEOF
25882 /* confdefs.h.  */
25883 _ACEOF
25884 cat confdefs.h >>conftest.$ac_ext
25885 cat >>conftest.$ac_ext <<_ACEOF
25886 /* end confdefs.h.  */
25887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25889 #define $ac_func innocuous_$ac_func
25890
25891 /* System header to define __stub macros and hopefully few prototypes,
25892     which can conflict with char $ac_func (); below.
25893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25894     <limits.h> exists even on freestanding compilers.  */
25895
25896 #ifdef __STDC__
25897 # include <limits.h>
25898 #else
25899 # include <assert.h>
25900 #endif
25901
25902 #undef $ac_func
25903
25904 /* Override any GCC internal prototype to avoid an error.
25905    Use char because int might match the return type of a GCC
25906    builtin and then its argument prototype would still apply.  */
25907 #ifdef __cplusplus
25908 extern "C"
25909 #endif
25910 char $ac_func ();
25911 /* The GNU C library defines this for functions which it implements
25912     to always fail with ENOSYS.  Some functions are actually named
25913     something starting with __ and the normal name is an alias.  */
25914 #if defined __stub_$ac_func || defined __stub___$ac_func
25915 choke me
25916 #endif
25917
25918 int
25919 main ()
25920 {
25921 return $ac_func ();
25922   ;
25923   return 0;
25924 }
25925 _ACEOF
25926 rm -f conftest.$ac_objext conftest$ac_exeext
25927 if { (ac_try="$ac_link"
25928 case "(($ac_try" in
25929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25930   *) ac_try_echo=$ac_try;;
25931 esac
25932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25933   (eval "$ac_link") 2>conftest.er1
25934   ac_status=$?
25935   grep -v '^ *+' conftest.er1 >conftest.err
25936   rm -f conftest.er1
25937   cat conftest.err >&5
25938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939   (exit $ac_status); } && {
25940          test -z "$ac_c_werror_flag" ||
25941          test ! -s conftest.err
25942        } && test -s conftest$ac_exeext &&
25943        $as_test_x conftest$ac_exeext; then
25944   eval "$as_ac_var=yes"
25945 else
25946   echo "$as_me: failed program was:" >&5
25947 sed 's/^/| /' conftest.$ac_ext >&5
25948
25949         eval "$as_ac_var=no"
25950 fi
25951
25952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25953       conftest$ac_exeext conftest.$ac_ext
25954 fi
25955 ac_res=`eval echo '${'$as_ac_var'}'`
25956                { echo "$as_me:$LINENO: result: $ac_res" >&5
25957 echo "${ECHO_T}$ac_res" >&6; }
25958 if test `eval echo '${'$as_ac_var'}'` = yes; then
25959   cat >>confdefs.h <<_ACEOF
25960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25961 _ACEOF
25962
25963 fi
25964 done
25965
25966
25967 for ac_header in varargs.h
25968 do
25969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25971   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25974   echo $ECHO_N "(cached) $ECHO_C" >&6
25975 fi
25976 ac_res=`eval echo '${'$as_ac_Header'}'`
25977                { echo "$as_me:$LINENO: result: $ac_res" >&5
25978 echo "${ECHO_T}$ac_res" >&6; }
25979 else
25980   # Is the header compilable?
25981 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25983 cat >conftest.$ac_ext <<_ACEOF
25984 /* confdefs.h.  */
25985 _ACEOF
25986 cat confdefs.h >>conftest.$ac_ext
25987 cat >>conftest.$ac_ext <<_ACEOF
25988 /* end confdefs.h.  */
25989 $ac_includes_default
25990 #include <$ac_header>
25991 _ACEOF
25992 rm -f conftest.$ac_objext
25993 if { (ac_try="$ac_compile"
25994 case "(($ac_try" in
25995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25996   *) ac_try_echo=$ac_try;;
25997 esac
25998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25999   (eval "$ac_compile") 2>conftest.er1
26000   ac_status=$?
26001   grep -v '^ *+' conftest.er1 >conftest.err
26002   rm -f conftest.er1
26003   cat conftest.err >&5
26004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005   (exit $ac_status); } && {
26006          test -z "$ac_c_werror_flag" ||
26007          test ! -s conftest.err
26008        } && test -s conftest.$ac_objext; then
26009   ac_header_compiler=yes
26010 else
26011   echo "$as_me: failed program was:" >&5
26012 sed 's/^/| /' conftest.$ac_ext >&5
26013
26014         ac_header_compiler=no
26015 fi
26016
26017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26019 echo "${ECHO_T}$ac_header_compiler" >&6; }
26020
26021 # Is the header present?
26022 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26024 cat >conftest.$ac_ext <<_ACEOF
26025 /* confdefs.h.  */
26026 _ACEOF
26027 cat confdefs.h >>conftest.$ac_ext
26028 cat >>conftest.$ac_ext <<_ACEOF
26029 /* end confdefs.h.  */
26030 #include <$ac_header>
26031 _ACEOF
26032 if { (ac_try="$ac_cpp conftest.$ac_ext"
26033 case "(($ac_try" in
26034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26035   *) ac_try_echo=$ac_try;;
26036 esac
26037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26038   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26039   ac_status=$?
26040   grep -v '^ *+' conftest.er1 >conftest.err
26041   rm -f conftest.er1
26042   cat conftest.err >&5
26043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044   (exit $ac_status); } >/dev/null && {
26045          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26046          test ! -s conftest.err
26047        }; then
26048   ac_header_preproc=yes
26049 else
26050   echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26052
26053   ac_header_preproc=no
26054 fi
26055
26056 rm -f conftest.err conftest.$ac_ext
26057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26058 echo "${ECHO_T}$ac_header_preproc" >&6; }
26059
26060 # So?  What about this header?
26061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26062   yes:no: )
26063     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26067     ac_header_preproc=yes
26068     ;;
26069   no:yes:* )
26070     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26072     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26073 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26074     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26076     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26077 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26080     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26082
26083     ;;
26084 esac
26085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26088   echo $ECHO_N "(cached) $ECHO_C" >&6
26089 else
26090   eval "$as_ac_Header=\$ac_header_preproc"
26091 fi
26092 ac_res=`eval echo '${'$as_ac_Header'}'`
26093                { echo "$as_me:$LINENO: result: $ac_res" >&5
26094 echo "${ECHO_T}$ac_res" >&6; }
26095
26096 fi
26097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26098   cat >>confdefs.h <<_ACEOF
26099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26100 _ACEOF
26101
26102 fi
26103
26104 done
26105
26106
26107
26108 { echo "$as_me:$LINENO: checking for Python support" >&5
26109 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26110
26111 # Check whether --with-python was given.
26112 if test "${with_python+set}" = set; then
26113   withval=$with_python;
26114        PYTHON_INCDIR=
26115        PYTHON_LIBS=
26116        if test "$withval" != "no"; then
26117           if test "$withval" = "yes"; then
26118              for python_root in /usr /usr/local /usr/sfw; do
26119                 for ver in python2.2 python2.3 python2.4 python2.5; do
26120                    if test -f $python_root/include/${ver}/Python.h; then
26121                       PYTHON_INCDIR=-I$python_root/include/${ver}
26122                       if test -d $python_root/lib64/${ver}/config; then
26123                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26124                       else
26125                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26126                       fi
26127                       break
26128                    fi
26129                 done
26130              done
26131
26132              if test x$PYTHON_INCDIR = x; then
26133                 if test -f $prefix/include/Python.h; then
26134                    PYTHON_INCDIR=-I$prefix/include
26135                    if test -d $prefix/lib64/config; then
26136                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26137                    else
26138                       PYTHON_LIBS="-L$prefix/lib/config -lpython"
26139                    fi
26140                 else
26141                    { echo "$as_me:$LINENO: result: no" >&5
26142 echo "${ECHO_T}no" >&6; }
26143                    { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26144 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26145    { (exit 1); exit 1; }; }
26146                 fi
26147              fi
26148           else
26149              if test -f $withval/Python.h; then
26150                 PYTHON_INCDIR=-I$withval
26151                 PYTHON_LIBS="-L$withval/config -lpython"
26152              elif test -f $withval/include/Python.h; then
26153                 PYTHON_INCDIR=-I$withval/include
26154                 if test -d $withval/lib64/config; then
26155                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26156                 else
26157                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26158                 fi
26159              elif test -f $withval/include/python/Python.h; then
26160                 PYTHON_INCDIR=-I$withval/include/python
26161                 if test -d $withval/lib64/python/config; then
26162                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26163                 else
26164                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26165                 fi
26166              else
26167                 { echo "$as_me:$LINENO: result: no" >&5
26168 echo "${ECHO_T}no" >&6; }
26169                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26170 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26171    { (exit 1); exit 1; }; }
26172              fi
26173           fi
26174
26175           cat >>confdefs.h <<\_ACEOF
26176 #define HAVE_PYTHON 1
26177 _ACEOF
26178
26179           { echo "$as_me:$LINENO: result: yes" >&5
26180 echo "${ECHO_T}yes" >&6; }
26181           support_python=yes
26182           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26183 echo "$as_me: checking for more Python libs" >&6;}
26184           saved_LIBS="$LIBS"; LIBS=
26185           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26186 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26187 if test "${ac_cv_search_shm_open+set}" = set; then
26188   echo $ECHO_N "(cached) $ECHO_C" >&6
26189 else
26190   ac_func_search_save_LIBS=$LIBS
26191 cat >conftest.$ac_ext <<_ACEOF
26192 /* confdefs.h.  */
26193 _ACEOF
26194 cat confdefs.h >>conftest.$ac_ext
26195 cat >>conftest.$ac_ext <<_ACEOF
26196 /* end confdefs.h.  */
26197
26198 /* Override any GCC internal prototype to avoid an error.
26199    Use char because int might match the return type of a GCC
26200    builtin and then its argument prototype would still apply.  */
26201 #ifdef __cplusplus
26202 extern "C"
26203 #endif
26204 char shm_open ();
26205 int
26206 main ()
26207 {
26208 return shm_open ();
26209   ;
26210   return 0;
26211 }
26212 _ACEOF
26213 for ac_lib in '' rt; do
26214   if test -z "$ac_lib"; then
26215     ac_res="none required"
26216   else
26217     ac_res=-l$ac_lib
26218     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26219   fi
26220   rm -f conftest.$ac_objext conftest$ac_exeext
26221 if { (ac_try="$ac_link"
26222 case "(($ac_try" in
26223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26224   *) ac_try_echo=$ac_try;;
26225 esac
26226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26227   (eval "$ac_link") 2>conftest.er1
26228   ac_status=$?
26229   grep -v '^ *+' conftest.er1 >conftest.err
26230   rm -f conftest.er1
26231   cat conftest.err >&5
26232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233   (exit $ac_status); } && {
26234          test -z "$ac_c_werror_flag" ||
26235          test ! -s conftest.err
26236        } && test -s conftest$ac_exeext &&
26237        $as_test_x conftest$ac_exeext; then
26238   ac_cv_search_shm_open=$ac_res
26239 else
26240   echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26242
26243
26244 fi
26245
26246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26247       conftest$ac_exeext
26248   if test "${ac_cv_search_shm_open+set}" = set; then
26249   break
26250 fi
26251 done
26252 if test "${ac_cv_search_shm_open+set}" = set; then
26253   :
26254 else
26255   ac_cv_search_shm_open=no
26256 fi
26257 rm conftest.$ac_ext
26258 LIBS=$ac_func_search_save_LIBS
26259 fi
26260 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26261 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26262 ac_res=$ac_cv_search_shm_open
26263 if test "$ac_res" != no; then
26264   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26265
26266 fi
26267
26268
26269 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26270 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26271 if test "${ac_cv_lib_util_openpty+set}" = set; then
26272   echo $ECHO_N "(cached) $ECHO_C" >&6
26273 else
26274   ac_check_lib_save_LIBS=$LIBS
26275 LIBS="-lutil  $LIBS"
26276 cat >conftest.$ac_ext <<_ACEOF
26277 /* confdefs.h.  */
26278 _ACEOF
26279 cat confdefs.h >>conftest.$ac_ext
26280 cat >>conftest.$ac_ext <<_ACEOF
26281 /* end confdefs.h.  */
26282
26283 /* Override any GCC internal prototype to avoid an error.
26284    Use char because int might match the return type of a GCC
26285    builtin and then its argument prototype would still apply.  */
26286 #ifdef __cplusplus
26287 extern "C"
26288 #endif
26289 char openpty ();
26290 int
26291 main ()
26292 {
26293 return openpty ();
26294   ;
26295   return 0;
26296 }
26297 _ACEOF
26298 rm -f conftest.$ac_objext conftest$ac_exeext
26299 if { (ac_try="$ac_link"
26300 case "(($ac_try" in
26301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26302   *) ac_try_echo=$ac_try;;
26303 esac
26304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26305   (eval "$ac_link") 2>conftest.er1
26306   ac_status=$?
26307   grep -v '^ *+' conftest.er1 >conftest.err
26308   rm -f conftest.er1
26309   cat conftest.err >&5
26310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311   (exit $ac_status); } && {
26312          test -z "$ac_c_werror_flag" ||
26313          test ! -s conftest.err
26314        } && test -s conftest$ac_exeext &&
26315        $as_test_x conftest$ac_exeext; then
26316   ac_cv_lib_util_openpty=yes
26317 else
26318   echo "$as_me: failed program was:" >&5
26319 sed 's/^/| /' conftest.$ac_ext >&5
26320
26321         ac_cv_lib_util_openpty=no
26322 fi
26323
26324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26325       conftest$ac_exeext conftest.$ac_ext
26326 LIBS=$ac_check_lib_save_LIBS
26327 fi
26328 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26329 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26330 if test $ac_cv_lib_util_openpty = yes; then
26331   cat >>confdefs.h <<_ACEOF
26332 #define HAVE_LIBUTIL 1
26333 _ACEOF
26334
26335   LIBS="-lutil $LIBS"
26336
26337 fi
26338
26339           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26340           LIBS="$saved_LIBS"
26341        else
26342           { echo "$as_me:$LINENO: result: no" >&5
26343 echo "${ECHO_T}no" >&6; }
26344        fi
26345
26346 else
26347
26348        { echo "$as_me:$LINENO: result: no" >&5
26349 echo "${ECHO_T}no" >&6; }
26350
26351
26352 fi
26353
26354
26355
26356
26357 { echo "$as_me:$LINENO: checking for socket" >&5
26358 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26359 if test "${ac_cv_func_socket+set}" = set; then
26360   echo $ECHO_N "(cached) $ECHO_C" >&6
26361 else
26362   cat >conftest.$ac_ext <<_ACEOF
26363 /* confdefs.h.  */
26364 _ACEOF
26365 cat confdefs.h >>conftest.$ac_ext
26366 cat >>conftest.$ac_ext <<_ACEOF
26367 /* end confdefs.h.  */
26368 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26370 #define socket innocuous_socket
26371
26372 /* System header to define __stub macros and hopefully few prototypes,
26373     which can conflict with char socket (); below.
26374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26375     <limits.h> exists even on freestanding compilers.  */
26376
26377 #ifdef __STDC__
26378 # include <limits.h>
26379 #else
26380 # include <assert.h>
26381 #endif
26382
26383 #undef socket
26384
26385 /* Override any GCC internal prototype to avoid an error.
26386    Use char because int might match the return type of a GCC
26387    builtin and then its argument prototype would still apply.  */
26388 #ifdef __cplusplus
26389 extern "C"
26390 #endif
26391 char socket ();
26392 /* The GNU C library defines this for functions which it implements
26393     to always fail with ENOSYS.  Some functions are actually named
26394     something starting with __ and the normal name is an alias.  */
26395 #if defined __stub_socket || defined __stub___socket
26396 choke me
26397 #endif
26398
26399 int
26400 main ()
26401 {
26402 return socket ();
26403   ;
26404   return 0;
26405 }
26406 _ACEOF
26407 rm -f conftest.$ac_objext conftest$ac_exeext
26408 if { (ac_try="$ac_link"
26409 case "(($ac_try" in
26410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26411   *) ac_try_echo=$ac_try;;
26412 esac
26413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26414   (eval "$ac_link") 2>conftest.er1
26415   ac_status=$?
26416   grep -v '^ *+' conftest.er1 >conftest.err
26417   rm -f conftest.er1
26418   cat conftest.err >&5
26419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420   (exit $ac_status); } && {
26421          test -z "$ac_c_werror_flag" ||
26422          test ! -s conftest.err
26423        } && test -s conftest$ac_exeext &&
26424        $as_test_x conftest$ac_exeext; then
26425   ac_cv_func_socket=yes
26426 else
26427   echo "$as_me: failed program was:" >&5
26428 sed 's/^/| /' conftest.$ac_ext >&5
26429
26430         ac_cv_func_socket=no
26431 fi
26432
26433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26434       conftest$ac_exeext conftest.$ac_ext
26435 fi
26436 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26437 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26438 if test $ac_cv_func_socket = yes; then
26439   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26440 echo "${ECHO_T}using libc's socket" >&6; }
26441 else
26442
26443 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26444 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26445 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26446   echo $ECHO_N "(cached) $ECHO_C" >&6
26447 else
26448   ac_check_lib_save_LIBS=$LIBS
26449 LIBS="-lxnet  $LIBS"
26450 cat >conftest.$ac_ext <<_ACEOF
26451 /* confdefs.h.  */
26452 _ACEOF
26453 cat confdefs.h >>conftest.$ac_ext
26454 cat >>conftest.$ac_ext <<_ACEOF
26455 /* end confdefs.h.  */
26456
26457 /* Override any GCC internal prototype to avoid an error.
26458    Use char because int might match the return type of a GCC
26459    builtin and then its argument prototype would still apply.  */
26460 #ifdef __cplusplus
26461 extern "C"
26462 #endif
26463 char socket ();
26464 int
26465 main ()
26466 {
26467 return socket ();
26468   ;
26469   return 0;
26470 }
26471 _ACEOF
26472 rm -f conftest.$ac_objext conftest$ac_exeext
26473 if { (ac_try="$ac_link"
26474 case "(($ac_try" in
26475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26476   *) ac_try_echo=$ac_try;;
26477 esac
26478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26479   (eval "$ac_link") 2>conftest.er1
26480   ac_status=$?
26481   grep -v '^ *+' conftest.er1 >conftest.err
26482   rm -f conftest.er1
26483   cat conftest.err >&5
26484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485   (exit $ac_status); } && {
26486          test -z "$ac_c_werror_flag" ||
26487          test ! -s conftest.err
26488        } && test -s conftest$ac_exeext &&
26489        $as_test_x conftest$ac_exeext; then
26490   ac_cv_lib_xnet_socket=yes
26491 else
26492   echo "$as_me: failed program was:" >&5
26493 sed 's/^/| /' conftest.$ac_ext >&5
26494
26495         ac_cv_lib_xnet_socket=no
26496 fi
26497
26498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26499       conftest$ac_exeext conftest.$ac_ext
26500 LIBS=$ac_check_lib_save_LIBS
26501 fi
26502 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26503 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26504 if test $ac_cv_lib_xnet_socket = yes; then
26505   cat >>confdefs.h <<_ACEOF
26506 #define HAVE_LIBXNET 1
26507 _ACEOF
26508
26509   LIBS="-lxnet $LIBS"
26510
26511 fi
26512
26513
26514 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26515 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26516 if test "${ac_cv_lib_socket_socket+set}" = set; then
26517   echo $ECHO_N "(cached) $ECHO_C" >&6
26518 else
26519   ac_check_lib_save_LIBS=$LIBS
26520 LIBS="-lsocket  $LIBS"
26521 cat >conftest.$ac_ext <<_ACEOF
26522 /* confdefs.h.  */
26523 _ACEOF
26524 cat confdefs.h >>conftest.$ac_ext
26525 cat >>conftest.$ac_ext <<_ACEOF
26526 /* end confdefs.h.  */
26527
26528 /* Override any GCC internal prototype to avoid an error.
26529    Use char because int might match the return type of a GCC
26530    builtin and then its argument prototype would still apply.  */
26531 #ifdef __cplusplus
26532 extern "C"
26533 #endif
26534 char socket ();
26535 int
26536 main ()
26537 {
26538 return socket ();
26539   ;
26540   return 0;
26541 }
26542 _ACEOF
26543 rm -f conftest.$ac_objext conftest$ac_exeext
26544 if { (ac_try="$ac_link"
26545 case "(($ac_try" in
26546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26547   *) ac_try_echo=$ac_try;;
26548 esac
26549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26550   (eval "$ac_link") 2>conftest.er1
26551   ac_status=$?
26552   grep -v '^ *+' conftest.er1 >conftest.err
26553   rm -f conftest.er1
26554   cat conftest.err >&5
26555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556   (exit $ac_status); } && {
26557          test -z "$ac_c_werror_flag" ||
26558          test ! -s conftest.err
26559        } && test -s conftest$ac_exeext &&
26560        $as_test_x conftest$ac_exeext; then
26561   ac_cv_lib_socket_socket=yes
26562 else
26563   echo "$as_me: failed program was:" >&5
26564 sed 's/^/| /' conftest.$ac_ext >&5
26565
26566         ac_cv_lib_socket_socket=no
26567 fi
26568
26569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26570       conftest$ac_exeext conftest.$ac_ext
26571 LIBS=$ac_check_lib_save_LIBS
26572 fi
26573 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26574 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26575 if test $ac_cv_lib_socket_socket = yes; then
26576   cat >>confdefs.h <<_ACEOF
26577 #define HAVE_LIBSOCKET 1
26578 _ACEOF
26579
26580   LIBS="-lsocket $LIBS"
26581
26582 fi
26583
26584
26585 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26586 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26587 if test "${ac_cv_lib_inet_socket+set}" = set; then
26588   echo $ECHO_N "(cached) $ECHO_C" >&6
26589 else
26590   ac_check_lib_save_LIBS=$LIBS
26591 LIBS="-linet  $LIBS"
26592 cat >conftest.$ac_ext <<_ACEOF
26593 /* confdefs.h.  */
26594 _ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h.  */
26598
26599 /* Override any GCC internal prototype to avoid an error.
26600    Use char because int might match the return type of a GCC
26601    builtin and then its argument prototype would still apply.  */
26602 #ifdef __cplusplus
26603 extern "C"
26604 #endif
26605 char socket ();
26606 int
26607 main ()
26608 {
26609 return socket ();
26610   ;
26611   return 0;
26612 }
26613 _ACEOF
26614 rm -f conftest.$ac_objext conftest$ac_exeext
26615 if { (ac_try="$ac_link"
26616 case "(($ac_try" in
26617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26618   *) ac_try_echo=$ac_try;;
26619 esac
26620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26621   (eval "$ac_link") 2>conftest.er1
26622   ac_status=$?
26623   grep -v '^ *+' conftest.er1 >conftest.err
26624   rm -f conftest.er1
26625   cat conftest.err >&5
26626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627   (exit $ac_status); } && {
26628          test -z "$ac_c_werror_flag" ||
26629          test ! -s conftest.err
26630        } && test -s conftest$ac_exeext &&
26631        $as_test_x conftest$ac_exeext; then
26632   ac_cv_lib_inet_socket=yes
26633 else
26634   echo "$as_me: failed program was:" >&5
26635 sed 's/^/| /' conftest.$ac_ext >&5
26636
26637         ac_cv_lib_inet_socket=no
26638 fi
26639
26640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26641       conftest$ac_exeext conftest.$ac_ext
26642 LIBS=$ac_check_lib_save_LIBS
26643 fi
26644 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26645 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26646 if test $ac_cv_lib_inet_socket = yes; then
26647   cat >>confdefs.h <<_ACEOF
26648 #define HAVE_LIBINET 1
26649 _ACEOF
26650
26651   LIBS="-linet $LIBS"
26652
26653 fi
26654
26655 fi
26656
26657
26658 TCPW_MSG="no"
26659 WRAPLIBS=""
26660
26661 # Check whether --with-tcp-wrappers was given.
26662 if test "${with_tcp_wrappers+set}" = set; then
26663   withval=$with_tcp_wrappers;
26664        if test "x$withval" != "xno" ; then
26665           saved_LIBS="$LIBS"
26666           LIBS="$saved_LIBS -lwrap"
26667           { echo "$as_me:$LINENO: checking for libwrap" >&5
26668 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26669           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26670 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26671 if test "${ac_cv_search_nanosleep+set}" = set; then
26672   echo $ECHO_N "(cached) $ECHO_C" >&6
26673 else
26674   ac_func_search_save_LIBS=$LIBS
26675 cat >conftest.$ac_ext <<_ACEOF
26676 /* confdefs.h.  */
26677 _ACEOF
26678 cat confdefs.h >>conftest.$ac_ext
26679 cat >>conftest.$ac_ext <<_ACEOF
26680 /* end confdefs.h.  */
26681
26682 /* Override any GCC internal prototype to avoid an error.
26683    Use char because int might match the return type of a GCC
26684    builtin and then its argument prototype would still apply.  */
26685 #ifdef __cplusplus
26686 extern "C"
26687 #endif
26688 char nanosleep ();
26689 int
26690 main ()
26691 {
26692 return nanosleep ();
26693   ;
26694   return 0;
26695 }
26696 _ACEOF
26697 for ac_lib in '' rt; do
26698   if test -z "$ac_lib"; then
26699     ac_res="none required"
26700   else
26701     ac_res=-l$ac_lib
26702     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26703   fi
26704   rm -f conftest.$ac_objext conftest$ac_exeext
26705 if { (ac_try="$ac_link"
26706 case "(($ac_try" in
26707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26708   *) ac_try_echo=$ac_try;;
26709 esac
26710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26711   (eval "$ac_link") 2>conftest.er1
26712   ac_status=$?
26713   grep -v '^ *+' conftest.er1 >conftest.err
26714   rm -f conftest.er1
26715   cat conftest.err >&5
26716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26717   (exit $ac_status); } && {
26718          test -z "$ac_c_werror_flag" ||
26719          test ! -s conftest.err
26720        } && test -s conftest$ac_exeext &&
26721        $as_test_x conftest$ac_exeext; then
26722   ac_cv_search_nanosleep=$ac_res
26723 else
26724   echo "$as_me: failed program was:" >&5
26725 sed 's/^/| /' conftest.$ac_ext >&5
26726
26727
26728 fi
26729
26730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26731       conftest$ac_exeext
26732   if test "${ac_cv_search_nanosleep+set}" = set; then
26733   break
26734 fi
26735 done
26736 if test "${ac_cv_search_nanosleep+set}" = set; then
26737   :
26738 else
26739   ac_cv_search_nanosleep=no
26740 fi
26741 rm conftest.$ac_ext
26742 LIBS=$ac_func_search_save_LIBS
26743 fi
26744 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26745 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26746 ac_res=$ac_cv_search_nanosleep
26747 if test "$ac_res" != no; then
26748   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26749
26750 fi
26751
26752           cat >conftest.$ac_ext <<_ACEOF
26753 /* confdefs.h.  */
26754 _ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h.  */
26758
26759                #include <sys/types.h>
26760                #include <tcpd.h>
26761                int deny_severity = 0;
26762                int allow_severity = 0;
26763                struct request_info *req;
26764
26765 int
26766 main ()
26767 {
26768
26769                 hosts_access(req);
26770
26771   ;
26772   return 0;
26773 }
26774 _ACEOF
26775 rm -f conftest.$ac_objext conftest$ac_exeext
26776 if { (ac_try="$ac_link"
26777 case "(($ac_try" in
26778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26779   *) ac_try_echo=$ac_try;;
26780 esac
26781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26782   (eval "$ac_link") 2>conftest.er1
26783   ac_status=$?
26784   grep -v '^ *+' conftest.er1 >conftest.err
26785   rm -f conftest.er1
26786   cat conftest.err >&5
26787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788   (exit $ac_status); } && {
26789          test -z "$ac_c_werror_flag" ||
26790          test ! -s conftest.err
26791        } && test -s conftest$ac_exeext &&
26792        $as_test_x conftest$ac_exeext; then
26793
26794                  { echo "$as_me:$LINENO: result: yes" >&5
26795 echo "${ECHO_T}yes" >&6; }
26796
26797 cat >>confdefs.h <<\_ACEOF
26798 #define HAVE_LIBWRAP 1
26799 _ACEOF
26800
26801                  TCPW_MSG="yes"
26802                  LIBS="$saved_LIBS"
26803                  WRAPLIBS="-lwrap"
26804
26805 else
26806   echo "$as_me: failed program was:" >&5
26807 sed 's/^/| /' conftest.$ac_ext >&5
26808
26809
26810                  LIBS="$saved_LIBS -lwrap -lnsl"
26811                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26812                  cat >conftest.$ac_ext <<_ACEOF
26813 /* confdefs.h.  */
26814 _ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h.  */
26818
26819                        #include <sys/types.h>
26820                        #include <tcpd.h>
26821                        int deny_severity = 0;
26822                        int allow_severity = 0;
26823                        struct request_info *req;
26824
26825 int
26826 main ()
26827 {
26828
26829                        hosts_access(req);
26830
26831   ;
26832   return 0;
26833 }
26834 _ACEOF
26835 rm -f conftest.$ac_objext conftest$ac_exeext
26836 if { (ac_try="$ac_link"
26837 case "(($ac_try" in
26838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26839   *) ac_try_echo=$ac_try;;
26840 esac
26841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26842   (eval "$ac_link") 2>conftest.er1
26843   ac_status=$?
26844   grep -v '^ *+' conftest.er1 >conftest.err
26845   rm -f conftest.er1
26846   cat conftest.err >&5
26847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848   (exit $ac_status); } && {
26849          test -z "$ac_c_werror_flag" ||
26850          test ! -s conftest.err
26851        } && test -s conftest$ac_exeext &&
26852        $as_test_x conftest$ac_exeext; then
26853
26854                       { echo "$as_me:$LINENO: result: yes" >&5
26855 echo "${ECHO_T}yes" >&6; }
26856
26857 cat >>confdefs.h <<\_ACEOF
26858 #define HAVE_LIBWRAP 1
26859 _ACEOF
26860
26861                       TCPW_MSG="yes"
26862                       LIBS="$saved_LIBS"
26863                       WRAPLIBS="-lwrap"
26864
26865 else
26866   echo "$as_me: failed program was:" >&5
26867 sed 's/^/| /' conftest.$ac_ext >&5
26868
26869
26870                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26871 echo "$as_me: error: *** libwrap missing" >&2;}
26872    { (exit 1); exit 1; }; }
26873
26874
26875 fi
26876
26877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26878       conftest$ac_exeext conftest.$ac_ext
26879
26880
26881 fi
26882
26883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26884       conftest$ac_exeext conftest.$ac_ext
26885        fi
26886
26887
26888 fi
26889
26890
26891 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26892 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26893
26894 # Check whether --with-openssl was given.
26895 if test "${with_openssl+set}" = set; then
26896   withval=$with_openssl;
26897         with_openssl_directory=${withval}
26898
26899
26900 fi
26901
26902
26903 if test "x$with_openssl_directory" != "xno"; then
26904    OPENSSL_LIBS="-lssl -lcrypto"
26905    OPENSSL_INC=""
26906
26907    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26908       #
26909       # Make sure the $with_openssl_directory also makes sense
26910       #
26911       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26912          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26913          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26914       fi
26915    fi
26916
26917    saved_LIBS="${LIBS}"
26918    saved_CFLAGS="${CFLAGS}"
26919    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26920    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26921
26922    cat >conftest.$ac_ext <<_ACEOF
26923 /* confdefs.h.  */
26924 _ACEOF
26925 cat confdefs.h >>conftest.$ac_ext
26926 cat >>conftest.$ac_ext <<_ACEOF
26927 /* end confdefs.h.  */
26928
26929           #include <openssl/ssl.h>
26930
26931 int
26932 main ()
26933 {
26934
26935            CRYPTO_set_id_callback(NULL);
26936
26937   ;
26938   return 0;
26939 }
26940 _ACEOF
26941 rm -f conftest.$ac_objext conftest$ac_exeext
26942 if { (ac_try="$ac_link"
26943 case "(($ac_try" in
26944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26945   *) ac_try_echo=$ac_try;;
26946 esac
26947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26948   (eval "$ac_link") 2>conftest.er1
26949   ac_status=$?
26950   grep -v '^ *+' conftest.er1 >conftest.err
26951   rm -f conftest.er1
26952   cat conftest.err >&5
26953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954   (exit $ac_status); } && {
26955          test -z "$ac_c_werror_flag" ||
26956          test ! -s conftest.err
26957        } && test -s conftest$ac_exeext &&
26958        $as_test_x conftest$ac_exeext; then
26959
26960           support_tls="yes"
26961           support_crypto="yes"
26962
26963 else
26964   echo "$as_me: failed program was:" >&5
26965 sed 's/^/| /' conftest.$ac_ext >&5
26966
26967
26968           support_tls="no"
26969
26970
26971 fi
26972
26973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26974       conftest$ac_exeext conftest.$ac_ext
26975
26976    cat >conftest.$ac_ext <<_ACEOF
26977 /* confdefs.h.  */
26978 _ACEOF
26979 cat confdefs.h >>conftest.$ac_ext
26980 cat >>conftest.$ac_ext <<_ACEOF
26981 /* end confdefs.h.  */
26982
26983           #include <openssl/evp.h>
26984
26985 int
26986 main ()
26987 {
26988
26989           EVP_sha512();
26990
26991   ;
26992   return 0;
26993 }
26994 _ACEOF
26995 rm -f conftest.$ac_objext conftest$ac_exeext
26996 if { (ac_try="$ac_link"
26997 case "(($ac_try" in
26998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26999   *) ac_try_echo=$ac_try;;
27000 esac
27001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27002   (eval "$ac_link") 2>conftest.er1
27003   ac_status=$?
27004   grep -v '^ *+' conftest.er1 >conftest.err
27005   rm -f conftest.er1
27006   cat conftest.err >&5
27007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27008   (exit $ac_status); } && {
27009          test -z "$ac_c_werror_flag" ||
27010          test ! -s conftest.err
27011        } && test -s conftest$ac_exeext &&
27012        $as_test_x conftest$ac_exeext; then
27013
27014           ac_cv_openssl_sha2="yes"
27015
27016 else
27017   echo "$as_me: failed program was:" >&5
27018 sed 's/^/| /' conftest.$ac_ext >&5
27019
27020
27021           ac_cv_openssl_sha2="no"
27022
27023
27024 fi
27025
27026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27027       conftest$ac_exeext conftest.$ac_ext
27028
27029                cat >conftest.$ac_ext <<_ACEOF
27030 /* confdefs.h.  */
27031 _ACEOF
27032 cat confdefs.h >>conftest.$ac_ext
27033 cat >>conftest.$ac_ext <<_ACEOF
27034 /* end confdefs.h.  */
27035
27036           #include <openssl/evp.h>
27037
27038 int
27039 main ()
27040 {
27041
27042           EVP_aes_192_cbc();
27043
27044   ;
27045   return 0;
27046 }
27047 _ACEOF
27048 rm -f conftest.$ac_objext conftest$ac_exeext
27049 if { (ac_try="$ac_link"
27050 case "(($ac_try" in
27051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27052   *) ac_try_echo=$ac_try;;
27053 esac
27054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27055   (eval "$ac_link") 2>conftest.er1
27056   ac_status=$?
27057   grep -v '^ *+' conftest.er1 >conftest.err
27058   rm -f conftest.er1
27059   cat conftest.err >&5
27060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061   (exit $ac_status); } && {
27062          test -z "$ac_c_werror_flag" ||
27063          test ! -s conftest.err
27064        } && test -s conftest$ac_exeext &&
27065        $as_test_x conftest$ac_exeext; then
27066
27067           ac_cv_openssl_export="no"
27068
27069 else
27070   echo "$as_me: failed program was:" >&5
27071 sed 's/^/| /' conftest.$ac_ext >&5
27072
27073
27074           ac_cv_openssl_export="yes"
27075
27076
27077 fi
27078
27079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27080       conftest$ac_exeext conftest.$ac_ext
27081
27082    LIBS="${saved_LIBS}"
27083    CFLAGS="${saved_CFLAGS}"
27084
27085    if test "$support_tls" = "yes"; then
27086
27087 cat >>confdefs.h <<\_ACEOF
27088 #define HAVE_OPENSSL 1
27089 _ACEOF
27090
27091
27092 cat >>confdefs.h <<\_ACEOF
27093 #define HAVE_TLS 1
27094 _ACEOF
27095
27096
27097 cat >>confdefs.h <<\_ACEOF
27098 #define HAVE_CRYPTO 1
27099 _ACEOF
27100
27101    fi
27102
27103    if test "$ac_cv_openssl_sha2" = "yes"; then
27104
27105 cat >>confdefs.h <<\_ACEOF
27106 #define HAVE_SHA2 1
27107 _ACEOF
27108
27109    fi
27110
27111    if test "$ac_cv_openssl_export" = "yes"; then
27112
27113 cat >>confdefs.h <<\_ACEOF
27114 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27115 _ACEOF
27116
27117    fi
27118 else
27119    support_tls="no"
27120    support_crypto="no"
27121    OPENSSL_LIBS=""
27122    OPENSSL_INC=""
27123 fi
27124
27125 { echo "$as_me:$LINENO: result: $support_tls" >&5
27126 echo "${ECHO_T}$support_tls" >&6; }
27127
27128
27129
27130 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27131 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27132 if test "${ac_cv_search_dlopen+set}" = set; then
27133   echo $ECHO_N "(cached) $ECHO_C" >&6
27134 else
27135   ac_func_search_save_LIBS=$LIBS
27136 cat >conftest.$ac_ext <<_ACEOF
27137 /* confdefs.h.  */
27138 _ACEOF
27139 cat confdefs.h >>conftest.$ac_ext
27140 cat >>conftest.$ac_ext <<_ACEOF
27141 /* end confdefs.h.  */
27142
27143 /* Override any GCC internal prototype to avoid an error.
27144    Use char because int might match the return type of a GCC
27145    builtin and then its argument prototype would still apply.  */
27146 #ifdef __cplusplus
27147 extern "C"
27148 #endif
27149 char dlopen ();
27150 int
27151 main ()
27152 {
27153 return dlopen ();
27154   ;
27155   return 0;
27156 }
27157 _ACEOF
27158 for ac_lib in '' dl; do
27159   if test -z "$ac_lib"; then
27160     ac_res="none required"
27161   else
27162     ac_res=-l$ac_lib
27163     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27164   fi
27165   rm -f conftest.$ac_objext conftest$ac_exeext
27166 if { (ac_try="$ac_link"
27167 case "(($ac_try" in
27168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169   *) ac_try_echo=$ac_try;;
27170 esac
27171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172   (eval "$ac_link") 2>conftest.er1
27173   ac_status=$?
27174   grep -v '^ *+' conftest.er1 >conftest.err
27175   rm -f conftest.er1
27176   cat conftest.err >&5
27177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178   (exit $ac_status); } && {
27179          test -z "$ac_c_werror_flag" ||
27180          test ! -s conftest.err
27181        } && test -s conftest$ac_exeext &&
27182        $as_test_x conftest$ac_exeext; then
27183   ac_cv_search_dlopen=$ac_res
27184 else
27185   echo "$as_me: failed program was:" >&5
27186 sed 's/^/| /' conftest.$ac_ext >&5
27187
27188
27189 fi
27190
27191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27192       conftest$ac_exeext
27193   if test "${ac_cv_search_dlopen+set}" = set; then
27194   break
27195 fi
27196 done
27197 if test "${ac_cv_search_dlopen+set}" = set; then
27198   :
27199 else
27200   ac_cv_search_dlopen=no
27201 fi
27202 rm conftest.$ac_ext
27203 LIBS=$ac_func_search_save_LIBS
27204 fi
27205 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27206 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27207 ac_res=$ac_cv_search_dlopen
27208 if test "$ac_res" != no; then
27209   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27210
27211 fi
27212
27213
27214 working_dir=`eval echo ${prefix}/var/bacula/working`
27215
27216 # Check whether --with-working-dir was given.
27217 if test "${with_working_dir+set}" = set; then
27218   withval=$with_working_dir;
27219        if test "x$withval" != "xno" ; then
27220          working_dir=$withval
27221        fi
27222
27223
27224 fi
27225
27226
27227
27228
27229 archive_dir=/tmp
27230
27231 # Check whether --with-archivedir was given.
27232 if test "${with_archivedir+set}" = set; then
27233   withval=$with_archivedir;
27234        if test "x$withval" != "xno" ; then
27235           archivedir=$withval
27236        fi
27237
27238
27239 fi
27240
27241
27242
27243
27244 scriptdir=`eval echo ${sysconfdir}`
27245
27246 # Check whether --with-scriptdir was given.
27247 if test "${with_scriptdir+set}" = set; then
27248   withval=$with_scriptdir;
27249        if test "x$withval" != "xno" ; then
27250           scriptdir=$withval
27251        fi
27252
27253
27254 fi
27255
27256
27257
27258
27259 # ------------------------------------------
27260 # Where to place plugindir (script files)
27261 # ------------------------------------------
27262 plugindir=`eval echo ${sysconfdir}`
27263
27264 # Check whether --with-plugindir was given.
27265 if test "${with_plugindir+set}" = set; then
27266   withval=$with_plugindir;
27267        if test "x$withval" != "xno" ; then
27268           plugindir=$withval
27269        fi
27270
27271
27272 fi
27273
27274
27275
27276
27277 dump_email=root@localhost
27278
27279 # Check whether --with-dump-email was given.
27280 if test "${with_dump_email+set}" = set; then
27281   withval=$with_dump_email;
27282        if test "x$withval" != "xno" ; then
27283           dump_email=$withval
27284        fi
27285
27286
27287 fi
27288
27289
27290
27291
27292 job_email=root@localhost
27293
27294 # Check whether --with-job-email was given.
27295 if test "${with_job_email+set}" = set; then
27296   withval=$with_job_email;
27297        if test "x$withval" != "xno" ; then
27298           job_email=$withval
27299        fi
27300
27301
27302 fi
27303
27304
27305
27306
27307 smtp_host=localhost
27308
27309 # Check whether --with-smtp_host was given.
27310 if test "${with_smtp_host+set}" = set; then
27311   withval=$with_smtp_host;
27312        if test "x$withval" != "xno" ; then
27313           smtp_host=$withval
27314        fi
27315
27316
27317 fi
27318
27319
27320
27321
27322 piddir=/var/run
27323
27324 # Check whether --with-pid-dir was given.
27325 if test "${with_pid_dir+set}" = set; then
27326   withval=$with_pid_dir;
27327        if test "x$withval" != "xno" ; then
27328           piddir=$withval
27329        fi
27330
27331
27332 fi
27333
27334
27335 cat >>confdefs.h <<_ACEOF
27336 #define _PATH_BACULA_PIDDIR "$piddir"
27337 _ACEOF
27338
27339
27340
27341 subsysdir=/var/run/subsys
27342 if test -d /var/run/subsys; then
27343    subsysdir=/var/run/subsys
27344 elif test -d /var/lock/subsys; then
27345    subsysdir=/var/lock/subsys
27346 else
27347    subsysdir=/var/run/subsys
27348 fi
27349
27350 # Check whether --with-subsys-dir was given.
27351 if test "${with_subsys_dir+set}" = set; then
27352   withval=$with_subsys_dir;
27353        if test "x$withval" != "xno" ; then
27354           subsysdir=$withval
27355        fi
27356
27357
27358 fi
27359
27360
27361
27362
27363 baseport=9101
27364
27365 # Check whether --with-baseport was given.
27366 if test "${with_baseport+set}" = set; then
27367   withval=$with_baseport;
27368        if test "x$withval" != "xno" ; then
27369           baseport=$withval
27370        fi
27371
27372
27373 fi
27374
27375
27376
27377 dir_port=`expr $baseport`
27378 fd_port=`expr $baseport + 1`
27379 sd_port=`expr $fd_port + 1`
27380
27381
27382
27383
27384
27385 dir_password=
27386
27387 # Check whether --with-dir-password was given.
27388 if test "${with_dir_password+set}" = set; then
27389   withval=$with_dir_password;
27390        if test "x$withval" != "xno" ; then
27391           dir_password=$withval
27392        fi
27393
27394
27395 fi
27396
27397
27398 if test "x$dir_password" = "x" ; then
27399    if test "x$OPENSSL" = "xnone" ; then
27400       key=`autoconf/randpass 33`
27401    else
27402       key=`openssl rand -base64 33`
27403    fi
27404    dir_password=$key
27405 fi
27406
27407 fd_password=
27408
27409 # Check whether --with-fd-password was given.
27410 if test "${with_fd_password+set}" = set; then
27411   withval=$with_fd_password;
27412        if test "x$withval" != "xno" ; then
27413           fd_password=$withval
27414        fi
27415
27416
27417 fi
27418
27419
27420 if test "x$fd_password" = "x" ; then
27421    if test "x$OPENSSL" = "xnone" ; then
27422       key=`autoconf/randpass 37`
27423    else
27424       key=`openssl rand -base64 33`
27425    fi
27426    fd_password=$key
27427 fi
27428
27429 sd_password=
27430
27431 # Check whether --with-sd-password was given.
27432 if test "${with_sd_password+set}" = set; then
27433   withval=$with_sd_password;
27434        if test "x$withval" != "xno" ; then
27435           sd_password=$withval
27436        fi
27437
27438
27439 fi
27440
27441
27442 if test "x$sd_password" = "x" ; then
27443    if test "x$OPENSSL" = "xnone" ; then
27444       key=`autoconf/randpass 41`
27445    else
27446       key=`openssl rand -base64 33`
27447    fi
27448    sd_password=$key
27449 fi
27450
27451 mon_dir_password=
27452
27453 # Check whether --with-mon-dir-password was given.
27454 if test "${with_mon_dir_password+set}" = set; then
27455   withval=$with_mon_dir_password;
27456        if test "x$withval" != "xno" ; then
27457           mon_dir_password=$withval
27458        fi
27459
27460
27461 fi
27462
27463
27464 if test "x$mon_dir_password" = "x" ; then
27465    if test "x$OPENSSL" = "xnone" ; then
27466       key=`autoconf/randpass 33`
27467    else
27468       key=`openssl rand -base64 33`
27469    fi
27470    mon_dir_password=$key
27471 fi
27472
27473 mon_fd_password=
27474
27475 # Check whether --with-mon-fd-password was given.
27476 if test "${with_mon_fd_password+set}" = set; then
27477   withval=$with_mon_fd_password;
27478        if test "x$withval" != "xno" ; then
27479           mon_fd_password=$withval
27480        fi
27481
27482
27483 fi
27484
27485
27486 if test "x$mon_fd_password" = "x" ; then
27487    if test "x$OPENSSL" = "xnone" ; then
27488       key=`autoconf/randpass 37`
27489    else
27490       key=`openssl rand -base64 33`
27491    fi
27492    mon_fd_password=$key
27493 fi
27494
27495 mon_sd_password=
27496
27497 # Check whether --with-mon-sd-password was given.
27498 if test "${with_mon_sd_password+set}" = set; then
27499   withval=$with_mon_sd_password;
27500        if test "x$withval" != "xno" ; then
27501           mon_sd_password=$withval
27502        fi
27503
27504
27505 fi
27506
27507
27508 if test "x$mon_sd_password" = "x" ; then
27509    if test "x$OPENSSL" = "xnone" ; then
27510       key=`autoconf/randpass 41`
27511    else
27512       key=`openssl rand -base64 33`
27513    fi
27514    mon_sd_password=$key
27515 fi
27516
27517
27518
27519
27520
27521
27522
27523
27524 db_name=bacula
27525
27526 # Check whether --with-db_name was given.
27527 if test "${with_db_name+set}" = set; then
27528   withval=$with_db_name;
27529        if test "x$withval" != "x" ; then
27530           db_name=$withval
27531        fi
27532
27533
27534 fi
27535
27536
27537
27538 db_user=bacula
27539
27540 # Check whether --with-db_user was given.
27541 if test "${with_db_user+set}" = set; then
27542   withval=$with_db_user;
27543        if test "x$withval" != "x" ; then
27544           db_user=$withval
27545        fi
27546
27547
27548 fi
27549
27550
27551
27552 db_password=
27553
27554 # Check whether --with-db_password was given.
27555 if test "${with_db_password+set}" = set; then
27556   withval=$with_db_password;
27557        if test "x$withval" != "x" ; then
27558           db_password=$withval
27559        fi
27560
27561
27562 fi
27563
27564
27565
27566 db_port=" "
27567
27568 # Check whether --with-db_port was given.
27569 if test "${with_db_port+set}" = set; then
27570   withval=$with_db_port;
27571        if test "x$withval" != "x" ; then
27572           db_port=$withval
27573        fi
27574
27575
27576 fi
27577
27578
27579
27580 #
27581 # Handle users and groups for each daemon
27582 #
27583 dir_user=
27584
27585 # Check whether --with-dir_user was given.
27586 if test "${with_dir_user+set}" = set; then
27587   withval=$with_dir_user;
27588        if test "x$withval" != "x" ; then
27589            dir_user=$withval
27590        fi
27591
27592
27593 fi
27594
27595
27596 dir_group=
27597
27598 # Check whether --with-dir_group was given.
27599 if test "${with_dir_group+set}" = set; then
27600   withval=$with_dir_group;
27601        if test "x$withval" != "x" ; then
27602           dir_group=$withval
27603        fi
27604
27605
27606 fi
27607
27608
27609 sd_user=
27610
27611 # Check whether --with-sd_user was given.
27612 if test "${with_sd_user+set}" = set; then
27613   withval=$with_sd_user;
27614        if test "x$withval" != "x" ; then
27615           sd_user=$withval
27616        fi
27617
27618
27619 fi
27620
27621
27622 sd_group=
27623
27624 # Check whether --with-sd_group was given.
27625 if test "${with_sd_group+set}" = set; then
27626   withval=$with_sd_group;
27627        if test "x$withval" != "x" ; then
27628           sd_group=$withval
27629        fi
27630
27631
27632 fi
27633
27634
27635 fd_user=
27636
27637 # Check whether --with-fd_user was given.
27638 if test "${with_fd_user+set}" = set; then
27639   withval=$with_fd_user;
27640        if test "x$withval" != "x" ; then
27641           fd_user=$withval
27642        fi
27643
27644
27645 fi
27646
27647
27648 fd_group=
27649
27650 # Check whether --with-fd_group was given.
27651 if test "${with_fd_group+set}" = set; then
27652   withval=$with_fd_group;
27653        if test "x$withval" != "x" ; then
27654           fd_group=$withval
27655        fi
27656
27657
27658 fi
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668 SBINPERM=0754
27669
27670 # Check whether --with-sbin-perm was given.
27671 if test "${with_sbin_perm+set}" = set; then
27672   withval=$with_sbin_perm;
27673        if test "x$withval" != "x" ; then
27674           SBINPERM=$withval
27675        fi
27676
27677
27678 fi
27679
27680
27681
27682
27683 SQL_LIB=
27684
27685 db_found=no
27686 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27687 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27688
27689 # Check whether --with-postgresql was given.
27690 if test "${with_postgresql+set}" = set; then
27691   withval=$with_postgresql;
27692   if test "$withval" != "no"; then
27693       if test "$db_found" = "yes"; then
27694           { echo "$as_me:$LINENO: result: error" >&5
27695 echo "${ECHO_T}error" >&6; }
27696           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27697 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27698    { (exit 1); exit 1; }; };
27699       fi
27700       if test "$withval" = "yes"; then
27701           PG_CONFIG=`which pg_config`
27702           if test -n "$PG_CONFIG";then
27703               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27704               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27705               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27706           elif test -f /usr/local/include/libpq-fe.h; then
27707               POSTGRESQL_INCDIR=/usr/local/include
27708               if test -d /usr/local/lib64; then
27709                  POSTGRESQL_LIBDIR=/usr/local/lib64
27710               else
27711                  POSTGRESQL_LIBDIR=/usr/local/lib
27712               fi
27713               POSTGRESQL_BINDIR=/usr/local/bin
27714           elif test -f /usr/include/libpq-fe.h; then
27715               POSTGRESQL_INCDIR=/usr/include
27716               if test -d /usr/lib64; then
27717                  POSTGRESQL_LIBDIR=/usr/lib64
27718               else
27719                  POSTGRESQL_LIBDIR=/usr/lib
27720               fi
27721               POSTGRESQL_BINDIR=/usr/bin
27722           elif test -f /usr/include/pgsql/libpq-fe.h; then
27723               POSTGRESQL_INCDIR=/usr/include/pgsql
27724               if test -d /usr/lib64/pgsql; then
27725                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27726               else
27727                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27728               fi
27729               POSTGRESQL_BINDIR=/usr/bin
27730           elif test -f /usr/include/postgresql/libpq-fe.h; then
27731               POSTGRESQL_INCDIR=/usr/include/postgresql
27732               if test -d /usr/lib64/postgresql; then
27733                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27734               else
27735                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27736               fi
27737               POSTGRESQL_BINDIR=/usr/bin
27738           else
27739               { echo "$as_me:$LINENO: result: no" >&5
27740 echo "${ECHO_T}no" >&6; }
27741               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27742 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27743    { (exit 1); exit 1; }; }
27744           fi
27745       elif test -f $withval/include/libpq-fe.h; then
27746           POSTGRESQL_INCDIR=$withval/include
27747           POSTGRESQL_LIBDIR=$withval/lib
27748           POSTGRESQL_BINDIR=$withval/bin
27749       elif test -f $withval/include/postgresql/libpq-fe.h; then
27750           POSTGRESQL_INCDIR=$withval/include/postgresql
27751      if test -d $withval/lib64; then
27752          POSTGRESQL_LIBDIR=$withval/lib64
27753      else
27754          POSTGRESQL_LIBDIR=$withval/lib
27755      fi
27756           POSTGRESQL_BINDIR=$withval/bin
27757       else
27758           { echo "$as_me:$LINENO: result: no" >&5
27759 echo "${ECHO_T}no" >&6; }
27760           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27761 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27762    { (exit 1); exit 1; }; }
27763       fi
27764       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27765       { echo "$as_me:$LINENO: checking for crypt" >&5
27766 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27767 if test "${ac_cv_func_crypt+set}" = set; then
27768   echo $ECHO_N "(cached) $ECHO_C" >&6
27769 else
27770   cat >conftest.$ac_ext <<_ACEOF
27771 /* confdefs.h.  */
27772 _ACEOF
27773 cat confdefs.h >>conftest.$ac_ext
27774 cat >>conftest.$ac_ext <<_ACEOF
27775 /* end confdefs.h.  */
27776 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27778 #define crypt innocuous_crypt
27779
27780 /* System header to define __stub macros and hopefully few prototypes,
27781     which can conflict with char crypt (); below.
27782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27783     <limits.h> exists even on freestanding compilers.  */
27784
27785 #ifdef __STDC__
27786 # include <limits.h>
27787 #else
27788 # include <assert.h>
27789 #endif
27790
27791 #undef crypt
27792
27793 /* Override any GCC internal prototype to avoid an error.
27794    Use char because int might match the return type of a GCC
27795    builtin and then its argument prototype would still apply.  */
27796 #ifdef __cplusplus
27797 extern "C"
27798 #endif
27799 char crypt ();
27800 /* The GNU C library defines this for functions which it implements
27801     to always fail with ENOSYS.  Some functions are actually named
27802     something starting with __ and the normal name is an alias.  */
27803 #if defined __stub_crypt || defined __stub___crypt
27804 choke me
27805 #endif
27806
27807 int
27808 main ()
27809 {
27810 return crypt ();
27811   ;
27812   return 0;
27813 }
27814 _ACEOF
27815 rm -f conftest.$ac_objext conftest$ac_exeext
27816 if { (ac_try="$ac_link"
27817 case "(($ac_try" in
27818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27819   *) ac_try_echo=$ac_try;;
27820 esac
27821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27822   (eval "$ac_link") 2>conftest.er1
27823   ac_status=$?
27824   grep -v '^ *+' conftest.er1 >conftest.err
27825   rm -f conftest.er1
27826   cat conftest.err >&5
27827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828   (exit $ac_status); } && {
27829          test -z "$ac_c_werror_flag" ||
27830          test ! -s conftest.err
27831        } && test -s conftest$ac_exeext &&
27832        $as_test_x conftest$ac_exeext; then
27833   ac_cv_func_crypt=yes
27834 else
27835   echo "$as_me: failed program was:" >&5
27836 sed 's/^/| /' conftest.$ac_ext >&5
27837
27838         ac_cv_func_crypt=no
27839 fi
27840
27841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27842       conftest$ac_exeext conftest.$ac_ext
27843 fi
27844 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27845 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27846 if test $ac_cv_func_crypt = yes; then
27847   :
27848 else
27849   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27850 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27851 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27852   echo $ECHO_N "(cached) $ECHO_C" >&6
27853 else
27854   ac_check_lib_save_LIBS=$LIBS
27855 LIBS="-lcrypt  $LIBS"
27856 cat >conftest.$ac_ext <<_ACEOF
27857 /* confdefs.h.  */
27858 _ACEOF
27859 cat confdefs.h >>conftest.$ac_ext
27860 cat >>conftest.$ac_ext <<_ACEOF
27861 /* end confdefs.h.  */
27862
27863 /* Override any GCC internal prototype to avoid an error.
27864    Use char because int might match the return type of a GCC
27865    builtin and then its argument prototype would still apply.  */
27866 #ifdef __cplusplus
27867 extern "C"
27868 #endif
27869 char crypt ();
27870 int
27871 main ()
27872 {
27873 return crypt ();
27874   ;
27875   return 0;
27876 }
27877 _ACEOF
27878 rm -f conftest.$ac_objext conftest$ac_exeext
27879 if { (ac_try="$ac_link"
27880 case "(($ac_try" in
27881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882   *) ac_try_echo=$ac_try;;
27883 esac
27884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885   (eval "$ac_link") 2>conftest.er1
27886   ac_status=$?
27887   grep -v '^ *+' conftest.er1 >conftest.err
27888   rm -f conftest.er1
27889   cat conftest.err >&5
27890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891   (exit $ac_status); } && {
27892          test -z "$ac_c_werror_flag" ||
27893          test ! -s conftest.err
27894        } && test -s conftest$ac_exeext &&
27895        $as_test_x conftest$ac_exeext; then
27896   ac_cv_lib_crypt_crypt=yes
27897 else
27898   echo "$as_me: failed program was:" >&5
27899 sed 's/^/| /' conftest.$ac_ext >&5
27900
27901         ac_cv_lib_crypt_crypt=no
27902 fi
27903
27904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27905       conftest$ac_exeext conftest.$ac_ext
27906 LIBS=$ac_check_lib_save_LIBS
27907 fi
27908 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27909 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27910 if test $ac_cv_lib_crypt_crypt = yes; then
27911   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27912 fi
27913
27914 fi
27915
27916       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27917       SQL_LFLAGS=$POSTGRESQL_LFLAGS
27918       SQL_BINDIR=$POSTGRESQL_BINDIR
27919       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27920
27921       cat >>confdefs.h <<\_ACEOF
27922 #define HAVE_POSTGRESQL 1
27923 _ACEOF
27924
27925       { echo "$as_me:$LINENO: result: yes" >&5
27926 echo "${ECHO_T}yes" >&6; }
27927       db_found=yes
27928       support_postgresql=yes
27929       db_type=PostgreSQL
27930       DB_TYPE=postgresql
27931   else
27932       { echo "$as_me:$LINENO: result: no" >&5
27933 echo "${ECHO_T}no" >&6; }
27934   fi
27935
27936 else
27937
27938   { echo "$as_me:$LINENO: result: no" >&5
27939 echo "${ECHO_T}no" >&6; }
27940
27941 fi
27942
27943
27944
27945
27946
27947
27948
27949
27950 db_found=no
27951 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27952 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27953
27954 # Check whether --with-mysql was given.
27955 if test "${with_mysql+set}" = set; then
27956   withval=$with_mysql;
27957   if test "$withval" != "no"; then
27958         if test "$withval" = "yes"; then
27959            if test -f /usr/local/mysql/include/mysql/mysql.h; then
27960                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
27961                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27962                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27963                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27964                    else
27965                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27966                    fi
27967                    MYSQL_BINDIR=/usr/local/mysql/bin
27968            elif test -f /usr/include/mysql/mysql.h; then
27969                    MYSQL_INCDIR=/usr/include/mysql
27970                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27971                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27972                            MYSQL_LIBDIR=/usr/lib64/mysql
27973                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27974                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27975                            MYSQL_LIBDIR=/usr/lib/mysql
27976                    else
27977                            MYSQL_LIBDIR=/usr/lib
27978                    fi
27979                    MYSQL_BINDIR=/usr/bin
27980            elif test -f /usr/include/mysql.h; then
27981                    MYSQL_INCDIR=/usr/include
27982                    if test -f /usr/lib64/libmysqlclient_r.a \
27983                         -o -f /usr/lib64/libmysqlclient_r.so; then
27984                            MYSQL_LIBDIR=/usr/lib64
27985                    else
27986                            MYSQL_LIBDIR=/usr/lib
27987                    fi
27988                    MYSQL_BINDIR=/usr/bin
27989            elif test -f /usr/local/include/mysql/mysql.h; then
27990                    MYSQL_INCDIR=/usr/local/include/mysql
27991                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27992                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27993                            MYSQL_LIBDIR=/usr/local/lib64/mysql
27994                    else
27995                            MYSQL_LIBDIR=/usr/local/lib/mysql
27996                    fi
27997                    MYSQL_BINDIR=/usr/local/bin
27998            elif test -f /usr/local/include/mysql.h; then
27999                    MYSQL_INCDIR=/usr/local/include
28000                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28001                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28002                            MYSQL_LIBDIR=/usr/local/lib64
28003                    else
28004                            MYSQL_LIBDIR=/usr/local/lib
28005                    fi
28006                    MYSQL_BINDIR=/usr/local/bin
28007            else
28008               { echo "$as_me:$LINENO: result: no" >&5
28009 echo "${ECHO_T}no" >&6; }
28010               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28011 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28012    { (exit 1); exit 1; }; }
28013            fi
28014         else
28015            if test -f $withval/include/mysql/mysql.h; then
28016               MYSQL_INCDIR=$withval/include/mysql
28017               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28018                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28019                  MYSQL_LIBDIR=$withval/lib64/mysql
28020               else
28021                  MYSQL_LIBDIR=$withval/lib/mysql
28022                  # Solaris ...
28023                  if test -f $withval/lib/libmysqlclient_r.so; then
28024                     MYSQL_LIBDIR=$withval/lib
28025                  fi
28026               fi
28027               MYSQL_BINDIR=$withval/bin
28028            elif test -f $withval/include/mysql.h; then
28029               MYSQL_INCDIR=$withval/include
28030               if test -f $withval/lib64/libmysqlclient_r.a \
28031                    -o -f $withval/lib64/libmysqlclient_r.so; then
28032                  MYSQL_LIBDIR=$withval/lib64
28033               else
28034                  MYSQL_LIBDIR=$withval/lib
28035               fi
28036               MYSQL_BINDIR=$withval/bin
28037            else
28038               { echo "$as_me:$LINENO: result: no" >&5
28039 echo "${ECHO_T}no" >&6; }
28040               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28041 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28042    { (exit 1); exit 1; }; }
28043            fi
28044         fi
28045     SQL_INCLUDE=-I$MYSQL_INCDIR
28046     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28047          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28048        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28049        cat >>confdefs.h <<\_ACEOF
28050 #define HAVE_THREAD_SAFE_MYSQL 1
28051 _ACEOF
28052
28053     fi
28054     SQL_BINDIR=$MYSQL_BINDIR
28055     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28056
28057     cat >>confdefs.h <<\_ACEOF
28058 #define HAVE_MYSQL 1
28059 _ACEOF
28060
28061     { echo "$as_me:$LINENO: result: yes" >&5
28062 echo "${ECHO_T}yes" >&6; }
28063     db_found=yes
28064     support_mysql=yes
28065     db_type=MySQL
28066     DB_TYPE=mysql
28067
28068   else
28069         { echo "$as_me:$LINENO: result: no" >&5
28070 echo "${ECHO_T}no" >&6; }
28071   fi
28072
28073
28074 fi
28075
28076
28077
28078 # Check whether --with-embedded-mysql was given.
28079 if test "${with_embedded_mysql+set}" = set; then
28080   withval=$with_embedded_mysql;
28081   if test "$withval" != "no"; then
28082         if test "$withval" = "yes"; then
28083                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28084                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28085                         if test -d /usr/local/mysql/lib64/mysql; then
28086                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28087                         else
28088                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28089                         fi
28090                         MYSQL_BINDIR=/usr/local/mysql/bin
28091                 elif test -f /usr/include/mysql/mysql.h; then
28092                         MYSQL_INCDIR=/usr/include/mysql
28093                         if test -d /usr/lib64/mysql; then
28094                                 MYSQL_LIBDIR=/usr/lib64/mysql
28095                         else
28096                                 MYSQL_LIBDIR=/usr/lib/mysql
28097                         fi
28098                         MYSQL_BINDIR=/usr/bin
28099                 elif test -f /usr/include/mysql.h; then
28100                         MYSQL_INCDIR=/usr/include
28101                         if test -d /usr/lib64; then
28102                                 MYSQL_LIBDIR=/usr/lib64
28103                         else
28104                                 MYSQL_LIBDIR=/usr/lib
28105                         fi
28106                         MYSQL_BINDIR=/usr/bin
28107                 elif test -f /usr/local/include/mysql/mysql.h; then
28108                         MYSQL_INCDIR=/usr/local/include/mysql
28109                         if test -d /usr/local/lib64/mysql; then
28110                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28111                         else
28112                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28113                         fi
28114                         MYSQL_BINDIR=/usr/local/bin
28115                 elif test -f /usr/local/include/mysql.h; then
28116                         MYSQL_INCDIR=/usr/local/include
28117                         if test -d /usr/local/lib64; then
28118                                 MYSQL_LIBDIR=/usr/local/lib64
28119                         else
28120                                 MYSQL_LIBDIR=/usr/local/lib
28121                         fi
28122                         MYSQL_BINDIR=/usr/local/bin
28123                 else
28124                    { echo "$as_me:$LINENO: result: no" >&5
28125 echo "${ECHO_T}no" >&6; }
28126                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28127 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28128    { (exit 1); exit 1; }; }
28129                 fi
28130         else
28131                 if test -f $withval/include/mysql/mysql.h; then
28132                         MYSQL_INCDIR=$withval/include/mysql
28133                         if test -d $withval/lib64/mysql; then
28134                                 MYSQL_LIBDIR=$withval/lib64/mysql
28135                         else
28136                                 MYSQL_LIBDIR=$withval/lib/mysql
28137                         fi
28138                         MYSQL_BINDIR=$withval/bin
28139                 elif test -f $withval/include/mysql.h; then
28140                         MYSQL_INCDIR=$withval/include
28141                         if test -d $withval/lib64; then
28142                                 MYSQL_LIBDIR=$withval/lib64
28143                         else
28144                                 MYSQL_LIBDIR=$withval/lib
28145                         fi
28146                         MYSQL_BINDIR=$withval/bin
28147                 else
28148                    { echo "$as_me:$LINENO: result: no" >&5
28149 echo "${ECHO_T}no" >&6; }
28150                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28151 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28152    { (exit 1); exit 1; }; }
28153                 fi
28154         fi
28155     SQL_INCLUDE=-I$MYSQL_INCDIR
28156     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28157     SQL_BINDIR=$MYSQL_BINDIR
28158     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28159
28160     cat >>confdefs.h <<\_ACEOF
28161 #define HAVE_MYSQL 1
28162 _ACEOF
28163
28164     cat >>confdefs.h <<\_ACEOF
28165 #define HAVE_EMBEDDED_MYSQL 1
28166 _ACEOF
28167
28168     { echo "$as_me:$LINENO: result: yes" >&5
28169 echo "${ECHO_T}yes" >&6; }
28170     db_found=yes
28171     support_mysql=yes
28172     db_type=MySQL
28173     DB_TYPE=mysql
28174
28175   else
28176         { echo "$as_me:$LINENO: result: no" >&5
28177 echo "${ECHO_T}no" >&6; }
28178   fi
28179
28180
28181 fi
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192 db_found=no
28193 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28194 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28195
28196 # Check whether --with-sqlite3 was given.
28197 if test "${with_sqlite3+set}" = set; then
28198   withval=$with_sqlite3;
28199   if test "$withval" != "no"; then
28200      if test "$withval" = "yes"; then
28201         if test -f /usr/local/include/sqlite3.h; then
28202            SQLITE_INCDIR=/usr/local/include
28203            if test -d /usr/local/lib64; then
28204               SQLITE_LIBDIR=/usr/local/lib64
28205            else
28206               SQLITE_LIBDIR=/usr/local/lib
28207            fi
28208            SQLITE_BINDIR=/usr/local/bin
28209         elif test -f /usr/include/sqlite3.h; then
28210            SQLITE_INCDIR=/usr/include
28211            if test -d /usr/lib64; then
28212               SQLITE_LIBDIR=/usr/lib64
28213            else
28214               SQLITE_LIBDIR=/usr/lib
28215            fi
28216            SQLITE_BINDIR=/usr/bin
28217         elif test -f $prefix/include/sqlite3.h; then
28218            SQLITE_INCDIR=$prefix/include
28219            if test -d $prefix/lib64; then
28220               SQLITE_LIBDIR=$prefix/lib64
28221            else
28222               SQLITE_LIBDIR=$prefix/lib
28223            fi
28224            SQLITE_BINDIR=$prefix/bin
28225         else
28226            { echo "$as_me:$LINENO: result: no" >&5
28227 echo "${ECHO_T}no" >&6; }
28228            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28229 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28230    { (exit 1); exit 1; }; }
28231         fi
28232      else
28233         if test -f $withval/sqlite3.h; then
28234            SQLITE_INCDIR=$withval
28235            SQLITE_LIBDIR=$withval
28236            SQLITE_BINDIR=$withval
28237         elif test -f $withval/include/sqlite3.h; then
28238            SQLITE_INCDIR=$withval/include
28239            if test -d $withval/lib64; then
28240               SQLITE_LIBDIR=$withval/lib64
28241            else
28242               SQLITE_LIBDIR=$withval/lib
28243            fi
28244            SQLITE_BINDIR=$withval/bin
28245         else
28246            { echo "$as_me:$LINENO: result: no" >&5
28247 echo "${ECHO_T}no" >&6; }
28248            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28249 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28250    { (exit 1); exit 1; }; }
28251         fi
28252      fi
28253      SQL_INCLUDE=-I$SQLITE_INCDIR
28254      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28255      SQL_BINDIR=$SQLITE_BINDIR
28256      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28257
28258      cat >>confdefs.h <<\_ACEOF
28259 #define HAVE_SQLITE3 1
28260 _ACEOF
28261
28262      { echo "$as_me:$LINENO: result: yes" >&5
28263 echo "${ECHO_T}yes" >&6; }
28264      db_found=yes
28265      support_sqlite3=yes
28266      db_type=SQLite3
28267      DB_TYPE=sqlite3
28268
28269   else
28270      { echo "$as_me:$LINENO: result: no" >&5
28271 echo "${ECHO_T}no" >&6; }
28272   fi
28273
28274 else
28275
28276   { echo "$as_me:$LINENO: result: no" >&5
28277 echo "${ECHO_T}no" >&6; }
28278
28279 fi
28280
28281
28282
28283
28284
28285
28286
28287
28288 db_found=no
28289 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28290 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28291
28292 # Check whether --with-sqlite was given.
28293 if test "${with_sqlite+set}" = set; then
28294   withval=$with_sqlite;
28295   if test "$withval" != "no"; then
28296      if test "$withval" = "yes"; then
28297         if test -f /usr/local/include/sqlite.h; then
28298            SQLITE_INCDIR=/usr/local/include
28299            if test -d /usr/local/lib64; then
28300               SQLITE_LIBDIR=/usr/local/lib64
28301            else
28302               SQLITE_LIBDIR=/usr/local/lib
28303            fi
28304            SQLITE_BINDIR=/usr/local/bin
28305         elif test -f /usr/include/sqlite.h; then
28306            SQLITE_INCDIR=/usr/include
28307            if test -d /usr/lib64; then
28308               SQLITE_LIBDIR=/usr/lib64
28309            else
28310               SQLITE_LIBDIR=/usr/lib
28311            fi
28312            SQLITE_BINDIR=/usr/bin
28313         elif test -f $prefix/include/sqlite.h; then
28314            SQLITE_INCDIR=$prefix/include
28315            if test -d $prefix/lib64; then
28316               SQLITE_LIBDIR=$prefix/lib64
28317            else
28318               SQLITE_LIBDIR=$prefix/lib
28319            fi
28320            SQLITE_BINDIR=$prefix/bin
28321         else
28322            { echo "$as_me:$LINENO: result: no" >&5
28323 echo "${ECHO_T}no" >&6; }
28324            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28325 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28326    { (exit 1); exit 1; }; }
28327         fi
28328      else
28329         if test -f $withval/sqlite.h; then
28330            SQLITE_INCDIR=$withval
28331            SQLITE_LIBDIR=$withval
28332            SQLITE_BINDIR=$withval
28333         elif test -f $withval/include/sqlite.h; then
28334            SQLITE_INCDIR=$withval/include
28335            if test -d $withval/lib64; then
28336               SQLITE_LIBDIR=$withval/lib64
28337            else
28338               SQLITE_LIBDIR=$withval/lib
28339            fi
28340            SQLITE_BINDIR=$withval/bin
28341         else
28342            { echo "$as_me:$LINENO: result: no" >&5
28343 echo "${ECHO_T}no" >&6; }
28344            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28345 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28346    { (exit 1); exit 1; }; }
28347         fi
28348      fi
28349      SQL_INCLUDE=-I$SQLITE_INCDIR
28350      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28351      SQL_BINDIR=$SQLITE_BINDIR
28352      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28353
28354      cat >>confdefs.h <<\_ACEOF
28355 #define HAVE_SQLITE 1
28356 _ACEOF
28357
28358      { echo "$as_me:$LINENO: result: yes" >&5
28359 echo "${ECHO_T}yes" >&6; }
28360      db_found=yes
28361      support_sqlite=yes
28362      db_type=SQLite
28363      DB_TYPE=sqlite
28364
28365   else
28366      { echo "$as_me:$LINENO: result: no" >&5
28367 echo "${ECHO_T}no" >&6; }
28368   fi
28369
28370 else
28371
28372   { echo "$as_me:$LINENO: result: no" >&5
28373 echo "${ECHO_T}no" >&6; }
28374
28375 fi
28376
28377
28378
28379
28380
28381
28382
28383
28384 db_found=no
28385 { echo "$as_me:$LINENO: checking for DBI support" >&5
28386 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28387
28388 # Check whether --with-dbi was given.
28389 if test "${with_dbi+set}" = set; then
28390   withval=$with_dbi;
28391   if test "$withval" != "no"; then
28392      if test "$withval" = "yes"; then
28393         if test -f /usr/local/include/dbi/dbi.h; then
28394            DBI_INCDIR=/usr/local/dbi/include
28395            if test -d /usr/local/lib64; then
28396               DBI_LIBDIR=/usr/local/lib64
28397            else
28398               DBI_LIBDIR=/usr/local/lib
28399            fi
28400            DBI_BINDIR=/usr/local/bin
28401         elif test -f /usr/include/dbi/dbi.h; then
28402            DBI_INCDIR=/usr/include
28403            if test -d /usr/lib64; then
28404               DBI_LIBDIR=/usr/lib64
28405            else
28406               DBI_LIBDIR=/usr/lib
28407            fi
28408            DBI_BINDIR=/usr/bin
28409         elif test -f $prefix/include/dbi/dbi.h; then
28410            DBI_INCDIR=$prefix/include
28411            if test -d $prefix/lib64; then
28412               DBI_LIBDIR=$prefix/lib64
28413            else
28414               DBI_LIBDIR=$prefix/lib
28415            fi
28416            DBI_BINDIR=$prefix/bin
28417         else
28418            { echo "$as_me:$LINENO: result: no" >&5
28419 echo "${ECHO_T}no" >&6; }
28420            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28421 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28422    { (exit 1); exit 1; }; }
28423         fi
28424         if test -d /usr/local/lib/dbd; then
28425            DRIVERDIR=/usr/local/lib/dbd
28426            if test -d /usr/local/lib64/dbd; then
28427               DRIVERDIR=/usr/local/lib64/dbd
28428            else
28429               DRIVERDIR=/usr/local/lib/dbd
28430            fi
28431         elif test -d /usr/lib/dbd; then
28432            DRIVERDIR=/usr/lib/dbd
28433            if test -d /usr/lib64/dbd; then
28434               DRIVERDIR=/usr/lib64/dbd
28435            else
28436               DRIVERDIR=/usr/lib/dbd
28437            fi
28438         elif test -d $prefix/lib/dbd; then
28439            if test -d $prefix/lib64/dbd; then
28440               DRIVERDIR=$prefix/lib64/dbd
28441            else
28442               DRIVERDIR=$prefix/lib/dbd
28443            fi
28444         else
28445            { echo "$as_me:$LINENO: result: no" >&5
28446 echo "${ECHO_T}no" >&6; }
28447            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28448 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28449    { (exit 1); exit 1; }; }
28450         fi
28451      else
28452         if test -f $withval/dbi.h; then
28453            DBI_INCDIR=$withval
28454            DBI_LIBDIR=$withval
28455            DBI_BINDIR=$withval
28456         elif test -f $withval/include/dbi/dbi.h; then
28457            DBI_INCDIR=$withval/include
28458            if test -d $withval/lib64; then
28459               DBI_LIBDIR=$withval/lib64
28460            else
28461               DBI_LIBDIR=$withval/lib
28462            fi
28463            DBI_BINDIR=$withval/bin
28464         else
28465            { echo "$as_me:$LINENO: result: no" >&5
28466 echo "${ECHO_T}no" >&6; }
28467            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28468 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28469    { (exit 1); exit 1; }; }
28470         fi
28471         if test -d $withval/dbd; then
28472            DRIVERDIR=$withval/dbd
28473         elif test -d $withval/lib/; then
28474            if test -d $withval/lib64/dbd; then
28475               DRIVERDIR=$withval/lib64/dbd
28476            else
28477               DRIVERDIR=$withval/lib/dbd
28478            fi
28479         else
28480            { echo "$as_me:$LINENO: result: no" >&5
28481 echo "${ECHO_T}no" >&6; }
28482            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28483 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28484    { (exit 1); exit 1; }; }
28485         fi
28486      fi
28487      SQL_INCLUDE=-I$DBI_INCDIR
28488      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28489      SQL_BINDIR=$DBI_BINDIR
28490      SQL_LIB=$DBI_LIBDIR/libdbi.a
28491      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28492
28493
28494 cat >>confdefs.h <<\_ACEOF
28495 #define HAVE_DBI 1
28496 _ACEOF
28497
28498      { echo "$as_me:$LINENO: result: yes" >&5
28499 echo "${ECHO_T}yes" >&6; }
28500      db_found=yes
28501      support_dbi=yes
28502      db_type=DBI
28503      DB_TYPE=dbi
28504      uncomment_dbi=" "
28505
28506   else
28507      { echo "$as_me:$LINENO: result: no" >&5
28508 echo "${ECHO_T}no" >&6; }
28509   fi
28510
28511 else
28512
28513   { echo "$as_me:$LINENO: result: no" >&5
28514 echo "${ECHO_T}no" >&6; }
28515
28516 fi
28517
28518
28519
28520
28521
28522
28523
28524
28525
28526
28527 db_found=no
28528 db_prog=no
28529 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28530 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28531
28532 # Check whether --with-dbi-driver was given.
28533 if test "${with_dbi_driver+set}" = set; then
28534   withval=$with_dbi_driver;
28535   if test "$withval" != "no"; then
28536      case $withval in
28537         "mysql")
28538            db_prog="mysql"
28539            if test -f /usr/local/mysql/bin/mysql; then
28540               SQL_BINDIR=/usr/local/mysql/bin
28541               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28542                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28543                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28544               else
28545                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28546               fi
28547            elif test -f /usr/bin/mysql; then
28548               SQL_BINDIR=/usr/bin
28549               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28550                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28551                   SQL_LIBDIR=/usr/lib64/mysql
28552               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28553                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28554                   SQL_LIBDIR=/usr/lib/mysql
28555               else
28556                   SQL_LIBDIR=/usr/lib
28557               fi
28558            elif test -f /usr/local/bin/mysql; then
28559               SQL_BINDIR=/usr/local/bin
28560               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28561                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28562                   SQL_LIBDIR=/usr/local/lib64/mysql
28563               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28564                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28565                   SQL_LIBDIR=/usr/local/lib/mysql
28566               else
28567                   SQL_LIBDIR=/usr/local/lib
28568               fi
28569            elif test -f $withval/bin/mysql; then
28570               SQL_BINDIR=$withval/bin
28571               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28572                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28573                   SQL_LIBDIR=$withval/lib64/mysql
28574               elif test -f $withval/lib64/libmysqlclient_r.a \
28575                   -o -f $withval/lib64/libmysqlclient_r.so; then
28576                   SQL_LIBDIR=$withval/lib64
28577               elif test -f $withval/lib/libmysqlclient_r.a \
28578                   -o -f $withval/lib/libmysqlclient_r.so; then
28579                   SQL_LIBDIR=$withval/lib/
28580               else
28581                   SQL_LIBDIR=$withval/lib/mysql
28582               fi
28583            else
28584               { echo "$as_me:$LINENO: result: no" >&5
28585 echo "${ECHO_T}no" >&6; }
28586               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28587 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28588    { (exit 1); exit 1; }; }
28589            fi
28590            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28591         ;;
28592         "postgresql")
28593            db_prog="postgresql"
28594            PG_CONFIG=`which pg_config`
28595            if test -n "$PG_CONFIG"; then
28596               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28597               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28598            elif test -f /usr/local/bin/psql; then
28599               SQL_BINDIR=/usr/local/bin
28600               if test -d /usr/local/lib64; then
28601                  SQL_LIBDIR=/usr/local/lib64
28602               else
28603                  SQL_LIBDIR=/usr/local/lib
28604               fi
28605            elif test -f /usr/bin/psql; then
28606               SQL_BINDIR=/usr/local/bin
28607               if test -d /usr/lib64/postgresql; then
28608                  SQL_LIBDIR=/usr/lib64/postgresql
28609               elif test -d /usr/lib/postgresql; then
28610                  SQL_LIBDIR=/usr/lib/postgresql
28611               elif test -d /usr/lib64; then
28612                  SQL_LIBDIR=/usr/lib64
28613               else
28614                  SQL_LIBDIR=/usr/lib
28615               fi
28616            elif test -f $withval/bin/psql; then
28617               SQL_BINDIR=$withval/bin
28618               if test -d $withval/lib64; then
28619                  SQL_LIBDIR=$withval/lib64
28620               else
28621                  SQL_LIBDIR=$withval/lib
28622               fi
28623            else
28624               { echo "$as_me:$LINENO: result: no" >&5
28625 echo "${ECHO_T}no" >&6; }
28626               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28627 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28628    { (exit 1); exit 1; }; }
28629            fi
28630            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28631         ;;
28632         "sqlite")
28633            db_prog="sqlite"
28634            if test -f /usr/local/bin/sqlite; then
28635               SQL_BINDIR=/usr/local/bin
28636               if test -d /usr/local/lib64; then
28637                  SQL_LIBDIR=/usr/local/lib64
28638               else
28639                  SQL_LIBDIR=/usr/local/lib
28640               fi
28641            elif test -f /usr/bin/sqlite; then
28642               SQL_BINDIR=/usr/bin
28643               if test -d /usr/lib64; then
28644                  SQL_LIBDIR=/usr/lib64
28645               else
28646                  SQL_LIBDIR=/usr/lib
28647               fi
28648            elif test -f $withval/bin/sqlite; then
28649               SQL_BINDIR=$withval/bin
28650               if test -d $withval/lib64; then
28651                  SQL_LIBDIR=$withval/lib64
28652               else
28653                  SQL_LIBDIR=$withval/lib
28654               fi
28655            else
28656               { echo "$as_me:$LINENO: result: no" >&5
28657 echo "${ECHO_T}no" >&6; }
28658               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28659 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28660    { (exit 1); exit 1; }; }
28661            fi
28662            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28663         ;;
28664         "sqlite3")
28665            db_prog="sqlite3"
28666            if test -f /usr/local/bin/sqlite3; then
28667               SQL_BINDIR=/usr/local/bin
28668               if test -d /usr/local/lib64; then
28669                  SQL_LIBDIR=/usr/local/lib64
28670               else
28671                  SQL_LIBDIR=/usr/local/lib
28672               fi
28673            elif test -f /usr/bin/sqlite3; then
28674               SQL_BINDIR=/usr/bin
28675               if test -d /usr/lib64; then
28676                  SQL_LIBDIR=/usr/lib64
28677               else
28678                  SQL_LIBDIR=/usr/lib
28679               fi
28680            elif test -f $withval/bin/sqlite3; then
28681               SQL_BINDIR=$withval/bin
28682               if test -d $withval/lib64; then
28683                  SQL_LIBDIR=$withval/lib64
28684               else
28685                  SQL_LIBDIR=$withval/lib
28686               fi
28687            else
28688               { echo "$as_me:$LINENO: result: no" >&5
28689 echo "${ECHO_T}no" >&6; }
28690               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28691 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28692    { (exit 1); exit 1; }; }
28693            fi
28694            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28695         ;;
28696         *)
28697            { echo "$as_me:$LINENO: result: no" >&5
28698 echo "${ECHO_T}no" >&6; }
28699            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28700 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28701    { (exit 1); exit 1; }; }
28702         ;;
28703      esac
28704
28705      { echo "$as_me:$LINENO: result: yes" >&5
28706 echo "${ECHO_T}yes" >&6; }
28707      DB_PROG=$db_prog
28708   else
28709      { echo "$as_me:$LINENO: result: no" >&5
28710 echo "${ECHO_T}no" >&6; }
28711   fi
28712
28713 else
28714
28715   { echo "$as_me:$LINENO: result: no" >&5
28716 echo "${ECHO_T}no" >&6; }
28717
28718 fi
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728
28729 support_batch_insert=no
28730 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28731 pkg=$?
28732 if test $pkg = 0; then
28733    support_batch_insert=yes
28734    # Check whether --enable-batch-insert was given.
28735 if test "${enable_batch_insert+set}" = set; then
28736   enableval=$enable_batch_insert;
28737           if test x$enableval = xno; then
28738              support_batch_insert=no
28739           else
28740              support_batch_insert=yes
28741           fi
28742
28743
28744 fi
28745
28746 fi
28747
28748 if test x$DB_TYPE = xpostgresql; then
28749    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28750    pkg=$?
28751    if test $pkg != 0; then
28752       support_batch_insert=no
28753    fi
28754 fi
28755
28756 if test x$DB_TYPE = xdbi; then
28757    DB_TYPE=$DB_PROG
28758    db_type=$DB_PROG
28759    pkg=1
28760       if test $DB_PROG = postgresql; then
28761       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28762       pkg=$?
28763    fi
28764
28765    if test $DB_PROG = mysql; then
28766       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28767       pkg=$?
28768    fi
28769
28770    if test $DB_PROG = sqlite3; then
28771       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28772       pkg=$?
28773    fi
28774
28775    if test $pkg = 0; then
28776       # Check whether --enable-batch-insert was given.
28777 if test "${enable_batch_insert+set}" = set; then
28778   enableval=$enable_batch_insert;
28779              if test x$enableval = xno; then
28780                 support_batch_insert=no
28781              else
28782                 support_batch_insert=yes
28783              fi
28784
28785
28786 fi
28787
28788    fi
28789 else
28790       uncomment_dbi="#"
28791 fi
28792
28793
28794
28795 if test $support_batch_insert = yes ; then
28796
28797 cat >>confdefs.h <<\_ACEOF
28798 #define HAVE_BATCH_FILE_INSERT 1
28799 _ACEOF
28800
28801 fi
28802
28803 cat >>confdefs.h <<\_ACEOF
28804 #define PROTOTYPES 1
28805 _ACEOF
28806
28807
28808 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28809    if test -z "$CCOPTS"; then
28810       CCOPTS='-g -O2 -Wall'
28811    fi
28812    CFLAGS="$CCOPTS"
28813 fi
28814
28815
28816
28817 largefile_support="no"
28818
28819    # Check whether --enable-largefile was given.
28820 if test "${enable_largefile+set}" = set; then
28821   enableval=$enable_largefile;
28822 fi
28823
28824    if test "$enable_largefile" != no; then
28825      if test -n "$ac_tool_prefix"; then
28826   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28827 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28830 if test "${ac_cv_prog_GETCONF+set}" = set; then
28831   echo $ECHO_N "(cached) $ECHO_C" >&6
28832 else
28833   if test -n "$GETCONF"; then
28834   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28835 else
28836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28837 for as_dir in $PATH
28838 do
28839   IFS=$as_save_IFS
28840   test -z "$as_dir" && as_dir=.
28841   for ac_exec_ext in '' $ac_executable_extensions; do
28842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28843     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28845     break 2
28846   fi
28847 done
28848 done
28849 IFS=$as_save_IFS
28850
28851 fi
28852 fi
28853 GETCONF=$ac_cv_prog_GETCONF
28854 if test -n "$GETCONF"; then
28855   { echo "$as_me:$LINENO: result: $GETCONF" >&5
28856 echo "${ECHO_T}$GETCONF" >&6; }
28857 else
28858   { echo "$as_me:$LINENO: result: no" >&5
28859 echo "${ECHO_T}no" >&6; }
28860 fi
28861
28862
28863 fi
28864 if test -z "$ac_cv_prog_GETCONF"; then
28865   ac_ct_GETCONF=$GETCONF
28866   # Extract the first word of "getconf", so it can be a program name with args.
28867 set dummy getconf; ac_word=$2
28868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28870 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28871   echo $ECHO_N "(cached) $ECHO_C" >&6
28872 else
28873   if test -n "$ac_ct_GETCONF"; then
28874   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28875 else
28876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28877 for as_dir in $PATH
28878 do
28879   IFS=$as_save_IFS
28880   test -z "$as_dir" && as_dir=.
28881   for ac_exec_ext in '' $ac_executable_extensions; do
28882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28883     ac_cv_prog_ac_ct_GETCONF="getconf"
28884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28885     break 2
28886   fi
28887 done
28888 done
28889 IFS=$as_save_IFS
28890
28891 fi
28892 fi
28893 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28894 if test -n "$ac_ct_GETCONF"; then
28895   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28896 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28897 else
28898   { echo "$as_me:$LINENO: result: no" >&5
28899 echo "${ECHO_T}no" >&6; }
28900 fi
28901
28902   if test "x$ac_ct_GETCONF" = x; then
28903     GETCONF=""
28904   else
28905     case $cross_compiling:$ac_tool_warned in
28906 yes:)
28907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28908 whose name does not start with the host triplet.  If you think this
28909 configuration is useful to you, please write to autoconf@gnu.org." >&5
28910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28911 whose name does not start with the host triplet.  If you think this
28912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28913 ac_tool_warned=yes ;;
28914 esac
28915     GETCONF=$ac_ct_GETCONF
28916   fi
28917 else
28918   GETCONF="$ac_cv_prog_GETCONF"
28919 fi
28920
28921      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28922 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28923 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28924   echo $ECHO_N "(cached) $ECHO_C" >&6
28925 else
28926   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28927         ac_cv_sys_largefile_CFLAGS=no
28928         case "$host_os" in
28929            # IRIX 6.2 and later require cc -n32.
28930            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28931              if test "$GCC" != yes; then
28932                ac_cv_sys_largefile_CFLAGS=-n32
28933              fi
28934              ac_save_CC="$CC"
28935              CC="$CC $ac_cv_sys_largefile_CFLAGS"
28936              cat >conftest.$ac_ext <<_ACEOF
28937 /* confdefs.h.  */
28938 _ACEOF
28939 cat confdefs.h >>conftest.$ac_ext
28940 cat >>conftest.$ac_ext <<_ACEOF
28941 /* end confdefs.h.  */
28942
28943 int
28944 main ()
28945 {
28946
28947   ;
28948   return 0;
28949 }
28950 _ACEOF
28951 rm -f conftest.$ac_objext conftest$ac_exeext
28952 if { (ac_try="$ac_link"
28953 case "(($ac_try" in
28954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28955   *) ac_try_echo=$ac_try;;
28956 esac
28957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28958   (eval "$ac_link") 2>conftest.er1
28959   ac_status=$?
28960   grep -v '^ *+' conftest.er1 >conftest.err
28961   rm -f conftest.er1
28962   cat conftest.err >&5
28963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964   (exit $ac_status); } && {
28965          test -z "$ac_c_werror_flag" ||
28966          test ! -s conftest.err
28967        } && test -s conftest$ac_exeext &&
28968        $as_test_x conftest$ac_exeext; then
28969   :
28970 else
28971   echo "$as_me: failed program was:" >&5
28972 sed 's/^/| /' conftest.$ac_ext >&5
28973
28974         ac_cv_sys_largefile_CFLAGS=no
28975 fi
28976
28977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28978       conftest$ac_exeext conftest.$ac_ext
28979              CC="$ac_save_CC"
28980            esac
28981       }
28982 fi
28983 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28984 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28985      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28986 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28987 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28988   echo $ECHO_N "(cached) $ECHO_C" >&6
28989 else
28990   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28991         ac_cv_sys_largefile_LDFLAGS=no
28992
28993       }
28994 fi
28995 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
28996 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
28997      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
28998 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
28999 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29000   echo $ECHO_N "(cached) $ECHO_C" >&6
29001 else
29002   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29003         ac_cv_sys_largefile_LIBS=no
29004
29005       }
29006 fi
29007 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29008 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29009
29010      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29011        case "$ac_flag" in
29012        no) ;;
29013        -D_FILE_OFFSET_BITS=*) ;;
29014        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29015        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29016        -D?* | -I?*)
29017          case "$ac_flag" in
29018    no) ;;
29019    ?*)
29020      case "$CPPFLAGS" in
29021      '') CPPFLAGS="$ac_flag" ;;
29022      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29023      esac ;;
29024    esac ;;
29025        *)
29026          case "$ac_flag" in
29027    no) ;;
29028    ?*)
29029      case "$CFLAGS" in
29030      '') CFLAGS="$ac_flag" ;;
29031      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29032      esac ;;
29033    esac ;;
29034        esac
29035      done
29036      case "$ac_cv_sys_largefile_LDFLAGS" in
29037    no) ;;
29038    ?*)
29039      case "$LDFLAGS" in
29040      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29041      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29042      esac ;;
29043    esac
29044      case "$ac_cv_sys_largefile_LIBS" in
29045    no) ;;
29046    ?*)
29047      case "$LIBS" in
29048      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29049      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29050      esac ;;
29051    esac
29052      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29053 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29054 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29055   echo $ECHO_N "(cached) $ECHO_C" >&6
29056 else
29057   ac_cv_sys_file_offset_bits=no
29058       ac_cv_sys_file_offset_bits=64
29059       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29060         case "$ac_flag" in
29061         -D_FILE_OFFSET_BITS)
29062           ac_cv_sys_file_offset_bits=1 ;;
29063         -D_FILE_OFFSET_BITS=*)
29064           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29065         esac
29066       done
29067
29068 fi
29069 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29070 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29071    if test "$ac_cv_sys_file_offset_bits" != no; then
29072
29073 cat >>confdefs.h <<_ACEOF
29074 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29075 _ACEOF
29076
29077    fi
29078      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29079 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29080 if test "${ac_cv_sys_largefile_source+set}" = set; then
29081   echo $ECHO_N "(cached) $ECHO_C" >&6
29082 else
29083   ac_cv_sys_largefile_source=no
29084       ac_cv_sys_largefile_source=1
29085       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29086         case "$ac_flag" in
29087         -D_LARGEFILE_SOURCE)
29088           ac_cv_sys_largefile_source=1 ;;
29089         -D_LARGEFILE_SOURCE=*)
29090           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29091         esac
29092       done
29093
29094 fi
29095 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29096 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29097    if test "$ac_cv_sys_largefile_source" != no; then
29098
29099 cat >>confdefs.h <<_ACEOF
29100 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29101 _ACEOF
29102
29103    fi
29104      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29105 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29106 if test "${ac_cv_sys_large_files+set}" = set; then
29107   echo $ECHO_N "(cached) $ECHO_C" >&6
29108 else
29109   ac_cv_sys_large_files=no
29110       ac_cv_sys_large_files=1
29111       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29112         case "$ac_flag" in
29113         -D_LARGE_FILES)
29114           ac_cv_sys_large_files=1 ;;
29115         -D_LARGE_FILES=*)
29116           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29117         esac
29118       done
29119
29120 fi
29121 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29122 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29123    if test "$ac_cv_sys_large_files" != no; then
29124
29125 cat >>confdefs.h <<_ACEOF
29126 #define _LARGE_FILES $ac_cv_sys_large_files
29127 _ACEOF
29128
29129    fi
29130    fi
29131
29132
29133 { echo "$as_me:$LINENO: checking for X" >&5
29134 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29135
29136
29137 # Check whether --with-x was given.
29138 if test "${with_x+set}" = set; then
29139   withval=$with_x;
29140 fi
29141
29142 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29143 if test "x$with_x" = xno; then
29144   # The user explicitly disabled X.
29145   have_x=disabled
29146 else
29147   case $x_includes,$x_libraries in #(
29148     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29149 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29150    { (exit 1); exit 1; }; };; #(
29151     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29152   echo $ECHO_N "(cached) $ECHO_C" >&6
29153 else
29154   # One or both of the vars are not set, and there is no cached value.
29155 ac_x_includes=no ac_x_libraries=no
29156 rm -f -r conftest.dir
29157 if mkdir conftest.dir; then
29158   cd conftest.dir
29159   cat >Imakefile <<'_ACEOF'
29160 incroot:
29161         @echo incroot='${INCROOT}'
29162 usrlibdir:
29163         @echo usrlibdir='${USRLIBDIR}'
29164 libdir:
29165         @echo libdir='${LIBDIR}'
29166 _ACEOF
29167   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29168     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29169     for ac_var in incroot usrlibdir libdir; do
29170       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29171     done
29172     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29173     for ac_extension in a so sl; do
29174       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29175          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29176         ac_im_usrlibdir=$ac_im_libdir; break
29177       fi
29178     done
29179     # Screen out bogus values from the imake configuration.  They are
29180     # bogus both because they are the default anyway, and because
29181     # using them would break gcc on systems where it needs fixed includes.
29182     case $ac_im_incroot in
29183         /usr/include) ac_x_includes= ;;
29184         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29185     esac
29186     case $ac_im_usrlibdir in
29187         /usr/lib | /lib) ;;
29188         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29189     esac
29190   fi
29191   cd ..
29192   rm -f -r conftest.dir
29193 fi
29194
29195 # Standard set of common directories for X headers.
29196 # Check X11 before X11Rn because it is often a symlink to the current release.
29197 ac_x_header_dirs='
29198 /usr/X11/include
29199 /usr/X11R6/include
29200 /usr/X11R5/include
29201 /usr/X11R4/include
29202
29203 /usr/include/X11
29204 /usr/include/X11R6
29205 /usr/include/X11R5
29206 /usr/include/X11R4
29207
29208 /usr/local/X11/include
29209 /usr/local/X11R6/include
29210 /usr/local/X11R5/include
29211 /usr/local/X11R4/include
29212
29213 /usr/local/include/X11
29214 /usr/local/include/X11R6
29215 /usr/local/include/X11R5
29216 /usr/local/include/X11R4
29217
29218 /usr/X386/include
29219 /usr/x386/include
29220 /usr/XFree86/include/X11
29221
29222 /usr/include
29223 /usr/local/include
29224 /usr/unsupported/include
29225 /usr/athena/include
29226 /usr/local/x11r5/include
29227 /usr/lpp/Xamples/include
29228
29229 /usr/openwin/include
29230 /usr/openwin/share/include'
29231
29232 if test "$ac_x_includes" = no; then
29233   # Guess where to find include files, by looking for Xlib.h.
29234   # First, try using that file with no special directory specified.
29235   cat >conftest.$ac_ext <<_ACEOF
29236 /* confdefs.h.  */
29237 _ACEOF
29238 cat confdefs.h >>conftest.$ac_ext
29239 cat >>conftest.$ac_ext <<_ACEOF
29240 /* end confdefs.h.  */
29241 #include <X11/Xlib.h>
29242 _ACEOF
29243 if { (ac_try="$ac_cpp conftest.$ac_ext"
29244 case "(($ac_try" in
29245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29246   *) ac_try_echo=$ac_try;;
29247 esac
29248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29249   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29250   ac_status=$?
29251   grep -v '^ *+' conftest.er1 >conftest.err
29252   rm -f conftest.er1
29253   cat conftest.err >&5
29254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255   (exit $ac_status); } >/dev/null && {
29256          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29257          test ! -s conftest.err
29258        }; then
29259   # We can compile using X headers with no special include directory.
29260 ac_x_includes=
29261 else
29262   echo "$as_me: failed program was:" >&5
29263 sed 's/^/| /' conftest.$ac_ext >&5
29264
29265   for ac_dir in $ac_x_header_dirs; do
29266   if test -r "$ac_dir/X11/Xlib.h"; then
29267     ac_x_includes=$ac_dir
29268     break
29269   fi
29270 done
29271 fi
29272
29273 rm -f conftest.err conftest.$ac_ext
29274 fi # $ac_x_includes = no
29275
29276 if test "$ac_x_libraries" = no; then
29277   # Check for the libraries.
29278   # See if we find them without any special options.
29279   # Don't add to $LIBS permanently.
29280   ac_save_LIBS=$LIBS
29281   LIBS="-lX11 $LIBS"
29282   cat >conftest.$ac_ext <<_ACEOF
29283 /* confdefs.h.  */
29284 _ACEOF
29285 cat confdefs.h >>conftest.$ac_ext
29286 cat >>conftest.$ac_ext <<_ACEOF
29287 /* end confdefs.h.  */
29288 #include <X11/Xlib.h>
29289 int
29290 main ()
29291 {
29292 XrmInitialize ()
29293   ;
29294   return 0;
29295 }
29296 _ACEOF
29297 rm -f conftest.$ac_objext conftest$ac_exeext
29298 if { (ac_try="$ac_link"
29299 case "(($ac_try" in
29300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301   *) ac_try_echo=$ac_try;;
29302 esac
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304   (eval "$ac_link") 2>conftest.er1
29305   ac_status=$?
29306   grep -v '^ *+' conftest.er1 >conftest.err
29307   rm -f conftest.er1
29308   cat conftest.err >&5
29309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310   (exit $ac_status); } && {
29311          test -z "$ac_c_werror_flag" ||
29312          test ! -s conftest.err
29313        } && test -s conftest$ac_exeext &&
29314        $as_test_x conftest$ac_exeext; then
29315   LIBS=$ac_save_LIBS
29316 # We can link X programs with no special library path.
29317 ac_x_libraries=
29318 else
29319   echo "$as_me: failed program was:" >&5
29320 sed 's/^/| /' conftest.$ac_ext >&5
29321
29322         LIBS=$ac_save_LIBS
29323 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29324 do
29325   # Don't even attempt the hair of trying to link an X program!
29326   for ac_extension in a so sl; do
29327     if test -r "$ac_dir/libX11.$ac_extension"; then
29328       ac_x_libraries=$ac_dir
29329       break 2
29330     fi
29331   done
29332 done
29333 fi
29334
29335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29336       conftest$ac_exeext conftest.$ac_ext
29337 fi # $ac_x_libraries = no
29338
29339 case $ac_x_includes,$ac_x_libraries in #(
29340   no,* | *,no | *\'*)
29341     # Didn't find X, or a directory has "'" in its name.
29342     ac_cv_have_x="have_x=no";; #(
29343   *)
29344     # Record where we found X for the cache.
29345     ac_cv_have_x="have_x=yes\
29346         ac_x_includes='$ac_x_includes'\
29347         ac_x_libraries='$ac_x_libraries'"
29348 esac
29349 fi
29350 ;; #(
29351     *) have_x=yes;;
29352   esac
29353   eval "$ac_cv_have_x"
29354 fi # $with_x != no
29355
29356 if test "$have_x" != yes; then
29357   { echo "$as_me:$LINENO: result: $have_x" >&5
29358 echo "${ECHO_T}$have_x" >&6; }
29359   no_x=yes
29360 else
29361   # If each of the values was on the command line, it overrides each guess.
29362   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29363   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29364   # Update the cache value to reflect the command line values.
29365   ac_cv_have_x="have_x=yes\
29366         ac_x_includes='$x_includes'\
29367         ac_x_libraries='$x_libraries'"
29368   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29369 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29370 fi
29371
29372 if test "$no_x" = yes; then
29373   # Not all programs may use this symbol, but it does not hurt to define it.
29374
29375 cat >>confdefs.h <<\_ACEOF
29376 #define X_DISPLAY_MISSING 1
29377 _ACEOF
29378
29379   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29380 else
29381   if test -n "$x_includes"; then
29382     X_CFLAGS="$X_CFLAGS -I$x_includes"
29383   fi
29384
29385   # It would also be nice to do this for all -L options, not just this one.
29386   if test -n "$x_libraries"; then
29387     X_LIBS="$X_LIBS -L$x_libraries"
29388     # For Solaris; some versions of Sun CC require a space after -R and
29389     # others require no space.  Words are not sufficient . . . .
29390     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29391 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29392     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29393     ac_xsave_c_werror_flag=$ac_c_werror_flag
29394     ac_c_werror_flag=yes
29395     cat >conftest.$ac_ext <<_ACEOF
29396 /* confdefs.h.  */
29397 _ACEOF
29398 cat confdefs.h >>conftest.$ac_ext
29399 cat >>conftest.$ac_ext <<_ACEOF
29400 /* end confdefs.h.  */
29401
29402 int
29403 main ()
29404 {
29405
29406   ;
29407   return 0;
29408 }
29409 _ACEOF
29410 rm -f conftest.$ac_objext conftest$ac_exeext
29411 if { (ac_try="$ac_link"
29412 case "(($ac_try" in
29413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29414   *) ac_try_echo=$ac_try;;
29415 esac
29416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29417   (eval "$ac_link") 2>conftest.er1
29418   ac_status=$?
29419   grep -v '^ *+' conftest.er1 >conftest.err
29420   rm -f conftest.er1
29421   cat conftest.err >&5
29422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423   (exit $ac_status); } && {
29424          test -z "$ac_c_werror_flag" ||
29425          test ! -s conftest.err
29426        } && test -s conftest$ac_exeext &&
29427        $as_test_x conftest$ac_exeext; then
29428   { echo "$as_me:$LINENO: result: no" >&5
29429 echo "${ECHO_T}no" >&6; }
29430        X_LIBS="$X_LIBS -R$x_libraries"
29431 else
29432   echo "$as_me: failed program was:" >&5
29433 sed 's/^/| /' conftest.$ac_ext >&5
29434
29435         LIBS="$ac_xsave_LIBS -R $x_libraries"
29436        cat >conftest.$ac_ext <<_ACEOF
29437 /* confdefs.h.  */
29438 _ACEOF
29439 cat confdefs.h >>conftest.$ac_ext
29440 cat >>conftest.$ac_ext <<_ACEOF
29441 /* end confdefs.h.  */
29442
29443 int
29444 main ()
29445 {
29446
29447   ;
29448   return 0;
29449 }
29450 _ACEOF
29451 rm -f conftest.$ac_objext conftest$ac_exeext
29452 if { (ac_try="$ac_link"
29453 case "(($ac_try" in
29454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29455   *) ac_try_echo=$ac_try;;
29456 esac
29457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29458   (eval "$ac_link") 2>conftest.er1
29459   ac_status=$?
29460   grep -v '^ *+' conftest.er1 >conftest.err
29461   rm -f conftest.er1
29462   cat conftest.err >&5
29463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464   (exit $ac_status); } && {
29465          test -z "$ac_c_werror_flag" ||
29466          test ! -s conftest.err
29467        } && test -s conftest$ac_exeext &&
29468        $as_test_x conftest$ac_exeext; then
29469   { echo "$as_me:$LINENO: result: yes" >&5
29470 echo "${ECHO_T}yes" >&6; }
29471           X_LIBS="$X_LIBS -R $x_libraries"
29472 else
29473   echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.$ac_ext >&5
29475
29476         { echo "$as_me:$LINENO: result: neither works" >&5
29477 echo "${ECHO_T}neither works" >&6; }
29478 fi
29479
29480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29481       conftest$ac_exeext conftest.$ac_ext
29482 fi
29483
29484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29485       conftest$ac_exeext conftest.$ac_ext
29486     ac_c_werror_flag=$ac_xsave_c_werror_flag
29487     LIBS=$ac_xsave_LIBS
29488   fi
29489
29490   # Check for system-dependent libraries X programs must link with.
29491   # Do this before checking for the system-independent R6 libraries
29492   # (-lICE), since we may need -lsocket or whatever for X linking.
29493
29494   if test "$ISC" = yes; then
29495     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29496   else
29497     # Martyn Johnson says this is needed for Ultrix, if the X
29498     # libraries were built with DECnet support.  And Karl Berry says
29499     # the Alpha needs dnet_stub (dnet does not exist).
29500     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29501     cat >conftest.$ac_ext <<_ACEOF
29502 /* confdefs.h.  */
29503 _ACEOF
29504 cat confdefs.h >>conftest.$ac_ext
29505 cat >>conftest.$ac_ext <<_ACEOF
29506 /* end confdefs.h.  */
29507
29508 /* Override any GCC internal prototype to avoid an error.
29509    Use char because int might match the return type of a GCC
29510    builtin and then its argument prototype would still apply.  */
29511 #ifdef __cplusplus
29512 extern "C"
29513 #endif
29514 char XOpenDisplay ();
29515 int
29516 main ()
29517 {
29518 return XOpenDisplay ();
29519   ;
29520   return 0;
29521 }
29522 _ACEOF
29523 rm -f conftest.$ac_objext conftest$ac_exeext
29524 if { (ac_try="$ac_link"
29525 case "(($ac_try" in
29526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527   *) ac_try_echo=$ac_try;;
29528 esac
29529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530   (eval "$ac_link") 2>conftest.er1
29531   ac_status=$?
29532   grep -v '^ *+' conftest.er1 >conftest.err
29533   rm -f conftest.er1
29534   cat conftest.err >&5
29535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536   (exit $ac_status); } && {
29537          test -z "$ac_c_werror_flag" ||
29538          test ! -s conftest.err
29539        } && test -s conftest$ac_exeext &&
29540        $as_test_x conftest$ac_exeext; then
29541   :
29542 else
29543   echo "$as_me: failed program was:" >&5
29544 sed 's/^/| /' conftest.$ac_ext >&5
29545
29546         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29547 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29548 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29549   echo $ECHO_N "(cached) $ECHO_C" >&6
29550 else
29551   ac_check_lib_save_LIBS=$LIBS
29552 LIBS="-ldnet  $LIBS"
29553 cat >conftest.$ac_ext <<_ACEOF
29554 /* confdefs.h.  */
29555 _ACEOF
29556 cat confdefs.h >>conftest.$ac_ext
29557 cat >>conftest.$ac_ext <<_ACEOF
29558 /* end confdefs.h.  */
29559
29560 /* Override any GCC internal prototype to avoid an error.
29561    Use char because int might match the return type of a GCC
29562    builtin and then its argument prototype would still apply.  */
29563 #ifdef __cplusplus
29564 extern "C"
29565 #endif
29566 char dnet_ntoa ();
29567 int
29568 main ()
29569 {
29570 return dnet_ntoa ();
29571   ;
29572   return 0;
29573 }
29574 _ACEOF
29575 rm -f conftest.$ac_objext conftest$ac_exeext
29576 if { (ac_try="$ac_link"
29577 case "(($ac_try" in
29578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29579   *) ac_try_echo=$ac_try;;
29580 esac
29581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29582   (eval "$ac_link") 2>conftest.er1
29583   ac_status=$?
29584   grep -v '^ *+' conftest.er1 >conftest.err
29585   rm -f conftest.er1
29586   cat conftest.err >&5
29587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29588   (exit $ac_status); } && {
29589          test -z "$ac_c_werror_flag" ||
29590          test ! -s conftest.err
29591        } && test -s conftest$ac_exeext &&
29592        $as_test_x conftest$ac_exeext; then
29593   ac_cv_lib_dnet_dnet_ntoa=yes
29594 else
29595   echo "$as_me: failed program was:" >&5
29596 sed 's/^/| /' conftest.$ac_ext >&5
29597
29598         ac_cv_lib_dnet_dnet_ntoa=no
29599 fi
29600
29601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29602       conftest$ac_exeext conftest.$ac_ext
29603 LIBS=$ac_check_lib_save_LIBS
29604 fi
29605 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29606 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29607 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29608   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29609 fi
29610
29611     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29612       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29613 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29614 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29615   echo $ECHO_N "(cached) $ECHO_C" >&6
29616 else
29617   ac_check_lib_save_LIBS=$LIBS
29618 LIBS="-ldnet_stub  $LIBS"
29619 cat >conftest.$ac_ext <<_ACEOF
29620 /* confdefs.h.  */
29621 _ACEOF
29622 cat confdefs.h >>conftest.$ac_ext
29623 cat >>conftest.$ac_ext <<_ACEOF
29624 /* end confdefs.h.  */
29625
29626 /* Override any GCC internal prototype to avoid an error.
29627    Use char because int might match the return type of a GCC
29628    builtin and then its argument prototype would still apply.  */
29629 #ifdef __cplusplus
29630 extern "C"
29631 #endif
29632 char dnet_ntoa ();
29633 int
29634 main ()
29635 {
29636 return dnet_ntoa ();
29637   ;
29638   return 0;
29639 }
29640 _ACEOF
29641 rm -f conftest.$ac_objext conftest$ac_exeext
29642 if { (ac_try="$ac_link"
29643 case "(($ac_try" in
29644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645   *) ac_try_echo=$ac_try;;
29646 esac
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648   (eval "$ac_link") 2>conftest.er1
29649   ac_status=$?
29650   grep -v '^ *+' conftest.er1 >conftest.err
29651   rm -f conftest.er1
29652   cat conftest.err >&5
29653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654   (exit $ac_status); } && {
29655          test -z "$ac_c_werror_flag" ||
29656          test ! -s conftest.err
29657        } && test -s conftest$ac_exeext &&
29658        $as_test_x conftest$ac_exeext; then
29659   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29660 else
29661   echo "$as_me: failed program was:" >&5
29662 sed 's/^/| /' conftest.$ac_ext >&5
29663
29664         ac_cv_lib_dnet_stub_dnet_ntoa=no
29665 fi
29666
29667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29668       conftest$ac_exeext conftest.$ac_ext
29669 LIBS=$ac_check_lib_save_LIBS
29670 fi
29671 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29672 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29673 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29674   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29675 fi
29676
29677     fi
29678 fi
29679
29680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29681       conftest$ac_exeext conftest.$ac_ext
29682     LIBS="$ac_xsave_LIBS"
29683
29684     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29685     # to get the SysV transport functions.
29686     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29687     # needs -lnsl.
29688     # The nsl library prevents programs from opening the X display
29689     # on Irix 5.2, according to T.E. Dickey.
29690     # The functions gethostbyname, getservbyname, and inet_addr are
29691     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29692     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29693 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29694 if test "${ac_cv_func_gethostbyname+set}" = set; then
29695   echo $ECHO_N "(cached) $ECHO_C" >&6
29696 else
29697   cat >conftest.$ac_ext <<_ACEOF
29698 /* confdefs.h.  */
29699 _ACEOF
29700 cat confdefs.h >>conftest.$ac_ext
29701 cat >>conftest.$ac_ext <<_ACEOF
29702 /* end confdefs.h.  */
29703 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29705 #define gethostbyname innocuous_gethostbyname
29706
29707 /* System header to define __stub macros and hopefully few prototypes,
29708     which can conflict with char gethostbyname (); below.
29709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29710     <limits.h> exists even on freestanding compilers.  */
29711
29712 #ifdef __STDC__
29713 # include <limits.h>
29714 #else
29715 # include <assert.h>
29716 #endif
29717
29718 #undef gethostbyname
29719
29720 /* Override any GCC internal prototype to avoid an error.
29721    Use char because int might match the return type of a GCC
29722    builtin and then its argument prototype would still apply.  */
29723 #ifdef __cplusplus
29724 extern "C"
29725 #endif
29726 char gethostbyname ();
29727 /* The GNU C library defines this for functions which it implements
29728     to always fail with ENOSYS.  Some functions are actually named
29729     something starting with __ and the normal name is an alias.  */
29730 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29731 choke me
29732 #endif
29733
29734 int
29735 main ()
29736 {
29737 return gethostbyname ();
29738   ;
29739   return 0;
29740 }
29741 _ACEOF
29742 rm -f conftest.$ac_objext conftest$ac_exeext
29743 if { (ac_try="$ac_link"
29744 case "(($ac_try" in
29745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29746   *) ac_try_echo=$ac_try;;
29747 esac
29748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29749   (eval "$ac_link") 2>conftest.er1
29750   ac_status=$?
29751   grep -v '^ *+' conftest.er1 >conftest.err
29752   rm -f conftest.er1
29753   cat conftest.err >&5
29754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755   (exit $ac_status); } && {
29756          test -z "$ac_c_werror_flag" ||
29757          test ! -s conftest.err
29758        } && test -s conftest$ac_exeext &&
29759        $as_test_x conftest$ac_exeext; then
29760   ac_cv_func_gethostbyname=yes
29761 else
29762   echo "$as_me: failed program was:" >&5
29763 sed 's/^/| /' conftest.$ac_ext >&5
29764
29765         ac_cv_func_gethostbyname=no
29766 fi
29767
29768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29769       conftest$ac_exeext conftest.$ac_ext
29770 fi
29771 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29772 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29773
29774     if test $ac_cv_func_gethostbyname = no; then
29775       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29776 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29777 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29778   echo $ECHO_N "(cached) $ECHO_C" >&6
29779 else
29780   ac_check_lib_save_LIBS=$LIBS
29781 LIBS="-lnsl  $LIBS"
29782 cat >conftest.$ac_ext <<_ACEOF
29783 /* confdefs.h.  */
29784 _ACEOF
29785 cat confdefs.h >>conftest.$ac_ext
29786 cat >>conftest.$ac_ext <<_ACEOF
29787 /* end confdefs.h.  */
29788
29789 /* Override any GCC internal prototype to avoid an error.
29790    Use char because int might match the return type of a GCC
29791    builtin and then its argument prototype would still apply.  */
29792 #ifdef __cplusplus
29793 extern "C"
29794 #endif
29795 char gethostbyname ();
29796 int
29797 main ()
29798 {
29799 return gethostbyname ();
29800   ;
29801   return 0;
29802 }
29803 _ACEOF
29804 rm -f conftest.$ac_objext conftest$ac_exeext
29805 if { (ac_try="$ac_link"
29806 case "(($ac_try" in
29807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808   *) ac_try_echo=$ac_try;;
29809 esac
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811   (eval "$ac_link") 2>conftest.er1
29812   ac_status=$?
29813   grep -v '^ *+' conftest.er1 >conftest.err
29814   rm -f conftest.er1
29815   cat conftest.err >&5
29816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817   (exit $ac_status); } && {
29818          test -z "$ac_c_werror_flag" ||
29819          test ! -s conftest.err
29820        } && test -s conftest$ac_exeext &&
29821        $as_test_x conftest$ac_exeext; then
29822   ac_cv_lib_nsl_gethostbyname=yes
29823 else
29824   echo "$as_me: failed program was:" >&5
29825 sed 's/^/| /' conftest.$ac_ext >&5
29826
29827         ac_cv_lib_nsl_gethostbyname=no
29828 fi
29829
29830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29831       conftest$ac_exeext conftest.$ac_ext
29832 LIBS=$ac_check_lib_save_LIBS
29833 fi
29834 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29835 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29836 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29837   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29838 fi
29839
29840       if test $ac_cv_lib_nsl_gethostbyname = no; then
29841         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29842 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29843 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29844   echo $ECHO_N "(cached) $ECHO_C" >&6
29845 else
29846   ac_check_lib_save_LIBS=$LIBS
29847 LIBS="-lbsd  $LIBS"
29848 cat >conftest.$ac_ext <<_ACEOF
29849 /* confdefs.h.  */
29850 _ACEOF
29851 cat confdefs.h >>conftest.$ac_ext
29852 cat >>conftest.$ac_ext <<_ACEOF
29853 /* end confdefs.h.  */
29854
29855 /* Override any GCC internal prototype to avoid an error.
29856    Use char because int might match the return type of a GCC
29857    builtin and then its argument prototype would still apply.  */
29858 #ifdef __cplusplus
29859 extern "C"
29860 #endif
29861 char gethostbyname ();
29862 int
29863 main ()
29864 {
29865 return gethostbyname ();
29866   ;
29867   return 0;
29868 }
29869 _ACEOF
29870 rm -f conftest.$ac_objext conftest$ac_exeext
29871 if { (ac_try="$ac_link"
29872 case "(($ac_try" in
29873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29874   *) ac_try_echo=$ac_try;;
29875 esac
29876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29877   (eval "$ac_link") 2>conftest.er1
29878   ac_status=$?
29879   grep -v '^ *+' conftest.er1 >conftest.err
29880   rm -f conftest.er1
29881   cat conftest.err >&5
29882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883   (exit $ac_status); } && {
29884          test -z "$ac_c_werror_flag" ||
29885          test ! -s conftest.err
29886        } && test -s conftest$ac_exeext &&
29887        $as_test_x conftest$ac_exeext; then
29888   ac_cv_lib_bsd_gethostbyname=yes
29889 else
29890   echo "$as_me: failed program was:" >&5
29891 sed 's/^/| /' conftest.$ac_ext >&5
29892
29893         ac_cv_lib_bsd_gethostbyname=no
29894 fi
29895
29896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29897       conftest$ac_exeext conftest.$ac_ext
29898 LIBS=$ac_check_lib_save_LIBS
29899 fi
29900 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29901 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29902 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29903   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29904 fi
29905
29906       fi
29907     fi
29908
29909     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29910     # socket/setsockopt and other routines are undefined under SCO ODT
29911     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29912     # on later versions), says Simon Leinen: it contains gethostby*
29913     # variants that don't use the name server (or something).  -lsocket
29914     # must be given before -lnsl if both are needed.  We assume that
29915     # if connect needs -lnsl, so does gethostbyname.
29916     { echo "$as_me:$LINENO: checking for connect" >&5
29917 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29918 if test "${ac_cv_func_connect+set}" = set; then
29919   echo $ECHO_N "(cached) $ECHO_C" >&6
29920 else
29921   cat >conftest.$ac_ext <<_ACEOF
29922 /* confdefs.h.  */
29923 _ACEOF
29924 cat confdefs.h >>conftest.$ac_ext
29925 cat >>conftest.$ac_ext <<_ACEOF
29926 /* end confdefs.h.  */
29927 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29929 #define connect innocuous_connect
29930
29931 /* System header to define __stub macros and hopefully few prototypes,
29932     which can conflict with char connect (); below.
29933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29934     <limits.h> exists even on freestanding compilers.  */
29935
29936 #ifdef __STDC__
29937 # include <limits.h>
29938 #else
29939 # include <assert.h>
29940 #endif
29941
29942 #undef connect
29943
29944 /* Override any GCC internal prototype to avoid an error.
29945    Use char because int might match the return type of a GCC
29946    builtin and then its argument prototype would still apply.  */
29947 #ifdef __cplusplus
29948 extern "C"
29949 #endif
29950 char connect ();
29951 /* The GNU C library defines this for functions which it implements
29952     to always fail with ENOSYS.  Some functions are actually named
29953     something starting with __ and the normal name is an alias.  */
29954 #if defined __stub_connect || defined __stub___connect
29955 choke me
29956 #endif
29957
29958 int
29959 main ()
29960 {
29961 return connect ();
29962   ;
29963   return 0;
29964 }
29965 _ACEOF
29966 rm -f conftest.$ac_objext conftest$ac_exeext
29967 if { (ac_try="$ac_link"
29968 case "(($ac_try" in
29969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29970   *) ac_try_echo=$ac_try;;
29971 esac
29972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29973   (eval "$ac_link") 2>conftest.er1
29974   ac_status=$?
29975   grep -v '^ *+' conftest.er1 >conftest.err
29976   rm -f conftest.er1
29977   cat conftest.err >&5
29978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979   (exit $ac_status); } && {
29980          test -z "$ac_c_werror_flag" ||
29981          test ! -s conftest.err
29982        } && test -s conftest$ac_exeext &&
29983        $as_test_x conftest$ac_exeext; then
29984   ac_cv_func_connect=yes
29985 else
29986   echo "$as_me: failed program was:" >&5
29987 sed 's/^/| /' conftest.$ac_ext >&5
29988
29989         ac_cv_func_connect=no
29990 fi
29991
29992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29993       conftest$ac_exeext conftest.$ac_ext
29994 fi
29995 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29996 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
29997
29998     if test $ac_cv_func_connect = no; then
29999       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30000 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30001 if test "${ac_cv_lib_socket_connect+set}" = set; then
30002   echo $ECHO_N "(cached) $ECHO_C" >&6
30003 else
30004   ac_check_lib_save_LIBS=$LIBS
30005 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30006 cat >conftest.$ac_ext <<_ACEOF
30007 /* confdefs.h.  */
30008 _ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h.  */
30012
30013 /* Override any GCC internal prototype to avoid an error.
30014    Use char because int might match the return type of a GCC
30015    builtin and then its argument prototype would still apply.  */
30016 #ifdef __cplusplus
30017 extern "C"
30018 #endif
30019 char connect ();
30020 int
30021 main ()
30022 {
30023 return connect ();
30024   ;
30025   return 0;
30026 }
30027 _ACEOF
30028 rm -f conftest.$ac_objext conftest$ac_exeext
30029 if { (ac_try="$ac_link"
30030 case "(($ac_try" in
30031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032   *) ac_try_echo=$ac_try;;
30033 esac
30034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30035   (eval "$ac_link") 2>conftest.er1
30036   ac_status=$?
30037   grep -v '^ *+' conftest.er1 >conftest.err
30038   rm -f conftest.er1
30039   cat conftest.err >&5
30040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041   (exit $ac_status); } && {
30042          test -z "$ac_c_werror_flag" ||
30043          test ! -s conftest.err
30044        } && test -s conftest$ac_exeext &&
30045        $as_test_x conftest$ac_exeext; then
30046   ac_cv_lib_socket_connect=yes
30047 else
30048   echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.$ac_ext >&5
30050
30051         ac_cv_lib_socket_connect=no
30052 fi
30053
30054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30055       conftest$ac_exeext conftest.$ac_ext
30056 LIBS=$ac_check_lib_save_LIBS
30057 fi
30058 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30059 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30060 if test $ac_cv_lib_socket_connect = yes; then
30061   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30062 fi
30063
30064     fi
30065
30066     # Guillermo Gomez says -lposix is necessary on A/UX.
30067     { echo "$as_me:$LINENO: checking for remove" >&5
30068 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30069 if test "${ac_cv_func_remove+set}" = set; then
30070   echo $ECHO_N "(cached) $ECHO_C" >&6
30071 else
30072   cat >conftest.$ac_ext <<_ACEOF
30073 /* confdefs.h.  */
30074 _ACEOF
30075 cat confdefs.h >>conftest.$ac_ext
30076 cat >>conftest.$ac_ext <<_ACEOF
30077 /* end confdefs.h.  */
30078 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30080 #define remove innocuous_remove
30081
30082 /* System header to define __stub macros and hopefully few prototypes,
30083     which can conflict with char remove (); below.
30084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30085     <limits.h> exists even on freestanding compilers.  */
30086
30087 #ifdef __STDC__
30088 # include <limits.h>
30089 #else
30090 # include <assert.h>
30091 #endif
30092
30093 #undef remove
30094
30095 /* Override any GCC internal prototype to avoid an error.
30096    Use char because int might match the return type of a GCC
30097    builtin and then its argument prototype would still apply.  */
30098 #ifdef __cplusplus
30099 extern "C"
30100 #endif
30101 char remove ();
30102 /* The GNU C library defines this for functions which it implements
30103     to always fail with ENOSYS.  Some functions are actually named
30104     something starting with __ and the normal name is an alias.  */
30105 #if defined __stub_remove || defined __stub___remove
30106 choke me
30107 #endif
30108
30109 int
30110 main ()
30111 {
30112 return remove ();
30113   ;
30114   return 0;
30115 }
30116 _ACEOF
30117 rm -f conftest.$ac_objext conftest$ac_exeext
30118 if { (ac_try="$ac_link"
30119 case "(($ac_try" in
30120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121   *) ac_try_echo=$ac_try;;
30122 esac
30123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30124   (eval "$ac_link") 2>conftest.er1
30125   ac_status=$?
30126   grep -v '^ *+' conftest.er1 >conftest.err
30127   rm -f conftest.er1
30128   cat conftest.err >&5
30129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130   (exit $ac_status); } && {
30131          test -z "$ac_c_werror_flag" ||
30132          test ! -s conftest.err
30133        } && test -s conftest$ac_exeext &&
30134        $as_test_x conftest$ac_exeext; then
30135   ac_cv_func_remove=yes
30136 else
30137   echo "$as_me: failed program was:" >&5
30138 sed 's/^/| /' conftest.$ac_ext >&5
30139
30140         ac_cv_func_remove=no
30141 fi
30142
30143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30144       conftest$ac_exeext conftest.$ac_ext
30145 fi
30146 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30147 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30148
30149     if test $ac_cv_func_remove = no; then
30150       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30151 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30152 if test "${ac_cv_lib_posix_remove+set}" = set; then
30153   echo $ECHO_N "(cached) $ECHO_C" >&6
30154 else
30155   ac_check_lib_save_LIBS=$LIBS
30156 LIBS="-lposix  $LIBS"
30157 cat >conftest.$ac_ext <<_ACEOF
30158 /* confdefs.h.  */
30159 _ACEOF
30160 cat confdefs.h >>conftest.$ac_ext
30161 cat >>conftest.$ac_ext <<_ACEOF
30162 /* end confdefs.h.  */
30163
30164 /* Override any GCC internal prototype to avoid an error.
30165    Use char because int might match the return type of a GCC
30166    builtin and then its argument prototype would still apply.  */
30167 #ifdef __cplusplus
30168 extern "C"
30169 #endif
30170 char remove ();
30171 int
30172 main ()
30173 {
30174 return remove ();
30175   ;
30176   return 0;
30177 }
30178 _ACEOF
30179 rm -f conftest.$ac_objext conftest$ac_exeext
30180 if { (ac_try="$ac_link"
30181 case "(($ac_try" in
30182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183   *) ac_try_echo=$ac_try;;
30184 esac
30185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186   (eval "$ac_link") 2>conftest.er1
30187   ac_status=$?
30188   grep -v '^ *+' conftest.er1 >conftest.err
30189   rm -f conftest.er1
30190   cat conftest.err >&5
30191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192   (exit $ac_status); } && {
30193          test -z "$ac_c_werror_flag" ||
30194          test ! -s conftest.err
30195        } && test -s conftest$ac_exeext &&
30196        $as_test_x conftest$ac_exeext; then
30197   ac_cv_lib_posix_remove=yes
30198 else
30199   echo "$as_me: failed program was:" >&5
30200 sed 's/^/| /' conftest.$ac_ext >&5
30201
30202         ac_cv_lib_posix_remove=no
30203 fi
30204
30205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30206       conftest$ac_exeext conftest.$ac_ext
30207 LIBS=$ac_check_lib_save_LIBS
30208 fi
30209 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30210 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30211 if test $ac_cv_lib_posix_remove = yes; then
30212   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30213 fi
30214
30215     fi
30216
30217     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30218     { echo "$as_me:$LINENO: checking for shmat" >&5
30219 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30220 if test "${ac_cv_func_shmat+set}" = set; then
30221   echo $ECHO_N "(cached) $ECHO_C" >&6
30222 else
30223   cat >conftest.$ac_ext <<_ACEOF
30224 /* confdefs.h.  */
30225 _ACEOF
30226 cat confdefs.h >>conftest.$ac_ext
30227 cat >>conftest.$ac_ext <<_ACEOF
30228 /* end confdefs.h.  */
30229 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30231 #define shmat innocuous_shmat
30232
30233 /* System header to define __stub macros and hopefully few prototypes,
30234     which can conflict with char shmat (); below.
30235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30236     <limits.h> exists even on freestanding compilers.  */
30237
30238 #ifdef __STDC__
30239 # include <limits.h>
30240 #else
30241 # include <assert.h>
30242 #endif
30243
30244 #undef shmat
30245
30246 /* Override any GCC internal prototype to avoid an error.
30247    Use char because int might match the return type of a GCC
30248    builtin and then its argument prototype would still apply.  */
30249 #ifdef __cplusplus
30250 extern "C"
30251 #endif
30252 char shmat ();
30253 /* The GNU C library defines this for functions which it implements
30254     to always fail with ENOSYS.  Some functions are actually named
30255     something starting with __ and the normal name is an alias.  */
30256 #if defined __stub_shmat || defined __stub___shmat
30257 choke me
30258 #endif
30259
30260 int
30261 main ()
30262 {
30263 return shmat ();
30264   ;
30265   return 0;
30266 }
30267 _ACEOF
30268 rm -f conftest.$ac_objext conftest$ac_exeext
30269 if { (ac_try="$ac_link"
30270 case "(($ac_try" in
30271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30272   *) ac_try_echo=$ac_try;;
30273 esac
30274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30275   (eval "$ac_link") 2>conftest.er1
30276   ac_status=$?
30277   grep -v '^ *+' conftest.er1 >conftest.err
30278   rm -f conftest.er1
30279   cat conftest.err >&5
30280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281   (exit $ac_status); } && {
30282          test -z "$ac_c_werror_flag" ||
30283          test ! -s conftest.err
30284        } && test -s conftest$ac_exeext &&
30285        $as_test_x conftest$ac_exeext; then
30286   ac_cv_func_shmat=yes
30287 else
30288   echo "$as_me: failed program was:" >&5
30289 sed 's/^/| /' conftest.$ac_ext >&5
30290
30291         ac_cv_func_shmat=no
30292 fi
30293
30294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30295       conftest$ac_exeext conftest.$ac_ext
30296 fi
30297 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30298 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30299
30300     if test $ac_cv_func_shmat = no; then
30301       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30302 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30303 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30304   echo $ECHO_N "(cached) $ECHO_C" >&6
30305 else
30306   ac_check_lib_save_LIBS=$LIBS
30307 LIBS="-lipc  $LIBS"
30308 cat >conftest.$ac_ext <<_ACEOF
30309 /* confdefs.h.  */
30310 _ACEOF
30311 cat confdefs.h >>conftest.$ac_ext
30312 cat >>conftest.$ac_ext <<_ACEOF
30313 /* end confdefs.h.  */
30314
30315 /* Override any GCC internal prototype to avoid an error.
30316    Use char because int might match the return type of a GCC
30317    builtin and then its argument prototype would still apply.  */
30318 #ifdef __cplusplus
30319 extern "C"
30320 #endif
30321 char shmat ();
30322 int
30323 main ()
30324 {
30325 return shmat ();
30326   ;
30327   return 0;
30328 }
30329 _ACEOF
30330 rm -f conftest.$ac_objext conftest$ac_exeext
30331 if { (ac_try="$ac_link"
30332 case "(($ac_try" in
30333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30334   *) ac_try_echo=$ac_try;;
30335 esac
30336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30337   (eval "$ac_link") 2>conftest.er1
30338   ac_status=$?
30339   grep -v '^ *+' conftest.er1 >conftest.err
30340   rm -f conftest.er1
30341   cat conftest.err >&5
30342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343   (exit $ac_status); } && {
30344          test -z "$ac_c_werror_flag" ||
30345          test ! -s conftest.err
30346        } && test -s conftest$ac_exeext &&
30347        $as_test_x conftest$ac_exeext; then
30348   ac_cv_lib_ipc_shmat=yes
30349 else
30350   echo "$as_me: failed program was:" >&5
30351 sed 's/^/| /' conftest.$ac_ext >&5
30352
30353         ac_cv_lib_ipc_shmat=no
30354 fi
30355
30356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30357       conftest$ac_exeext conftest.$ac_ext
30358 LIBS=$ac_check_lib_save_LIBS
30359 fi
30360 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30361 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30362 if test $ac_cv_lib_ipc_shmat = yes; then
30363   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30364 fi
30365
30366     fi
30367   fi
30368
30369   # Check for libraries that X11R6 Xt/Xaw programs need.
30370   ac_save_LDFLAGS=$LDFLAGS
30371   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30372   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30373   # check for ICE first), but we must link in the order -lSM -lICE or
30374   # we get undefined symbols.  So assume we have SM if we have ICE.
30375   # These have to be linked with before -lX11, unlike the other
30376   # libraries we check for below, so use a different variable.
30377   # John Interrante, Karl Berry
30378   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30379 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30380 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30381   echo $ECHO_N "(cached) $ECHO_C" >&6
30382 else
30383   ac_check_lib_save_LIBS=$LIBS
30384 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30385 cat >conftest.$ac_ext <<_ACEOF
30386 /* confdefs.h.  */
30387 _ACEOF
30388 cat confdefs.h >>conftest.$ac_ext
30389 cat >>conftest.$ac_ext <<_ACEOF
30390 /* end confdefs.h.  */
30391
30392 /* Override any GCC internal prototype to avoid an error.
30393    Use char because int might match the return type of a GCC
30394    builtin and then its argument prototype would still apply.  */
30395 #ifdef __cplusplus
30396 extern "C"
30397 #endif
30398 char IceConnectionNumber ();
30399 int
30400 main ()
30401 {
30402 return IceConnectionNumber ();
30403   ;
30404   return 0;
30405 }
30406 _ACEOF
30407 rm -f conftest.$ac_objext conftest$ac_exeext
30408 if { (ac_try="$ac_link"
30409 case "(($ac_try" in
30410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30411   *) ac_try_echo=$ac_try;;
30412 esac
30413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30414   (eval "$ac_link") 2>conftest.er1
30415   ac_status=$?
30416   grep -v '^ *+' conftest.er1 >conftest.err
30417   rm -f conftest.er1
30418   cat conftest.err >&5
30419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420   (exit $ac_status); } && {
30421          test -z "$ac_c_werror_flag" ||
30422          test ! -s conftest.err
30423        } && test -s conftest$ac_exeext &&
30424        $as_test_x conftest$ac_exeext; then
30425   ac_cv_lib_ICE_IceConnectionNumber=yes
30426 else
30427   echo "$as_me: failed program was:" >&5
30428 sed 's/^/| /' conftest.$ac_ext >&5
30429
30430         ac_cv_lib_ICE_IceConnectionNumber=no
30431 fi
30432
30433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30434       conftest$ac_exeext conftest.$ac_ext
30435 LIBS=$ac_check_lib_save_LIBS
30436 fi
30437 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30438 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30439 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30440   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30441 fi
30442
30443   LDFLAGS=$ac_save_LDFLAGS
30444
30445 fi
30446
30447
30448
30449
30450
30451
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478 for ac_header in \
30479    assert.h \
30480    fcntl.h \
30481    grp.h \
30482    pwd.h \
30483    libc.h \
30484    limits.h \
30485    stdarg.h \
30486    stdlib.h \
30487    stdint.h \
30488    string.h \
30489    strings.h \
30490    termios.h \
30491    termcap.h \
30492    term.h \
30493    unistd.h \
30494    sys/bitypes.h \
30495    sys/byteorder.h \
30496    sys/ioctl.h \
30497    sys/select.h \
30498    sys/socket.h \
30499    sys/sockio.h \
30500    sys/stat.h \
30501    sys/time.h \
30502    sys/types.h \
30503    arpa/nameser.h \
30504    resolv.h \
30505    mtio.h \
30506    sys/mtio.h \
30507    sys/tape.h \
30508    regex.h \
30509
30510 do
30511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30513   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30516   echo $ECHO_N "(cached) $ECHO_C" >&6
30517 fi
30518 ac_res=`eval echo '${'$as_ac_Header'}'`
30519                { echo "$as_me:$LINENO: result: $ac_res" >&5
30520 echo "${ECHO_T}$ac_res" >&6; }
30521 else
30522   # Is the header compilable?
30523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30525 cat >conftest.$ac_ext <<_ACEOF
30526 /* confdefs.h.  */
30527 _ACEOF
30528 cat confdefs.h >>conftest.$ac_ext
30529 cat >>conftest.$ac_ext <<_ACEOF
30530 /* end confdefs.h.  */
30531 $ac_includes_default
30532 #include <$ac_header>
30533 _ACEOF
30534 rm -f conftest.$ac_objext
30535 if { (ac_try="$ac_compile"
30536 case "(($ac_try" in
30537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30538   *) ac_try_echo=$ac_try;;
30539 esac
30540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30541   (eval "$ac_compile") 2>conftest.er1
30542   ac_status=$?
30543   grep -v '^ *+' conftest.er1 >conftest.err
30544   rm -f conftest.er1
30545   cat conftest.err >&5
30546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547   (exit $ac_status); } && {
30548          test -z "$ac_c_werror_flag" ||
30549          test ! -s conftest.err
30550        } && test -s conftest.$ac_objext; then
30551   ac_header_compiler=yes
30552 else
30553   echo "$as_me: failed program was:" >&5
30554 sed 's/^/| /' conftest.$ac_ext >&5
30555
30556         ac_header_compiler=no
30557 fi
30558
30559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30561 echo "${ECHO_T}$ac_header_compiler" >&6; }
30562
30563 # Is the header present?
30564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30566 cat >conftest.$ac_ext <<_ACEOF
30567 /* confdefs.h.  */
30568 _ACEOF
30569 cat confdefs.h >>conftest.$ac_ext
30570 cat >>conftest.$ac_ext <<_ACEOF
30571 /* end confdefs.h.  */
30572 #include <$ac_header>
30573 _ACEOF
30574 if { (ac_try="$ac_cpp conftest.$ac_ext"
30575 case "(($ac_try" in
30576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30577   *) ac_try_echo=$ac_try;;
30578 esac
30579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30580   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30581   ac_status=$?
30582   grep -v '^ *+' conftest.er1 >conftest.err
30583   rm -f conftest.er1
30584   cat conftest.err >&5
30585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586   (exit $ac_status); } >/dev/null && {
30587          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30588          test ! -s conftest.err
30589        }; then
30590   ac_header_preproc=yes
30591 else
30592   echo "$as_me: failed program was:" >&5
30593 sed 's/^/| /' conftest.$ac_ext >&5
30594
30595   ac_header_preproc=no
30596 fi
30597
30598 rm -f conftest.err conftest.$ac_ext
30599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30600 echo "${ECHO_T}$ac_header_preproc" >&6; }
30601
30602 # So?  What about this header?
30603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30604   yes:no: )
30605     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30609     ac_header_preproc=yes
30610     ;;
30611   no:yes:* )
30612     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30614     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30615 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30616     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30618     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30619 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30622     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30624
30625     ;;
30626 esac
30627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30630   echo $ECHO_N "(cached) $ECHO_C" >&6
30631 else
30632   eval "$as_ac_Header=\$ac_header_preproc"
30633 fi
30634 ac_res=`eval echo '${'$as_ac_Header'}'`
30635                { echo "$as_me:$LINENO: result: $ac_res" >&5
30636 echo "${ECHO_T}$ac_res" >&6; }
30637
30638 fi
30639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30640   cat >>confdefs.h <<_ACEOF
30641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30642 _ACEOF
30643
30644 fi
30645
30646 done
30647
30648 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30649 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30650 if test "${ac_cv_header_stdc+set}" = set; then
30651   echo $ECHO_N "(cached) $ECHO_C" >&6
30652 else
30653   cat >conftest.$ac_ext <<_ACEOF
30654 /* confdefs.h.  */
30655 _ACEOF
30656 cat confdefs.h >>conftest.$ac_ext
30657 cat >>conftest.$ac_ext <<_ACEOF
30658 /* end confdefs.h.  */
30659 #include <stdlib.h>
30660 #include <stdarg.h>
30661 #include <string.h>
30662 #include <float.h>
30663
30664 int
30665 main ()
30666 {
30667
30668   ;
30669   return 0;
30670 }
30671 _ACEOF
30672 rm -f conftest.$ac_objext
30673 if { (ac_try="$ac_compile"
30674 case "(($ac_try" in
30675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30676   *) ac_try_echo=$ac_try;;
30677 esac
30678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30679   (eval "$ac_compile") 2>conftest.er1
30680   ac_status=$?
30681   grep -v '^ *+' conftest.er1 >conftest.err
30682   rm -f conftest.er1
30683   cat conftest.err >&5
30684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685   (exit $ac_status); } && {
30686          test -z "$ac_c_werror_flag" ||
30687          test ! -s conftest.err
30688        } && test -s conftest.$ac_objext; then
30689   ac_cv_header_stdc=yes
30690 else
30691   echo "$as_me: failed program was:" >&5
30692 sed 's/^/| /' conftest.$ac_ext >&5
30693
30694         ac_cv_header_stdc=no
30695 fi
30696
30697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30698
30699 if test $ac_cv_header_stdc = yes; then
30700   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30701   cat >conftest.$ac_ext <<_ACEOF
30702 /* confdefs.h.  */
30703 _ACEOF
30704 cat confdefs.h >>conftest.$ac_ext
30705 cat >>conftest.$ac_ext <<_ACEOF
30706 /* end confdefs.h.  */
30707 #include <string.h>
30708
30709 _ACEOF
30710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30711   $EGREP "memchr" >/dev/null 2>&1; then
30712   :
30713 else
30714   ac_cv_header_stdc=no
30715 fi
30716 rm -f conftest*
30717
30718 fi
30719
30720 if test $ac_cv_header_stdc = yes; then
30721   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30722   cat >conftest.$ac_ext <<_ACEOF
30723 /* confdefs.h.  */
30724 _ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h.  */
30728 #include <stdlib.h>
30729
30730 _ACEOF
30731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30732   $EGREP "free" >/dev/null 2>&1; then
30733   :
30734 else
30735   ac_cv_header_stdc=no
30736 fi
30737 rm -f conftest*
30738
30739 fi
30740
30741 if test $ac_cv_header_stdc = yes; then
30742   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30743   if test "$cross_compiling" = yes; then
30744   :
30745 else
30746   cat >conftest.$ac_ext <<_ACEOF
30747 /* confdefs.h.  */
30748 _ACEOF
30749 cat confdefs.h >>conftest.$ac_ext
30750 cat >>conftest.$ac_ext <<_ACEOF
30751 /* end confdefs.h.  */
30752 #include <ctype.h>
30753 #include <stdlib.h>
30754 #if ((' ' & 0x0FF) == 0x020)
30755 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30756 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30757 #else
30758 # define ISLOWER(c) \
30759                    (('a' <= (c) && (c) <= 'i') \
30760                      || ('j' <= (c) && (c) <= 'r') \
30761                      || ('s' <= (c) && (c) <= 'z'))
30762 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30763 #endif
30764
30765 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30766 int
30767 main ()
30768 {
30769   int i;
30770   for (i = 0; i < 256; i++)
30771     if (XOR (islower (i), ISLOWER (i))
30772         || toupper (i) != TOUPPER (i))
30773       return 2;
30774   return 0;
30775 }
30776 _ACEOF
30777 rm -f conftest$ac_exeext
30778 if { (ac_try="$ac_link"
30779 case "(($ac_try" in
30780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30781   *) ac_try_echo=$ac_try;;
30782 esac
30783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30784   (eval "$ac_link") 2>&5
30785   ac_status=$?
30786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30788   { (case "(($ac_try" in
30789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30790   *) ac_try_echo=$ac_try;;
30791 esac
30792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30793   (eval "$ac_try") 2>&5
30794   ac_status=$?
30795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796   (exit $ac_status); }; }; then
30797   :
30798 else
30799   echo "$as_me: program exited with status $ac_status" >&5
30800 echo "$as_me: failed program was:" >&5
30801 sed 's/^/| /' conftest.$ac_ext >&5
30802
30803 ( exit $ac_status )
30804 ac_cv_header_stdc=no
30805 fi
30806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30807 fi
30808
30809
30810 fi
30811 fi
30812 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30813 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30814 if test $ac_cv_header_stdc = yes; then
30815
30816 cat >>confdefs.h <<\_ACEOF
30817 #define STDC_HEADERS 1
30818 _ACEOF
30819
30820 fi
30821
30822 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30823 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30824 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30825   echo $ECHO_N "(cached) $ECHO_C" >&6
30826 else
30827   cat >conftest.$ac_ext <<_ACEOF
30828 /* confdefs.h.  */
30829 _ACEOF
30830 cat confdefs.h >>conftest.$ac_ext
30831 cat >>conftest.$ac_ext <<_ACEOF
30832 /* end confdefs.h.  */
30833 #include <sys/types.h>
30834 int
30835 main ()
30836 {
30837 return makedev(0, 0);
30838   ;
30839   return 0;
30840 }
30841 _ACEOF
30842 rm -f conftest.$ac_objext conftest$ac_exeext
30843 if { (ac_try="$ac_link"
30844 case "(($ac_try" in
30845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30846   *) ac_try_echo=$ac_try;;
30847 esac
30848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30849   (eval "$ac_link") 2>conftest.er1
30850   ac_status=$?
30851   grep -v '^ *+' conftest.er1 >conftest.err
30852   rm -f conftest.er1
30853   cat conftest.err >&5
30854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855   (exit $ac_status); } && {
30856          test -z "$ac_c_werror_flag" ||
30857          test ! -s conftest.err
30858        } && test -s conftest$ac_exeext &&
30859        $as_test_x conftest$ac_exeext; then
30860   ac_cv_header_sys_types_h_makedev=yes
30861 else
30862   echo "$as_me: failed program was:" >&5
30863 sed 's/^/| /' conftest.$ac_ext >&5
30864
30865         ac_cv_header_sys_types_h_makedev=no
30866 fi
30867
30868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30869       conftest$ac_exeext conftest.$ac_ext
30870
30871 fi
30872 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30873 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30874
30875 if test $ac_cv_header_sys_types_h_makedev = no; then
30876 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30877   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30878 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30879 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30880   echo $ECHO_N "(cached) $ECHO_C" >&6
30881 fi
30882 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30883 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30884 else
30885   # Is the header compilable?
30886 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30887 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30888 cat >conftest.$ac_ext <<_ACEOF
30889 /* confdefs.h.  */
30890 _ACEOF
30891 cat confdefs.h >>conftest.$ac_ext
30892 cat >>conftest.$ac_ext <<_ACEOF
30893 /* end confdefs.h.  */
30894 $ac_includes_default
30895 #include <sys/mkdev.h>
30896 _ACEOF
30897 rm -f conftest.$ac_objext
30898 if { (ac_try="$ac_compile"
30899 case "(($ac_try" in
30900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30901   *) ac_try_echo=$ac_try;;
30902 esac
30903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30904   (eval "$ac_compile") 2>conftest.er1
30905   ac_status=$?
30906   grep -v '^ *+' conftest.er1 >conftest.err
30907   rm -f conftest.er1
30908   cat conftest.err >&5
30909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910   (exit $ac_status); } && {
30911          test -z "$ac_c_werror_flag" ||
30912          test ! -s conftest.err
30913        } && test -s conftest.$ac_objext; then
30914   ac_header_compiler=yes
30915 else
30916   echo "$as_me: failed program was:" >&5
30917 sed 's/^/| /' conftest.$ac_ext >&5
30918
30919         ac_header_compiler=no
30920 fi
30921
30922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30924 echo "${ECHO_T}$ac_header_compiler" >&6; }
30925
30926 # Is the header present?
30927 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30928 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30929 cat >conftest.$ac_ext <<_ACEOF
30930 /* confdefs.h.  */
30931 _ACEOF
30932 cat confdefs.h >>conftest.$ac_ext
30933 cat >>conftest.$ac_ext <<_ACEOF
30934 /* end confdefs.h.  */
30935 #include <sys/mkdev.h>
30936 _ACEOF
30937 if { (ac_try="$ac_cpp conftest.$ac_ext"
30938 case "(($ac_try" in
30939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30940   *) ac_try_echo=$ac_try;;
30941 esac
30942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30944   ac_status=$?
30945   grep -v '^ *+' conftest.er1 >conftest.err
30946   rm -f conftest.er1
30947   cat conftest.err >&5
30948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949   (exit $ac_status); } >/dev/null && {
30950          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30951          test ! -s conftest.err
30952        }; then
30953   ac_header_preproc=yes
30954 else
30955   echo "$as_me: failed program was:" >&5
30956 sed 's/^/| /' conftest.$ac_ext >&5
30957
30958   ac_header_preproc=no
30959 fi
30960
30961 rm -f conftest.err conftest.$ac_ext
30962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30963 echo "${ECHO_T}$ac_header_preproc" >&6; }
30964
30965 # So?  What about this header?
30966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30967   yes:no: )
30968     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30969 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30970     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30971 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30972     ac_header_preproc=yes
30973     ;;
30974   no:yes:* )
30975     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30976 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30977     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
30978 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
30979     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30980 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30981     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
30982 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30983     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30984 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30985     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30986 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30987
30988     ;;
30989 esac
30990 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30991 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30992 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30993   echo $ECHO_N "(cached) $ECHO_C" >&6
30994 else
30995   ac_cv_header_sys_mkdev_h=$ac_header_preproc
30996 fi
30997 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30998 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30999
31000 fi
31001 if test $ac_cv_header_sys_mkdev_h = yes; then
31002
31003 cat >>confdefs.h <<\_ACEOF
31004 #define MAJOR_IN_MKDEV 1
31005 _ACEOF
31006
31007 fi
31008
31009
31010
31011   if test $ac_cv_header_sys_mkdev_h = no; then
31012     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31013   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31014 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31015 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31016   echo $ECHO_N "(cached) $ECHO_C" >&6
31017 fi
31018 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31019 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31020 else
31021   # Is the header compilable?
31022 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31023 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31024 cat >conftest.$ac_ext <<_ACEOF
31025 /* confdefs.h.  */
31026 _ACEOF
31027 cat confdefs.h >>conftest.$ac_ext
31028 cat >>conftest.$ac_ext <<_ACEOF
31029 /* end confdefs.h.  */
31030 $ac_includes_default
31031 #include <sys/sysmacros.h>
31032 _ACEOF
31033 rm -f conftest.$ac_objext
31034 if { (ac_try="$ac_compile"
31035 case "(($ac_try" in
31036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31037   *) ac_try_echo=$ac_try;;
31038 esac
31039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31040   (eval "$ac_compile") 2>conftest.er1
31041   ac_status=$?
31042   grep -v '^ *+' conftest.er1 >conftest.err
31043   rm -f conftest.er1
31044   cat conftest.err >&5
31045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046   (exit $ac_status); } && {
31047          test -z "$ac_c_werror_flag" ||
31048          test ! -s conftest.err
31049        } && test -s conftest.$ac_objext; then
31050   ac_header_compiler=yes
31051 else
31052   echo "$as_me: failed program was:" >&5
31053 sed 's/^/| /' conftest.$ac_ext >&5
31054
31055         ac_header_compiler=no
31056 fi
31057
31058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31060 echo "${ECHO_T}$ac_header_compiler" >&6; }
31061
31062 # Is the header present?
31063 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31064 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31065 cat >conftest.$ac_ext <<_ACEOF
31066 /* confdefs.h.  */
31067 _ACEOF
31068 cat confdefs.h >>conftest.$ac_ext
31069 cat >>conftest.$ac_ext <<_ACEOF
31070 /* end confdefs.h.  */
31071 #include <sys/sysmacros.h>
31072 _ACEOF
31073 if { (ac_try="$ac_cpp conftest.$ac_ext"
31074 case "(($ac_try" in
31075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076   *) ac_try_echo=$ac_try;;
31077 esac
31078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31080   ac_status=$?
31081   grep -v '^ *+' conftest.er1 >conftest.err
31082   rm -f conftest.er1
31083   cat conftest.err >&5
31084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085   (exit $ac_status); } >/dev/null && {
31086          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31087          test ! -s conftest.err
31088        }; then
31089   ac_header_preproc=yes
31090 else
31091   echo "$as_me: failed program was:" >&5
31092 sed 's/^/| /' conftest.$ac_ext >&5
31093
31094   ac_header_preproc=no
31095 fi
31096
31097 rm -f conftest.err conftest.$ac_ext
31098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31099 echo "${ECHO_T}$ac_header_preproc" >&6; }
31100
31101 # So?  What about this header?
31102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31103   yes:no: )
31104     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31105 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31106     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31107 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31108     ac_header_preproc=yes
31109     ;;
31110   no:yes:* )
31111     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31112 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31113     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31114 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31115     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31116 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31117     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31118 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31119     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31120 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31121     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31122 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31123
31124     ;;
31125 esac
31126 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31127 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31128 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31129   echo $ECHO_N "(cached) $ECHO_C" >&6
31130 else
31131   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31132 fi
31133 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31134 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31135
31136 fi
31137 if test $ac_cv_header_sys_sysmacros_h = yes; then
31138
31139 cat >>confdefs.h <<\_ACEOF
31140 #define MAJOR_IN_SYSMACROS 1
31141 _ACEOF
31142
31143 fi
31144
31145
31146   fi
31147 fi
31148
31149
31150
31151
31152
31153
31154 ac_header_dirent=no
31155 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31156   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31157 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31158 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31160   echo $ECHO_N "(cached) $ECHO_C" >&6
31161 else
31162   cat >conftest.$ac_ext <<_ACEOF
31163 /* confdefs.h.  */
31164 _ACEOF
31165 cat confdefs.h >>conftest.$ac_ext
31166 cat >>conftest.$ac_ext <<_ACEOF
31167 /* end confdefs.h.  */
31168 #include <sys/types.h>
31169 #include <$ac_hdr>
31170
31171 int
31172 main ()
31173 {
31174 if ((DIR *) 0)
31175 return 0;
31176   ;
31177   return 0;
31178 }
31179 _ACEOF
31180 rm -f conftest.$ac_objext
31181 if { (ac_try="$ac_compile"
31182 case "(($ac_try" in
31183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31184   *) ac_try_echo=$ac_try;;
31185 esac
31186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31187   (eval "$ac_compile") 2>conftest.er1
31188   ac_status=$?
31189   grep -v '^ *+' conftest.er1 >conftest.err
31190   rm -f conftest.er1
31191   cat conftest.err >&5
31192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193   (exit $ac_status); } && {
31194          test -z "$ac_c_werror_flag" ||
31195          test ! -s conftest.err
31196        } && test -s conftest.$ac_objext; then
31197   eval "$as_ac_Header=yes"
31198 else
31199   echo "$as_me: failed program was:" >&5
31200 sed 's/^/| /' conftest.$ac_ext >&5
31201
31202         eval "$as_ac_Header=no"
31203 fi
31204
31205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31206 fi
31207 ac_res=`eval echo '${'$as_ac_Header'}'`
31208                { echo "$as_me:$LINENO: result: $ac_res" >&5
31209 echo "${ECHO_T}$ac_res" >&6; }
31210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31211   cat >>confdefs.h <<_ACEOF
31212 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31213 _ACEOF
31214
31215 ac_header_dirent=$ac_hdr; break
31216 fi
31217
31218 done
31219 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31220 if test $ac_header_dirent = dirent.h; then
31221   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31222 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31223 if test "${ac_cv_search_opendir+set}" = set; then
31224   echo $ECHO_N "(cached) $ECHO_C" >&6
31225 else
31226   ac_func_search_save_LIBS=$LIBS
31227 cat >conftest.$ac_ext <<_ACEOF
31228 /* confdefs.h.  */
31229 _ACEOF
31230 cat confdefs.h >>conftest.$ac_ext
31231 cat >>conftest.$ac_ext <<_ACEOF
31232 /* end confdefs.h.  */
31233
31234 /* Override any GCC internal prototype to avoid an error.
31235    Use char because int might match the return type of a GCC
31236    builtin and then its argument prototype would still apply.  */
31237 #ifdef __cplusplus
31238 extern "C"
31239 #endif
31240 char opendir ();
31241 int
31242 main ()
31243 {
31244 return opendir ();
31245   ;
31246   return 0;
31247 }
31248 _ACEOF
31249 for ac_lib in '' dir; do
31250   if test -z "$ac_lib"; then
31251     ac_res="none required"
31252   else
31253     ac_res=-l$ac_lib
31254     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31255   fi
31256   rm -f conftest.$ac_objext conftest$ac_exeext
31257 if { (ac_try="$ac_link"
31258 case "(($ac_try" in
31259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31260   *) ac_try_echo=$ac_try;;
31261 esac
31262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31263   (eval "$ac_link") 2>conftest.er1
31264   ac_status=$?
31265   grep -v '^ *+' conftest.er1 >conftest.err
31266   rm -f conftest.er1
31267   cat conftest.err >&5
31268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269   (exit $ac_status); } && {
31270          test -z "$ac_c_werror_flag" ||
31271          test ! -s conftest.err
31272        } && test -s conftest$ac_exeext &&
31273        $as_test_x conftest$ac_exeext; then
31274   ac_cv_search_opendir=$ac_res
31275 else
31276   echo "$as_me: failed program was:" >&5
31277 sed 's/^/| /' conftest.$ac_ext >&5
31278
31279
31280 fi
31281
31282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31283       conftest$ac_exeext
31284   if test "${ac_cv_search_opendir+set}" = set; then
31285   break
31286 fi
31287 done
31288 if test "${ac_cv_search_opendir+set}" = set; then
31289   :
31290 else
31291   ac_cv_search_opendir=no
31292 fi
31293 rm conftest.$ac_ext
31294 LIBS=$ac_func_search_save_LIBS
31295 fi
31296 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31297 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31298 ac_res=$ac_cv_search_opendir
31299 if test "$ac_res" != no; then
31300   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31301
31302 fi
31303
31304 else
31305   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31306 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31307 if test "${ac_cv_search_opendir+set}" = set; then
31308   echo $ECHO_N "(cached) $ECHO_C" >&6
31309 else
31310   ac_func_search_save_LIBS=$LIBS
31311 cat >conftest.$ac_ext <<_ACEOF
31312 /* confdefs.h.  */
31313 _ACEOF
31314 cat confdefs.h >>conftest.$ac_ext
31315 cat >>conftest.$ac_ext <<_ACEOF
31316 /* end confdefs.h.  */
31317
31318 /* Override any GCC internal prototype to avoid an error.
31319    Use char because int might match the return type of a GCC
31320    builtin and then its argument prototype would still apply.  */
31321 #ifdef __cplusplus
31322 extern "C"
31323 #endif
31324 char opendir ();
31325 int
31326 main ()
31327 {
31328 return opendir ();
31329   ;
31330   return 0;
31331 }
31332 _ACEOF
31333 for ac_lib in '' x; do
31334   if test -z "$ac_lib"; then
31335     ac_res="none required"
31336   else
31337     ac_res=-l$ac_lib
31338     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31339   fi
31340   rm -f conftest.$ac_objext conftest$ac_exeext
31341 if { (ac_try="$ac_link"
31342 case "(($ac_try" in
31343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344   *) ac_try_echo=$ac_try;;
31345 esac
31346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347   (eval "$ac_link") 2>conftest.er1
31348   ac_status=$?
31349   grep -v '^ *+' conftest.er1 >conftest.err
31350   rm -f conftest.er1
31351   cat conftest.err >&5
31352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353   (exit $ac_status); } && {
31354          test -z "$ac_c_werror_flag" ||
31355          test ! -s conftest.err
31356        } && test -s conftest$ac_exeext &&
31357        $as_test_x conftest$ac_exeext; then
31358   ac_cv_search_opendir=$ac_res
31359 else
31360   echo "$as_me: failed program was:" >&5
31361 sed 's/^/| /' conftest.$ac_ext >&5
31362
31363
31364 fi
31365
31366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31367       conftest$ac_exeext
31368   if test "${ac_cv_search_opendir+set}" = set; then
31369   break
31370 fi
31371 done
31372 if test "${ac_cv_search_opendir+set}" = set; then
31373   :
31374 else
31375   ac_cv_search_opendir=no
31376 fi
31377 rm conftest.$ac_ext
31378 LIBS=$ac_func_search_save_LIBS
31379 fi
31380 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31381 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31382 ac_res=$ac_cv_search_opendir
31383 if test "$ac_res" != no; then
31384   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31385
31386 fi
31387
31388 fi
31389
31390 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31391 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31392 if test "${ac_cv_header_stat_broken+set}" = set; then
31393   echo $ECHO_N "(cached) $ECHO_C" >&6
31394 else
31395   cat >conftest.$ac_ext <<_ACEOF
31396 /* confdefs.h.  */
31397 _ACEOF
31398 cat confdefs.h >>conftest.$ac_ext
31399 cat >>conftest.$ac_ext <<_ACEOF
31400 /* end confdefs.h.  */
31401 #include <sys/types.h>
31402 #include <sys/stat.h>
31403
31404 #if defined S_ISBLK && defined S_IFDIR
31405 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31406 #endif
31407
31408 #if defined S_ISBLK && defined S_IFCHR
31409 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31410 #endif
31411
31412 #if defined S_ISLNK && defined S_IFREG
31413 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31414 #endif
31415
31416 #if defined S_ISSOCK && defined S_IFREG
31417 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31418 #endif
31419
31420 _ACEOF
31421 rm -f conftest.$ac_objext
31422 if { (ac_try="$ac_compile"
31423 case "(($ac_try" in
31424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425   *) ac_try_echo=$ac_try;;
31426 esac
31427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31428   (eval "$ac_compile") 2>conftest.er1
31429   ac_status=$?
31430   grep -v '^ *+' conftest.er1 >conftest.err
31431   rm -f conftest.er1
31432   cat conftest.err >&5
31433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434   (exit $ac_status); } && {
31435          test -z "$ac_c_werror_flag" ||
31436          test ! -s conftest.err
31437        } && test -s conftest.$ac_objext; then
31438   ac_cv_header_stat_broken=no
31439 else
31440   echo "$as_me: failed program was:" >&5
31441 sed 's/^/| /' conftest.$ac_ext >&5
31442
31443         ac_cv_header_stat_broken=yes
31444 fi
31445
31446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31447 fi
31448 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31449 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31450 if test $ac_cv_header_stat_broken = yes; then
31451
31452 cat >>confdefs.h <<\_ACEOF
31453 #define STAT_MACROS_BROKEN 1
31454 _ACEOF
31455
31456 fi
31457
31458 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31459 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31460 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31461   echo $ECHO_N "(cached) $ECHO_C" >&6
31462 else
31463   cat >conftest.$ac_ext <<_ACEOF
31464 /* confdefs.h.  */
31465 _ACEOF
31466 cat confdefs.h >>conftest.$ac_ext
31467 cat >>conftest.$ac_ext <<_ACEOF
31468 /* end confdefs.h.  */
31469 #include <sys/types.h>
31470 #include <sys/wait.h>
31471 #ifndef WEXITSTATUS
31472 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31473 #endif
31474 #ifndef WIFEXITED
31475 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31476 #endif
31477
31478 int
31479 main ()
31480 {
31481   int s;
31482   wait (&s);
31483   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31484   ;
31485   return 0;
31486 }
31487 _ACEOF
31488 rm -f conftest.$ac_objext
31489 if { (ac_try="$ac_compile"
31490 case "(($ac_try" in
31491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31492   *) ac_try_echo=$ac_try;;
31493 esac
31494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31495   (eval "$ac_compile") 2>conftest.er1
31496   ac_status=$?
31497   grep -v '^ *+' conftest.er1 >conftest.err
31498   rm -f conftest.er1
31499   cat conftest.err >&5
31500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501   (exit $ac_status); } && {
31502          test -z "$ac_c_werror_flag" ||
31503          test ! -s conftest.err
31504        } && test -s conftest.$ac_objext; then
31505   ac_cv_header_sys_wait_h=yes
31506 else
31507   echo "$as_me: failed program was:" >&5
31508 sed 's/^/| /' conftest.$ac_ext >&5
31509
31510         ac_cv_header_sys_wait_h=no
31511 fi
31512
31513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31514 fi
31515 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31516 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31517 if test $ac_cv_header_sys_wait_h = yes; then
31518
31519 cat >>confdefs.h <<\_ACEOF
31520 #define HAVE_SYS_WAIT_H 1
31521 _ACEOF
31522
31523 fi
31524
31525 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31526 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31527 if test "${ac_cv_header_time+set}" = set; then
31528   echo $ECHO_N "(cached) $ECHO_C" >&6
31529 else
31530   cat >conftest.$ac_ext <<_ACEOF
31531 /* confdefs.h.  */
31532 _ACEOF
31533 cat confdefs.h >>conftest.$ac_ext
31534 cat >>conftest.$ac_ext <<_ACEOF
31535 /* end confdefs.h.  */
31536 #include <sys/types.h>
31537 #include <sys/time.h>
31538 #include <time.h>
31539
31540 int
31541 main ()
31542 {
31543 if ((struct tm *) 0)
31544 return 0;
31545   ;
31546   return 0;
31547 }
31548 _ACEOF
31549 rm -f conftest.$ac_objext
31550 if { (ac_try="$ac_compile"
31551 case "(($ac_try" in
31552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31553   *) ac_try_echo=$ac_try;;
31554 esac
31555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31556   (eval "$ac_compile") 2>conftest.er1
31557   ac_status=$?
31558   grep -v '^ *+' conftest.er1 >conftest.err
31559   rm -f conftest.er1
31560   cat conftest.err >&5
31561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562   (exit $ac_status); } && {
31563          test -z "$ac_c_werror_flag" ||
31564          test ! -s conftest.err
31565        } && test -s conftest.$ac_objext; then
31566   ac_cv_header_time=yes
31567 else
31568   echo "$as_me: failed program was:" >&5
31569 sed 's/^/| /' conftest.$ac_ext >&5
31570
31571         ac_cv_header_time=no
31572 fi
31573
31574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31575 fi
31576 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31577 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31578 if test $ac_cv_header_time = yes; then
31579
31580 cat >>confdefs.h <<\_ACEOF
31581 #define TIME_WITH_SYS_TIME 1
31582 _ACEOF
31583
31584 fi
31585
31586 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31587 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31588 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31589   echo $ECHO_N "(cached) $ECHO_C" >&6
31590 else
31591   cat >conftest.$ac_ext <<_ACEOF
31592 /* confdefs.h.  */
31593 _ACEOF
31594 cat confdefs.h >>conftest.$ac_ext
31595 cat >>conftest.$ac_ext <<_ACEOF
31596 /* end confdefs.h.  */
31597 $ac_includes_default
31598 int
31599 main ()
31600 {
31601 static struct stat ac_aggr;
31602 if (ac_aggr.st_blksize)
31603 return 0;
31604   ;
31605   return 0;
31606 }
31607 _ACEOF
31608 rm -f conftest.$ac_objext
31609 if { (ac_try="$ac_compile"
31610 case "(($ac_try" in
31611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31612   *) ac_try_echo=$ac_try;;
31613 esac
31614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31615   (eval "$ac_compile") 2>conftest.er1
31616   ac_status=$?
31617   grep -v '^ *+' conftest.er1 >conftest.err
31618   rm -f conftest.er1
31619   cat conftest.err >&5
31620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621   (exit $ac_status); } && {
31622          test -z "$ac_c_werror_flag" ||
31623          test ! -s conftest.err
31624        } && test -s conftest.$ac_objext; then
31625   ac_cv_member_struct_stat_st_blksize=yes
31626 else
31627   echo "$as_me: failed program was:" >&5
31628 sed 's/^/| /' conftest.$ac_ext >&5
31629
31630         cat >conftest.$ac_ext <<_ACEOF
31631 /* confdefs.h.  */
31632 _ACEOF
31633 cat confdefs.h >>conftest.$ac_ext
31634 cat >>conftest.$ac_ext <<_ACEOF
31635 /* end confdefs.h.  */
31636 $ac_includes_default
31637 int
31638 main ()
31639 {
31640 static struct stat ac_aggr;
31641 if (sizeof ac_aggr.st_blksize)
31642 return 0;
31643   ;
31644   return 0;
31645 }
31646 _ACEOF
31647 rm -f conftest.$ac_objext
31648 if { (ac_try="$ac_compile"
31649 case "(($ac_try" in
31650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31651   *) ac_try_echo=$ac_try;;
31652 esac
31653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31654   (eval "$ac_compile") 2>conftest.er1
31655   ac_status=$?
31656   grep -v '^ *+' conftest.er1 >conftest.err
31657   rm -f conftest.er1
31658   cat conftest.err >&5
31659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660   (exit $ac_status); } && {
31661          test -z "$ac_c_werror_flag" ||
31662          test ! -s conftest.err
31663        } && test -s conftest.$ac_objext; then
31664   ac_cv_member_struct_stat_st_blksize=yes
31665 else
31666   echo "$as_me: failed program was:" >&5
31667 sed 's/^/| /' conftest.$ac_ext >&5
31668
31669         ac_cv_member_struct_stat_st_blksize=no
31670 fi
31671
31672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31673 fi
31674
31675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31676 fi
31677 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31678 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31679 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31680
31681 cat >>confdefs.h <<_ACEOF
31682 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31683 _ACEOF
31684
31685
31686 cat >>confdefs.h <<\_ACEOF
31687 #define HAVE_ST_BLKSIZE 1
31688 _ACEOF
31689
31690 fi
31691
31692
31693 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31694 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31695 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31696   echo $ECHO_N "(cached) $ECHO_C" >&6
31697 else
31698   cat >conftest.$ac_ext <<_ACEOF
31699 /* confdefs.h.  */
31700 _ACEOF
31701 cat confdefs.h >>conftest.$ac_ext
31702 cat >>conftest.$ac_ext <<_ACEOF
31703 /* end confdefs.h.  */
31704 $ac_includes_default
31705 int
31706 main ()
31707 {
31708 static struct stat ac_aggr;
31709 if (ac_aggr.st_blocks)
31710 return 0;
31711   ;
31712   return 0;
31713 }
31714 _ACEOF
31715 rm -f conftest.$ac_objext
31716 if { (ac_try="$ac_compile"
31717 case "(($ac_try" in
31718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31719   *) ac_try_echo=$ac_try;;
31720 esac
31721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31722   (eval "$ac_compile") 2>conftest.er1
31723   ac_status=$?
31724   grep -v '^ *+' conftest.er1 >conftest.err
31725   rm -f conftest.er1
31726   cat conftest.err >&5
31727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728   (exit $ac_status); } && {
31729          test -z "$ac_c_werror_flag" ||
31730          test ! -s conftest.err
31731        } && test -s conftest.$ac_objext; then
31732   ac_cv_member_struct_stat_st_blocks=yes
31733 else
31734   echo "$as_me: failed program was:" >&5
31735 sed 's/^/| /' conftest.$ac_ext >&5
31736
31737         cat >conftest.$ac_ext <<_ACEOF
31738 /* confdefs.h.  */
31739 _ACEOF
31740 cat confdefs.h >>conftest.$ac_ext
31741 cat >>conftest.$ac_ext <<_ACEOF
31742 /* end confdefs.h.  */
31743 $ac_includes_default
31744 int
31745 main ()
31746 {
31747 static struct stat ac_aggr;
31748 if (sizeof ac_aggr.st_blocks)
31749 return 0;
31750   ;
31751   return 0;
31752 }
31753 _ACEOF
31754 rm -f conftest.$ac_objext
31755 if { (ac_try="$ac_compile"
31756 case "(($ac_try" in
31757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31758   *) ac_try_echo=$ac_try;;
31759 esac
31760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31761   (eval "$ac_compile") 2>conftest.er1
31762   ac_status=$?
31763   grep -v '^ *+' conftest.er1 >conftest.err
31764   rm -f conftest.er1
31765   cat conftest.err >&5
31766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767   (exit $ac_status); } && {
31768          test -z "$ac_c_werror_flag" ||
31769          test ! -s conftest.err
31770        } && test -s conftest.$ac_objext; then
31771   ac_cv_member_struct_stat_st_blocks=yes
31772 else
31773   echo "$as_me: failed program was:" >&5
31774 sed 's/^/| /' conftest.$ac_ext >&5
31775
31776         ac_cv_member_struct_stat_st_blocks=no
31777 fi
31778
31779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31780 fi
31781
31782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31783 fi
31784 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31785 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31786 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31787
31788 cat >>confdefs.h <<_ACEOF
31789 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31790 _ACEOF
31791
31792
31793 cat >>confdefs.h <<\_ACEOF
31794 #define HAVE_ST_BLOCKS 1
31795 _ACEOF
31796
31797 else
31798   case " $LIBOBJS " in
31799   *" fileblocks.$ac_objext "* ) ;;
31800   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31801  ;;
31802 esac
31803
31804 fi
31805
31806
31807 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31808 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31809 if test "${ac_cv_struct_tm+set}" = set; then
31810   echo $ECHO_N "(cached) $ECHO_C" >&6
31811 else
31812   cat >conftest.$ac_ext <<_ACEOF
31813 /* confdefs.h.  */
31814 _ACEOF
31815 cat confdefs.h >>conftest.$ac_ext
31816 cat >>conftest.$ac_ext <<_ACEOF
31817 /* end confdefs.h.  */
31818 #include <sys/types.h>
31819 #include <time.h>
31820
31821 int
31822 main ()
31823 {
31824 struct tm tm;
31825                                      int *p = &tm.tm_sec;
31826                                      return !p;
31827   ;
31828   return 0;
31829 }
31830 _ACEOF
31831 rm -f conftest.$ac_objext
31832 if { (ac_try="$ac_compile"
31833 case "(($ac_try" in
31834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31835   *) ac_try_echo=$ac_try;;
31836 esac
31837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31838   (eval "$ac_compile") 2>conftest.er1
31839   ac_status=$?
31840   grep -v '^ *+' conftest.er1 >conftest.err
31841   rm -f conftest.er1
31842   cat conftest.err >&5
31843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31844   (exit $ac_status); } && {
31845          test -z "$ac_c_werror_flag" ||
31846          test ! -s conftest.err
31847        } && test -s conftest.$ac_objext; then
31848   ac_cv_struct_tm=time.h
31849 else
31850   echo "$as_me: failed program was:" >&5
31851 sed 's/^/| /' conftest.$ac_ext >&5
31852
31853         ac_cv_struct_tm=sys/time.h
31854 fi
31855
31856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31857 fi
31858 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31859 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31860 if test $ac_cv_struct_tm = sys/time.h; then
31861
31862 cat >>confdefs.h <<\_ACEOF
31863 #define TM_IN_SYS_TIME 1
31864 _ACEOF
31865
31866 fi
31867
31868 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31869 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31870 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31871   echo $ECHO_N "(cached) $ECHO_C" >&6
31872 else
31873   cat >conftest.$ac_ext <<_ACEOF
31874 /* confdefs.h.  */
31875 _ACEOF
31876 cat confdefs.h >>conftest.$ac_ext
31877 cat >>conftest.$ac_ext <<_ACEOF
31878 /* end confdefs.h.  */
31879 #include <sys/types.h>
31880 #include <$ac_cv_struct_tm>
31881
31882
31883 int
31884 main ()
31885 {
31886 static struct tm ac_aggr;
31887 if (ac_aggr.tm_zone)
31888 return 0;
31889   ;
31890   return 0;
31891 }
31892 _ACEOF
31893 rm -f conftest.$ac_objext
31894 if { (ac_try="$ac_compile"
31895 case "(($ac_try" in
31896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897   *) ac_try_echo=$ac_try;;
31898 esac
31899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31900   (eval "$ac_compile") 2>conftest.er1
31901   ac_status=$?
31902   grep -v '^ *+' conftest.er1 >conftest.err
31903   rm -f conftest.er1
31904   cat conftest.err >&5
31905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906   (exit $ac_status); } && {
31907          test -z "$ac_c_werror_flag" ||
31908          test ! -s conftest.err
31909        } && test -s conftest.$ac_objext; then
31910   ac_cv_member_struct_tm_tm_zone=yes
31911 else
31912   echo "$as_me: failed program was:" >&5
31913 sed 's/^/| /' conftest.$ac_ext >&5
31914
31915         cat >conftest.$ac_ext <<_ACEOF
31916 /* confdefs.h.  */
31917 _ACEOF
31918 cat confdefs.h >>conftest.$ac_ext
31919 cat >>conftest.$ac_ext <<_ACEOF
31920 /* end confdefs.h.  */
31921 #include <sys/types.h>
31922 #include <$ac_cv_struct_tm>
31923
31924
31925 int
31926 main ()
31927 {
31928 static struct tm ac_aggr;
31929 if (sizeof ac_aggr.tm_zone)
31930 return 0;
31931   ;
31932   return 0;
31933 }
31934 _ACEOF
31935 rm -f conftest.$ac_objext
31936 if { (ac_try="$ac_compile"
31937 case "(($ac_try" in
31938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939   *) ac_try_echo=$ac_try;;
31940 esac
31941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942   (eval "$ac_compile") 2>conftest.er1
31943   ac_status=$?
31944   grep -v '^ *+' conftest.er1 >conftest.err
31945   rm -f conftest.er1
31946   cat conftest.err >&5
31947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948   (exit $ac_status); } && {
31949          test -z "$ac_c_werror_flag" ||
31950          test ! -s conftest.err
31951        } && test -s conftest.$ac_objext; then
31952   ac_cv_member_struct_tm_tm_zone=yes
31953 else
31954   echo "$as_me: failed program was:" >&5
31955 sed 's/^/| /' conftest.$ac_ext >&5
31956
31957         ac_cv_member_struct_tm_tm_zone=no
31958 fi
31959
31960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31961 fi
31962
31963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31964 fi
31965 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31966 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31967 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31968
31969 cat >>confdefs.h <<_ACEOF
31970 #define HAVE_STRUCT_TM_TM_ZONE 1
31971 _ACEOF
31972
31973
31974 fi
31975
31976 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31977
31978 cat >>confdefs.h <<\_ACEOF
31979 #define HAVE_TM_ZONE 1
31980 _ACEOF
31981
31982 else
31983   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31984 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31985 if test "${ac_cv_have_decl_tzname+set}" = set; then
31986   echo $ECHO_N "(cached) $ECHO_C" >&6
31987 else
31988   cat >conftest.$ac_ext <<_ACEOF
31989 /* confdefs.h.  */
31990 _ACEOF
31991 cat confdefs.h >>conftest.$ac_ext
31992 cat >>conftest.$ac_ext <<_ACEOF
31993 /* end confdefs.h.  */
31994 #include <time.h>
31995
31996 int
31997 main ()
31998 {
31999 #ifndef tzname
32000   (void) tzname;
32001 #endif
32002
32003   ;
32004   return 0;
32005 }
32006 _ACEOF
32007 rm -f conftest.$ac_objext
32008 if { (ac_try="$ac_compile"
32009 case "(($ac_try" in
32010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32011   *) ac_try_echo=$ac_try;;
32012 esac
32013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32014   (eval "$ac_compile") 2>conftest.er1
32015   ac_status=$?
32016   grep -v '^ *+' conftest.er1 >conftest.err
32017   rm -f conftest.er1
32018   cat conftest.err >&5
32019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020   (exit $ac_status); } && {
32021          test -z "$ac_c_werror_flag" ||
32022          test ! -s conftest.err
32023        } && test -s conftest.$ac_objext; then
32024   ac_cv_have_decl_tzname=yes
32025 else
32026   echo "$as_me: failed program was:" >&5
32027 sed 's/^/| /' conftest.$ac_ext >&5
32028
32029         ac_cv_have_decl_tzname=no
32030 fi
32031
32032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32033 fi
32034 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32035 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32036 if test $ac_cv_have_decl_tzname = yes; then
32037
32038 cat >>confdefs.h <<_ACEOF
32039 #define HAVE_DECL_TZNAME 1
32040 _ACEOF
32041
32042
32043 else
32044   cat >>confdefs.h <<_ACEOF
32045 #define HAVE_DECL_TZNAME 0
32046 _ACEOF
32047
32048
32049 fi
32050
32051
32052   { echo "$as_me:$LINENO: checking for tzname" >&5
32053 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32054 if test "${ac_cv_var_tzname+set}" = set; then
32055   echo $ECHO_N "(cached) $ECHO_C" >&6
32056 else
32057   cat >conftest.$ac_ext <<_ACEOF
32058 /* confdefs.h.  */
32059 _ACEOF
32060 cat confdefs.h >>conftest.$ac_ext
32061 cat >>conftest.$ac_ext <<_ACEOF
32062 /* end confdefs.h.  */
32063 #include <time.h>
32064 #if !HAVE_DECL_TZNAME
32065 extern char *tzname[];
32066 #endif
32067
32068 int
32069 main ()
32070 {
32071 return tzname[0][0];
32072   ;
32073   return 0;
32074 }
32075 _ACEOF
32076 rm -f conftest.$ac_objext conftest$ac_exeext
32077 if { (ac_try="$ac_link"
32078 case "(($ac_try" in
32079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32080   *) ac_try_echo=$ac_try;;
32081 esac
32082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32083   (eval "$ac_link") 2>conftest.er1
32084   ac_status=$?
32085   grep -v '^ *+' conftest.er1 >conftest.err
32086   rm -f conftest.er1
32087   cat conftest.err >&5
32088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089   (exit $ac_status); } && {
32090          test -z "$ac_c_werror_flag" ||
32091          test ! -s conftest.err
32092        } && test -s conftest$ac_exeext &&
32093        $as_test_x conftest$ac_exeext; then
32094   ac_cv_var_tzname=yes
32095 else
32096   echo "$as_me: failed program was:" >&5
32097 sed 's/^/| /' conftest.$ac_ext >&5
32098
32099         ac_cv_var_tzname=no
32100 fi
32101
32102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32103       conftest$ac_exeext conftest.$ac_ext
32104 fi
32105 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32106 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32107   if test $ac_cv_var_tzname = yes; then
32108
32109 cat >>confdefs.h <<\_ACEOF
32110 #define HAVE_TZNAME 1
32111 _ACEOF
32112
32113   fi
32114 fi
32115
32116
32117 { echo "$as_me:$LINENO: checking for utime.h" >&5
32118 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32119 if test "${ba_cv_header_utime_h+set}" = set; then
32120   echo $ECHO_N "(cached) $ECHO_C" >&6
32121 else
32122
32123        cat >conftest.$ac_ext <<_ACEOF
32124 /* confdefs.h.  */
32125 _ACEOF
32126 cat confdefs.h >>conftest.$ac_ext
32127 cat >>conftest.$ac_ext <<_ACEOF
32128 /* end confdefs.h.  */
32129
32130               #include <sys/types.h>
32131               #include <utime.h>
32132
32133 int
32134 main ()
32135 {
32136
32137               struct utimbuf foo
32138
32139   ;
32140   return 0;
32141 }
32142 _ACEOF
32143 rm -f conftest.$ac_objext
32144 if { (ac_try="$ac_compile"
32145 case "(($ac_try" in
32146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32147   *) ac_try_echo=$ac_try;;
32148 esac
32149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32150   (eval "$ac_compile") 2>conftest.er1
32151   ac_status=$?
32152   grep -v '^ *+' conftest.er1 >conftest.err
32153   rm -f conftest.er1
32154   cat conftest.err >&5
32155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32156   (exit $ac_status); } && {
32157          test -z "$ac_c_werror_flag" ||
32158          test ! -s conftest.err
32159        } && test -s conftest.$ac_objext; then
32160
32161               ba_cv_header_utime_h=yes
32162
32163 else
32164   echo "$as_me: failed program was:" >&5
32165 sed 's/^/| /' conftest.$ac_ext >&5
32166
32167
32168               ba_cv_header_utime_h=no
32169
32170
32171 fi
32172
32173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32174
32175
32176 fi
32177 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32178 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32179 test $ba_cv_header_utime_h = yes &&
32180 cat >>confdefs.h <<\_ACEOF
32181 #define HAVE_UTIME_H 1
32182 _ACEOF
32183
32184
32185 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32186 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32187 if test "${ba_cv_header_socklen_t+set}" = set; then
32188   echo $ECHO_N "(cached) $ECHO_C" >&6
32189 else
32190
32191        cat >conftest.$ac_ext <<_ACEOF
32192 /* confdefs.h.  */
32193 _ACEOF
32194 cat confdefs.h >>conftest.$ac_ext
32195 cat >>conftest.$ac_ext <<_ACEOF
32196 /* end confdefs.h.  */
32197
32198               #include <sys/types.h>
32199               #include <sys/socket.h>
32200
32201 int
32202 main ()
32203 {
32204
32205               socklen_t x
32206
32207   ;
32208   return 0;
32209 }
32210 _ACEOF
32211 rm -f conftest.$ac_objext
32212 if { (ac_try="$ac_compile"
32213 case "(($ac_try" in
32214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215   *) ac_try_echo=$ac_try;;
32216 esac
32217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218   (eval "$ac_compile") 2>conftest.er1
32219   ac_status=$?
32220   grep -v '^ *+' conftest.er1 >conftest.err
32221   rm -f conftest.er1
32222   cat conftest.err >&5
32223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224   (exit $ac_status); } && {
32225          test -z "$ac_c_werror_flag" ||
32226          test ! -s conftest.err
32227        } && test -s conftest.$ac_objext; then
32228
32229              ba_cv_header_socklen_t=yes
32230
32231 else
32232   echo "$as_me: failed program was:" >&5
32233 sed 's/^/| /' conftest.$ac_ext >&5
32234
32235
32236              ba_cv_header_socklen_t=no
32237
32238
32239 fi
32240
32241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32242
32243
32244 fi
32245 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32246 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32247 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32248 #define HAVE_SOCKLEN_T 1
32249 _ACEOF
32250
32251
32252 { echo "$as_me:$LINENO: checking for bigendian" >&5
32253 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32254 if test "${ba_cv_bigendian+set}" = set; then
32255   echo $ECHO_N "(cached) $ECHO_C" >&6
32256 else
32257
32258        if test "$cross_compiling" = yes; then
32259
32260              ba_cv_bigendian=no
32261
32262
32263 else
32264   cat >conftest.$ac_ext <<_ACEOF
32265 /* confdefs.h.  */
32266 _ACEOF
32267 cat confdefs.h >>conftest.$ac_ext
32268 cat >>conftest.$ac_ext <<_ACEOF
32269 /* end confdefs.h.  */
32270
32271               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32272
32273 _ACEOF
32274 rm -f conftest$ac_exeext
32275 if { (ac_try="$ac_link"
32276 case "(($ac_try" in
32277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32278   *) ac_try_echo=$ac_try;;
32279 esac
32280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32281   (eval "$ac_link") 2>&5
32282   ac_status=$?
32283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32285   { (case "(($ac_try" in
32286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32287   *) ac_try_echo=$ac_try;;
32288 esac
32289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32290   (eval "$ac_try") 2>&5
32291   ac_status=$?
32292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293   (exit $ac_status); }; }; then
32294
32295              ba_cv_bigendian=yes
32296
32297 else
32298   echo "$as_me: program exited with status $ac_status" >&5
32299 echo "$as_me: failed program was:" >&5
32300 sed 's/^/| /' conftest.$ac_ext >&5
32301
32302 ( exit $ac_status )
32303
32304              ba_cv_bigendian=no
32305
32306 fi
32307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32308 fi
32309
32310
32311
32312
32313 fi
32314 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32315 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32316 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32317 #define HAVE_BIGENDIAN 1
32318 _ACEOF
32319
32320
32321 ac_ext=cpp
32322 ac_cpp='$CXXCPP $CPPFLAGS'
32323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32326
32327 { echo "$as_me:$LINENO: checking for typeof" >&5
32328 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32329 if test "${ba_cv_have_typeof+set}" = set; then
32330   echo $ECHO_N "(cached) $ECHO_C" >&6
32331 else
32332
32333        if test "$cross_compiling" = yes; then
32334
32335               ba_cv_have_typeof=no
32336
32337
32338 else
32339   cat >conftest.$ac_ext <<_ACEOF
32340 /* confdefs.h.  */
32341 _ACEOF
32342 cat confdefs.h >>conftest.$ac_ext
32343 cat >>conftest.$ac_ext <<_ACEOF
32344 /* end confdefs.h.  */
32345
32346               main(){char *a = 0; a = (typeof a)a;}
32347
32348 _ACEOF
32349 rm -f conftest$ac_exeext
32350 if { (ac_try="$ac_link"
32351 case "(($ac_try" in
32352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32353   *) ac_try_echo=$ac_try;;
32354 esac
32355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32356   (eval "$ac_link") 2>&5
32357   ac_status=$?
32358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32360   { (case "(($ac_try" in
32361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32362   *) ac_try_echo=$ac_try;;
32363 esac
32364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32365   (eval "$ac_try") 2>&5
32366   ac_status=$?
32367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368   (exit $ac_status); }; }; then
32369
32370               ba_cv_have_typeof=yes
32371
32372 else
32373   echo "$as_me: program exited with status $ac_status" >&5
32374 echo "$as_me: failed program was:" >&5
32375 sed 's/^/| /' conftest.$ac_ext >&5
32376
32377 ( exit $ac_status )
32378
32379               ba_cv_have_typeof=no
32380
32381 fi
32382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32383 fi
32384
32385
32386
32387
32388 fi
32389 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32390 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32391 test $ba_cv_have_typeof = yes &&
32392 cat >>confdefs.h <<\_ACEOF
32393 #define HAVE_TYPEOF 1
32394 _ACEOF
32395
32396 ac_ext=c
32397 ac_cpp='$CPP $CPPFLAGS'
32398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32401
32402
32403 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32404 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32405 if test "${ac_cv_c_const+set}" = set; then
32406   echo $ECHO_N "(cached) $ECHO_C" >&6
32407 else
32408   cat >conftest.$ac_ext <<_ACEOF
32409 /* confdefs.h.  */
32410 _ACEOF
32411 cat confdefs.h >>conftest.$ac_ext
32412 cat >>conftest.$ac_ext <<_ACEOF
32413 /* end confdefs.h.  */
32414
32415 int
32416 main ()
32417 {
32418 /* FIXME: Include the comments suggested by Paul. */
32419 #ifndef __cplusplus
32420   /* Ultrix mips cc rejects this.  */
32421   typedef int charset[2];
32422   const charset cs;
32423   /* SunOS 4.1.1 cc rejects this.  */
32424   char const *const *pcpcc;
32425   char **ppc;
32426   /* NEC SVR4.0.2 mips cc rejects this.  */
32427   struct point {int x, y;};
32428   static struct point const zero = {0,0};
32429   /* AIX XL C 1.02.0.0 rejects this.
32430      It does not let you subtract one const X* pointer from another in
32431      an arm of an if-expression whose if-part is not a constant
32432      expression */
32433   const char *g = "string";
32434   pcpcc = &g + (g ? g-g : 0);
32435   /* HPUX 7.0 cc rejects these. */
32436   ++pcpcc;
32437   ppc = (char**) pcpcc;
32438   pcpcc = (char const *const *) ppc;
32439   { /* SCO 3.2v4 cc rejects this.  */
32440     char *t;
32441     char const *s = 0 ? (char *) 0 : (char const *) 0;
32442
32443     *t++ = 0;
32444     if (s) return 0;
32445   }
32446   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32447     int x[] = {25, 17};
32448     const int *foo = &x[0];
32449     ++foo;
32450   }
32451   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32452     typedef const int *iptr;
32453     iptr p = 0;
32454     ++p;
32455   }
32456   { /* AIX XL C 1.02.0.0 rejects this saying
32457        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32458     struct s { int j; const int *ap[3]; };
32459     struct s *b; b->j = 5;
32460   }
32461   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32462     const int foo = 10;
32463     if (!foo) return 0;
32464   }
32465   return !cs[0] && !zero.x;
32466 #endif
32467
32468   ;
32469   return 0;
32470 }
32471 _ACEOF
32472 rm -f conftest.$ac_objext
32473 if { (ac_try="$ac_compile"
32474 case "(($ac_try" in
32475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32476   *) ac_try_echo=$ac_try;;
32477 esac
32478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479   (eval "$ac_compile") 2>conftest.er1
32480   ac_status=$?
32481   grep -v '^ *+' conftest.er1 >conftest.err
32482   rm -f conftest.er1
32483   cat conftest.err >&5
32484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485   (exit $ac_status); } && {
32486          test -z "$ac_c_werror_flag" ||
32487          test ! -s conftest.err
32488        } && test -s conftest.$ac_objext; then
32489   ac_cv_c_const=yes
32490 else
32491   echo "$as_me: failed program was:" >&5
32492 sed 's/^/| /' conftest.$ac_ext >&5
32493
32494         ac_cv_c_const=no
32495 fi
32496
32497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32498 fi
32499 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32500 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32501 if test $ac_cv_c_const = no; then
32502
32503 cat >>confdefs.h <<\_ACEOF
32504 #define const
32505 _ACEOF
32506
32507 fi
32508
32509
32510 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32511 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32512 fstype=no
32513 # The order of these tests is important.
32514 cat >conftest.$ac_ext <<_ACEOF
32515 /* confdefs.h.  */
32516 _ACEOF
32517 cat confdefs.h >>conftest.$ac_ext
32518 cat >>conftest.$ac_ext <<_ACEOF
32519 /* end confdefs.h.  */
32520
32521        #include <sys/statvfs.h>
32522        #include <sys/fstyp.h>
32523
32524 _ACEOF
32525 if { (ac_try="$ac_cpp conftest.$ac_ext"
32526 case "(($ac_try" in
32527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32528   *) ac_try_echo=$ac_try;;
32529 esac
32530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32531   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32532   ac_status=$?
32533   grep -v '^ *+' conftest.er1 >conftest.err
32534   rm -f conftest.er1
32535   cat conftest.err >&5
32536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537   (exit $ac_status); } >/dev/null && {
32538          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32539          test ! -s conftest.err
32540        }; then
32541   cat >>confdefs.h <<\_ACEOF
32542 #define FSTYPE_STATVFS 1
32543 _ACEOF
32544  fstype=SVR4
32545
32546 else
32547   echo "$as_me: failed program was:" >&5
32548 sed 's/^/| /' conftest.$ac_ext >&5
32549
32550
32551 fi
32552
32553 rm -f conftest.err conftest.$ac_ext
32554 if test $fstype = no; then
32555    cat >conftest.$ac_ext <<_ACEOF
32556 /* confdefs.h.  */
32557 _ACEOF
32558 cat confdefs.h >>conftest.$ac_ext
32559 cat >>conftest.$ac_ext <<_ACEOF
32560 /* end confdefs.h.  */
32561
32562           #include <sys/statfs.h>
32563           #include <sys/fstyp.h>
32564
32565 _ACEOF
32566 if { (ac_try="$ac_cpp conftest.$ac_ext"
32567 case "(($ac_try" in
32568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32569   *) ac_try_echo=$ac_try;;
32570 esac
32571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32573   ac_status=$?
32574   grep -v '^ *+' conftest.er1 >conftest.err
32575   rm -f conftest.er1
32576   cat conftest.err >&5
32577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578   (exit $ac_status); } >/dev/null && {
32579          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32580          test ! -s conftest.err
32581        }; then
32582   cat >>confdefs.h <<\_ACEOF
32583 #define FSTYPE_USG_STATFS 1
32584 _ACEOF
32585  fstype=SVR3
32586
32587 else
32588   echo "$as_me: failed program was:" >&5
32589 sed 's/^/| /' conftest.$ac_ext >&5
32590
32591
32592 fi
32593
32594 rm -f conftest.err conftest.$ac_ext
32595 fi
32596 if test $fstype = no; then
32597    cat >conftest.$ac_ext <<_ACEOF
32598 /* confdefs.h.  */
32599 _ACEOF
32600 cat confdefs.h >>conftest.$ac_ext
32601 cat >>conftest.$ac_ext <<_ACEOF
32602 /* end confdefs.h.  */
32603
32604           #include <sys/statfs.h>
32605           #include <sys/vmount.h>
32606
32607 _ACEOF
32608 if { (ac_try="$ac_cpp conftest.$ac_ext"
32609 case "(($ac_try" in
32610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32611   *) ac_try_echo=$ac_try;;
32612 esac
32613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32615   ac_status=$?
32616   grep -v '^ *+' conftest.er1 >conftest.err
32617   rm -f conftest.er1
32618   cat conftest.err >&5
32619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32620   (exit $ac_status); } >/dev/null && {
32621          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32622          test ! -s conftest.err
32623        }; then
32624   cat >>confdefs.h <<\_ACEOF
32625 #define FSTYPE_AIX_STATFS 1
32626 _ACEOF
32627  fstype=AIX
32628
32629 else
32630   echo "$as_me: failed program was:" >&5
32631 sed 's/^/| /' conftest.$ac_ext >&5
32632
32633
32634 fi
32635
32636 rm -f conftest.err conftest.$ac_ext
32637 fi
32638 if test $fstype = no; then
32639    cat >conftest.$ac_ext <<_ACEOF
32640 /* confdefs.h.  */
32641 _ACEOF
32642 cat confdefs.h >>conftest.$ac_ext
32643 cat >>conftest.$ac_ext <<_ACEOF
32644 /* end confdefs.h.  */
32645
32646           #include <mntent.h>
32647
32648 _ACEOF
32649 if { (ac_try="$ac_cpp conftest.$ac_ext"
32650 case "(($ac_try" in
32651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32652   *) ac_try_echo=$ac_try;;
32653 esac
32654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32655   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32656   ac_status=$?
32657   grep -v '^ *+' conftest.er1 >conftest.err
32658   rm -f conftest.er1
32659   cat conftest.err >&5
32660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661   (exit $ac_status); } >/dev/null && {
32662          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32663          test ! -s conftest.err
32664        }; then
32665   cat >>confdefs.h <<\_ACEOF
32666 #define FSTYPE_MNTENT 1
32667 _ACEOF
32668  fstype=4.3BSD
32669
32670 else
32671   echo "$as_me: failed program was:" >&5
32672 sed 's/^/| /' conftest.$ac_ext >&5
32673
32674
32675 fi
32676
32677 rm -f conftest.err conftest.$ac_ext
32678 fi
32679 if test $fstype = no; then
32680    cat >conftest.$ac_ext <<_ACEOF
32681 /* confdefs.h.  */
32682 _ACEOF
32683 cat confdefs.h >>conftest.$ac_ext
32684 cat >>conftest.$ac_ext <<_ACEOF
32685 /* end confdefs.h.  */
32686 #include <sys/mount.h>
32687
32688 _ACEOF
32689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32690   $EGREP "f_type;" >/dev/null 2>&1; then
32691   cat >>confdefs.h <<\_ACEOF
32692 #define FSTYPE_STATFS 1
32693 _ACEOF
32694  fstype=4.4BSD/OSF1
32695 fi
32696 rm -f conftest*
32697
32698 fi
32699 if test $fstype = no; then
32700    cat >conftest.$ac_ext <<_ACEOF
32701 /* confdefs.h.  */
32702 _ACEOF
32703 cat confdefs.h >>conftest.$ac_ext
32704 cat >>conftest.$ac_ext <<_ACEOF
32705 /* end confdefs.h.  */
32706
32707           #include <sys/mount.h>
32708           #include <sys/fs_types.h>
32709
32710 _ACEOF
32711 if { (ac_try="$ac_cpp conftest.$ac_ext"
32712 case "(($ac_try" in
32713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32714   *) ac_try_echo=$ac_try;;
32715 esac
32716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32718   ac_status=$?
32719   grep -v '^ *+' conftest.er1 >conftest.err
32720   rm -f conftest.er1
32721   cat conftest.err >&5
32722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723   (exit $ac_status); } >/dev/null && {
32724          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32725          test ! -s conftest.err
32726        }; then
32727   cat >>confdefs.h <<\_ACEOF
32728 #define FSTYPE_GETMNT 1
32729 _ACEOF
32730  fstype=Ultrix
32731
32732 else
32733   echo "$as_me: failed program was:" >&5
32734 sed 's/^/| /' conftest.$ac_ext >&5
32735
32736
32737 fi
32738
32739 rm -f conftest.err conftest.$ac_ext
32740 fi
32741 { echo "$as_me:$LINENO: result: $fstype" >&5
32742 echo "${ECHO_T}$fstype" >&6; }
32743
32744 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32745   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32746 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32747 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32748   echo $ECHO_N "(cached) $ECHO_C" >&6
32749 fi
32750 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32751 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32752 else
32753   # Is the header compilable?
32754 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32755 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32756 cat >conftest.$ac_ext <<_ACEOF
32757 /* confdefs.h.  */
32758 _ACEOF
32759 cat confdefs.h >>conftest.$ac_ext
32760 cat >>conftest.$ac_ext <<_ACEOF
32761 /* end confdefs.h.  */
32762 $ac_includes_default
32763 #include <sys/statvfs.h>
32764 _ACEOF
32765 rm -f conftest.$ac_objext
32766 if { (ac_try="$ac_compile"
32767 case "(($ac_try" in
32768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769   *) ac_try_echo=$ac_try;;
32770 esac
32771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772   (eval "$ac_compile") 2>conftest.er1
32773   ac_status=$?
32774   grep -v '^ *+' conftest.er1 >conftest.err
32775   rm -f conftest.er1
32776   cat conftest.err >&5
32777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778   (exit $ac_status); } && {
32779          test -z "$ac_c_werror_flag" ||
32780          test ! -s conftest.err
32781        } && test -s conftest.$ac_objext; then
32782   ac_header_compiler=yes
32783 else
32784   echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32786
32787         ac_header_compiler=no
32788 fi
32789
32790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32792 echo "${ECHO_T}$ac_header_compiler" >&6; }
32793
32794 # Is the header present?
32795 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32796 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32797 cat >conftest.$ac_ext <<_ACEOF
32798 /* confdefs.h.  */
32799 _ACEOF
32800 cat confdefs.h >>conftest.$ac_ext
32801 cat >>conftest.$ac_ext <<_ACEOF
32802 /* end confdefs.h.  */
32803 #include <sys/statvfs.h>
32804 _ACEOF
32805 if { (ac_try="$ac_cpp conftest.$ac_ext"
32806 case "(($ac_try" in
32807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808   *) ac_try_echo=$ac_try;;
32809 esac
32810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32811   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32812   ac_status=$?
32813   grep -v '^ *+' conftest.er1 >conftest.err
32814   rm -f conftest.er1
32815   cat conftest.err >&5
32816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817   (exit $ac_status); } >/dev/null && {
32818          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32819          test ! -s conftest.err
32820        }; then
32821   ac_header_preproc=yes
32822 else
32823   echo "$as_me: failed program was:" >&5
32824 sed 's/^/| /' conftest.$ac_ext >&5
32825
32826   ac_header_preproc=no
32827 fi
32828
32829 rm -f conftest.err conftest.$ac_ext
32830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32831 echo "${ECHO_T}$ac_header_preproc" >&6; }
32832
32833 # So?  What about this header?
32834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32835   yes:no: )
32836     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32837 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32838     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32839 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32840     ac_header_preproc=yes
32841     ;;
32842   no:yes:* )
32843     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32844 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32845     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32846 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32847     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32848 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32849     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32850 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32851     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32852 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32853     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32854 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32855
32856     ;;
32857 esac
32858 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32859 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32860 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32861   echo $ECHO_N "(cached) $ECHO_C" >&6
32862 else
32863   ac_cv_header_sys_statvfs_h=$ac_header_preproc
32864 fi
32865 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32866 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32867
32868 fi
32869 if test $ac_cv_header_sys_statvfs_h = yes; then
32870
32871 cat >>confdefs.h <<\_ACEOF
32872 #define HAVE_SYS_STATVFS_H 1
32873 _ACEOF
32874
32875 fi
32876
32877
32878
32879 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32880 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32881 if test "${ac_cv_type_signal+set}" = set; then
32882   echo $ECHO_N "(cached) $ECHO_C" >&6
32883 else
32884   cat >conftest.$ac_ext <<_ACEOF
32885 /* confdefs.h.  */
32886 _ACEOF
32887 cat confdefs.h >>conftest.$ac_ext
32888 cat >>conftest.$ac_ext <<_ACEOF
32889 /* end confdefs.h.  */
32890 #include <sys/types.h>
32891 #include <signal.h>
32892
32893 int
32894 main ()
32895 {
32896 return *(signal (0, 0)) (0) == 1;
32897   ;
32898   return 0;
32899 }
32900 _ACEOF
32901 rm -f conftest.$ac_objext
32902 if { (ac_try="$ac_compile"
32903 case "(($ac_try" in
32904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32905   *) ac_try_echo=$ac_try;;
32906 esac
32907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32908   (eval "$ac_compile") 2>conftest.er1
32909   ac_status=$?
32910   grep -v '^ *+' conftest.er1 >conftest.err
32911   rm -f conftest.er1
32912   cat conftest.err >&5
32913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914   (exit $ac_status); } && {
32915          test -z "$ac_c_werror_flag" ||
32916          test ! -s conftest.err
32917        } && test -s conftest.$ac_objext; then
32918   ac_cv_type_signal=int
32919 else
32920   echo "$as_me: failed program was:" >&5
32921 sed 's/^/| /' conftest.$ac_ext >&5
32922
32923         ac_cv_type_signal=void
32924 fi
32925
32926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32927 fi
32928 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32929 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32930
32931 cat >>confdefs.h <<_ACEOF
32932 #define RETSIGTYPE $ac_cv_type_signal
32933 _ACEOF
32934
32935
32936
32937   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32938 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32939   if test "${bash_cv_signal_vintage+set}" = set; then
32940   echo $ECHO_N "(cached) $ECHO_C" >&6
32941 else
32942
32943     cat >conftest.$ac_ext <<_ACEOF
32944 /* confdefs.h.  */
32945 _ACEOF
32946 cat confdefs.h >>conftest.$ac_ext
32947 cat >>conftest.$ac_ext <<_ACEOF
32948 /* end confdefs.h.  */
32949 #include <signal.h>
32950 int
32951 main ()
32952 {
32953
32954       sigset_t ss;
32955       struct sigaction sa;
32956       sigemptyset(&ss); sigsuspend(&ss);
32957       sigaction(SIGINT, &sa, (struct sigaction *) 0);
32958       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32959
32960   ;
32961   return 0;
32962 }
32963 _ACEOF
32964 rm -f conftest.$ac_objext conftest$ac_exeext
32965 if { (ac_try="$ac_link"
32966 case "(($ac_try" in
32967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968   *) ac_try_echo=$ac_try;;
32969 esac
32970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971   (eval "$ac_link") 2>conftest.er1
32972   ac_status=$?
32973   grep -v '^ *+' conftest.er1 >conftest.err
32974   rm -f conftest.er1
32975   cat conftest.err >&5
32976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977   (exit $ac_status); } && {
32978          test -z "$ac_c_werror_flag" ||
32979          test ! -s conftest.err
32980        } && test -s conftest$ac_exeext &&
32981        $as_test_x conftest$ac_exeext; then
32982   bash_cv_signal_vintage="posix"
32983 else
32984   echo "$as_me: failed program was:" >&5
32985 sed 's/^/| /' conftest.$ac_ext >&5
32986
32987
32988       cat >conftest.$ac_ext <<_ACEOF
32989 /* confdefs.h.  */
32990 _ACEOF
32991 cat confdefs.h >>conftest.$ac_ext
32992 cat >>conftest.$ac_ext <<_ACEOF
32993 /* end confdefs.h.  */
32994 #include <signal.h>
32995 int
32996 main ()
32997 {
32998
32999           int mask = sigmask(SIGINT);
33000           sigsetmask(mask); sigblock(mask); sigpause(mask);
33001
33002   ;
33003   return 0;
33004 }
33005 _ACEOF
33006 rm -f conftest.$ac_objext conftest$ac_exeext
33007 if { (ac_try="$ac_link"
33008 case "(($ac_try" in
33009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33010   *) ac_try_echo=$ac_try;;
33011 esac
33012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33013   (eval "$ac_link") 2>conftest.er1
33014   ac_status=$?
33015   grep -v '^ *+' conftest.er1 >conftest.err
33016   rm -f conftest.er1
33017   cat conftest.err >&5
33018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019   (exit $ac_status); } && {
33020          test -z "$ac_c_werror_flag" ||
33021          test ! -s conftest.err
33022        } && test -s conftest$ac_exeext &&
33023        $as_test_x conftest$ac_exeext; then
33024   bash_cv_signal_vintage="4.2bsd"
33025 else
33026   echo "$as_me: failed program was:" >&5
33027 sed 's/^/| /' conftest.$ac_ext >&5
33028
33029
33030         cat >conftest.$ac_ext <<_ACEOF
33031 /* confdefs.h.  */
33032 _ACEOF
33033 cat confdefs.h >>conftest.$ac_ext
33034 cat >>conftest.$ac_ext <<_ACEOF
33035 /* end confdefs.h.  */
33036
33037           #include <signal.h>
33038           RETSIGTYPE foo() { }
33039 int
33040 main ()
33041 {
33042
33043                   int mask = sigmask(SIGINT);
33044                   sigset(SIGINT, foo); sigrelse(SIGINT);
33045                   sighold(SIGINT); sigpause(SIGINT);
33046
33047   ;
33048   return 0;
33049 }
33050 _ACEOF
33051 rm -f conftest.$ac_objext conftest$ac_exeext
33052 if { (ac_try="$ac_link"
33053 case "(($ac_try" in
33054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33055   *) ac_try_echo=$ac_try;;
33056 esac
33057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33058   (eval "$ac_link") 2>conftest.er1
33059   ac_status=$?
33060   grep -v '^ *+' conftest.er1 >conftest.err
33061   rm -f conftest.er1
33062   cat conftest.err >&5
33063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064   (exit $ac_status); } && {
33065          test -z "$ac_c_werror_flag" ||
33066          test ! -s conftest.err
33067        } && test -s conftest$ac_exeext &&
33068        $as_test_x conftest$ac_exeext; then
33069   bash_cv_signal_vintage="svr3"
33070 else
33071   echo "$as_me: failed program was:" >&5
33072 sed 's/^/| /' conftest.$ac_ext >&5
33073
33074         bash_cv_signal_vintage="v7"
33075
33076 fi
33077
33078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33079       conftest$ac_exeext conftest.$ac_ext
33080
33081 fi
33082
33083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33084       conftest$ac_exeext conftest.$ac_ext
33085
33086 fi
33087
33088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33089       conftest$ac_exeext conftest.$ac_ext
33090
33091 fi
33092
33093   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33094 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33095   if test "$bash_cv_signal_vintage" = "posix"; then
33096     cat >>confdefs.h <<\_ACEOF
33097 #define HAVE_POSIX_SIGNALS 1
33098 _ACEOF
33099
33100   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33101     cat >>confdefs.h <<\_ACEOF
33102 #define HAVE_BSD_SIGNALS 1
33103 _ACEOF
33104
33105   elif test "$bash_cv_signal_vintage" = "svr3"; then
33106     cat >>confdefs.h <<\_ACEOF
33107 #define HAVE_USG_SIGHOLD 1
33108 _ACEOF
33109
33110   fi
33111
33112 { echo "$as_me:$LINENO: checking for mode_t" >&5
33113 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33114 if test "${ac_cv_type_mode_t+set}" = set; then
33115   echo $ECHO_N "(cached) $ECHO_C" >&6
33116 else
33117   cat >conftest.$ac_ext <<_ACEOF
33118 /* confdefs.h.  */
33119 _ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h.  */
33123 $ac_includes_default
33124 typedef mode_t ac__type_new_;
33125 int
33126 main ()
33127 {
33128 if ((ac__type_new_ *) 0)
33129   return 0;
33130 if (sizeof (ac__type_new_))
33131   return 0;
33132   ;
33133   return 0;
33134 }
33135 _ACEOF
33136 rm -f conftest.$ac_objext
33137 if { (ac_try="$ac_compile"
33138 case "(($ac_try" in
33139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33140   *) ac_try_echo=$ac_try;;
33141 esac
33142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33143   (eval "$ac_compile") 2>conftest.er1
33144   ac_status=$?
33145   grep -v '^ *+' conftest.er1 >conftest.err
33146   rm -f conftest.er1
33147   cat conftest.err >&5
33148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149   (exit $ac_status); } && {
33150          test -z "$ac_c_werror_flag" ||
33151          test ! -s conftest.err
33152        } && test -s conftest.$ac_objext; then
33153   ac_cv_type_mode_t=yes
33154 else
33155   echo "$as_me: failed program was:" >&5
33156 sed 's/^/| /' conftest.$ac_ext >&5
33157
33158         ac_cv_type_mode_t=no
33159 fi
33160
33161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33162 fi
33163 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33164 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33165 if test $ac_cv_type_mode_t = yes; then
33166   :
33167 else
33168
33169 cat >>confdefs.h <<_ACEOF
33170 #define mode_t int
33171 _ACEOF
33172
33173 fi
33174
33175 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33176 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33177 if test "${ac_cv_type_uid_t+set}" = set; then
33178   echo $ECHO_N "(cached) $ECHO_C" >&6
33179 else
33180   cat >conftest.$ac_ext <<_ACEOF
33181 /* confdefs.h.  */
33182 _ACEOF
33183 cat confdefs.h >>conftest.$ac_ext
33184 cat >>conftest.$ac_ext <<_ACEOF
33185 /* end confdefs.h.  */
33186 #include <sys/types.h>
33187
33188 _ACEOF
33189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33190   $EGREP "uid_t" >/dev/null 2>&1; then
33191   ac_cv_type_uid_t=yes
33192 else
33193   ac_cv_type_uid_t=no
33194 fi
33195 rm -f conftest*
33196
33197 fi
33198 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33199 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33200 if test $ac_cv_type_uid_t = no; then
33201
33202 cat >>confdefs.h <<\_ACEOF
33203 #define uid_t int
33204 _ACEOF
33205
33206
33207 cat >>confdefs.h <<\_ACEOF
33208 #define gid_t int
33209 _ACEOF
33210
33211 fi
33212
33213 { echo "$as_me:$LINENO: checking for size_t" >&5
33214 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33215 if test "${ac_cv_type_size_t+set}" = set; then
33216   echo $ECHO_N "(cached) $ECHO_C" >&6
33217 else
33218   cat >conftest.$ac_ext <<_ACEOF
33219 /* confdefs.h.  */
33220 _ACEOF
33221 cat confdefs.h >>conftest.$ac_ext
33222 cat >>conftest.$ac_ext <<_ACEOF
33223 /* end confdefs.h.  */
33224 $ac_includes_default
33225 typedef size_t ac__type_new_;
33226 int
33227 main ()
33228 {
33229 if ((ac__type_new_ *) 0)
33230   return 0;
33231 if (sizeof (ac__type_new_))
33232   return 0;
33233   ;
33234   return 0;
33235 }
33236 _ACEOF
33237 rm -f conftest.$ac_objext
33238 if { (ac_try="$ac_compile"
33239 case "(($ac_try" in
33240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33241   *) ac_try_echo=$ac_try;;
33242 esac
33243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33244   (eval "$ac_compile") 2>conftest.er1
33245   ac_status=$?
33246   grep -v '^ *+' conftest.er1 >conftest.err
33247   rm -f conftest.er1
33248   cat conftest.err >&5
33249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250   (exit $ac_status); } && {
33251          test -z "$ac_c_werror_flag" ||
33252          test ! -s conftest.err
33253        } && test -s conftest.$ac_objext; then
33254   ac_cv_type_size_t=yes
33255 else
33256   echo "$as_me: failed program was:" >&5
33257 sed 's/^/| /' conftest.$ac_ext >&5
33258
33259         ac_cv_type_size_t=no
33260 fi
33261
33262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33263 fi
33264 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33265 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33266 if test $ac_cv_type_size_t = yes; then
33267   :
33268 else
33269
33270 cat >>confdefs.h <<_ACEOF
33271 #define size_t unsigned int
33272 _ACEOF
33273
33274 fi
33275
33276 { echo "$as_me:$LINENO: checking for pid_t" >&5
33277 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33278 if test "${ac_cv_type_pid_t+set}" = set; then
33279   echo $ECHO_N "(cached) $ECHO_C" >&6
33280 else
33281   cat >conftest.$ac_ext <<_ACEOF
33282 /* confdefs.h.  */
33283 _ACEOF
33284 cat confdefs.h >>conftest.$ac_ext
33285 cat >>conftest.$ac_ext <<_ACEOF
33286 /* end confdefs.h.  */
33287 $ac_includes_default
33288 typedef pid_t ac__type_new_;
33289 int
33290 main ()
33291 {
33292 if ((ac__type_new_ *) 0)
33293   return 0;
33294 if (sizeof (ac__type_new_))
33295   return 0;
33296   ;
33297   return 0;
33298 }
33299 _ACEOF
33300 rm -f conftest.$ac_objext
33301 if { (ac_try="$ac_compile"
33302 case "(($ac_try" in
33303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33304   *) ac_try_echo=$ac_try;;
33305 esac
33306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33307   (eval "$ac_compile") 2>conftest.er1
33308   ac_status=$?
33309   grep -v '^ *+' conftest.er1 >conftest.err
33310   rm -f conftest.er1
33311   cat conftest.err >&5
33312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313   (exit $ac_status); } && {
33314          test -z "$ac_c_werror_flag" ||
33315          test ! -s conftest.err
33316        } && test -s conftest.$ac_objext; then
33317   ac_cv_type_pid_t=yes
33318 else
33319   echo "$as_me: failed program was:" >&5
33320 sed 's/^/| /' conftest.$ac_ext >&5
33321
33322         ac_cv_type_pid_t=no
33323 fi
33324
33325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33326 fi
33327 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33328 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33329 if test $ac_cv_type_pid_t = yes; then
33330   :
33331 else
33332
33333 cat >>confdefs.h <<_ACEOF
33334 #define pid_t int
33335 _ACEOF
33336
33337 fi
33338
33339 { echo "$as_me:$LINENO: checking for off_t" >&5
33340 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33341 if test "${ac_cv_type_off_t+set}" = set; then
33342   echo $ECHO_N "(cached) $ECHO_C" >&6
33343 else
33344   cat >conftest.$ac_ext <<_ACEOF
33345 /* confdefs.h.  */
33346 _ACEOF
33347 cat confdefs.h >>conftest.$ac_ext
33348 cat >>conftest.$ac_ext <<_ACEOF
33349 /* end confdefs.h.  */
33350 $ac_includes_default
33351 typedef off_t ac__type_new_;
33352 int
33353 main ()
33354 {
33355 if ((ac__type_new_ *) 0)
33356   return 0;
33357 if (sizeof (ac__type_new_))
33358   return 0;
33359   ;
33360   return 0;
33361 }
33362 _ACEOF
33363 rm -f conftest.$ac_objext
33364 if { (ac_try="$ac_compile"
33365 case "(($ac_try" in
33366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33367   *) ac_try_echo=$ac_try;;
33368 esac
33369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33370   (eval "$ac_compile") 2>conftest.er1
33371   ac_status=$?
33372   grep -v '^ *+' conftest.er1 >conftest.err
33373   rm -f conftest.er1
33374   cat conftest.err >&5
33375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376   (exit $ac_status); } && {
33377          test -z "$ac_c_werror_flag" ||
33378          test ! -s conftest.err
33379        } && test -s conftest.$ac_objext; then
33380   ac_cv_type_off_t=yes
33381 else
33382   echo "$as_me: failed program was:" >&5
33383 sed 's/^/| /' conftest.$ac_ext >&5
33384
33385         ac_cv_type_off_t=no
33386 fi
33387
33388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33389 fi
33390 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33391 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33392 if test $ac_cv_type_off_t = yes; then
33393   :
33394 else
33395
33396 cat >>confdefs.h <<_ACEOF
33397 #define off_t long int
33398 _ACEOF
33399
33400 fi
33401
33402 { echo "$as_me:$LINENO: checking for ino_t" >&5
33403 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33404 if test "${ac_cv_type_ino_t+set}" = set; then
33405   echo $ECHO_N "(cached) $ECHO_C" >&6
33406 else
33407   cat >conftest.$ac_ext <<_ACEOF
33408 /* confdefs.h.  */
33409 _ACEOF
33410 cat confdefs.h >>conftest.$ac_ext
33411 cat >>conftest.$ac_ext <<_ACEOF
33412 /* end confdefs.h.  */
33413 $ac_includes_default
33414 typedef ino_t ac__type_new_;
33415 int
33416 main ()
33417 {
33418 if ((ac__type_new_ *) 0)
33419   return 0;
33420 if (sizeof (ac__type_new_))
33421   return 0;
33422   ;
33423   return 0;
33424 }
33425 _ACEOF
33426 rm -f conftest.$ac_objext
33427 if { (ac_try="$ac_compile"
33428 case "(($ac_try" in
33429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33430   *) ac_try_echo=$ac_try;;
33431 esac
33432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33433   (eval "$ac_compile") 2>conftest.er1
33434   ac_status=$?
33435   grep -v '^ *+' conftest.er1 >conftest.err
33436   rm -f conftest.er1
33437   cat conftest.err >&5
33438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439   (exit $ac_status); } && {
33440          test -z "$ac_c_werror_flag" ||
33441          test ! -s conftest.err
33442        } && test -s conftest.$ac_objext; then
33443   ac_cv_type_ino_t=yes
33444 else
33445   echo "$as_me: failed program was:" >&5
33446 sed 's/^/| /' conftest.$ac_ext >&5
33447
33448         ac_cv_type_ino_t=no
33449 fi
33450
33451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33452 fi
33453 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33454 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33455 if test $ac_cv_type_ino_t = yes; then
33456   :
33457 else
33458
33459 cat >>confdefs.h <<_ACEOF
33460 #define ino_t unsigned long
33461 _ACEOF
33462
33463 fi
33464
33465 { echo "$as_me:$LINENO: checking for dev_t" >&5
33466 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33467 if test "${ac_cv_type_dev_t+set}" = set; then
33468   echo $ECHO_N "(cached) $ECHO_C" >&6
33469 else
33470   cat >conftest.$ac_ext <<_ACEOF
33471 /* confdefs.h.  */
33472 _ACEOF
33473 cat confdefs.h >>conftest.$ac_ext
33474 cat >>conftest.$ac_ext <<_ACEOF
33475 /* end confdefs.h.  */
33476 $ac_includes_default
33477 typedef dev_t ac__type_new_;
33478 int
33479 main ()
33480 {
33481 if ((ac__type_new_ *) 0)
33482   return 0;
33483 if (sizeof (ac__type_new_))
33484   return 0;
33485   ;
33486   return 0;
33487 }
33488 _ACEOF
33489 rm -f conftest.$ac_objext
33490 if { (ac_try="$ac_compile"
33491 case "(($ac_try" in
33492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33493   *) ac_try_echo=$ac_try;;
33494 esac
33495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33496   (eval "$ac_compile") 2>conftest.er1
33497   ac_status=$?
33498   grep -v '^ *+' conftest.er1 >conftest.err
33499   rm -f conftest.er1
33500   cat conftest.err >&5
33501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33502   (exit $ac_status); } && {
33503          test -z "$ac_c_werror_flag" ||
33504          test ! -s conftest.err
33505        } && test -s conftest.$ac_objext; then
33506   ac_cv_type_dev_t=yes
33507 else
33508   echo "$as_me: failed program was:" >&5
33509 sed 's/^/| /' conftest.$ac_ext >&5
33510
33511         ac_cv_type_dev_t=no
33512 fi
33513
33514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33515 fi
33516 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33517 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33518 if test $ac_cv_type_dev_t = yes; then
33519   :
33520 else
33521
33522 cat >>confdefs.h <<_ACEOF
33523 #define dev_t unsigned long
33524 _ACEOF
33525
33526 fi
33527
33528 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33529 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33530 if test "${ac_cv_type_daddr_t+set}" = set; then
33531   echo $ECHO_N "(cached) $ECHO_C" >&6
33532 else
33533   cat >conftest.$ac_ext <<_ACEOF
33534 /* confdefs.h.  */
33535 _ACEOF
33536 cat confdefs.h >>conftest.$ac_ext
33537 cat >>conftest.$ac_ext <<_ACEOF
33538 /* end confdefs.h.  */
33539 $ac_includes_default
33540 typedef daddr_t ac__type_new_;
33541 int
33542 main ()
33543 {
33544 if ((ac__type_new_ *) 0)
33545   return 0;
33546 if (sizeof (ac__type_new_))
33547   return 0;
33548   ;
33549   return 0;
33550 }
33551 _ACEOF
33552 rm -f conftest.$ac_objext
33553 if { (ac_try="$ac_compile"
33554 case "(($ac_try" in
33555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33556   *) ac_try_echo=$ac_try;;
33557 esac
33558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33559   (eval "$ac_compile") 2>conftest.er1
33560   ac_status=$?
33561   grep -v '^ *+' conftest.er1 >conftest.err
33562   rm -f conftest.er1
33563   cat conftest.err >&5
33564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565   (exit $ac_status); } && {
33566          test -z "$ac_c_werror_flag" ||
33567          test ! -s conftest.err
33568        } && test -s conftest.$ac_objext; then
33569   ac_cv_type_daddr_t=yes
33570 else
33571   echo "$as_me: failed program was:" >&5
33572 sed 's/^/| /' conftest.$ac_ext >&5
33573
33574         ac_cv_type_daddr_t=no
33575 fi
33576
33577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33578 fi
33579 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33580 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33581 if test $ac_cv_type_daddr_t = yes; then
33582   :
33583 else
33584
33585 cat >>confdefs.h <<_ACEOF
33586 #define daddr_t long
33587 _ACEOF
33588
33589 fi
33590
33591 { echo "$as_me:$LINENO: checking for major_t" >&5
33592 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33593 if test "${ac_cv_type_major_t+set}" = set; then
33594   echo $ECHO_N "(cached) $ECHO_C" >&6
33595 else
33596   cat >conftest.$ac_ext <<_ACEOF
33597 /* confdefs.h.  */
33598 _ACEOF
33599 cat confdefs.h >>conftest.$ac_ext
33600 cat >>conftest.$ac_ext <<_ACEOF
33601 /* end confdefs.h.  */
33602 $ac_includes_default
33603 typedef major_t ac__type_new_;
33604 int
33605 main ()
33606 {
33607 if ((ac__type_new_ *) 0)
33608   return 0;
33609 if (sizeof (ac__type_new_))
33610   return 0;
33611   ;
33612   return 0;
33613 }
33614 _ACEOF
33615 rm -f conftest.$ac_objext
33616 if { (ac_try="$ac_compile"
33617 case "(($ac_try" in
33618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33619   *) ac_try_echo=$ac_try;;
33620 esac
33621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33622   (eval "$ac_compile") 2>conftest.er1
33623   ac_status=$?
33624   grep -v '^ *+' conftest.er1 >conftest.err
33625   rm -f conftest.er1
33626   cat conftest.err >&5
33627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628   (exit $ac_status); } && {
33629          test -z "$ac_c_werror_flag" ||
33630          test ! -s conftest.err
33631        } && test -s conftest.$ac_objext; then
33632   ac_cv_type_major_t=yes
33633 else
33634   echo "$as_me: failed program was:" >&5
33635 sed 's/^/| /' conftest.$ac_ext >&5
33636
33637         ac_cv_type_major_t=no
33638 fi
33639
33640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33641 fi
33642 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33643 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33644 if test $ac_cv_type_major_t = yes; then
33645   :
33646 else
33647
33648 cat >>confdefs.h <<_ACEOF
33649 #define major_t int
33650 _ACEOF
33651
33652 fi
33653
33654 { echo "$as_me:$LINENO: checking for minor_t" >&5
33655 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33656 if test "${ac_cv_type_minor_t+set}" = set; then
33657   echo $ECHO_N "(cached) $ECHO_C" >&6
33658 else
33659   cat >conftest.$ac_ext <<_ACEOF
33660 /* confdefs.h.  */
33661 _ACEOF
33662 cat confdefs.h >>conftest.$ac_ext
33663 cat >>conftest.$ac_ext <<_ACEOF
33664 /* end confdefs.h.  */
33665 $ac_includes_default
33666 typedef minor_t ac__type_new_;
33667 int
33668 main ()
33669 {
33670 if ((ac__type_new_ *) 0)
33671   return 0;
33672 if (sizeof (ac__type_new_))
33673   return 0;
33674   ;
33675   return 0;
33676 }
33677 _ACEOF
33678 rm -f conftest.$ac_objext
33679 if { (ac_try="$ac_compile"
33680 case "(($ac_try" in
33681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33682   *) ac_try_echo=$ac_try;;
33683 esac
33684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33685   (eval "$ac_compile") 2>conftest.er1
33686   ac_status=$?
33687   grep -v '^ *+' conftest.er1 >conftest.err
33688   rm -f conftest.er1
33689   cat conftest.err >&5
33690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691   (exit $ac_status); } && {
33692          test -z "$ac_c_werror_flag" ||
33693          test ! -s conftest.err
33694        } && test -s conftest.$ac_objext; then
33695   ac_cv_type_minor_t=yes
33696 else
33697   echo "$as_me: failed program was:" >&5
33698 sed 's/^/| /' conftest.$ac_ext >&5
33699
33700         ac_cv_type_minor_t=no
33701 fi
33702
33703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33704 fi
33705 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33706 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33707 if test $ac_cv_type_minor_t = yes; then
33708   :
33709 else
33710
33711 cat >>confdefs.h <<_ACEOF
33712 #define minor_t int
33713 _ACEOF
33714
33715 fi
33716
33717 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33718 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33719 if test "${ac_cv_type_ssize_t+set}" = set; then
33720   echo $ECHO_N "(cached) $ECHO_C" >&6
33721 else
33722   cat >conftest.$ac_ext <<_ACEOF
33723 /* confdefs.h.  */
33724 _ACEOF
33725 cat confdefs.h >>conftest.$ac_ext
33726 cat >>conftest.$ac_ext <<_ACEOF
33727 /* end confdefs.h.  */
33728 $ac_includes_default
33729 typedef ssize_t ac__type_new_;
33730 int
33731 main ()
33732 {
33733 if ((ac__type_new_ *) 0)
33734   return 0;
33735 if (sizeof (ac__type_new_))
33736   return 0;
33737   ;
33738   return 0;
33739 }
33740 _ACEOF
33741 rm -f conftest.$ac_objext
33742 if { (ac_try="$ac_compile"
33743 case "(($ac_try" in
33744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33745   *) ac_try_echo=$ac_try;;
33746 esac
33747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33748   (eval "$ac_compile") 2>conftest.er1
33749   ac_status=$?
33750   grep -v '^ *+' conftest.er1 >conftest.err
33751   rm -f conftest.er1
33752   cat conftest.err >&5
33753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754   (exit $ac_status); } && {
33755          test -z "$ac_c_werror_flag" ||
33756          test ! -s conftest.err
33757        } && test -s conftest.$ac_objext; then
33758   ac_cv_type_ssize_t=yes
33759 else
33760   echo "$as_me: failed program was:" >&5
33761 sed 's/^/| /' conftest.$ac_ext >&5
33762
33763         ac_cv_type_ssize_t=no
33764 fi
33765
33766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33767 fi
33768 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33769 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33770 if test $ac_cv_type_ssize_t = yes; then
33771   :
33772 else
33773
33774 cat >>confdefs.h <<_ACEOF
33775 #define ssize_t int
33776 _ACEOF
33777
33778 fi
33779
33780 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33781 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33782 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33783   echo $ECHO_N "(cached) $ECHO_C" >&6
33784 else
33785   cat >conftest.$ac_ext <<_ACEOF
33786 /* confdefs.h.  */
33787 _ACEOF
33788 cat confdefs.h >>conftest.$ac_ext
33789 cat >>conftest.$ac_ext <<_ACEOF
33790 /* end confdefs.h.  */
33791 $ac_includes_default
33792 int
33793 main ()
33794 {
33795 static struct stat ac_aggr;
33796 if (ac_aggr.st_blocks)
33797 return 0;
33798   ;
33799   return 0;
33800 }
33801 _ACEOF
33802 rm -f conftest.$ac_objext
33803 if { (ac_try="$ac_compile"
33804 case "(($ac_try" in
33805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33806   *) ac_try_echo=$ac_try;;
33807 esac
33808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33809   (eval "$ac_compile") 2>conftest.er1
33810   ac_status=$?
33811   grep -v '^ *+' conftest.er1 >conftest.err
33812   rm -f conftest.er1
33813   cat conftest.err >&5
33814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815   (exit $ac_status); } && {
33816          test -z "$ac_c_werror_flag" ||
33817          test ! -s conftest.err
33818        } && test -s conftest.$ac_objext; then
33819   ac_cv_member_struct_stat_st_blocks=yes
33820 else
33821   echo "$as_me: failed program was:" >&5
33822 sed 's/^/| /' conftest.$ac_ext >&5
33823
33824         cat >conftest.$ac_ext <<_ACEOF
33825 /* confdefs.h.  */
33826 _ACEOF
33827 cat confdefs.h >>conftest.$ac_ext
33828 cat >>conftest.$ac_ext <<_ACEOF
33829 /* end confdefs.h.  */
33830 $ac_includes_default
33831 int
33832 main ()
33833 {
33834 static struct stat ac_aggr;
33835 if (sizeof ac_aggr.st_blocks)
33836 return 0;
33837   ;
33838   return 0;
33839 }
33840 _ACEOF
33841 rm -f conftest.$ac_objext
33842 if { (ac_try="$ac_compile"
33843 case "(($ac_try" in
33844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33845   *) ac_try_echo=$ac_try;;
33846 esac
33847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33848   (eval "$ac_compile") 2>conftest.er1
33849   ac_status=$?
33850   grep -v '^ *+' conftest.er1 >conftest.err
33851   rm -f conftest.er1
33852   cat conftest.err >&5
33853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854   (exit $ac_status); } && {
33855          test -z "$ac_c_werror_flag" ||
33856          test ! -s conftest.err
33857        } && test -s conftest.$ac_objext; then
33858   ac_cv_member_struct_stat_st_blocks=yes
33859 else
33860   echo "$as_me: failed program was:" >&5
33861 sed 's/^/| /' conftest.$ac_ext >&5
33862
33863         ac_cv_member_struct_stat_st_blocks=no
33864 fi
33865
33866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33867 fi
33868
33869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33870 fi
33871 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33872 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33873 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33874
33875 cat >>confdefs.h <<_ACEOF
33876 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33877 _ACEOF
33878
33879
33880 cat >>confdefs.h <<\_ACEOF
33881 #define HAVE_ST_BLOCKS 1
33882 _ACEOF
33883
33884 else
33885   case " $LIBOBJS " in
33886   *" fileblocks.$ac_objext "* ) ;;
33887   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33888  ;;
33889 esac
33890
33891 fi
33892
33893
33894 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33895 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33896 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33897   echo $ECHO_N "(cached) $ECHO_C" >&6
33898 else
33899   cat >conftest.$ac_ext <<_ACEOF
33900 /* confdefs.h.  */
33901 _ACEOF
33902 cat confdefs.h >>conftest.$ac_ext
33903 cat >>conftest.$ac_ext <<_ACEOF
33904 /* end confdefs.h.  */
33905 $ac_includes_default
33906 int
33907 main ()
33908 {
33909 static struct stat ac_aggr;
33910 if (ac_aggr.st_rdev)
33911 return 0;
33912   ;
33913   return 0;
33914 }
33915 _ACEOF
33916 rm -f conftest.$ac_objext
33917 if { (ac_try="$ac_compile"
33918 case "(($ac_try" in
33919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33920   *) ac_try_echo=$ac_try;;
33921 esac
33922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33923   (eval "$ac_compile") 2>conftest.er1
33924   ac_status=$?
33925   grep -v '^ *+' conftest.er1 >conftest.err
33926   rm -f conftest.er1
33927   cat conftest.err >&5
33928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929   (exit $ac_status); } && {
33930          test -z "$ac_c_werror_flag" ||
33931          test ! -s conftest.err
33932        } && test -s conftest.$ac_objext; then
33933   ac_cv_member_struct_stat_st_rdev=yes
33934 else
33935   echo "$as_me: failed program was:" >&5
33936 sed 's/^/| /' conftest.$ac_ext >&5
33937
33938         cat >conftest.$ac_ext <<_ACEOF
33939 /* confdefs.h.  */
33940 _ACEOF
33941 cat confdefs.h >>conftest.$ac_ext
33942 cat >>conftest.$ac_ext <<_ACEOF
33943 /* end confdefs.h.  */
33944 $ac_includes_default
33945 int
33946 main ()
33947 {
33948 static struct stat ac_aggr;
33949 if (sizeof ac_aggr.st_rdev)
33950 return 0;
33951   ;
33952   return 0;
33953 }
33954 _ACEOF
33955 rm -f conftest.$ac_objext
33956 if { (ac_try="$ac_compile"
33957 case "(($ac_try" in
33958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33959   *) ac_try_echo=$ac_try;;
33960 esac
33961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33962   (eval "$ac_compile") 2>conftest.er1
33963   ac_status=$?
33964   grep -v '^ *+' conftest.er1 >conftest.err
33965   rm -f conftest.er1
33966   cat conftest.err >&5
33967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33968   (exit $ac_status); } && {
33969          test -z "$ac_c_werror_flag" ||
33970          test ! -s conftest.err
33971        } && test -s conftest.$ac_objext; then
33972   ac_cv_member_struct_stat_st_rdev=yes
33973 else
33974   echo "$as_me: failed program was:" >&5
33975 sed 's/^/| /' conftest.$ac_ext >&5
33976
33977         ac_cv_member_struct_stat_st_rdev=no
33978 fi
33979
33980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33981 fi
33982
33983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33984 fi
33985 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33986 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33987 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33988
33989 cat >>confdefs.h <<_ACEOF
33990 #define HAVE_STRUCT_STAT_ST_RDEV 1
33991 _ACEOF
33992
33993
33994 cat >>confdefs.h <<\_ACEOF
33995 #define HAVE_ST_RDEV 1
33996 _ACEOF
33997
33998 fi
33999
34000
34001 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34002 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34003 if test "${ac_cv_struct_tm+set}" = set; then
34004   echo $ECHO_N "(cached) $ECHO_C" >&6
34005 else
34006   cat >conftest.$ac_ext <<_ACEOF
34007 /* confdefs.h.  */
34008 _ACEOF
34009 cat confdefs.h >>conftest.$ac_ext
34010 cat >>conftest.$ac_ext <<_ACEOF
34011 /* end confdefs.h.  */
34012 #include <sys/types.h>
34013 #include <time.h>
34014
34015 int
34016 main ()
34017 {
34018 struct tm tm;
34019                                      int *p = &tm.tm_sec;
34020                                      return !p;
34021   ;
34022   return 0;
34023 }
34024 _ACEOF
34025 rm -f conftest.$ac_objext
34026 if { (ac_try="$ac_compile"
34027 case "(($ac_try" in
34028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34029   *) ac_try_echo=$ac_try;;
34030 esac
34031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34032   (eval "$ac_compile") 2>conftest.er1
34033   ac_status=$?
34034   grep -v '^ *+' conftest.er1 >conftest.err
34035   rm -f conftest.er1
34036   cat conftest.err >&5
34037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038   (exit $ac_status); } && {
34039          test -z "$ac_c_werror_flag" ||
34040          test ! -s conftest.err
34041        } && test -s conftest.$ac_objext; then
34042   ac_cv_struct_tm=time.h
34043 else
34044   echo "$as_me: failed program was:" >&5
34045 sed 's/^/| /' conftest.$ac_ext >&5
34046
34047         ac_cv_struct_tm=sys/time.h
34048 fi
34049
34050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34051 fi
34052 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34053 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34054 if test $ac_cv_struct_tm = sys/time.h; then
34055
34056 cat >>confdefs.h <<\_ACEOF
34057 #define TM_IN_SYS_TIME 1
34058 _ACEOF
34059
34060 fi
34061
34062 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34063 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34064 if test "${ac_cv_c_const+set}" = set; then
34065   echo $ECHO_N "(cached) $ECHO_C" >&6
34066 else
34067   cat >conftest.$ac_ext <<_ACEOF
34068 /* confdefs.h.  */
34069 _ACEOF
34070 cat confdefs.h >>conftest.$ac_ext
34071 cat >>conftest.$ac_ext <<_ACEOF
34072 /* end confdefs.h.  */
34073
34074 int
34075 main ()
34076 {
34077 /* FIXME: Include the comments suggested by Paul. */
34078 #ifndef __cplusplus
34079   /* Ultrix mips cc rejects this.  */
34080   typedef int charset[2];
34081   const charset cs;
34082   /* SunOS 4.1.1 cc rejects this.  */
34083   char const *const *pcpcc;
34084   char **ppc;
34085   /* NEC SVR4.0.2 mips cc rejects this.  */
34086   struct point {int x, y;};
34087   static struct point const zero = {0,0};
34088   /* AIX XL C 1.02.0.0 rejects this.
34089      It does not let you subtract one const X* pointer from another in
34090      an arm of an if-expression whose if-part is not a constant
34091      expression */
34092   const char *g = "string";
34093   pcpcc = &g + (g ? g-g : 0);
34094   /* HPUX 7.0 cc rejects these. */
34095   ++pcpcc;
34096   ppc = (char**) pcpcc;
34097   pcpcc = (char const *const *) ppc;
34098   { /* SCO 3.2v4 cc rejects this.  */
34099     char *t;
34100     char const *s = 0 ? (char *) 0 : (char const *) 0;
34101
34102     *t++ = 0;
34103     if (s) return 0;
34104   }
34105   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34106     int x[] = {25, 17};
34107     const int *foo = &x[0];
34108     ++foo;
34109   }
34110   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34111     typedef const int *iptr;
34112     iptr p = 0;
34113     ++p;
34114   }
34115   { /* AIX XL C 1.02.0.0 rejects this saying
34116        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34117     struct s { int j; const int *ap[3]; };
34118     struct s *b; b->j = 5;
34119   }
34120   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34121     const int foo = 10;
34122     if (!foo) return 0;
34123   }
34124   return !cs[0] && !zero.x;
34125 #endif
34126
34127   ;
34128   return 0;
34129 }
34130 _ACEOF
34131 rm -f conftest.$ac_objext
34132 if { (ac_try="$ac_compile"
34133 case "(($ac_try" in
34134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34135   *) ac_try_echo=$ac_try;;
34136 esac
34137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34138   (eval "$ac_compile") 2>conftest.er1
34139   ac_status=$?
34140   grep -v '^ *+' conftest.er1 >conftest.err
34141   rm -f conftest.er1
34142   cat conftest.err >&5
34143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144   (exit $ac_status); } && {
34145          test -z "$ac_c_werror_flag" ||
34146          test ! -s conftest.err
34147        } && test -s conftest.$ac_objext; then
34148   ac_cv_c_const=yes
34149 else
34150   echo "$as_me: failed program was:" >&5
34151 sed 's/^/| /' conftest.$ac_ext >&5
34152
34153         ac_cv_c_const=no
34154 fi
34155
34156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34157 fi
34158 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34159 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34160 if test $ac_cv_c_const = no; then
34161
34162 cat >>confdefs.h <<\_ACEOF
34163 #define const
34164 _ACEOF
34165
34166 fi
34167
34168
34169 { echo "$as_me:$LINENO: checking for char" >&5
34170 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34171 if test "${ac_cv_type_char+set}" = set; then
34172   echo $ECHO_N "(cached) $ECHO_C" >&6
34173 else
34174   cat >conftest.$ac_ext <<_ACEOF
34175 /* confdefs.h.  */
34176 _ACEOF
34177 cat confdefs.h >>conftest.$ac_ext
34178 cat >>conftest.$ac_ext <<_ACEOF
34179 /* end confdefs.h.  */
34180 $ac_includes_default
34181 typedef char ac__type_new_;
34182 int
34183 main ()
34184 {
34185 if ((ac__type_new_ *) 0)
34186   return 0;
34187 if (sizeof (ac__type_new_))
34188   return 0;
34189   ;
34190   return 0;
34191 }
34192 _ACEOF
34193 rm -f conftest.$ac_objext
34194 if { (ac_try="$ac_compile"
34195 case "(($ac_try" in
34196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34197   *) ac_try_echo=$ac_try;;
34198 esac
34199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34200   (eval "$ac_compile") 2>conftest.er1
34201   ac_status=$?
34202   grep -v '^ *+' conftest.er1 >conftest.err
34203   rm -f conftest.er1
34204   cat conftest.err >&5
34205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34206   (exit $ac_status); } && {
34207          test -z "$ac_c_werror_flag" ||
34208          test ! -s conftest.err
34209        } && test -s conftest.$ac_objext; then
34210   ac_cv_type_char=yes
34211 else
34212   echo "$as_me: failed program was:" >&5
34213 sed 's/^/| /' conftest.$ac_ext >&5
34214
34215         ac_cv_type_char=no
34216 fi
34217
34218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34219 fi
34220 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34221 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34222
34223 # The cast to long int works around a bug in the HP C Compiler
34224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34226 # This bug is HP SR number 8606223364.
34227 { echo "$as_me:$LINENO: checking size of char" >&5
34228 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34229 if test "${ac_cv_sizeof_char+set}" = set; then
34230   echo $ECHO_N "(cached) $ECHO_C" >&6
34231 else
34232   if test "$cross_compiling" = yes; then
34233   # Depending upon the size, compute the lo and hi bounds.
34234 cat >conftest.$ac_ext <<_ACEOF
34235 /* confdefs.h.  */
34236 _ACEOF
34237 cat confdefs.h >>conftest.$ac_ext
34238 cat >>conftest.$ac_ext <<_ACEOF
34239 /* end confdefs.h.  */
34240 $ac_includes_default
34241    typedef char ac__type_sizeof_;
34242 int
34243 main ()
34244 {
34245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34246 test_array [0] = 0
34247
34248   ;
34249   return 0;
34250 }
34251 _ACEOF
34252 rm -f conftest.$ac_objext
34253 if { (ac_try="$ac_compile"
34254 case "(($ac_try" in
34255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34256   *) ac_try_echo=$ac_try;;
34257 esac
34258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34259   (eval "$ac_compile") 2>conftest.er1
34260   ac_status=$?
34261   grep -v '^ *+' conftest.er1 >conftest.err
34262   rm -f conftest.er1
34263   cat conftest.err >&5
34264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265   (exit $ac_status); } && {
34266          test -z "$ac_c_werror_flag" ||
34267          test ! -s conftest.err
34268        } && test -s conftest.$ac_objext; then
34269   ac_lo=0 ac_mid=0
34270   while :; do
34271     cat >conftest.$ac_ext <<_ACEOF
34272 /* confdefs.h.  */
34273 _ACEOF
34274 cat confdefs.h >>conftest.$ac_ext
34275 cat >>conftest.$ac_ext <<_ACEOF
34276 /* end confdefs.h.  */
34277 $ac_includes_default
34278    typedef char ac__type_sizeof_;
34279 int
34280 main ()
34281 {
34282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34283 test_array [0] = 0
34284
34285   ;
34286   return 0;
34287 }
34288 _ACEOF
34289 rm -f conftest.$ac_objext
34290 if { (ac_try="$ac_compile"
34291 case "(($ac_try" in
34292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34293   *) ac_try_echo=$ac_try;;
34294 esac
34295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34296   (eval "$ac_compile") 2>conftest.er1
34297   ac_status=$?
34298   grep -v '^ *+' conftest.er1 >conftest.err
34299   rm -f conftest.er1
34300   cat conftest.err >&5
34301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302   (exit $ac_status); } && {
34303          test -z "$ac_c_werror_flag" ||
34304          test ! -s conftest.err
34305        } && test -s conftest.$ac_objext; then
34306   ac_hi=$ac_mid; break
34307 else
34308   echo "$as_me: failed program was:" >&5
34309 sed 's/^/| /' conftest.$ac_ext >&5
34310
34311         ac_lo=`expr $ac_mid + 1`
34312                         if test $ac_lo -le $ac_mid; then
34313                           ac_lo= ac_hi=
34314                           break
34315                         fi
34316                         ac_mid=`expr 2 '*' $ac_mid + 1`
34317 fi
34318
34319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34320   done
34321 else
34322   echo "$as_me: failed program was:" >&5
34323 sed 's/^/| /' conftest.$ac_ext >&5
34324
34325         cat >conftest.$ac_ext <<_ACEOF
34326 /* confdefs.h.  */
34327 _ACEOF
34328 cat confdefs.h >>conftest.$ac_ext
34329 cat >>conftest.$ac_ext <<_ACEOF
34330 /* end confdefs.h.  */
34331 $ac_includes_default
34332    typedef char ac__type_sizeof_;
34333 int
34334 main ()
34335 {
34336 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34337 test_array [0] = 0
34338
34339   ;
34340   return 0;
34341 }
34342 _ACEOF
34343 rm -f conftest.$ac_objext
34344 if { (ac_try="$ac_compile"
34345 case "(($ac_try" in
34346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34347   *) ac_try_echo=$ac_try;;
34348 esac
34349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34350   (eval "$ac_compile") 2>conftest.er1
34351   ac_status=$?
34352   grep -v '^ *+' conftest.er1 >conftest.err
34353   rm -f conftest.er1
34354   cat conftest.err >&5
34355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34356   (exit $ac_status); } && {
34357          test -z "$ac_c_werror_flag" ||
34358          test ! -s conftest.err
34359        } && test -s conftest.$ac_objext; then
34360   ac_hi=-1 ac_mid=-1
34361   while :; do
34362     cat >conftest.$ac_ext <<_ACEOF
34363 /* confdefs.h.  */
34364 _ACEOF
34365 cat confdefs.h >>conftest.$ac_ext
34366 cat >>conftest.$ac_ext <<_ACEOF
34367 /* end confdefs.h.  */
34368 $ac_includes_default
34369    typedef char ac__type_sizeof_;
34370 int
34371 main ()
34372 {
34373 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34374 test_array [0] = 0
34375
34376   ;
34377   return 0;
34378 }
34379 _ACEOF
34380 rm -f conftest.$ac_objext
34381 if { (ac_try="$ac_compile"
34382 case "(($ac_try" in
34383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34384   *) ac_try_echo=$ac_try;;
34385 esac
34386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34387   (eval "$ac_compile") 2>conftest.er1
34388   ac_status=$?
34389   grep -v '^ *+' conftest.er1 >conftest.err
34390   rm -f conftest.er1
34391   cat conftest.err >&5
34392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393   (exit $ac_status); } && {
34394          test -z "$ac_c_werror_flag" ||
34395          test ! -s conftest.err
34396        } && test -s conftest.$ac_objext; then
34397   ac_lo=$ac_mid; break
34398 else
34399   echo "$as_me: failed program was:" >&5
34400 sed 's/^/| /' conftest.$ac_ext >&5
34401
34402         ac_hi=`expr '(' $ac_mid ')' - 1`
34403                         if test $ac_mid -le $ac_hi; then
34404                           ac_lo= ac_hi=
34405                           break
34406                         fi
34407                         ac_mid=`expr 2 '*' $ac_mid`
34408 fi
34409
34410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34411   done
34412 else
34413   echo "$as_me: failed program was:" >&5
34414 sed 's/^/| /' conftest.$ac_ext >&5
34415
34416         ac_lo= ac_hi=
34417 fi
34418
34419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34420 fi
34421
34422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34423 # Binary search between lo and hi bounds.
34424 while test "x$ac_lo" != "x$ac_hi"; do
34425   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34426   cat >conftest.$ac_ext <<_ACEOF
34427 /* confdefs.h.  */
34428 _ACEOF
34429 cat confdefs.h >>conftest.$ac_ext
34430 cat >>conftest.$ac_ext <<_ACEOF
34431 /* end confdefs.h.  */
34432 $ac_includes_default
34433    typedef char ac__type_sizeof_;
34434 int
34435 main ()
34436 {
34437 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34438 test_array [0] = 0
34439
34440   ;
34441   return 0;
34442 }
34443 _ACEOF
34444 rm -f conftest.$ac_objext
34445 if { (ac_try="$ac_compile"
34446 case "(($ac_try" in
34447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34448   *) ac_try_echo=$ac_try;;
34449 esac
34450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34451   (eval "$ac_compile") 2>conftest.er1
34452   ac_status=$?
34453   grep -v '^ *+' conftest.er1 >conftest.err
34454   rm -f conftest.er1
34455   cat conftest.err >&5
34456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457   (exit $ac_status); } && {
34458          test -z "$ac_c_werror_flag" ||
34459          test ! -s conftest.err
34460        } && test -s conftest.$ac_objext; then
34461   ac_hi=$ac_mid
34462 else
34463   echo "$as_me: failed program was:" >&5
34464 sed 's/^/| /' conftest.$ac_ext >&5
34465
34466         ac_lo=`expr '(' $ac_mid ')' + 1`
34467 fi
34468
34469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34470 done
34471 case $ac_lo in
34472 ?*) ac_cv_sizeof_char=$ac_lo;;
34473 '') if test "$ac_cv_type_char" = yes; then
34474      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34475 See \`config.log' for more details." >&5
34476 echo "$as_me: error: cannot compute sizeof (char)
34477 See \`config.log' for more details." >&2;}
34478    { (exit 77); exit 77; }; }
34479    else
34480      ac_cv_sizeof_char=0
34481    fi ;;
34482 esac
34483 else
34484   cat >conftest.$ac_ext <<_ACEOF
34485 /* confdefs.h.  */
34486 _ACEOF
34487 cat confdefs.h >>conftest.$ac_ext
34488 cat >>conftest.$ac_ext <<_ACEOF
34489 /* end confdefs.h.  */
34490 $ac_includes_default
34491    typedef char ac__type_sizeof_;
34492 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34493 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34494 #include <stdio.h>
34495 #include <stdlib.h>
34496 int
34497 main ()
34498 {
34499
34500   FILE *f = fopen ("conftest.val", "w");
34501   if (! f)
34502     return 1;
34503   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34504     {
34505       long int i = longval ();
34506       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34507         return 1;
34508       fprintf (f, "%ld\n", i);
34509     }
34510   else
34511     {
34512       unsigned long int i = ulongval ();
34513       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34514         return 1;
34515       fprintf (f, "%lu\n", i);
34516     }
34517   return ferror (f) || fclose (f) != 0;
34518
34519   ;
34520   return 0;
34521 }
34522 _ACEOF
34523 rm -f conftest$ac_exeext
34524 if { (ac_try="$ac_link"
34525 case "(($ac_try" in
34526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34527   *) ac_try_echo=$ac_try;;
34528 esac
34529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34530   (eval "$ac_link") 2>&5
34531   ac_status=$?
34532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34534   { (case "(($ac_try" in
34535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34536   *) ac_try_echo=$ac_try;;
34537 esac
34538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34539   (eval "$ac_try") 2>&5
34540   ac_status=$?
34541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34542   (exit $ac_status); }; }; then
34543   ac_cv_sizeof_char=`cat conftest.val`
34544 else
34545   echo "$as_me: program exited with status $ac_status" >&5
34546 echo "$as_me: failed program was:" >&5
34547 sed 's/^/| /' conftest.$ac_ext >&5
34548
34549 ( exit $ac_status )
34550 if test "$ac_cv_type_char" = yes; then
34551      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34552 See \`config.log' for more details." >&5
34553 echo "$as_me: error: cannot compute sizeof (char)
34554 See \`config.log' for more details." >&2;}
34555    { (exit 77); exit 77; }; }
34556    else
34557      ac_cv_sizeof_char=0
34558    fi
34559 fi
34560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34561 fi
34562 rm -f conftest.val
34563 fi
34564 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34565 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34566
34567
34568
34569 cat >>confdefs.h <<_ACEOF
34570 #define SIZEOF_CHAR $ac_cv_sizeof_char
34571 _ACEOF
34572
34573
34574 { echo "$as_me:$LINENO: checking for short int" >&5
34575 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34576 if test "${ac_cv_type_short_int+set}" = set; then
34577   echo $ECHO_N "(cached) $ECHO_C" >&6
34578 else
34579   cat >conftest.$ac_ext <<_ACEOF
34580 /* confdefs.h.  */
34581 _ACEOF
34582 cat confdefs.h >>conftest.$ac_ext
34583 cat >>conftest.$ac_ext <<_ACEOF
34584 /* end confdefs.h.  */
34585 $ac_includes_default
34586 typedef short int ac__type_new_;
34587 int
34588 main ()
34589 {
34590 if ((ac__type_new_ *) 0)
34591   return 0;
34592 if (sizeof (ac__type_new_))
34593   return 0;
34594   ;
34595   return 0;
34596 }
34597 _ACEOF
34598 rm -f conftest.$ac_objext
34599 if { (ac_try="$ac_compile"
34600 case "(($ac_try" in
34601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34602   *) ac_try_echo=$ac_try;;
34603 esac
34604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34605   (eval "$ac_compile") 2>conftest.er1
34606   ac_status=$?
34607   grep -v '^ *+' conftest.er1 >conftest.err
34608   rm -f conftest.er1
34609   cat conftest.err >&5
34610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611   (exit $ac_status); } && {
34612          test -z "$ac_c_werror_flag" ||
34613          test ! -s conftest.err
34614        } && test -s conftest.$ac_objext; then
34615   ac_cv_type_short_int=yes
34616 else
34617   echo "$as_me: failed program was:" >&5
34618 sed 's/^/| /' conftest.$ac_ext >&5
34619
34620         ac_cv_type_short_int=no
34621 fi
34622
34623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34624 fi
34625 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34626 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34627
34628 # The cast to long int works around a bug in the HP C Compiler
34629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34631 # This bug is HP SR number 8606223364.
34632 { echo "$as_me:$LINENO: checking size of short int" >&5
34633 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34634 if test "${ac_cv_sizeof_short_int+set}" = set; then
34635   echo $ECHO_N "(cached) $ECHO_C" >&6
34636 else
34637   if test "$cross_compiling" = yes; then
34638   # Depending upon the size, compute the lo and hi bounds.
34639 cat >conftest.$ac_ext <<_ACEOF
34640 /* confdefs.h.  */
34641 _ACEOF
34642 cat confdefs.h >>conftest.$ac_ext
34643 cat >>conftest.$ac_ext <<_ACEOF
34644 /* end confdefs.h.  */
34645 $ac_includes_default
34646    typedef short int ac__type_sizeof_;
34647 int
34648 main ()
34649 {
34650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34651 test_array [0] = 0
34652
34653   ;
34654   return 0;
34655 }
34656 _ACEOF
34657 rm -f conftest.$ac_objext
34658 if { (ac_try="$ac_compile"
34659 case "(($ac_try" in
34660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34661   *) ac_try_echo=$ac_try;;
34662 esac
34663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34664   (eval "$ac_compile") 2>conftest.er1
34665   ac_status=$?
34666   grep -v '^ *+' conftest.er1 >conftest.err
34667   rm -f conftest.er1
34668   cat conftest.err >&5
34669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670   (exit $ac_status); } && {
34671          test -z "$ac_c_werror_flag" ||
34672          test ! -s conftest.err
34673        } && test -s conftest.$ac_objext; then
34674   ac_lo=0 ac_mid=0
34675   while :; do
34676     cat >conftest.$ac_ext <<_ACEOF
34677 /* confdefs.h.  */
34678 _ACEOF
34679 cat confdefs.h >>conftest.$ac_ext
34680 cat >>conftest.$ac_ext <<_ACEOF
34681 /* end confdefs.h.  */
34682 $ac_includes_default
34683    typedef short int ac__type_sizeof_;
34684 int
34685 main ()
34686 {
34687 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34688 test_array [0] = 0
34689
34690   ;
34691   return 0;
34692 }
34693 _ACEOF
34694 rm -f conftest.$ac_objext
34695 if { (ac_try="$ac_compile"
34696 case "(($ac_try" in
34697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34698   *) ac_try_echo=$ac_try;;
34699 esac
34700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34701   (eval "$ac_compile") 2>conftest.er1
34702   ac_status=$?
34703   grep -v '^ *+' conftest.er1 >conftest.err
34704   rm -f conftest.er1
34705   cat conftest.err >&5
34706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707   (exit $ac_status); } && {
34708          test -z "$ac_c_werror_flag" ||
34709          test ! -s conftest.err
34710        } && test -s conftest.$ac_objext; then
34711   ac_hi=$ac_mid; break
34712 else
34713   echo "$as_me: failed program was:" >&5
34714 sed 's/^/| /' conftest.$ac_ext >&5
34715
34716         ac_lo=`expr $ac_mid + 1`
34717                         if test $ac_lo -le $ac_mid; then
34718                           ac_lo= ac_hi=
34719                           break
34720                         fi
34721                         ac_mid=`expr 2 '*' $ac_mid + 1`
34722 fi
34723
34724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34725   done
34726 else
34727   echo "$as_me: failed program was:" >&5
34728 sed 's/^/| /' conftest.$ac_ext >&5
34729
34730         cat >conftest.$ac_ext <<_ACEOF
34731 /* confdefs.h.  */
34732 _ACEOF
34733 cat confdefs.h >>conftest.$ac_ext
34734 cat >>conftest.$ac_ext <<_ACEOF
34735 /* end confdefs.h.  */
34736 $ac_includes_default
34737    typedef short int ac__type_sizeof_;
34738 int
34739 main ()
34740 {
34741 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34742 test_array [0] = 0
34743
34744   ;
34745   return 0;
34746 }
34747 _ACEOF
34748 rm -f conftest.$ac_objext
34749 if { (ac_try="$ac_compile"
34750 case "(($ac_try" in
34751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34752   *) ac_try_echo=$ac_try;;
34753 esac
34754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34755   (eval "$ac_compile") 2>conftest.er1
34756   ac_status=$?
34757   grep -v '^ *+' conftest.er1 >conftest.err
34758   rm -f conftest.er1
34759   cat conftest.err >&5
34760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761   (exit $ac_status); } && {
34762          test -z "$ac_c_werror_flag" ||
34763          test ! -s conftest.err
34764        } && test -s conftest.$ac_objext; then
34765   ac_hi=-1 ac_mid=-1
34766   while :; do
34767     cat >conftest.$ac_ext <<_ACEOF
34768 /* confdefs.h.  */
34769 _ACEOF
34770 cat confdefs.h >>conftest.$ac_ext
34771 cat >>conftest.$ac_ext <<_ACEOF
34772 /* end confdefs.h.  */
34773 $ac_includes_default
34774    typedef short int ac__type_sizeof_;
34775 int
34776 main ()
34777 {
34778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34779 test_array [0] = 0
34780
34781   ;
34782   return 0;
34783 }
34784 _ACEOF
34785 rm -f conftest.$ac_objext
34786 if { (ac_try="$ac_compile"
34787 case "(($ac_try" in
34788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34789   *) ac_try_echo=$ac_try;;
34790 esac
34791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34792   (eval "$ac_compile") 2>conftest.er1
34793   ac_status=$?
34794   grep -v '^ *+' conftest.er1 >conftest.err
34795   rm -f conftest.er1
34796   cat conftest.err >&5
34797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34798   (exit $ac_status); } && {
34799          test -z "$ac_c_werror_flag" ||
34800          test ! -s conftest.err
34801        } && test -s conftest.$ac_objext; then
34802   ac_lo=$ac_mid; break
34803 else
34804   echo "$as_me: failed program was:" >&5
34805 sed 's/^/| /' conftest.$ac_ext >&5
34806
34807         ac_hi=`expr '(' $ac_mid ')' - 1`
34808                         if test $ac_mid -le $ac_hi; then
34809                           ac_lo= ac_hi=
34810                           break
34811                         fi
34812                         ac_mid=`expr 2 '*' $ac_mid`
34813 fi
34814
34815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34816   done
34817 else
34818   echo "$as_me: failed program was:" >&5
34819 sed 's/^/| /' conftest.$ac_ext >&5
34820
34821         ac_lo= ac_hi=
34822 fi
34823
34824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34825 fi
34826
34827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34828 # Binary search between lo and hi bounds.
34829 while test "x$ac_lo" != "x$ac_hi"; do
34830   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34831   cat >conftest.$ac_ext <<_ACEOF
34832 /* confdefs.h.  */
34833 _ACEOF
34834 cat confdefs.h >>conftest.$ac_ext
34835 cat >>conftest.$ac_ext <<_ACEOF
34836 /* end confdefs.h.  */
34837 $ac_includes_default
34838    typedef short int ac__type_sizeof_;
34839 int
34840 main ()
34841 {
34842 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34843 test_array [0] = 0
34844
34845   ;
34846   return 0;
34847 }
34848 _ACEOF
34849 rm -f conftest.$ac_objext
34850 if { (ac_try="$ac_compile"
34851 case "(($ac_try" in
34852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34853   *) ac_try_echo=$ac_try;;
34854 esac
34855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34856   (eval "$ac_compile") 2>conftest.er1
34857   ac_status=$?
34858   grep -v '^ *+' conftest.er1 >conftest.err
34859   rm -f conftest.er1
34860   cat conftest.err >&5
34861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862   (exit $ac_status); } && {
34863          test -z "$ac_c_werror_flag" ||
34864          test ! -s conftest.err
34865        } && test -s conftest.$ac_objext; then
34866   ac_hi=$ac_mid
34867 else
34868   echo "$as_me: failed program was:" >&5
34869 sed 's/^/| /' conftest.$ac_ext >&5
34870
34871         ac_lo=`expr '(' $ac_mid ')' + 1`
34872 fi
34873
34874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875 done
34876 case $ac_lo in
34877 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34878 '') if test "$ac_cv_type_short_int" = yes; then
34879      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34880 See \`config.log' for more details." >&5
34881 echo "$as_me: error: cannot compute sizeof (short int)
34882 See \`config.log' for more details." >&2;}
34883    { (exit 77); exit 77; }; }
34884    else
34885      ac_cv_sizeof_short_int=0
34886    fi ;;
34887 esac
34888 else
34889   cat >conftest.$ac_ext <<_ACEOF
34890 /* confdefs.h.  */
34891 _ACEOF
34892 cat confdefs.h >>conftest.$ac_ext
34893 cat >>conftest.$ac_ext <<_ACEOF
34894 /* end confdefs.h.  */
34895 $ac_includes_default
34896    typedef short int ac__type_sizeof_;
34897 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34898 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34899 #include <stdio.h>
34900 #include <stdlib.h>
34901 int
34902 main ()
34903 {
34904
34905   FILE *f = fopen ("conftest.val", "w");
34906   if (! f)
34907     return 1;
34908   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34909     {
34910       long int i = longval ();
34911       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34912         return 1;
34913       fprintf (f, "%ld\n", i);
34914     }
34915   else
34916     {
34917       unsigned long int i = ulongval ();
34918       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34919         return 1;
34920       fprintf (f, "%lu\n", i);
34921     }
34922   return ferror (f) || fclose (f) != 0;
34923
34924   ;
34925   return 0;
34926 }
34927 _ACEOF
34928 rm -f conftest$ac_exeext
34929 if { (ac_try="$ac_link"
34930 case "(($ac_try" in
34931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34932   *) ac_try_echo=$ac_try;;
34933 esac
34934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34935   (eval "$ac_link") 2>&5
34936   ac_status=$?
34937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34939   { (case "(($ac_try" in
34940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34941   *) ac_try_echo=$ac_try;;
34942 esac
34943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34944   (eval "$ac_try") 2>&5
34945   ac_status=$?
34946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947   (exit $ac_status); }; }; then
34948   ac_cv_sizeof_short_int=`cat conftest.val`
34949 else
34950   echo "$as_me: program exited with status $ac_status" >&5
34951 echo "$as_me: failed program was:" >&5
34952 sed 's/^/| /' conftest.$ac_ext >&5
34953
34954 ( exit $ac_status )
34955 if test "$ac_cv_type_short_int" = yes; then
34956      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34957 See \`config.log' for more details." >&5
34958 echo "$as_me: error: cannot compute sizeof (short int)
34959 See \`config.log' for more details." >&2;}
34960    { (exit 77); exit 77; }; }
34961    else
34962      ac_cv_sizeof_short_int=0
34963    fi
34964 fi
34965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34966 fi
34967 rm -f conftest.val
34968 fi
34969 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34970 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34971
34972
34973
34974 cat >>confdefs.h <<_ACEOF
34975 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34976 _ACEOF
34977
34978
34979 { echo "$as_me:$LINENO: checking for int" >&5
34980 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34981 if test "${ac_cv_type_int+set}" = set; then
34982   echo $ECHO_N "(cached) $ECHO_C" >&6
34983 else
34984   cat >conftest.$ac_ext <<_ACEOF
34985 /* confdefs.h.  */
34986 _ACEOF
34987 cat confdefs.h >>conftest.$ac_ext
34988 cat >>conftest.$ac_ext <<_ACEOF
34989 /* end confdefs.h.  */
34990 $ac_includes_default
34991 typedef int ac__type_new_;
34992 int
34993 main ()
34994 {
34995 if ((ac__type_new_ *) 0)
34996   return 0;
34997 if (sizeof (ac__type_new_))
34998   return 0;
34999   ;
35000   return 0;
35001 }
35002 _ACEOF
35003 rm -f conftest.$ac_objext
35004 if { (ac_try="$ac_compile"
35005 case "(($ac_try" in
35006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35007   *) ac_try_echo=$ac_try;;
35008 esac
35009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35010   (eval "$ac_compile") 2>conftest.er1
35011   ac_status=$?
35012   grep -v '^ *+' conftest.er1 >conftest.err
35013   rm -f conftest.er1
35014   cat conftest.err >&5
35015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35016   (exit $ac_status); } && {
35017          test -z "$ac_c_werror_flag" ||
35018          test ! -s conftest.err
35019        } && test -s conftest.$ac_objext; then
35020   ac_cv_type_int=yes
35021 else
35022   echo "$as_me: failed program was:" >&5
35023 sed 's/^/| /' conftest.$ac_ext >&5
35024
35025         ac_cv_type_int=no
35026 fi
35027
35028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35029 fi
35030 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35031 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35032
35033 # The cast to long int works around a bug in the HP C Compiler
35034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35036 # This bug is HP SR number 8606223364.
35037 { echo "$as_me:$LINENO: checking size of int" >&5
35038 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35039 if test "${ac_cv_sizeof_int+set}" = set; then
35040   echo $ECHO_N "(cached) $ECHO_C" >&6
35041 else
35042   if test "$cross_compiling" = yes; then
35043   # Depending upon the size, compute the lo and hi bounds.
35044 cat >conftest.$ac_ext <<_ACEOF
35045 /* confdefs.h.  */
35046 _ACEOF
35047 cat confdefs.h >>conftest.$ac_ext
35048 cat >>conftest.$ac_ext <<_ACEOF
35049 /* end confdefs.h.  */
35050 $ac_includes_default
35051    typedef int ac__type_sizeof_;
35052 int
35053 main ()
35054 {
35055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35056 test_array [0] = 0
35057
35058   ;
35059   return 0;
35060 }
35061 _ACEOF
35062 rm -f conftest.$ac_objext
35063 if { (ac_try="$ac_compile"
35064 case "(($ac_try" in
35065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35066   *) ac_try_echo=$ac_try;;
35067 esac
35068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35069   (eval "$ac_compile") 2>conftest.er1
35070   ac_status=$?
35071   grep -v '^ *+' conftest.er1 >conftest.err
35072   rm -f conftest.er1
35073   cat conftest.err >&5
35074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35075   (exit $ac_status); } && {
35076          test -z "$ac_c_werror_flag" ||
35077          test ! -s conftest.err
35078        } && test -s conftest.$ac_objext; then
35079   ac_lo=0 ac_mid=0
35080   while :; do
35081     cat >conftest.$ac_ext <<_ACEOF
35082 /* confdefs.h.  */
35083 _ACEOF
35084 cat confdefs.h >>conftest.$ac_ext
35085 cat >>conftest.$ac_ext <<_ACEOF
35086 /* end confdefs.h.  */
35087 $ac_includes_default
35088    typedef int ac__type_sizeof_;
35089 int
35090 main ()
35091 {
35092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35093 test_array [0] = 0
35094
35095   ;
35096   return 0;
35097 }
35098 _ACEOF
35099 rm -f conftest.$ac_objext
35100 if { (ac_try="$ac_compile"
35101 case "(($ac_try" in
35102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35103   *) ac_try_echo=$ac_try;;
35104 esac
35105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35106   (eval "$ac_compile") 2>conftest.er1
35107   ac_status=$?
35108   grep -v '^ *+' conftest.er1 >conftest.err
35109   rm -f conftest.er1
35110   cat conftest.err >&5
35111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35112   (exit $ac_status); } && {
35113          test -z "$ac_c_werror_flag" ||
35114          test ! -s conftest.err
35115        } && test -s conftest.$ac_objext; then
35116   ac_hi=$ac_mid; break
35117 else
35118   echo "$as_me: failed program was:" >&5
35119 sed 's/^/| /' conftest.$ac_ext >&5
35120
35121         ac_lo=`expr $ac_mid + 1`
35122                         if test $ac_lo -le $ac_mid; then
35123                           ac_lo= ac_hi=
35124                           break
35125                         fi
35126                         ac_mid=`expr 2 '*' $ac_mid + 1`
35127 fi
35128
35129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35130   done
35131 else
35132   echo "$as_me: failed program was:" >&5
35133 sed 's/^/| /' conftest.$ac_ext >&5
35134
35135         cat >conftest.$ac_ext <<_ACEOF
35136 /* confdefs.h.  */
35137 _ACEOF
35138 cat confdefs.h >>conftest.$ac_ext
35139 cat >>conftest.$ac_ext <<_ACEOF
35140 /* end confdefs.h.  */
35141 $ac_includes_default
35142    typedef int ac__type_sizeof_;
35143 int
35144 main ()
35145 {
35146 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35147 test_array [0] = 0
35148
35149   ;
35150   return 0;
35151 }
35152 _ACEOF
35153 rm -f conftest.$ac_objext
35154 if { (ac_try="$ac_compile"
35155 case "(($ac_try" in
35156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35157   *) ac_try_echo=$ac_try;;
35158 esac
35159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35160   (eval "$ac_compile") 2>conftest.er1
35161   ac_status=$?
35162   grep -v '^ *+' conftest.er1 >conftest.err
35163   rm -f conftest.er1
35164   cat conftest.err >&5
35165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166   (exit $ac_status); } && {
35167          test -z "$ac_c_werror_flag" ||
35168          test ! -s conftest.err
35169        } && test -s conftest.$ac_objext; then
35170   ac_hi=-1 ac_mid=-1
35171   while :; do
35172     cat >conftest.$ac_ext <<_ACEOF
35173 /* confdefs.h.  */
35174 _ACEOF
35175 cat confdefs.h >>conftest.$ac_ext
35176 cat >>conftest.$ac_ext <<_ACEOF
35177 /* end confdefs.h.  */
35178 $ac_includes_default
35179    typedef int ac__type_sizeof_;
35180 int
35181 main ()
35182 {
35183 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35184 test_array [0] = 0
35185
35186   ;
35187   return 0;
35188 }
35189 _ACEOF
35190 rm -f conftest.$ac_objext
35191 if { (ac_try="$ac_compile"
35192 case "(($ac_try" in
35193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35194   *) ac_try_echo=$ac_try;;
35195 esac
35196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35197   (eval "$ac_compile") 2>conftest.er1
35198   ac_status=$?
35199   grep -v '^ *+' conftest.er1 >conftest.err
35200   rm -f conftest.er1
35201   cat conftest.err >&5
35202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35203   (exit $ac_status); } && {
35204          test -z "$ac_c_werror_flag" ||
35205          test ! -s conftest.err
35206        } && test -s conftest.$ac_objext; then
35207   ac_lo=$ac_mid; break
35208 else
35209   echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.$ac_ext >&5
35211
35212         ac_hi=`expr '(' $ac_mid ')' - 1`
35213                         if test $ac_mid -le $ac_hi; then
35214                           ac_lo= ac_hi=
35215                           break
35216                         fi
35217                         ac_mid=`expr 2 '*' $ac_mid`
35218 fi
35219
35220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35221   done
35222 else
35223   echo "$as_me: failed program was:" >&5
35224 sed 's/^/| /' conftest.$ac_ext >&5
35225
35226         ac_lo= ac_hi=
35227 fi
35228
35229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35230 fi
35231
35232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35233 # Binary search between lo and hi bounds.
35234 while test "x$ac_lo" != "x$ac_hi"; do
35235   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35236   cat >conftest.$ac_ext <<_ACEOF
35237 /* confdefs.h.  */
35238 _ACEOF
35239 cat confdefs.h >>conftest.$ac_ext
35240 cat >>conftest.$ac_ext <<_ACEOF
35241 /* end confdefs.h.  */
35242 $ac_includes_default
35243    typedef int ac__type_sizeof_;
35244 int
35245 main ()
35246 {
35247 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35248 test_array [0] = 0
35249
35250   ;
35251   return 0;
35252 }
35253 _ACEOF
35254 rm -f conftest.$ac_objext
35255 if { (ac_try="$ac_compile"
35256 case "(($ac_try" in
35257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35258   *) ac_try_echo=$ac_try;;
35259 esac
35260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35261   (eval "$ac_compile") 2>conftest.er1
35262   ac_status=$?
35263   grep -v '^ *+' conftest.er1 >conftest.err
35264   rm -f conftest.er1
35265   cat conftest.err >&5
35266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267   (exit $ac_status); } && {
35268          test -z "$ac_c_werror_flag" ||
35269          test ! -s conftest.err
35270        } && test -s conftest.$ac_objext; then
35271   ac_hi=$ac_mid
35272 else
35273   echo "$as_me: failed program was:" >&5
35274 sed 's/^/| /' conftest.$ac_ext >&5
35275
35276         ac_lo=`expr '(' $ac_mid ')' + 1`
35277 fi
35278
35279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35280 done
35281 case $ac_lo in
35282 ?*) ac_cv_sizeof_int=$ac_lo;;
35283 '') if test "$ac_cv_type_int" = yes; then
35284      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35285 See \`config.log' for more details." >&5
35286 echo "$as_me: error: cannot compute sizeof (int)
35287 See \`config.log' for more details." >&2;}
35288    { (exit 77); exit 77; }; }
35289    else
35290      ac_cv_sizeof_int=0
35291    fi ;;
35292 esac
35293 else
35294   cat >conftest.$ac_ext <<_ACEOF
35295 /* confdefs.h.  */
35296 _ACEOF
35297 cat confdefs.h >>conftest.$ac_ext
35298 cat >>conftest.$ac_ext <<_ACEOF
35299 /* end confdefs.h.  */
35300 $ac_includes_default
35301    typedef int ac__type_sizeof_;
35302 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35303 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35304 #include <stdio.h>
35305 #include <stdlib.h>
35306 int
35307 main ()
35308 {
35309
35310   FILE *f = fopen ("conftest.val", "w");
35311   if (! f)
35312     return 1;
35313   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35314     {
35315       long int i = longval ();
35316       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35317         return 1;
35318       fprintf (f, "%ld\n", i);
35319     }
35320   else
35321     {
35322       unsigned long int i = ulongval ();
35323       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35324         return 1;
35325       fprintf (f, "%lu\n", i);
35326     }
35327   return ferror (f) || fclose (f) != 0;
35328
35329   ;
35330   return 0;
35331 }
35332 _ACEOF
35333 rm -f conftest$ac_exeext
35334 if { (ac_try="$ac_link"
35335 case "(($ac_try" in
35336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35337   *) ac_try_echo=$ac_try;;
35338 esac
35339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35340   (eval "$ac_link") 2>&5
35341   ac_status=$?
35342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35344   { (case "(($ac_try" in
35345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35346   *) ac_try_echo=$ac_try;;
35347 esac
35348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35349   (eval "$ac_try") 2>&5
35350   ac_status=$?
35351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352   (exit $ac_status); }; }; then
35353   ac_cv_sizeof_int=`cat conftest.val`
35354 else
35355   echo "$as_me: program exited with status $ac_status" >&5
35356 echo "$as_me: failed program was:" >&5
35357 sed 's/^/| /' conftest.$ac_ext >&5
35358
35359 ( exit $ac_status )
35360 if test "$ac_cv_type_int" = yes; then
35361      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35362 See \`config.log' for more details." >&5
35363 echo "$as_me: error: cannot compute sizeof (int)
35364 See \`config.log' for more details." >&2;}
35365    { (exit 77); exit 77; }; }
35366    else
35367      ac_cv_sizeof_int=0
35368    fi
35369 fi
35370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35371 fi
35372 rm -f conftest.val
35373 fi
35374 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35375 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35376
35377
35378
35379 cat >>confdefs.h <<_ACEOF
35380 #define SIZEOF_INT $ac_cv_sizeof_int
35381 _ACEOF
35382
35383
35384 { echo "$as_me:$LINENO: checking for long int" >&5
35385 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35386 if test "${ac_cv_type_long_int+set}" = set; then
35387   echo $ECHO_N "(cached) $ECHO_C" >&6
35388 else
35389   cat >conftest.$ac_ext <<_ACEOF
35390 /* confdefs.h.  */
35391 _ACEOF
35392 cat confdefs.h >>conftest.$ac_ext
35393 cat >>conftest.$ac_ext <<_ACEOF
35394 /* end confdefs.h.  */
35395 $ac_includes_default
35396 typedef long int ac__type_new_;
35397 int
35398 main ()
35399 {
35400 if ((ac__type_new_ *) 0)
35401   return 0;
35402 if (sizeof (ac__type_new_))
35403   return 0;
35404   ;
35405   return 0;
35406 }
35407 _ACEOF
35408 rm -f conftest.$ac_objext
35409 if { (ac_try="$ac_compile"
35410 case "(($ac_try" in
35411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35412   *) ac_try_echo=$ac_try;;
35413 esac
35414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35415   (eval "$ac_compile") 2>conftest.er1
35416   ac_status=$?
35417   grep -v '^ *+' conftest.er1 >conftest.err
35418   rm -f conftest.er1
35419   cat conftest.err >&5
35420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421   (exit $ac_status); } && {
35422          test -z "$ac_c_werror_flag" ||
35423          test ! -s conftest.err
35424        } && test -s conftest.$ac_objext; then
35425   ac_cv_type_long_int=yes
35426 else
35427   echo "$as_me: failed program was:" >&5
35428 sed 's/^/| /' conftest.$ac_ext >&5
35429
35430         ac_cv_type_long_int=no
35431 fi
35432
35433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35434 fi
35435 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35436 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35437
35438 # The cast to long int works around a bug in the HP C Compiler
35439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35441 # This bug is HP SR number 8606223364.
35442 { echo "$as_me:$LINENO: checking size of long int" >&5
35443 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35444 if test "${ac_cv_sizeof_long_int+set}" = set; then
35445   echo $ECHO_N "(cached) $ECHO_C" >&6
35446 else
35447   if test "$cross_compiling" = yes; then
35448   # Depending upon the size, compute the lo and hi bounds.
35449 cat >conftest.$ac_ext <<_ACEOF
35450 /* confdefs.h.  */
35451 _ACEOF
35452 cat confdefs.h >>conftest.$ac_ext
35453 cat >>conftest.$ac_ext <<_ACEOF
35454 /* end confdefs.h.  */
35455 $ac_includes_default
35456    typedef long int ac__type_sizeof_;
35457 int
35458 main ()
35459 {
35460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35461 test_array [0] = 0
35462
35463   ;
35464   return 0;
35465 }
35466 _ACEOF
35467 rm -f conftest.$ac_objext
35468 if { (ac_try="$ac_compile"
35469 case "(($ac_try" in
35470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35471   *) ac_try_echo=$ac_try;;
35472 esac
35473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35474   (eval "$ac_compile") 2>conftest.er1
35475   ac_status=$?
35476   grep -v '^ *+' conftest.er1 >conftest.err
35477   rm -f conftest.er1
35478   cat conftest.err >&5
35479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480   (exit $ac_status); } && {
35481          test -z "$ac_c_werror_flag" ||
35482          test ! -s conftest.err
35483        } && test -s conftest.$ac_objext; then
35484   ac_lo=0 ac_mid=0
35485   while :; do
35486     cat >conftest.$ac_ext <<_ACEOF
35487 /* confdefs.h.  */
35488 _ACEOF
35489 cat confdefs.h >>conftest.$ac_ext
35490 cat >>conftest.$ac_ext <<_ACEOF
35491 /* end confdefs.h.  */
35492 $ac_includes_default
35493    typedef long int ac__type_sizeof_;
35494 int
35495 main ()
35496 {
35497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35498 test_array [0] = 0
35499
35500   ;
35501   return 0;
35502 }
35503 _ACEOF
35504 rm -f conftest.$ac_objext
35505 if { (ac_try="$ac_compile"
35506 case "(($ac_try" in
35507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35508   *) ac_try_echo=$ac_try;;
35509 esac
35510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35511   (eval "$ac_compile") 2>conftest.er1
35512   ac_status=$?
35513   grep -v '^ *+' conftest.er1 >conftest.err
35514   rm -f conftest.er1
35515   cat conftest.err >&5
35516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35517   (exit $ac_status); } && {
35518          test -z "$ac_c_werror_flag" ||
35519          test ! -s conftest.err
35520        } && test -s conftest.$ac_objext; then
35521   ac_hi=$ac_mid; break
35522 else
35523   echo "$as_me: failed program was:" >&5
35524 sed 's/^/| /' conftest.$ac_ext >&5
35525
35526         ac_lo=`expr $ac_mid + 1`
35527                         if test $ac_lo -le $ac_mid; then
35528                           ac_lo= ac_hi=
35529                           break
35530                         fi
35531                         ac_mid=`expr 2 '*' $ac_mid + 1`
35532 fi
35533
35534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35535   done
35536 else
35537   echo "$as_me: failed program was:" >&5
35538 sed 's/^/| /' conftest.$ac_ext >&5
35539
35540         cat >conftest.$ac_ext <<_ACEOF
35541 /* confdefs.h.  */
35542 _ACEOF
35543 cat confdefs.h >>conftest.$ac_ext
35544 cat >>conftest.$ac_ext <<_ACEOF
35545 /* end confdefs.h.  */
35546 $ac_includes_default
35547    typedef long int ac__type_sizeof_;
35548 int
35549 main ()
35550 {
35551 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35552 test_array [0] = 0
35553
35554   ;
35555   return 0;
35556 }
35557 _ACEOF
35558 rm -f conftest.$ac_objext
35559 if { (ac_try="$ac_compile"
35560 case "(($ac_try" in
35561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35562   *) ac_try_echo=$ac_try;;
35563 esac
35564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35565   (eval "$ac_compile") 2>conftest.er1
35566   ac_status=$?
35567   grep -v '^ *+' conftest.er1 >conftest.err
35568   rm -f conftest.er1
35569   cat conftest.err >&5
35570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35571   (exit $ac_status); } && {
35572          test -z "$ac_c_werror_flag" ||
35573          test ! -s conftest.err
35574        } && test -s conftest.$ac_objext; then
35575   ac_hi=-1 ac_mid=-1
35576   while :; do
35577     cat >conftest.$ac_ext <<_ACEOF
35578 /* confdefs.h.  */
35579 _ACEOF
35580 cat confdefs.h >>conftest.$ac_ext
35581 cat >>conftest.$ac_ext <<_ACEOF
35582 /* end confdefs.h.  */
35583 $ac_includes_default
35584    typedef long int ac__type_sizeof_;
35585 int
35586 main ()
35587 {
35588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35589 test_array [0] = 0
35590
35591   ;
35592   return 0;
35593 }
35594 _ACEOF
35595 rm -f conftest.$ac_objext
35596 if { (ac_try="$ac_compile"
35597 case "(($ac_try" in
35598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35599   *) ac_try_echo=$ac_try;;
35600 esac
35601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35602   (eval "$ac_compile") 2>conftest.er1
35603   ac_status=$?
35604   grep -v '^ *+' conftest.er1 >conftest.err
35605   rm -f conftest.er1
35606   cat conftest.err >&5
35607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608   (exit $ac_status); } && {
35609          test -z "$ac_c_werror_flag" ||
35610          test ! -s conftest.err
35611        } && test -s conftest.$ac_objext; then
35612   ac_lo=$ac_mid; break
35613 else
35614   echo "$as_me: failed program was:" >&5
35615 sed 's/^/| /' conftest.$ac_ext >&5
35616
35617         ac_hi=`expr '(' $ac_mid ')' - 1`
35618                         if test $ac_mid -le $ac_hi; then
35619                           ac_lo= ac_hi=
35620                           break
35621                         fi
35622                         ac_mid=`expr 2 '*' $ac_mid`
35623 fi
35624
35625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35626   done
35627 else
35628   echo "$as_me: failed program was:" >&5
35629 sed 's/^/| /' conftest.$ac_ext >&5
35630
35631         ac_lo= ac_hi=
35632 fi
35633
35634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35635 fi
35636
35637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35638 # Binary search between lo and hi bounds.
35639 while test "x$ac_lo" != "x$ac_hi"; do
35640   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35641   cat >conftest.$ac_ext <<_ACEOF
35642 /* confdefs.h.  */
35643 _ACEOF
35644 cat confdefs.h >>conftest.$ac_ext
35645 cat >>conftest.$ac_ext <<_ACEOF
35646 /* end confdefs.h.  */
35647 $ac_includes_default
35648    typedef long int ac__type_sizeof_;
35649 int
35650 main ()
35651 {
35652 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35653 test_array [0] = 0
35654
35655   ;
35656   return 0;
35657 }
35658 _ACEOF
35659 rm -f conftest.$ac_objext
35660 if { (ac_try="$ac_compile"
35661 case "(($ac_try" in
35662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35663   *) ac_try_echo=$ac_try;;
35664 esac
35665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35666   (eval "$ac_compile") 2>conftest.er1
35667   ac_status=$?
35668   grep -v '^ *+' conftest.er1 >conftest.err
35669   rm -f conftest.er1
35670   cat conftest.err >&5
35671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35672   (exit $ac_status); } && {
35673          test -z "$ac_c_werror_flag" ||
35674          test ! -s conftest.err
35675        } && test -s conftest.$ac_objext; then
35676   ac_hi=$ac_mid
35677 else
35678   echo "$as_me: failed program was:" >&5
35679 sed 's/^/| /' conftest.$ac_ext >&5
35680
35681         ac_lo=`expr '(' $ac_mid ')' + 1`
35682 fi
35683
35684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35685 done
35686 case $ac_lo in
35687 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35688 '') if test "$ac_cv_type_long_int" = yes; then
35689      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35690 See \`config.log' for more details." >&5
35691 echo "$as_me: error: cannot compute sizeof (long int)
35692 See \`config.log' for more details." >&2;}
35693    { (exit 77); exit 77; }; }
35694    else
35695      ac_cv_sizeof_long_int=0
35696    fi ;;
35697 esac
35698 else
35699   cat >conftest.$ac_ext <<_ACEOF
35700 /* confdefs.h.  */
35701 _ACEOF
35702 cat confdefs.h >>conftest.$ac_ext
35703 cat >>conftest.$ac_ext <<_ACEOF
35704 /* end confdefs.h.  */
35705 $ac_includes_default
35706    typedef long int ac__type_sizeof_;
35707 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35708 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35709 #include <stdio.h>
35710 #include <stdlib.h>
35711 int
35712 main ()
35713 {
35714
35715   FILE *f = fopen ("conftest.val", "w");
35716   if (! f)
35717     return 1;
35718   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35719     {
35720       long int i = longval ();
35721       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35722         return 1;
35723       fprintf (f, "%ld\n", i);
35724     }
35725   else
35726     {
35727       unsigned long int i = ulongval ();
35728       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35729         return 1;
35730       fprintf (f, "%lu\n", i);
35731     }
35732   return ferror (f) || fclose (f) != 0;
35733
35734   ;
35735   return 0;
35736 }
35737 _ACEOF
35738 rm -f conftest$ac_exeext
35739 if { (ac_try="$ac_link"
35740 case "(($ac_try" in
35741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35742   *) ac_try_echo=$ac_try;;
35743 esac
35744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35745   (eval "$ac_link") 2>&5
35746   ac_status=$?
35747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35749   { (case "(($ac_try" in
35750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35751   *) ac_try_echo=$ac_try;;
35752 esac
35753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35754   (eval "$ac_try") 2>&5
35755   ac_status=$?
35756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35757   (exit $ac_status); }; }; then
35758   ac_cv_sizeof_long_int=`cat conftest.val`
35759 else
35760   echo "$as_me: program exited with status $ac_status" >&5
35761 echo "$as_me: failed program was:" >&5
35762 sed 's/^/| /' conftest.$ac_ext >&5
35763
35764 ( exit $ac_status )
35765 if test "$ac_cv_type_long_int" = yes; then
35766      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35767 See \`config.log' for more details." >&5
35768 echo "$as_me: error: cannot compute sizeof (long int)
35769 See \`config.log' for more details." >&2;}
35770    { (exit 77); exit 77; }; }
35771    else
35772      ac_cv_sizeof_long_int=0
35773    fi
35774 fi
35775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35776 fi
35777 rm -f conftest.val
35778 fi
35779 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35780 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35781
35782
35783
35784 cat >>confdefs.h <<_ACEOF
35785 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35786 _ACEOF
35787
35788
35789 { echo "$as_me:$LINENO: checking for long long int" >&5
35790 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35791 if test "${ac_cv_type_long_long_int+set}" = set; then
35792   echo $ECHO_N "(cached) $ECHO_C" >&6
35793 else
35794   cat >conftest.$ac_ext <<_ACEOF
35795 /* confdefs.h.  */
35796 _ACEOF
35797 cat confdefs.h >>conftest.$ac_ext
35798 cat >>conftest.$ac_ext <<_ACEOF
35799 /* end confdefs.h.  */
35800 $ac_includes_default
35801 typedef long long int ac__type_new_;
35802 int
35803 main ()
35804 {
35805 if ((ac__type_new_ *) 0)
35806   return 0;
35807 if (sizeof (ac__type_new_))
35808   return 0;
35809   ;
35810   return 0;
35811 }
35812 _ACEOF
35813 rm -f conftest.$ac_objext
35814 if { (ac_try="$ac_compile"
35815 case "(($ac_try" in
35816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35817   *) ac_try_echo=$ac_try;;
35818 esac
35819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35820   (eval "$ac_compile") 2>conftest.er1
35821   ac_status=$?
35822   grep -v '^ *+' conftest.er1 >conftest.err
35823   rm -f conftest.er1
35824   cat conftest.err >&5
35825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35826   (exit $ac_status); } && {
35827          test -z "$ac_c_werror_flag" ||
35828          test ! -s conftest.err
35829        } && test -s conftest.$ac_objext; then
35830   ac_cv_type_long_long_int=yes
35831 else
35832   echo "$as_me: failed program was:" >&5
35833 sed 's/^/| /' conftest.$ac_ext >&5
35834
35835         ac_cv_type_long_long_int=no
35836 fi
35837
35838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35839 fi
35840 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35841 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35842
35843 # The cast to long int works around a bug in the HP C Compiler
35844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35846 # This bug is HP SR number 8606223364.
35847 { echo "$as_me:$LINENO: checking size of long long int" >&5
35848 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35849 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35850   echo $ECHO_N "(cached) $ECHO_C" >&6
35851 else
35852   if test "$cross_compiling" = yes; then
35853   # Depending upon the size, compute the lo and hi bounds.
35854 cat >conftest.$ac_ext <<_ACEOF
35855 /* confdefs.h.  */
35856 _ACEOF
35857 cat confdefs.h >>conftest.$ac_ext
35858 cat >>conftest.$ac_ext <<_ACEOF
35859 /* end confdefs.h.  */
35860 $ac_includes_default
35861    typedef long long int ac__type_sizeof_;
35862 int
35863 main ()
35864 {
35865 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35866 test_array [0] = 0
35867
35868   ;
35869   return 0;
35870 }
35871 _ACEOF
35872 rm -f conftest.$ac_objext
35873 if { (ac_try="$ac_compile"
35874 case "(($ac_try" in
35875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35876   *) ac_try_echo=$ac_try;;
35877 esac
35878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35879   (eval "$ac_compile") 2>conftest.er1
35880   ac_status=$?
35881   grep -v '^ *+' conftest.er1 >conftest.err
35882   rm -f conftest.er1
35883   cat conftest.err >&5
35884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35885   (exit $ac_status); } && {
35886          test -z "$ac_c_werror_flag" ||
35887          test ! -s conftest.err
35888        } && test -s conftest.$ac_objext; then
35889   ac_lo=0 ac_mid=0
35890   while :; do
35891     cat >conftest.$ac_ext <<_ACEOF
35892 /* confdefs.h.  */
35893 _ACEOF
35894 cat confdefs.h >>conftest.$ac_ext
35895 cat >>conftest.$ac_ext <<_ACEOF
35896 /* end confdefs.h.  */
35897 $ac_includes_default
35898    typedef long long int ac__type_sizeof_;
35899 int
35900 main ()
35901 {
35902 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35903 test_array [0] = 0
35904
35905   ;
35906   return 0;
35907 }
35908 _ACEOF
35909 rm -f conftest.$ac_objext
35910 if { (ac_try="$ac_compile"
35911 case "(($ac_try" in
35912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35913   *) ac_try_echo=$ac_try;;
35914 esac
35915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35916   (eval "$ac_compile") 2>conftest.er1
35917   ac_status=$?
35918   grep -v '^ *+' conftest.er1 >conftest.err
35919   rm -f conftest.er1
35920   cat conftest.err >&5
35921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35922   (exit $ac_status); } && {
35923          test -z "$ac_c_werror_flag" ||
35924          test ! -s conftest.err
35925        } && test -s conftest.$ac_objext; then
35926   ac_hi=$ac_mid; break
35927 else
35928   echo "$as_me: failed program was:" >&5
35929 sed 's/^/| /' conftest.$ac_ext >&5
35930
35931         ac_lo=`expr $ac_mid + 1`
35932                         if test $ac_lo -le $ac_mid; then
35933                           ac_lo= ac_hi=
35934                           break
35935                         fi
35936                         ac_mid=`expr 2 '*' $ac_mid + 1`
35937 fi
35938
35939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35940   done
35941 else
35942   echo "$as_me: failed program was:" >&5
35943 sed 's/^/| /' conftest.$ac_ext >&5
35944
35945         cat >conftest.$ac_ext <<_ACEOF
35946 /* confdefs.h.  */
35947 _ACEOF
35948 cat confdefs.h >>conftest.$ac_ext
35949 cat >>conftest.$ac_ext <<_ACEOF
35950 /* end confdefs.h.  */
35951 $ac_includes_default
35952    typedef long long int ac__type_sizeof_;
35953 int
35954 main ()
35955 {
35956 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35957 test_array [0] = 0
35958
35959   ;
35960   return 0;
35961 }
35962 _ACEOF
35963 rm -f conftest.$ac_objext
35964 if { (ac_try="$ac_compile"
35965 case "(($ac_try" in
35966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35967   *) ac_try_echo=$ac_try;;
35968 esac
35969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35970   (eval "$ac_compile") 2>conftest.er1
35971   ac_status=$?
35972   grep -v '^ *+' conftest.er1 >conftest.err
35973   rm -f conftest.er1
35974   cat conftest.err >&5
35975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35976   (exit $ac_status); } && {
35977          test -z "$ac_c_werror_flag" ||
35978          test ! -s conftest.err
35979        } && test -s conftest.$ac_objext; then
35980   ac_hi=-1 ac_mid=-1
35981   while :; do
35982     cat >conftest.$ac_ext <<_ACEOF
35983 /* confdefs.h.  */
35984 _ACEOF
35985 cat confdefs.h >>conftest.$ac_ext
35986 cat >>conftest.$ac_ext <<_ACEOF
35987 /* end confdefs.h.  */
35988 $ac_includes_default
35989    typedef long long int ac__type_sizeof_;
35990 int
35991 main ()
35992 {
35993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35994 test_array [0] = 0
35995
35996   ;
35997   return 0;
35998 }
35999 _ACEOF
36000 rm -f conftest.$ac_objext
36001 if { (ac_try="$ac_compile"
36002 case "(($ac_try" in
36003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36004   *) ac_try_echo=$ac_try;;
36005 esac
36006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36007   (eval "$ac_compile") 2>conftest.er1
36008   ac_status=$?
36009   grep -v '^ *+' conftest.er1 >conftest.err
36010   rm -f conftest.er1
36011   cat conftest.err >&5
36012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013   (exit $ac_status); } && {
36014          test -z "$ac_c_werror_flag" ||
36015          test ! -s conftest.err
36016        } && test -s conftest.$ac_objext; then
36017   ac_lo=$ac_mid; break
36018 else
36019   echo "$as_me: failed program was:" >&5
36020 sed 's/^/| /' conftest.$ac_ext >&5
36021
36022         ac_hi=`expr '(' $ac_mid ')' - 1`
36023                         if test $ac_mid -le $ac_hi; then
36024                           ac_lo= ac_hi=
36025                           break
36026                         fi
36027                         ac_mid=`expr 2 '*' $ac_mid`
36028 fi
36029
36030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36031   done
36032 else
36033   echo "$as_me: failed program was:" >&5
36034 sed 's/^/| /' conftest.$ac_ext >&5
36035
36036         ac_lo= ac_hi=
36037 fi
36038
36039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36040 fi
36041
36042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36043 # Binary search between lo and hi bounds.
36044 while test "x$ac_lo" != "x$ac_hi"; do
36045   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36046   cat >conftest.$ac_ext <<_ACEOF
36047 /* confdefs.h.  */
36048 _ACEOF
36049 cat confdefs.h >>conftest.$ac_ext
36050 cat >>conftest.$ac_ext <<_ACEOF
36051 /* end confdefs.h.  */
36052 $ac_includes_default
36053    typedef long long int ac__type_sizeof_;
36054 int
36055 main ()
36056 {
36057 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36058 test_array [0] = 0
36059
36060   ;
36061   return 0;
36062 }
36063 _ACEOF
36064 rm -f conftest.$ac_objext
36065 if { (ac_try="$ac_compile"
36066 case "(($ac_try" in
36067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36068   *) ac_try_echo=$ac_try;;
36069 esac
36070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36071   (eval "$ac_compile") 2>conftest.er1
36072   ac_status=$?
36073   grep -v '^ *+' conftest.er1 >conftest.err
36074   rm -f conftest.er1
36075   cat conftest.err >&5
36076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077   (exit $ac_status); } && {
36078          test -z "$ac_c_werror_flag" ||
36079          test ! -s conftest.err
36080        } && test -s conftest.$ac_objext; then
36081   ac_hi=$ac_mid
36082 else
36083   echo "$as_me: failed program was:" >&5
36084 sed 's/^/| /' conftest.$ac_ext >&5
36085
36086         ac_lo=`expr '(' $ac_mid ')' + 1`
36087 fi
36088
36089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36090 done
36091 case $ac_lo in
36092 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36093 '') if test "$ac_cv_type_long_long_int" = yes; then
36094      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36095 See \`config.log' for more details." >&5
36096 echo "$as_me: error: cannot compute sizeof (long long int)
36097 See \`config.log' for more details." >&2;}
36098    { (exit 77); exit 77; }; }
36099    else
36100      ac_cv_sizeof_long_long_int=0
36101    fi ;;
36102 esac
36103 else
36104   cat >conftest.$ac_ext <<_ACEOF
36105 /* confdefs.h.  */
36106 _ACEOF
36107 cat confdefs.h >>conftest.$ac_ext
36108 cat >>conftest.$ac_ext <<_ACEOF
36109 /* end confdefs.h.  */
36110 $ac_includes_default
36111    typedef long long int ac__type_sizeof_;
36112 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36113 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36114 #include <stdio.h>
36115 #include <stdlib.h>
36116 int
36117 main ()
36118 {
36119
36120   FILE *f = fopen ("conftest.val", "w");
36121   if (! f)
36122     return 1;
36123   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36124     {
36125       long int i = longval ();
36126       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36127         return 1;
36128       fprintf (f, "%ld\n", i);
36129     }
36130   else
36131     {
36132       unsigned long int i = ulongval ();
36133       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36134         return 1;
36135       fprintf (f, "%lu\n", i);
36136     }
36137   return ferror (f) || fclose (f) != 0;
36138
36139   ;
36140   return 0;
36141 }
36142 _ACEOF
36143 rm -f conftest$ac_exeext
36144 if { (ac_try="$ac_link"
36145 case "(($ac_try" in
36146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36147   *) ac_try_echo=$ac_try;;
36148 esac
36149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36150   (eval "$ac_link") 2>&5
36151   ac_status=$?
36152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36154   { (case "(($ac_try" in
36155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36156   *) ac_try_echo=$ac_try;;
36157 esac
36158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36159   (eval "$ac_try") 2>&5
36160   ac_status=$?
36161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36162   (exit $ac_status); }; }; then
36163   ac_cv_sizeof_long_long_int=`cat conftest.val`
36164 else
36165   echo "$as_me: program exited with status $ac_status" >&5
36166 echo "$as_me: failed program was:" >&5
36167 sed 's/^/| /' conftest.$ac_ext >&5
36168
36169 ( exit $ac_status )
36170 if test "$ac_cv_type_long_long_int" = yes; then
36171      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36172 See \`config.log' for more details." >&5
36173 echo "$as_me: error: cannot compute sizeof (long long int)
36174 See \`config.log' for more details." >&2;}
36175    { (exit 77); exit 77; }; }
36176    else
36177      ac_cv_sizeof_long_long_int=0
36178    fi
36179 fi
36180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36181 fi
36182 rm -f conftest.val
36183 fi
36184 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36185 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36186
36187
36188
36189 cat >>confdefs.h <<_ACEOF
36190 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36191 _ACEOF
36192
36193
36194 { echo "$as_me:$LINENO: checking for int *" >&5
36195 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36196 if test "${ac_cv_type_int_p+set}" = set; then
36197   echo $ECHO_N "(cached) $ECHO_C" >&6
36198 else
36199   cat >conftest.$ac_ext <<_ACEOF
36200 /* confdefs.h.  */
36201 _ACEOF
36202 cat confdefs.h >>conftest.$ac_ext
36203 cat >>conftest.$ac_ext <<_ACEOF
36204 /* end confdefs.h.  */
36205 $ac_includes_default
36206 typedef int * ac__type_new_;
36207 int
36208 main ()
36209 {
36210 if ((ac__type_new_ *) 0)
36211   return 0;
36212 if (sizeof (ac__type_new_))
36213   return 0;
36214   ;
36215   return 0;
36216 }
36217 _ACEOF
36218 rm -f conftest.$ac_objext
36219 if { (ac_try="$ac_compile"
36220 case "(($ac_try" in
36221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36222   *) ac_try_echo=$ac_try;;
36223 esac
36224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36225   (eval "$ac_compile") 2>conftest.er1
36226   ac_status=$?
36227   grep -v '^ *+' conftest.er1 >conftest.err
36228   rm -f conftest.er1
36229   cat conftest.err >&5
36230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36231   (exit $ac_status); } && {
36232          test -z "$ac_c_werror_flag" ||
36233          test ! -s conftest.err
36234        } && test -s conftest.$ac_objext; then
36235   ac_cv_type_int_p=yes
36236 else
36237   echo "$as_me: failed program was:" >&5
36238 sed 's/^/| /' conftest.$ac_ext >&5
36239
36240         ac_cv_type_int_p=no
36241 fi
36242
36243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36244 fi
36245 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36246 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36247
36248 # The cast to long int works around a bug in the HP C Compiler
36249 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36250 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36251 # This bug is HP SR number 8606223364.
36252 { echo "$as_me:$LINENO: checking size of int *" >&5
36253 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36254 if test "${ac_cv_sizeof_int_p+set}" = set; then
36255   echo $ECHO_N "(cached) $ECHO_C" >&6
36256 else
36257   if test "$cross_compiling" = yes; then
36258   # Depending upon the size, compute the lo and hi bounds.
36259 cat >conftest.$ac_ext <<_ACEOF
36260 /* confdefs.h.  */
36261 _ACEOF
36262 cat confdefs.h >>conftest.$ac_ext
36263 cat >>conftest.$ac_ext <<_ACEOF
36264 /* end confdefs.h.  */
36265 $ac_includes_default
36266    typedef int * ac__type_sizeof_;
36267 int
36268 main ()
36269 {
36270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36271 test_array [0] = 0
36272
36273   ;
36274   return 0;
36275 }
36276 _ACEOF
36277 rm -f conftest.$ac_objext
36278 if { (ac_try="$ac_compile"
36279 case "(($ac_try" in
36280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36281   *) ac_try_echo=$ac_try;;
36282 esac
36283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36284   (eval "$ac_compile") 2>conftest.er1
36285   ac_status=$?
36286   grep -v '^ *+' conftest.er1 >conftest.err
36287   rm -f conftest.er1
36288   cat conftest.err >&5
36289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36290   (exit $ac_status); } && {
36291          test -z "$ac_c_werror_flag" ||
36292          test ! -s conftest.err
36293        } && test -s conftest.$ac_objext; then
36294   ac_lo=0 ac_mid=0
36295   while :; do
36296     cat >conftest.$ac_ext <<_ACEOF
36297 /* confdefs.h.  */
36298 _ACEOF
36299 cat confdefs.h >>conftest.$ac_ext
36300 cat >>conftest.$ac_ext <<_ACEOF
36301 /* end confdefs.h.  */
36302 $ac_includes_default
36303    typedef int * ac__type_sizeof_;
36304 int
36305 main ()
36306 {
36307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36308 test_array [0] = 0
36309
36310   ;
36311   return 0;
36312 }
36313 _ACEOF
36314 rm -f conftest.$ac_objext
36315 if { (ac_try="$ac_compile"
36316 case "(($ac_try" in
36317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36318   *) ac_try_echo=$ac_try;;
36319 esac
36320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36321   (eval "$ac_compile") 2>conftest.er1
36322   ac_status=$?
36323   grep -v '^ *+' conftest.er1 >conftest.err
36324   rm -f conftest.er1
36325   cat conftest.err >&5
36326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327   (exit $ac_status); } && {
36328          test -z "$ac_c_werror_flag" ||
36329          test ! -s conftest.err
36330        } && test -s conftest.$ac_objext; then
36331   ac_hi=$ac_mid; break
36332 else
36333   echo "$as_me: failed program was:" >&5
36334 sed 's/^/| /' conftest.$ac_ext >&5
36335
36336         ac_lo=`expr $ac_mid + 1`
36337                         if test $ac_lo -le $ac_mid; then
36338                           ac_lo= ac_hi=
36339                           break
36340                         fi
36341                         ac_mid=`expr 2 '*' $ac_mid + 1`
36342 fi
36343
36344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36345   done
36346 else
36347   echo "$as_me: failed program was:" >&5
36348 sed 's/^/| /' conftest.$ac_ext >&5
36349
36350         cat >conftest.$ac_ext <<_ACEOF
36351 /* confdefs.h.  */
36352 _ACEOF
36353 cat confdefs.h >>conftest.$ac_ext
36354 cat >>conftest.$ac_ext <<_ACEOF
36355 /* end confdefs.h.  */
36356 $ac_includes_default
36357    typedef int * ac__type_sizeof_;
36358 int
36359 main ()
36360 {
36361 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36362 test_array [0] = 0
36363
36364   ;
36365   return 0;
36366 }
36367 _ACEOF
36368 rm -f conftest.$ac_objext
36369 if { (ac_try="$ac_compile"
36370 case "(($ac_try" in
36371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36372   *) ac_try_echo=$ac_try;;
36373 esac
36374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36375   (eval "$ac_compile") 2>conftest.er1
36376   ac_status=$?
36377   grep -v '^ *+' conftest.er1 >conftest.err
36378   rm -f conftest.er1
36379   cat conftest.err >&5
36380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36381   (exit $ac_status); } && {
36382          test -z "$ac_c_werror_flag" ||
36383          test ! -s conftest.err
36384        } && test -s conftest.$ac_objext; then
36385   ac_hi=-1 ac_mid=-1
36386   while :; do
36387     cat >conftest.$ac_ext <<_ACEOF
36388 /* confdefs.h.  */
36389 _ACEOF
36390 cat confdefs.h >>conftest.$ac_ext
36391 cat >>conftest.$ac_ext <<_ACEOF
36392 /* end confdefs.h.  */
36393 $ac_includes_default
36394    typedef int * ac__type_sizeof_;
36395 int
36396 main ()
36397 {
36398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36399 test_array [0] = 0
36400
36401   ;
36402   return 0;
36403 }
36404 _ACEOF
36405 rm -f conftest.$ac_objext
36406 if { (ac_try="$ac_compile"
36407 case "(($ac_try" in
36408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36409   *) ac_try_echo=$ac_try;;
36410 esac
36411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36412   (eval "$ac_compile") 2>conftest.er1
36413   ac_status=$?
36414   grep -v '^ *+' conftest.er1 >conftest.err
36415   rm -f conftest.er1
36416   cat conftest.err >&5
36417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36418   (exit $ac_status); } && {
36419          test -z "$ac_c_werror_flag" ||
36420          test ! -s conftest.err
36421        } && test -s conftest.$ac_objext; then
36422   ac_lo=$ac_mid; break
36423 else
36424   echo "$as_me: failed program was:" >&5
36425 sed 's/^/| /' conftest.$ac_ext >&5
36426
36427         ac_hi=`expr '(' $ac_mid ')' - 1`
36428                         if test $ac_mid -le $ac_hi; then
36429                           ac_lo= ac_hi=
36430                           break
36431                         fi
36432                         ac_mid=`expr 2 '*' $ac_mid`
36433 fi
36434
36435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36436   done
36437 else
36438   echo "$as_me: failed program was:" >&5
36439 sed 's/^/| /' conftest.$ac_ext >&5
36440
36441         ac_lo= ac_hi=
36442 fi
36443
36444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36445 fi
36446
36447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36448 # Binary search between lo and hi bounds.
36449 while test "x$ac_lo" != "x$ac_hi"; do
36450   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36451   cat >conftest.$ac_ext <<_ACEOF
36452 /* confdefs.h.  */
36453 _ACEOF
36454 cat confdefs.h >>conftest.$ac_ext
36455 cat >>conftest.$ac_ext <<_ACEOF
36456 /* end confdefs.h.  */
36457 $ac_includes_default
36458    typedef int * ac__type_sizeof_;
36459 int
36460 main ()
36461 {
36462 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36463 test_array [0] = 0
36464
36465   ;
36466   return 0;
36467 }
36468 _ACEOF
36469 rm -f conftest.$ac_objext
36470 if { (ac_try="$ac_compile"
36471 case "(($ac_try" in
36472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36473   *) ac_try_echo=$ac_try;;
36474 esac
36475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36476   (eval "$ac_compile") 2>conftest.er1
36477   ac_status=$?
36478   grep -v '^ *+' conftest.er1 >conftest.err
36479   rm -f conftest.er1
36480   cat conftest.err >&5
36481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36482   (exit $ac_status); } && {
36483          test -z "$ac_c_werror_flag" ||
36484          test ! -s conftest.err
36485        } && test -s conftest.$ac_objext; then
36486   ac_hi=$ac_mid
36487 else
36488   echo "$as_me: failed program was:" >&5
36489 sed 's/^/| /' conftest.$ac_ext >&5
36490
36491         ac_lo=`expr '(' $ac_mid ')' + 1`
36492 fi
36493
36494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36495 done
36496 case $ac_lo in
36497 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36498 '') if test "$ac_cv_type_int_p" = yes; then
36499      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36500 See \`config.log' for more details." >&5
36501 echo "$as_me: error: cannot compute sizeof (int *)
36502 See \`config.log' for more details." >&2;}
36503    { (exit 77); exit 77; }; }
36504    else
36505      ac_cv_sizeof_int_p=0
36506    fi ;;
36507 esac
36508 else
36509   cat >conftest.$ac_ext <<_ACEOF
36510 /* confdefs.h.  */
36511 _ACEOF
36512 cat confdefs.h >>conftest.$ac_ext
36513 cat >>conftest.$ac_ext <<_ACEOF
36514 /* end confdefs.h.  */
36515 $ac_includes_default
36516    typedef int * ac__type_sizeof_;
36517 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36518 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36519 #include <stdio.h>
36520 #include <stdlib.h>
36521 int
36522 main ()
36523 {
36524
36525   FILE *f = fopen ("conftest.val", "w");
36526   if (! f)
36527     return 1;
36528   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36529     {
36530       long int i = longval ();
36531       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36532         return 1;
36533       fprintf (f, "%ld\n", i);
36534     }
36535   else
36536     {
36537       unsigned long int i = ulongval ();
36538       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36539         return 1;
36540       fprintf (f, "%lu\n", i);
36541     }
36542   return ferror (f) || fclose (f) != 0;
36543
36544   ;
36545   return 0;
36546 }
36547 _ACEOF
36548 rm -f conftest$ac_exeext
36549 if { (ac_try="$ac_link"
36550 case "(($ac_try" in
36551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36552   *) ac_try_echo=$ac_try;;
36553 esac
36554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36555   (eval "$ac_link") 2>&5
36556   ac_status=$?
36557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36559   { (case "(($ac_try" in
36560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36561   *) ac_try_echo=$ac_try;;
36562 esac
36563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36564   (eval "$ac_try") 2>&5
36565   ac_status=$?
36566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567   (exit $ac_status); }; }; then
36568   ac_cv_sizeof_int_p=`cat conftest.val`
36569 else
36570   echo "$as_me: program exited with status $ac_status" >&5
36571 echo "$as_me: failed program was:" >&5
36572 sed 's/^/| /' conftest.$ac_ext >&5
36573
36574 ( exit $ac_status )
36575 if test "$ac_cv_type_int_p" = yes; then
36576      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36577 See \`config.log' for more details." >&5
36578 echo "$as_me: error: cannot compute sizeof (int *)
36579 See \`config.log' for more details." >&2;}
36580    { (exit 77); exit 77; }; }
36581    else
36582      ac_cv_sizeof_int_p=0
36583    fi
36584 fi
36585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36586 fi
36587 rm -f conftest.val
36588 fi
36589 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36590 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36591
36592
36593
36594 cat >>confdefs.h <<_ACEOF
36595 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36596 _ACEOF
36597
36598
36599
36600 { echo "$as_me:$LINENO: checking for u_int type" >&5
36601 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36602 if test "${ac_cv_have_u_int+set}" = set; then
36603   echo $ECHO_N "(cached) $ECHO_C" >&6
36604 else
36605
36606        cat >conftest.$ac_ext <<_ACEOF
36607 /* confdefs.h.  */
36608 _ACEOF
36609 cat confdefs.h >>conftest.$ac_ext
36610 cat >>conftest.$ac_ext <<_ACEOF
36611 /* end confdefs.h.  */
36612
36613               #include <sys/types.h>
36614
36615 int
36616 main ()
36617 {
36618
36619               u_int a; a = 1;
36620
36621   ;
36622   return 0;
36623 }
36624 _ACEOF
36625 rm -f conftest.$ac_objext
36626 if { (ac_try="$ac_compile"
36627 case "(($ac_try" in
36628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36629   *) ac_try_echo=$ac_try;;
36630 esac
36631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36632   (eval "$ac_compile") 2>conftest.er1
36633   ac_status=$?
36634   grep -v '^ *+' conftest.er1 >conftest.err
36635   rm -f conftest.er1
36636   cat conftest.err >&5
36637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36638   (exit $ac_status); } && {
36639          test -z "$ac_c_werror_flag" ||
36640          test ! -s conftest.err
36641        } && test -s conftest.$ac_objext; then
36642
36643               ac_cv_have_u_int="yes"
36644
36645 else
36646   echo "$as_me: failed program was:" >&5
36647 sed 's/^/| /' conftest.$ac_ext >&5
36648
36649
36650               ac_cv_have_u_int="no"
36651
36652
36653 fi
36654
36655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36656
36657
36658 fi
36659 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36660 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36661 if test "x$ac_cv_have_u_int" = "xyes" ; then
36662    cat >>confdefs.h <<\_ACEOF
36663 #define HAVE_U_INT 1
36664 _ACEOF
36665
36666    have_u_int=1
36667 fi
36668
36669 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36670 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36671 if test "${ac_cv_have_intmax_t+set}" = set; then
36672   echo $ECHO_N "(cached) $ECHO_C" >&6
36673 else
36674
36675        cat >conftest.$ac_ext <<_ACEOF
36676 /* confdefs.h.  */
36677 _ACEOF
36678 cat confdefs.h >>conftest.$ac_ext
36679 cat >>conftest.$ac_ext <<_ACEOF
36680 /* end confdefs.h.  */
36681
36682               #include <sys/types.h>
36683
36684 int
36685 main ()
36686 {
36687
36688               intmax_t a; a = 1;
36689
36690   ;
36691   return 0;
36692 }
36693 _ACEOF
36694 rm -f conftest.$ac_objext
36695 if { (ac_try="$ac_compile"
36696 case "(($ac_try" in
36697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36698   *) ac_try_echo=$ac_try;;
36699 esac
36700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36701   (eval "$ac_compile") 2>conftest.er1
36702   ac_status=$?
36703   grep -v '^ *+' conftest.er1 >conftest.err
36704   rm -f conftest.er1
36705   cat conftest.err >&5
36706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707   (exit $ac_status); } && {
36708          test -z "$ac_c_werror_flag" ||
36709          test ! -s conftest.err
36710        } && test -s conftest.$ac_objext; then
36711
36712               ac_cv_have_intmax_t="yes"
36713
36714 else
36715   echo "$as_me: failed program was:" >&5
36716 sed 's/^/| /' conftest.$ac_ext >&5
36717
36718
36719               cat >conftest.$ac_ext <<_ACEOF
36720 /* confdefs.h.  */
36721 _ACEOF
36722 cat confdefs.h >>conftest.$ac_ext
36723 cat >>conftest.$ac_ext <<_ACEOF
36724 /* end confdefs.h.  */
36725
36726                      #include <stdint.h>
36727
36728 int
36729 main ()
36730 {
36731
36732                      intmax_t a; a = 1;
36733
36734   ;
36735   return 0;
36736 }
36737 _ACEOF
36738 rm -f conftest.$ac_objext
36739 if { (ac_try="$ac_compile"
36740 case "(($ac_try" in
36741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36742   *) ac_try_echo=$ac_try;;
36743 esac
36744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36745   (eval "$ac_compile") 2>conftest.er1
36746   ac_status=$?
36747   grep -v '^ *+' conftest.er1 >conftest.err
36748   rm -f conftest.er1
36749   cat conftest.err >&5
36750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36751   (exit $ac_status); } && {
36752          test -z "$ac_c_werror_flag" ||
36753          test ! -s conftest.err
36754        } && test -s conftest.$ac_objext; then
36755
36756                      ac_cv_have_intmax_t="yes"
36757
36758 else
36759   echo "$as_me: failed program was:" >&5
36760 sed 's/^/| /' conftest.$ac_ext >&5
36761
36762
36763                      ac_cv_have_intmax_t="no"
36764
36765
36766 fi
36767
36768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36769
36770
36771 fi
36772
36773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36774
36775
36776 fi
36777 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36778 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36779 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36780    cat >>confdefs.h <<\_ACEOF
36781 #define HAVE_INTMAX_T 1
36782 _ACEOF
36783
36784    have_intmax_t=1
36785 fi
36786
36787 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36788 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36789 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36790   echo $ECHO_N "(cached) $ECHO_C" >&6
36791 else
36792
36793        cat >conftest.$ac_ext <<_ACEOF
36794 /* confdefs.h.  */
36795 _ACEOF
36796 cat confdefs.h >>conftest.$ac_ext
36797 cat >>conftest.$ac_ext <<_ACEOF
36798 /* end confdefs.h.  */
36799
36800               #include <sys/types.h>
36801
36802 int
36803 main ()
36804 {
36805
36806               u_intmax_t a; a = 1;
36807
36808   ;
36809   return 0;
36810 }
36811 _ACEOF
36812 rm -f conftest.$ac_objext
36813 if { (ac_try="$ac_compile"
36814 case "(($ac_try" in
36815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36816   *) ac_try_echo=$ac_try;;
36817 esac
36818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36819   (eval "$ac_compile") 2>conftest.er1
36820   ac_status=$?
36821   grep -v '^ *+' conftest.er1 >conftest.err
36822   rm -f conftest.er1
36823   cat conftest.err >&5
36824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825   (exit $ac_status); } && {
36826          test -z "$ac_c_werror_flag" ||
36827          test ! -s conftest.err
36828        } && test -s conftest.$ac_objext; then
36829
36830               ac_cv_have_u_intmax_t="yes"
36831
36832 else
36833   echo "$as_me: failed program was:" >&5
36834 sed 's/^/| /' conftest.$ac_ext >&5
36835
36836
36837               cat >conftest.$ac_ext <<_ACEOF
36838 /* confdefs.h.  */
36839 _ACEOF
36840 cat confdefs.h >>conftest.$ac_ext
36841 cat >>conftest.$ac_ext <<_ACEOF
36842 /* end confdefs.h.  */
36843
36844                      #include <stdint.h>
36845
36846 int
36847 main ()
36848 {
36849
36850                     u_intmax_t a; a = 1;
36851
36852   ;
36853   return 0;
36854 }
36855 _ACEOF
36856 rm -f conftest.$ac_objext
36857 if { (ac_try="$ac_compile"
36858 case "(($ac_try" in
36859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36860   *) ac_try_echo=$ac_try;;
36861 esac
36862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36863   (eval "$ac_compile") 2>conftest.er1
36864   ac_status=$?
36865   grep -v '^ *+' conftest.er1 >conftest.err
36866   rm -f conftest.er1
36867   cat conftest.err >&5
36868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869   (exit $ac_status); } && {
36870          test -z "$ac_c_werror_flag" ||
36871          test ! -s conftest.err
36872        } && test -s conftest.$ac_objext; then
36873
36874                     ac_cv_have_u_intmax_t="yes"
36875
36876 else
36877   echo "$as_me: failed program was:" >&5
36878 sed 's/^/| /' conftest.$ac_ext >&5
36879
36880
36881                     ac_cv_have_u_intmax_t="no"
36882
36883
36884 fi
36885
36886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36887
36888
36889 fi
36890
36891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36892
36893
36894 fi
36895 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36896 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36897 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36898    cat >>confdefs.h <<\_ACEOF
36899 #define HAVE_U_INTMAX_T 1
36900 _ACEOF
36901
36902    have_u_intmax_t=1
36903 fi
36904
36905 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36906 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36907 if test "${ac_cv_have_intxx_t+set}" = set; then
36908   echo $ECHO_N "(cached) $ECHO_C" >&6
36909 else
36910
36911        cat >conftest.$ac_ext <<_ACEOF
36912 /* confdefs.h.  */
36913 _ACEOF
36914 cat confdefs.h >>conftest.$ac_ext
36915 cat >>conftest.$ac_ext <<_ACEOF
36916 /* end confdefs.h.  */
36917
36918               #include <sys/types.h>
36919
36920 int
36921 main ()
36922 {
36923
36924               int8_t a; int16_t b; int32_t c; a = b = c = 1;
36925
36926   ;
36927   return 0;
36928 }
36929 _ACEOF
36930 rm -f conftest.$ac_objext
36931 if { (ac_try="$ac_compile"
36932 case "(($ac_try" in
36933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36934   *) ac_try_echo=$ac_try;;
36935 esac
36936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36937   (eval "$ac_compile") 2>conftest.er1
36938   ac_status=$?
36939   grep -v '^ *+' conftest.er1 >conftest.err
36940   rm -f conftest.er1
36941   cat conftest.err >&5
36942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943   (exit $ac_status); } && {
36944          test -z "$ac_c_werror_flag" ||
36945          test ! -s conftest.err
36946        } && test -s conftest.$ac_objext; then
36947
36948               ac_cv_have_intxx_t="yes"
36949
36950 else
36951   echo "$as_me: failed program was:" >&5
36952 sed 's/^/| /' conftest.$ac_ext >&5
36953
36954
36955               ac_cv_have_intxx_t="no"
36956
36957
36958 fi
36959
36960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36961
36962
36963 fi
36964 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36965 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36966 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36967    cat >>confdefs.h <<\_ACEOF
36968 #define HAVE_INTXX_T 1
36969 _ACEOF
36970
36971    have_intxx_t=1
36972 fi
36973
36974 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36975 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36976 if test "${ac_cv_have_int64_t+set}" = set; then
36977   echo $ECHO_N "(cached) $ECHO_C" >&6
36978 else
36979
36980        cat >conftest.$ac_ext <<_ACEOF
36981 /* confdefs.h.  */
36982 _ACEOF
36983 cat confdefs.h >>conftest.$ac_ext
36984 cat >>conftest.$ac_ext <<_ACEOF
36985 /* end confdefs.h.  */
36986
36987               #include <sys/types.h>
36988
36989 int
36990 main ()
36991 {
36992
36993               int64_t a; a = 1;
36994
36995   ;
36996   return 0;
36997 }
36998 _ACEOF
36999 rm -f conftest.$ac_objext
37000 if { (ac_try="$ac_compile"
37001 case "(($ac_try" in
37002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37003   *) ac_try_echo=$ac_try;;
37004 esac
37005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37006   (eval "$ac_compile") 2>conftest.er1
37007   ac_status=$?
37008   grep -v '^ *+' conftest.er1 >conftest.err
37009   rm -f conftest.er1
37010   cat conftest.err >&5
37011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37012   (exit $ac_status); } && {
37013          test -z "$ac_c_werror_flag" ||
37014          test ! -s conftest.err
37015        } && test -s conftest.$ac_objext; then
37016
37017               ac_cv_have_int64_t="yes"
37018
37019 else
37020   echo "$as_me: failed program was:" >&5
37021 sed 's/^/| /' conftest.$ac_ext >&5
37022
37023
37024               ac_cv_have_int64_t="no"
37025
37026
37027 fi
37028
37029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37030
37031
37032 fi
37033 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37034 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37035 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37036    cat >>confdefs.h <<\_ACEOF
37037 #define HAVE_INT64_T 1
37038 _ACEOF
37039
37040    have_int64_t=1
37041 fi
37042
37043 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37044 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37045 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37046   echo $ECHO_N "(cached) $ECHO_C" >&6
37047 else
37048
37049        cat >conftest.$ac_ext <<_ACEOF
37050 /* confdefs.h.  */
37051 _ACEOF
37052 cat confdefs.h >>conftest.$ac_ext
37053 cat >>conftest.$ac_ext <<_ACEOF
37054 /* end confdefs.h.  */
37055
37056               #include <sys/types.h>
37057
37058 int
37059 main ()
37060 {
37061
37062               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37063
37064   ;
37065   return 0;
37066 }
37067 _ACEOF
37068 rm -f conftest.$ac_objext
37069 if { (ac_try="$ac_compile"
37070 case "(($ac_try" in
37071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37072   *) ac_try_echo=$ac_try;;
37073 esac
37074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37075   (eval "$ac_compile") 2>conftest.er1
37076   ac_status=$?
37077   grep -v '^ *+' conftest.er1 >conftest.err
37078   rm -f conftest.er1
37079   cat conftest.err >&5
37080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081   (exit $ac_status); } && {
37082          test -z "$ac_c_werror_flag" ||
37083          test ! -s conftest.err
37084        } && test -s conftest.$ac_objext; then
37085
37086              ac_cv_have_u_intxx_t="yes"
37087
37088 else
37089   echo "$as_me: failed program was:" >&5
37090 sed 's/^/| /' conftest.$ac_ext >&5
37091
37092
37093              ac_cv_have_u_intxx_t="no"
37094
37095
37096 fi
37097
37098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37099
37100
37101 fi
37102 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37103 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37104 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37105    cat >>confdefs.h <<\_ACEOF
37106 #define HAVE_U_INTXX_T 1
37107 _ACEOF
37108
37109    have_u_intxx_t=1
37110 fi
37111
37112 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37113 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37114 if test "${ac_cv_have_u_int64_t+set}" = set; then
37115   echo $ECHO_N "(cached) $ECHO_C" >&6
37116 else
37117
37118        cat >conftest.$ac_ext <<_ACEOF
37119 /* confdefs.h.  */
37120 _ACEOF
37121 cat confdefs.h >>conftest.$ac_ext
37122 cat >>conftest.$ac_ext <<_ACEOF
37123 /* end confdefs.h.  */
37124
37125               #include <sys/types.h>
37126
37127 int
37128 main ()
37129 {
37130
37131               u_int64_t a; a = 1;
37132
37133   ;
37134   return 0;
37135 }
37136 _ACEOF
37137 rm -f conftest.$ac_objext
37138 if { (ac_try="$ac_compile"
37139 case "(($ac_try" in
37140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37141   *) ac_try_echo=$ac_try;;
37142 esac
37143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37144   (eval "$ac_compile") 2>conftest.er1
37145   ac_status=$?
37146   grep -v '^ *+' conftest.er1 >conftest.err
37147   rm -f conftest.er1
37148   cat conftest.err >&5
37149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37150   (exit $ac_status); } && {
37151          test -z "$ac_c_werror_flag" ||
37152          test ! -s conftest.err
37153        } && test -s conftest.$ac_objext; then
37154
37155              ac_cv_have_u_int64_t="yes"
37156
37157 else
37158   echo "$as_me: failed program was:" >&5
37159 sed 's/^/| /' conftest.$ac_ext >&5
37160
37161
37162              ac_cv_have_u_int64_t="no"
37163
37164
37165 fi
37166
37167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37168
37169
37170 fi
37171 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37172 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37173 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37174    cat >>confdefs.h <<\_ACEOF
37175 #define HAVE_U_INT64_T 1
37176 _ACEOF
37177
37178    have_u_int64_t=1
37179 fi
37180
37181 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37182     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37183 then
37184    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37185 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37186    cat >conftest.$ac_ext <<_ACEOF
37187 /* confdefs.h.  */
37188 _ACEOF
37189 cat confdefs.h >>conftest.$ac_ext
37190 cat >>conftest.$ac_ext <<_ACEOF
37191 /* end confdefs.h.  */
37192
37193           #include <sys/bitypes.h>
37194
37195 int
37196 main ()
37197 {
37198
37199           int8_t a; int16_t b; int32_t c;
37200           u_int8_t e; u_int16_t f; u_int32_t g;
37201           a = b = c = e = f = g = 1;
37202
37203   ;
37204   return 0;
37205 }
37206 _ACEOF
37207 rm -f conftest.$ac_objext
37208 if { (ac_try="$ac_compile"
37209 case "(($ac_try" in
37210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37211   *) ac_try_echo=$ac_try;;
37212 esac
37213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37214   (eval "$ac_compile") 2>conftest.er1
37215   ac_status=$?
37216   grep -v '^ *+' conftest.er1 >conftest.err
37217   rm -f conftest.er1
37218   cat conftest.err >&5
37219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37220   (exit $ac_status); } && {
37221          test -z "$ac_c_werror_flag" ||
37222          test ! -s conftest.err
37223        } && test -s conftest.$ac_objext; then
37224
37225           cat >>confdefs.h <<\_ACEOF
37226 #define HAVE_U_INTXX_T 1
37227 _ACEOF
37228
37229           cat >>confdefs.h <<\_ACEOF
37230 #define HAVE_INTXX_T 1
37231 _ACEOF
37232
37233           cat >>confdefs.h <<\_ACEOF
37234 #define HAVE_SYS_BITYPES_H 1
37235 _ACEOF
37236
37237           { echo "$as_me:$LINENO: result: yes" >&5
37238 echo "${ECHO_T}yes" >&6; }
37239
37240 else
37241   echo "$as_me: failed program was:" >&5
37242 sed 's/^/| /' conftest.$ac_ext >&5
37243
37244
37245           { echo "$as_me:$LINENO: result: no" >&5
37246 echo "${ECHO_T}no" >&6; }
37247
37248
37249 fi
37250
37251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37252 fi
37253
37254 if test -z "$have_u_intxx_t" ; then
37255    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37256 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37257 if test "${ac_cv_have_uintxx_t+set}" = set; then
37258   echo $ECHO_N "(cached) $ECHO_C" >&6
37259 else
37260
37261           cat >conftest.$ac_ext <<_ACEOF
37262 /* confdefs.h.  */
37263 _ACEOF
37264 cat confdefs.h >>conftest.$ac_ext
37265 cat >>conftest.$ac_ext <<_ACEOF
37266 /* end confdefs.h.  */
37267
37268                  #include <sys/types.h>
37269
37270 int
37271 main ()
37272 {
37273
37274                  uint8_t a; uint16_t b;
37275                  uint32_t c; a = b = c = 1;
37276
37277   ;
37278   return 0;
37279 }
37280 _ACEOF
37281 rm -f conftest.$ac_objext
37282 if { (ac_try="$ac_compile"
37283 case "(($ac_try" in
37284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37285   *) ac_try_echo=$ac_try;;
37286 esac
37287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37288   (eval "$ac_compile") 2>conftest.er1
37289   ac_status=$?
37290   grep -v '^ *+' conftest.er1 >conftest.err
37291   rm -f conftest.er1
37292   cat conftest.err >&5
37293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294   (exit $ac_status); } && {
37295          test -z "$ac_c_werror_flag" ||
37296          test ! -s conftest.err
37297        } && test -s conftest.$ac_objext; then
37298
37299                 ac_cv_have_uintxx_t="yes"
37300
37301 else
37302   echo "$as_me: failed program was:" >&5
37303 sed 's/^/| /' conftest.$ac_ext >&5
37304
37305
37306                 ac_cv_have_uintxx_t="no"
37307
37308
37309 fi
37310
37311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37312
37313
37314 fi
37315 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37316 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37317    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37318       cat >>confdefs.h <<\_ACEOF
37319 #define HAVE_UINTXX_T 1
37320 _ACEOF
37321
37322    fi
37323 fi
37324
37325 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37326     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37327 then
37328    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37329 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37330    cat >conftest.$ac_ext <<_ACEOF
37331 /* confdefs.h.  */
37332 _ACEOF
37333 cat confdefs.h >>conftest.$ac_ext
37334 cat >>conftest.$ac_ext <<_ACEOF
37335 /* end confdefs.h.  */
37336
37337           #include <sys/bitypes.h>
37338
37339 int
37340 main ()
37341 {
37342
37343           int64_t a; u_int64_t b;
37344           a = b = 1;
37345
37346   ;
37347   return 0;
37348 }
37349 _ACEOF
37350 rm -f conftest.$ac_objext
37351 if { (ac_try="$ac_compile"
37352 case "(($ac_try" in
37353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37354   *) ac_try_echo=$ac_try;;
37355 esac
37356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37357   (eval "$ac_compile") 2>conftest.er1
37358   ac_status=$?
37359   grep -v '^ *+' conftest.er1 >conftest.err
37360   rm -f conftest.er1
37361   cat conftest.err >&5
37362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37363   (exit $ac_status); } && {
37364          test -z "$ac_c_werror_flag" ||
37365          test ! -s conftest.err
37366        } && test -s conftest.$ac_objext; then
37367
37368           cat >>confdefs.h <<\_ACEOF
37369 #define HAVE_U_INT64_T 1
37370 _ACEOF
37371
37372           cat >>confdefs.h <<\_ACEOF
37373 #define HAVE_INT64_T 1
37374 _ACEOF
37375
37376           { echo "$as_me:$LINENO: result: yes" >&5
37377 echo "${ECHO_T}yes" >&6; }
37378
37379 else
37380   echo "$as_me: failed program was:" >&5
37381 sed 's/^/| /' conftest.$ac_ext >&5
37382
37383
37384           { echo "$as_me:$LINENO: result: no" >&5
37385 echo "${ECHO_T}no" >&6; }
37386
37387
37388 fi
37389
37390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37391 fi
37392
37393 if (test -z "$have_uintxx_t" && \
37394     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37395 then
37396    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37397 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37398    cat >conftest.$ac_ext <<_ACEOF
37399 /* confdefs.h.  */
37400 _ACEOF
37401 cat confdefs.h >>conftest.$ac_ext
37402 cat >>conftest.$ac_ext <<_ACEOF
37403 /* end confdefs.h.  */
37404
37405           #include <sys/bitypes.h>
37406
37407 int
37408 main ()
37409 {
37410
37411           uint8_t a; uint16_t b;
37412           uint32_t c; a = b = c = 1;
37413
37414   ;
37415   return 0;
37416 }
37417 _ACEOF
37418 rm -f conftest.$ac_objext
37419 if { (ac_try="$ac_compile"
37420 case "(($ac_try" in
37421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37422   *) ac_try_echo=$ac_try;;
37423 esac
37424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37425   (eval "$ac_compile") 2>conftest.er1
37426   ac_status=$?
37427   grep -v '^ *+' conftest.er1 >conftest.err
37428   rm -f conftest.er1
37429   cat conftest.err >&5
37430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37431   (exit $ac_status); } && {
37432          test -z "$ac_c_werror_flag" ||
37433          test ! -s conftest.err
37434        } && test -s conftest.$ac_objext; then
37435
37436           cat >>confdefs.h <<\_ACEOF
37437 #define HAVE_UINTXX_T 1
37438 _ACEOF
37439
37440           { echo "$as_me:$LINENO: result: yes" >&5
37441 echo "${ECHO_T}yes" >&6; }
37442
37443 else
37444   echo "$as_me: failed program was:" >&5
37445 sed 's/^/| /' conftest.$ac_ext >&5
37446
37447
37448           { echo "$as_me:$LINENO: result: no" >&5
37449 echo "${ECHO_T}no" >&6; }
37450
37451
37452 fi
37453
37454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37455 fi
37456
37457
37458
37459
37460
37461
37462
37463
37464
37465
37466
37467
37468
37469
37470 for ac_func in \
37471    fork \
37472    getcwd \
37473    gethostname \
37474    getpid \
37475    gettimeofday \
37476    setpgid \
37477    setpgrp \
37478    setsid \
37479    signal \
37480    strerror \
37481    strncmp \
37482    strncpy \
37483    vfprintf \
37484
37485 do
37486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37490   echo $ECHO_N "(cached) $ECHO_C" >&6
37491 else
37492   cat >conftest.$ac_ext <<_ACEOF
37493 /* confdefs.h.  */
37494 _ACEOF
37495 cat confdefs.h >>conftest.$ac_ext
37496 cat >>conftest.$ac_ext <<_ACEOF
37497 /* end confdefs.h.  */
37498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37500 #define $ac_func innocuous_$ac_func
37501
37502 /* System header to define __stub macros and hopefully few prototypes,
37503     which can conflict with char $ac_func (); below.
37504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37505     <limits.h> exists even on freestanding compilers.  */
37506
37507 #ifdef __STDC__
37508 # include <limits.h>
37509 #else
37510 # include <assert.h>
37511 #endif
37512
37513 #undef $ac_func
37514
37515 /* Override any GCC internal prototype to avoid an error.
37516    Use char because int might match the return type of a GCC
37517    builtin and then its argument prototype would still apply.  */
37518 #ifdef __cplusplus
37519 extern "C"
37520 #endif
37521 char $ac_func ();
37522 /* The GNU C library defines this for functions which it implements
37523     to always fail with ENOSYS.  Some functions are actually named
37524     something starting with __ and the normal name is an alias.  */
37525 #if defined __stub_$ac_func || defined __stub___$ac_func
37526 choke me
37527 #endif
37528
37529 int
37530 main ()
37531 {
37532 return $ac_func ();
37533   ;
37534   return 0;
37535 }
37536 _ACEOF
37537 rm -f conftest.$ac_objext conftest$ac_exeext
37538 if { (ac_try="$ac_link"
37539 case "(($ac_try" in
37540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37541   *) ac_try_echo=$ac_try;;
37542 esac
37543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37544   (eval "$ac_link") 2>conftest.er1
37545   ac_status=$?
37546   grep -v '^ *+' conftest.er1 >conftest.err
37547   rm -f conftest.er1
37548   cat conftest.err >&5
37549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550   (exit $ac_status); } && {
37551          test -z "$ac_c_werror_flag" ||
37552          test ! -s conftest.err
37553        } && test -s conftest$ac_exeext &&
37554        $as_test_x conftest$ac_exeext; then
37555   eval "$as_ac_var=yes"
37556 else
37557   echo "$as_me: failed program was:" >&5
37558 sed 's/^/| /' conftest.$ac_ext >&5
37559
37560         eval "$as_ac_var=no"
37561 fi
37562
37563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37564       conftest$ac_exeext conftest.$ac_ext
37565 fi
37566 ac_res=`eval echo '${'$as_ac_var'}'`
37567                { echo "$as_me:$LINENO: result: $ac_res" >&5
37568 echo "${ECHO_T}$ac_res" >&6; }
37569 if test `eval echo '${'$as_ac_var'}'` = yes; then
37570   cat >>confdefs.h <<_ACEOF
37571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37572 _ACEOF
37573
37574 else
37575   echo 'configure: cannot find needed function.'; exit 1
37576
37577 fi
37578 done
37579
37580
37581
37582 for ac_func in fchdir
37583 do
37584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37588   echo $ECHO_N "(cached) $ECHO_C" >&6
37589 else
37590   cat >conftest.$ac_ext <<_ACEOF
37591 /* confdefs.h.  */
37592 _ACEOF
37593 cat confdefs.h >>conftest.$ac_ext
37594 cat >>conftest.$ac_ext <<_ACEOF
37595 /* end confdefs.h.  */
37596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37598 #define $ac_func innocuous_$ac_func
37599
37600 /* System header to define __stub macros and hopefully few prototypes,
37601     which can conflict with char $ac_func (); below.
37602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37603     <limits.h> exists even on freestanding compilers.  */
37604
37605 #ifdef __STDC__
37606 # include <limits.h>
37607 #else
37608 # include <assert.h>
37609 #endif
37610
37611 #undef $ac_func
37612
37613 /* Override any GCC internal prototype to avoid an error.
37614    Use char because int might match the return type of a GCC
37615    builtin and then its argument prototype would still apply.  */
37616 #ifdef __cplusplus
37617 extern "C"
37618 #endif
37619 char $ac_func ();
37620 /* The GNU C library defines this for functions which it implements
37621     to always fail with ENOSYS.  Some functions are actually named
37622     something starting with __ and the normal name is an alias.  */
37623 #if defined __stub_$ac_func || defined __stub___$ac_func
37624 choke me
37625 #endif
37626
37627 int
37628 main ()
37629 {
37630 return $ac_func ();
37631   ;
37632   return 0;
37633 }
37634 _ACEOF
37635 rm -f conftest.$ac_objext conftest$ac_exeext
37636 if { (ac_try="$ac_link"
37637 case "(($ac_try" in
37638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37639   *) ac_try_echo=$ac_try;;
37640 esac
37641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37642   (eval "$ac_link") 2>conftest.er1
37643   ac_status=$?
37644   grep -v '^ *+' conftest.er1 >conftest.err
37645   rm -f conftest.er1
37646   cat conftest.err >&5
37647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37648   (exit $ac_status); } && {
37649          test -z "$ac_c_werror_flag" ||
37650          test ! -s conftest.err
37651        } && test -s conftest$ac_exeext &&
37652        $as_test_x conftest$ac_exeext; then
37653   eval "$as_ac_var=yes"
37654 else
37655   echo "$as_me: failed program was:" >&5
37656 sed 's/^/| /' conftest.$ac_ext >&5
37657
37658         eval "$as_ac_var=no"
37659 fi
37660
37661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37662       conftest$ac_exeext conftest.$ac_ext
37663 fi
37664 ac_res=`eval echo '${'$as_ac_var'}'`
37665                { echo "$as_me:$LINENO: result: $ac_res" >&5
37666 echo "${ECHO_T}$ac_res" >&6; }
37667 if test `eval echo '${'$as_ac_var'}'` = yes; then
37668   cat >>confdefs.h <<_ACEOF
37669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37670 _ACEOF
37671  cat >>confdefs.h <<\_ACEOF
37672 #define HAVE_FCHDIR 1
37673 _ACEOF
37674
37675 fi
37676 done
37677
37678
37679 for ac_func in strtoll
37680 do
37681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37685   echo $ECHO_N "(cached) $ECHO_C" >&6
37686 else
37687   cat >conftest.$ac_ext <<_ACEOF
37688 /* confdefs.h.  */
37689 _ACEOF
37690 cat confdefs.h >>conftest.$ac_ext
37691 cat >>conftest.$ac_ext <<_ACEOF
37692 /* end confdefs.h.  */
37693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37695 #define $ac_func innocuous_$ac_func
37696
37697 /* System header to define __stub macros and hopefully few prototypes,
37698     which can conflict with char $ac_func (); below.
37699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37700     <limits.h> exists even on freestanding compilers.  */
37701
37702 #ifdef __STDC__
37703 # include <limits.h>
37704 #else
37705 # include <assert.h>
37706 #endif
37707
37708 #undef $ac_func
37709
37710 /* Override any GCC internal prototype to avoid an error.
37711    Use char because int might match the return type of a GCC
37712    builtin and then its argument prototype would still apply.  */
37713 #ifdef __cplusplus
37714 extern "C"
37715 #endif
37716 char $ac_func ();
37717 /* The GNU C library defines this for functions which it implements
37718     to always fail with ENOSYS.  Some functions are actually named
37719     something starting with __ and the normal name is an alias.  */
37720 #if defined __stub_$ac_func || defined __stub___$ac_func
37721 choke me
37722 #endif
37723
37724 int
37725 main ()
37726 {
37727 return $ac_func ();
37728   ;
37729   return 0;
37730 }
37731 _ACEOF
37732 rm -f conftest.$ac_objext conftest$ac_exeext
37733 if { (ac_try="$ac_link"
37734 case "(($ac_try" in
37735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37736   *) ac_try_echo=$ac_try;;
37737 esac
37738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37739   (eval "$ac_link") 2>conftest.er1
37740   ac_status=$?
37741   grep -v '^ *+' conftest.er1 >conftest.err
37742   rm -f conftest.er1
37743   cat conftest.err >&5
37744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37745   (exit $ac_status); } && {
37746          test -z "$ac_c_werror_flag" ||
37747          test ! -s conftest.err
37748        } && test -s conftest$ac_exeext &&
37749        $as_test_x conftest$ac_exeext; then
37750   eval "$as_ac_var=yes"
37751 else
37752   echo "$as_me: failed program was:" >&5
37753 sed 's/^/| /' conftest.$ac_ext >&5
37754
37755         eval "$as_ac_var=no"
37756 fi
37757
37758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37759       conftest$ac_exeext conftest.$ac_ext
37760 fi
37761 ac_res=`eval echo '${'$as_ac_var'}'`
37762                { echo "$as_me:$LINENO: result: $ac_res" >&5
37763 echo "${ECHO_T}$ac_res" >&6; }
37764 if test `eval echo '${'$as_ac_var'}'` = yes; then
37765   cat >>confdefs.h <<_ACEOF
37766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37767 _ACEOF
37768  cat >>confdefs.h <<\_ACEOF
37769 #define HAVE_STRTOLL 1
37770 _ACEOF
37771
37772 fi
37773 done
37774
37775
37776 for ac_func in posix_fadvise
37777 do
37778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37782   echo $ECHO_N "(cached) $ECHO_C" >&6
37783 else
37784   cat >conftest.$ac_ext <<_ACEOF
37785 /* confdefs.h.  */
37786 _ACEOF
37787 cat confdefs.h >>conftest.$ac_ext
37788 cat >>conftest.$ac_ext <<_ACEOF
37789 /* end confdefs.h.  */
37790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37792 #define $ac_func innocuous_$ac_func
37793
37794 /* System header to define __stub macros and hopefully few prototypes,
37795     which can conflict with char $ac_func (); below.
37796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37797     <limits.h> exists even on freestanding compilers.  */
37798
37799 #ifdef __STDC__
37800 # include <limits.h>
37801 #else
37802 # include <assert.h>
37803 #endif
37804
37805 #undef $ac_func
37806
37807 /* Override any GCC internal prototype to avoid an error.
37808    Use char because int might match the return type of a GCC
37809    builtin and then its argument prototype would still apply.  */
37810 #ifdef __cplusplus
37811 extern "C"
37812 #endif
37813 char $ac_func ();
37814 /* The GNU C library defines this for functions which it implements
37815     to always fail with ENOSYS.  Some functions are actually named
37816     something starting with __ and the normal name is an alias.  */
37817 #if defined __stub_$ac_func || defined __stub___$ac_func
37818 choke me
37819 #endif
37820
37821 int
37822 main ()
37823 {
37824 return $ac_func ();
37825   ;
37826   return 0;
37827 }
37828 _ACEOF
37829 rm -f conftest.$ac_objext conftest$ac_exeext
37830 if { (ac_try="$ac_link"
37831 case "(($ac_try" in
37832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37833   *) ac_try_echo=$ac_try;;
37834 esac
37835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37836   (eval "$ac_link") 2>conftest.er1
37837   ac_status=$?
37838   grep -v '^ *+' conftest.er1 >conftest.err
37839   rm -f conftest.er1
37840   cat conftest.err >&5
37841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37842   (exit $ac_status); } && {
37843          test -z "$ac_c_werror_flag" ||
37844          test ! -s conftest.err
37845        } && test -s conftest$ac_exeext &&
37846        $as_test_x conftest$ac_exeext; then
37847   eval "$as_ac_var=yes"
37848 else
37849   echo "$as_me: failed program was:" >&5
37850 sed 's/^/| /' conftest.$ac_ext >&5
37851
37852         eval "$as_ac_var=no"
37853 fi
37854
37855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37856       conftest$ac_exeext conftest.$ac_ext
37857 fi
37858 ac_res=`eval echo '${'$as_ac_var'}'`
37859                { echo "$as_me:$LINENO: result: $ac_res" >&5
37860 echo "${ECHO_T}$ac_res" >&6; }
37861 if test `eval echo '${'$as_ac_var'}'` = yes; then
37862   cat >>confdefs.h <<_ACEOF
37863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37864 _ACEOF
37865
37866 fi
37867 done
37868
37869
37870 for ac_func in fdatasync
37871 do
37872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37873 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37875 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37876   echo $ECHO_N "(cached) $ECHO_C" >&6
37877 else
37878   cat >conftest.$ac_ext <<_ACEOF
37879 /* confdefs.h.  */
37880 _ACEOF
37881 cat confdefs.h >>conftest.$ac_ext
37882 cat >>conftest.$ac_ext <<_ACEOF
37883 /* end confdefs.h.  */
37884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37886 #define $ac_func innocuous_$ac_func
37887
37888 /* System header to define __stub macros and hopefully few prototypes,
37889     which can conflict with char $ac_func (); below.
37890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37891     <limits.h> exists even on freestanding compilers.  */
37892
37893 #ifdef __STDC__
37894 # include <limits.h>
37895 #else
37896 # include <assert.h>
37897 #endif
37898
37899 #undef $ac_func
37900
37901 /* Override any GCC internal prototype to avoid an error.
37902    Use char because int might match the return type of a GCC
37903    builtin and then its argument prototype would still apply.  */
37904 #ifdef __cplusplus
37905 extern "C"
37906 #endif
37907 char $ac_func ();
37908 /* The GNU C library defines this for functions which it implements
37909     to always fail with ENOSYS.  Some functions are actually named
37910     something starting with __ and the normal name is an alias.  */
37911 #if defined __stub_$ac_func || defined __stub___$ac_func
37912 choke me
37913 #endif
37914
37915 int
37916 main ()
37917 {
37918 return $ac_func ();
37919   ;
37920   return 0;
37921 }
37922 _ACEOF
37923 rm -f conftest.$ac_objext conftest$ac_exeext
37924 if { (ac_try="$ac_link"
37925 case "(($ac_try" in
37926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37927   *) ac_try_echo=$ac_try;;
37928 esac
37929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37930   (eval "$ac_link") 2>conftest.er1
37931   ac_status=$?
37932   grep -v '^ *+' conftest.er1 >conftest.err
37933   rm -f conftest.er1
37934   cat conftest.err >&5
37935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936   (exit $ac_status); } && {
37937          test -z "$ac_c_werror_flag" ||
37938          test ! -s conftest.err
37939        } && test -s conftest$ac_exeext &&
37940        $as_test_x conftest$ac_exeext; then
37941   eval "$as_ac_var=yes"
37942 else
37943   echo "$as_me: failed program was:" >&5
37944 sed 's/^/| /' conftest.$ac_ext >&5
37945
37946         eval "$as_ac_var=no"
37947 fi
37948
37949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37950       conftest$ac_exeext conftest.$ac_ext
37951 fi
37952 ac_res=`eval echo '${'$as_ac_var'}'`
37953                { echo "$as_me:$LINENO: result: $ac_res" >&5
37954 echo "${ECHO_T}$ac_res" >&6; }
37955 if test `eval echo '${'$as_ac_var'}'` = yes; then
37956   cat >>confdefs.h <<_ACEOF
37957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37958 _ACEOF
37959
37960 fi
37961 done
37962
37963
37964
37965 for ac_func in chflags
37966 do
37967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37968 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37971   echo $ECHO_N "(cached) $ECHO_C" >&6
37972 else
37973   cat >conftest.$ac_ext <<_ACEOF
37974 /* confdefs.h.  */
37975 _ACEOF
37976 cat confdefs.h >>conftest.$ac_ext
37977 cat >>conftest.$ac_ext <<_ACEOF
37978 /* end confdefs.h.  */
37979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37981 #define $ac_func innocuous_$ac_func
37982
37983 /* System header to define __stub macros and hopefully few prototypes,
37984     which can conflict with char $ac_func (); below.
37985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37986     <limits.h> exists even on freestanding compilers.  */
37987
37988 #ifdef __STDC__
37989 # include <limits.h>
37990 #else
37991 # include <assert.h>
37992 #endif
37993
37994 #undef $ac_func
37995
37996 /* Override any GCC internal prototype to avoid an error.
37997    Use char because int might match the return type of a GCC
37998    builtin and then its argument prototype would still apply.  */
37999 #ifdef __cplusplus
38000 extern "C"
38001 #endif
38002 char $ac_func ();
38003 /* The GNU C library defines this for functions which it implements
38004     to always fail with ENOSYS.  Some functions are actually named
38005     something starting with __ and the normal name is an alias.  */
38006 #if defined __stub_$ac_func || defined __stub___$ac_func
38007 choke me
38008 #endif
38009
38010 int
38011 main ()
38012 {
38013 return $ac_func ();
38014   ;
38015   return 0;
38016 }
38017 _ACEOF
38018 rm -f conftest.$ac_objext conftest$ac_exeext
38019 if { (ac_try="$ac_link"
38020 case "(($ac_try" in
38021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38022   *) ac_try_echo=$ac_try;;
38023 esac
38024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38025   (eval "$ac_link") 2>conftest.er1
38026   ac_status=$?
38027   grep -v '^ *+' conftest.er1 >conftest.err
38028   rm -f conftest.er1
38029   cat conftest.err >&5
38030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38031   (exit $ac_status); } && {
38032          test -z "$ac_c_werror_flag" ||
38033          test ! -s conftest.err
38034        } && test -s conftest$ac_exeext &&
38035        $as_test_x conftest$ac_exeext; then
38036   eval "$as_ac_var=yes"
38037 else
38038   echo "$as_me: failed program was:" >&5
38039 sed 's/^/| /' conftest.$ac_ext >&5
38040
38041         eval "$as_ac_var=no"
38042 fi
38043
38044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38045       conftest$ac_exeext conftest.$ac_ext
38046 fi
38047 ac_res=`eval echo '${'$as_ac_var'}'`
38048                { echo "$as_me:$LINENO: result: $ac_res" >&5
38049 echo "${ECHO_T}$ac_res" >&6; }
38050 if test `eval echo '${'$as_ac_var'}'` = yes; then
38051   cat >>confdefs.h <<_ACEOF
38052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38053 _ACEOF
38054
38055 fi
38056 done
38057
38058
38059
38060
38061
38062
38063 for ac_func in snprintf vsnprintf gethostid fseeko
38064 do
38065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38069   echo $ECHO_N "(cached) $ECHO_C" >&6
38070 else
38071   cat >conftest.$ac_ext <<_ACEOF
38072 /* confdefs.h.  */
38073 _ACEOF
38074 cat confdefs.h >>conftest.$ac_ext
38075 cat >>conftest.$ac_ext <<_ACEOF
38076 /* end confdefs.h.  */
38077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38079 #define $ac_func innocuous_$ac_func
38080
38081 /* System header to define __stub macros and hopefully few prototypes,
38082     which can conflict with char $ac_func (); below.
38083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38084     <limits.h> exists even on freestanding compilers.  */
38085
38086 #ifdef __STDC__
38087 # include <limits.h>
38088 #else
38089 # include <assert.h>
38090 #endif
38091
38092 #undef $ac_func
38093
38094 /* Override any GCC internal prototype to avoid an error.
38095    Use char because int might match the return type of a GCC
38096    builtin and then its argument prototype would still apply.  */
38097 #ifdef __cplusplus
38098 extern "C"
38099 #endif
38100 char $ac_func ();
38101 /* The GNU C library defines this for functions which it implements
38102     to always fail with ENOSYS.  Some functions are actually named
38103     something starting with __ and the normal name is an alias.  */
38104 #if defined __stub_$ac_func || defined __stub___$ac_func
38105 choke me
38106 #endif
38107
38108 int
38109 main ()
38110 {
38111 return $ac_func ();
38112   ;
38113   return 0;
38114 }
38115 _ACEOF
38116 rm -f conftest.$ac_objext conftest$ac_exeext
38117 if { (ac_try="$ac_link"
38118 case "(($ac_try" in
38119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38120   *) ac_try_echo=$ac_try;;
38121 esac
38122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38123   (eval "$ac_link") 2>conftest.er1
38124   ac_status=$?
38125   grep -v '^ *+' conftest.er1 >conftest.err
38126   rm -f conftest.er1
38127   cat conftest.err >&5
38128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38129   (exit $ac_status); } && {
38130          test -z "$ac_c_werror_flag" ||
38131          test ! -s conftest.err
38132        } && test -s conftest$ac_exeext &&
38133        $as_test_x conftest$ac_exeext; then
38134   eval "$as_ac_var=yes"
38135 else
38136   echo "$as_me: failed program was:" >&5
38137 sed 's/^/| /' conftest.$ac_ext >&5
38138
38139         eval "$as_ac_var=no"
38140 fi
38141
38142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38143       conftest$ac_exeext conftest.$ac_ext
38144 fi
38145 ac_res=`eval echo '${'$as_ac_var'}'`
38146                { echo "$as_me:$LINENO: result: $ac_res" >&5
38147 echo "${ECHO_T}$ac_res" >&6; }
38148 if test `eval echo '${'$as_ac_var'}'` = yes; then
38149   cat >>confdefs.h <<_ACEOF
38150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38151 _ACEOF
38152
38153 fi
38154 done
38155
38156
38157 { echo "$as_me:$LINENO: checking for va_copy" >&5
38158 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38159 if test "${ba_cv_va_copy+set}" = set; then
38160   echo $ECHO_N "(cached) $ECHO_C" >&6
38161 else
38162
38163        cat >conftest.$ac_ext <<_ACEOF
38164 /* confdefs.h.  */
38165 _ACEOF
38166 cat confdefs.h >>conftest.$ac_ext
38167 cat >>conftest.$ac_ext <<_ACEOF
38168 /* end confdefs.h.  */
38169
38170               #include <stdarg.h>
38171               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38172               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38173
38174 int
38175 main ()
38176 {
38177
38178               call_use_va_copy(1,2,3)
38179
38180   ;
38181   return 0;
38182 }
38183 _ACEOF
38184 rm -f conftest.$ac_objext conftest$ac_exeext
38185 if { (ac_try="$ac_link"
38186 case "(($ac_try" in
38187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38188   *) ac_try_echo=$ac_try;;
38189 esac
38190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38191   (eval "$ac_link") 2>conftest.er1
38192   ac_status=$?
38193   grep -v '^ *+' conftest.er1 >conftest.err
38194   rm -f conftest.er1
38195   cat conftest.err >&5
38196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38197   (exit $ac_status); } && {
38198          test -z "$ac_c_werror_flag" ||
38199          test ! -s conftest.err
38200        } && test -s conftest$ac_exeext &&
38201        $as_test_x conftest$ac_exeext; then
38202
38203               ba_cv_va_copy=yes,
38204
38205 else
38206   echo "$as_me: failed program was:" >&5
38207 sed 's/^/| /' conftest.$ac_ext >&5
38208
38209
38210               ba_cv_va_copy=no
38211
38212
38213 fi
38214
38215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38216       conftest$ac_exeext conftest.$ac_ext
38217
38218
38219 fi
38220 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38221 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38222 test $ba_cv_va_copy = yes &&
38223 cat >>confdefs.h <<\_ACEOF
38224 #define HAVE_VA_COPY 1
38225 _ACEOF
38226
38227
38228
38229
38230
38231
38232 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38233 do
38234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38238   echo $ECHO_N "(cached) $ECHO_C" >&6
38239 else
38240   cat >conftest.$ac_ext <<_ACEOF
38241 /* confdefs.h.  */
38242 _ACEOF
38243 cat confdefs.h >>conftest.$ac_ext
38244 cat >>conftest.$ac_ext <<_ACEOF
38245 /* end confdefs.h.  */
38246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38248 #define $ac_func innocuous_$ac_func
38249
38250 /* System header to define __stub macros and hopefully few prototypes,
38251     which can conflict with char $ac_func (); below.
38252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38253     <limits.h> exists even on freestanding compilers.  */
38254
38255 #ifdef __STDC__
38256 # include <limits.h>
38257 #else
38258 # include <assert.h>
38259 #endif
38260
38261 #undef $ac_func
38262
38263 /* Override any GCC internal prototype to avoid an error.
38264    Use char because int might match the return type of a GCC
38265    builtin and then its argument prototype would still apply.  */
38266 #ifdef __cplusplus
38267 extern "C"
38268 #endif
38269 char $ac_func ();
38270 /* The GNU C library defines this for functions which it implements
38271     to always fail with ENOSYS.  Some functions are actually named
38272     something starting with __ and the normal name is an alias.  */
38273 #if defined __stub_$ac_func || defined __stub___$ac_func
38274 choke me
38275 #endif
38276
38277 int
38278 main ()
38279 {
38280 return $ac_func ();
38281   ;
38282   return 0;
38283 }
38284 _ACEOF
38285 rm -f conftest.$ac_objext conftest$ac_exeext
38286 if { (ac_try="$ac_link"
38287 case "(($ac_try" in
38288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38289   *) ac_try_echo=$ac_try;;
38290 esac
38291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38292   (eval "$ac_link") 2>conftest.er1
38293   ac_status=$?
38294   grep -v '^ *+' conftest.er1 >conftest.err
38295   rm -f conftest.er1
38296   cat conftest.err >&5
38297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298   (exit $ac_status); } && {
38299          test -z "$ac_c_werror_flag" ||
38300          test ! -s conftest.err
38301        } && test -s conftest$ac_exeext &&
38302        $as_test_x conftest$ac_exeext; then
38303   eval "$as_ac_var=yes"
38304 else
38305   echo "$as_me: failed program was:" >&5
38306 sed 's/^/| /' conftest.$ac_ext >&5
38307
38308         eval "$as_ac_var=no"
38309 fi
38310
38311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38312       conftest$ac_exeext conftest.$ac_ext
38313 fi
38314 ac_res=`eval echo '${'$as_ac_var'}'`
38315                { echo "$as_me:$LINENO: result: $ac_res" >&5
38316 echo "${ECHO_T}$ac_res" >&6; }
38317 if test `eval echo '${'$as_ac_var'}'` = yes; then
38318   cat >>confdefs.h <<_ACEOF
38319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38320 _ACEOF
38321
38322 fi
38323 done
38324
38325
38326 # If resolver functions are not in libc check for -lnsl or -lresolv.
38327 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38328 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38329 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38330   echo $ECHO_N "(cached) $ECHO_C" >&6
38331 else
38332   cat >conftest.$ac_ext <<_ACEOF
38333 /* confdefs.h.  */
38334 _ACEOF
38335 cat confdefs.h >>conftest.$ac_ext
38336 cat >>conftest.$ac_ext <<_ACEOF
38337 /* end confdefs.h.  */
38338 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38339    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38340 #define gethostbyname_r innocuous_gethostbyname_r
38341
38342 /* System header to define __stub macros and hopefully few prototypes,
38343     which can conflict with char gethostbyname_r (); below.
38344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38345     <limits.h> exists even on freestanding compilers.  */
38346
38347 #ifdef __STDC__
38348 # include <limits.h>
38349 #else
38350 # include <assert.h>
38351 #endif
38352
38353 #undef gethostbyname_r
38354
38355 /* Override any GCC internal prototype to avoid an error.
38356    Use char because int might match the return type of a GCC
38357    builtin and then its argument prototype would still apply.  */
38358 #ifdef __cplusplus
38359 extern "C"
38360 #endif
38361 char gethostbyname_r ();
38362 /* The GNU C library defines this for functions which it implements
38363     to always fail with ENOSYS.  Some functions are actually named
38364     something starting with __ and the normal name is an alias.  */
38365 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38366 choke me
38367 #endif
38368
38369 int
38370 main ()
38371 {
38372 return gethostbyname_r ();
38373   ;
38374   return 0;
38375 }
38376 _ACEOF
38377 rm -f conftest.$ac_objext conftest$ac_exeext
38378 if { (ac_try="$ac_link"
38379 case "(($ac_try" in
38380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38381   *) ac_try_echo=$ac_try;;
38382 esac
38383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38384   (eval "$ac_link") 2>conftest.er1
38385   ac_status=$?
38386   grep -v '^ *+' conftest.er1 >conftest.err
38387   rm -f conftest.er1
38388   cat conftest.err >&5
38389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38390   (exit $ac_status); } && {
38391          test -z "$ac_c_werror_flag" ||
38392          test ! -s conftest.err
38393        } && test -s conftest$ac_exeext &&
38394        $as_test_x conftest$ac_exeext; then
38395   ac_cv_func_gethostbyname_r=yes
38396 else
38397   echo "$as_me: failed program was:" >&5
38398 sed 's/^/| /' conftest.$ac_ext >&5
38399
38400         ac_cv_func_gethostbyname_r=no
38401 fi
38402
38403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38404       conftest$ac_exeext conftest.$ac_ext
38405 fi
38406 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38407 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38408 if test $ac_cv_func_gethostbyname_r = yes; then
38409   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38410 echo "${ECHO_T}using libc's resolver" >&6; }
38411 else
38412
38413 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38414 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38415 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38416   echo $ECHO_N "(cached) $ECHO_C" >&6
38417 else
38418   ac_check_lib_save_LIBS=$LIBS
38419 LIBS="-lnsl  $LIBS"
38420 cat >conftest.$ac_ext <<_ACEOF
38421 /* confdefs.h.  */
38422 _ACEOF
38423 cat confdefs.h >>conftest.$ac_ext
38424 cat >>conftest.$ac_ext <<_ACEOF
38425 /* end confdefs.h.  */
38426
38427 /* Override any GCC internal prototype to avoid an error.
38428    Use char because int might match the return type of a GCC
38429    builtin and then its argument prototype would still apply.  */
38430 #ifdef __cplusplus
38431 extern "C"
38432 #endif
38433 char gethostbyname_r ();
38434 int
38435 main ()
38436 {
38437 return gethostbyname_r ();
38438   ;
38439   return 0;
38440 }
38441 _ACEOF
38442 rm -f conftest.$ac_objext conftest$ac_exeext
38443 if { (ac_try="$ac_link"
38444 case "(($ac_try" in
38445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38446   *) ac_try_echo=$ac_try;;
38447 esac
38448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38449   (eval "$ac_link") 2>conftest.er1
38450   ac_status=$?
38451   grep -v '^ *+' conftest.er1 >conftest.err
38452   rm -f conftest.er1
38453   cat conftest.err >&5
38454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38455   (exit $ac_status); } && {
38456          test -z "$ac_c_werror_flag" ||
38457          test ! -s conftest.err
38458        } && test -s conftest$ac_exeext &&
38459        $as_test_x conftest$ac_exeext; then
38460   ac_cv_lib_nsl_gethostbyname_r=yes
38461 else
38462   echo "$as_me: failed program was:" >&5
38463 sed 's/^/| /' conftest.$ac_ext >&5
38464
38465         ac_cv_lib_nsl_gethostbyname_r=no
38466 fi
38467
38468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38469       conftest$ac_exeext conftest.$ac_ext
38470 LIBS=$ac_check_lib_save_LIBS
38471 fi
38472 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38473 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38474 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38475   cat >>confdefs.h <<_ACEOF
38476 #define HAVE_LIBNSL 1
38477 _ACEOF
38478
38479   LIBS="-lnsl $LIBS"
38480
38481 fi
38482
38483
38484 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38485 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38486 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38487   echo $ECHO_N "(cached) $ECHO_C" >&6
38488 else
38489   ac_check_lib_save_LIBS=$LIBS
38490 LIBS="-lresolv  $LIBS"
38491 cat >conftest.$ac_ext <<_ACEOF
38492 /* confdefs.h.  */
38493 _ACEOF
38494 cat confdefs.h >>conftest.$ac_ext
38495 cat >>conftest.$ac_ext <<_ACEOF
38496 /* end confdefs.h.  */
38497
38498 /* Override any GCC internal prototype to avoid an error.
38499    Use char because int might match the return type of a GCC
38500    builtin and then its argument prototype would still apply.  */
38501 #ifdef __cplusplus
38502 extern "C"
38503 #endif
38504 char gethostbyname_r ();
38505 int
38506 main ()
38507 {
38508 return gethostbyname_r ();
38509   ;
38510   return 0;
38511 }
38512 _ACEOF
38513 rm -f conftest.$ac_objext conftest$ac_exeext
38514 if { (ac_try="$ac_link"
38515 case "(($ac_try" in
38516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38517   *) ac_try_echo=$ac_try;;
38518 esac
38519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38520   (eval "$ac_link") 2>conftest.er1
38521   ac_status=$?
38522   grep -v '^ *+' conftest.er1 >conftest.err
38523   rm -f conftest.er1
38524   cat conftest.err >&5
38525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38526   (exit $ac_status); } && {
38527          test -z "$ac_c_werror_flag" ||
38528          test ! -s conftest.err
38529        } && test -s conftest$ac_exeext &&
38530        $as_test_x conftest$ac_exeext; then
38531   ac_cv_lib_resolv_gethostbyname_r=yes
38532 else
38533   echo "$as_me: failed program was:" >&5
38534 sed 's/^/| /' conftest.$ac_ext >&5
38535
38536         ac_cv_lib_resolv_gethostbyname_r=no
38537 fi
38538
38539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38540       conftest$ac_exeext conftest.$ac_ext
38541 LIBS=$ac_check_lib_save_LIBS
38542 fi
38543 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38544 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38545 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38546   cat >>confdefs.h <<_ACEOF
38547 #define HAVE_LIBRESOLV 1
38548 _ACEOF
38549
38550   LIBS="-lresolv $LIBS"
38551
38552 fi
38553
38554 fi
38555
38556
38557
38558 for ac_func in inet_pton
38559 do
38560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38564   echo $ECHO_N "(cached) $ECHO_C" >&6
38565 else
38566   cat >conftest.$ac_ext <<_ACEOF
38567 /* confdefs.h.  */
38568 _ACEOF
38569 cat confdefs.h >>conftest.$ac_ext
38570 cat >>conftest.$ac_ext <<_ACEOF
38571 /* end confdefs.h.  */
38572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38574 #define $ac_func innocuous_$ac_func
38575
38576 /* System header to define __stub macros and hopefully few prototypes,
38577     which can conflict with char $ac_func (); below.
38578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38579     <limits.h> exists even on freestanding compilers.  */
38580
38581 #ifdef __STDC__
38582 # include <limits.h>
38583 #else
38584 # include <assert.h>
38585 #endif
38586
38587 #undef $ac_func
38588
38589 /* Override any GCC internal prototype to avoid an error.
38590    Use char because int might match the return type of a GCC
38591    builtin and then its argument prototype would still apply.  */
38592 #ifdef __cplusplus
38593 extern "C"
38594 #endif
38595 char $ac_func ();
38596 /* The GNU C library defines this for functions which it implements
38597     to always fail with ENOSYS.  Some functions are actually named
38598     something starting with __ and the normal name is an alias.  */
38599 #if defined __stub_$ac_func || defined __stub___$ac_func
38600 choke me
38601 #endif
38602
38603 int
38604 main ()
38605 {
38606 return $ac_func ();
38607   ;
38608   return 0;
38609 }
38610 _ACEOF
38611 rm -f conftest.$ac_objext conftest$ac_exeext
38612 if { (ac_try="$ac_link"
38613 case "(($ac_try" in
38614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38615   *) ac_try_echo=$ac_try;;
38616 esac
38617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38618   (eval "$ac_link") 2>conftest.er1
38619   ac_status=$?
38620   grep -v '^ *+' conftest.er1 >conftest.err
38621   rm -f conftest.er1
38622   cat conftest.err >&5
38623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38624   (exit $ac_status); } && {
38625          test -z "$ac_c_werror_flag" ||
38626          test ! -s conftest.err
38627        } && test -s conftest$ac_exeext &&
38628        $as_test_x conftest$ac_exeext; then
38629   eval "$as_ac_var=yes"
38630 else
38631   echo "$as_me: failed program was:" >&5
38632 sed 's/^/| /' conftest.$ac_ext >&5
38633
38634         eval "$as_ac_var=no"
38635 fi
38636
38637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38638       conftest$ac_exeext conftest.$ac_ext
38639 fi
38640 ac_res=`eval echo '${'$as_ac_var'}'`
38641                { echo "$as_me:$LINENO: result: $ac_res" >&5
38642 echo "${ECHO_T}$ac_res" >&6; }
38643 if test `eval echo '${'$as_ac_var'}'` = yes; then
38644   cat >>confdefs.h <<_ACEOF
38645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38646 _ACEOF
38647  cat >>confdefs.h <<\_ACEOF
38648 #define HAVE_INET_PTON 1
38649 _ACEOF
38650
38651 fi
38652 done
38653
38654
38655 for ac_func in inet_ntop
38656 do
38657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38661   echo $ECHO_N "(cached) $ECHO_C" >&6
38662 else
38663   cat >conftest.$ac_ext <<_ACEOF
38664 /* confdefs.h.  */
38665 _ACEOF
38666 cat confdefs.h >>conftest.$ac_ext
38667 cat >>conftest.$ac_ext <<_ACEOF
38668 /* end confdefs.h.  */
38669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38671 #define $ac_func innocuous_$ac_func
38672
38673 /* System header to define __stub macros and hopefully few prototypes,
38674     which can conflict with char $ac_func (); below.
38675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38676     <limits.h> exists even on freestanding compilers.  */
38677
38678 #ifdef __STDC__
38679 # include <limits.h>
38680 #else
38681 # include <assert.h>
38682 #endif
38683
38684 #undef $ac_func
38685
38686 /* Override any GCC internal prototype to avoid an error.
38687    Use char because int might match the return type of a GCC
38688    builtin and then its argument prototype would still apply.  */
38689 #ifdef __cplusplus
38690 extern "C"
38691 #endif
38692 char $ac_func ();
38693 /* The GNU C library defines this for functions which it implements
38694     to always fail with ENOSYS.  Some functions are actually named
38695     something starting with __ and the normal name is an alias.  */
38696 #if defined __stub_$ac_func || defined __stub___$ac_func
38697 choke me
38698 #endif
38699
38700 int
38701 main ()
38702 {
38703 return $ac_func ();
38704   ;
38705   return 0;
38706 }
38707 _ACEOF
38708 rm -f conftest.$ac_objext conftest$ac_exeext
38709 if { (ac_try="$ac_link"
38710 case "(($ac_try" in
38711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38712   *) ac_try_echo=$ac_try;;
38713 esac
38714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38715   (eval "$ac_link") 2>conftest.er1
38716   ac_status=$?
38717   grep -v '^ *+' conftest.er1 >conftest.err
38718   rm -f conftest.er1
38719   cat conftest.err >&5
38720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38721   (exit $ac_status); } && {
38722          test -z "$ac_c_werror_flag" ||
38723          test ! -s conftest.err
38724        } && test -s conftest$ac_exeext &&
38725        $as_test_x conftest$ac_exeext; then
38726   eval "$as_ac_var=yes"
38727 else
38728   echo "$as_me: failed program was:" >&5
38729 sed 's/^/| /' conftest.$ac_ext >&5
38730
38731         eval "$as_ac_var=no"
38732 fi
38733
38734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38735       conftest$ac_exeext conftest.$ac_ext
38736 fi
38737 ac_res=`eval echo '${'$as_ac_var'}'`
38738                { echo "$as_me:$LINENO: result: $ac_res" >&5
38739 echo "${ECHO_T}$ac_res" >&6; }
38740 if test `eval echo '${'$as_ac_var'}'` = yes; then
38741   cat >>confdefs.h <<_ACEOF
38742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38743 _ACEOF
38744  cat >>confdefs.h <<\_ACEOF
38745 #define HAVE_INET_NTOP 1
38746 _ACEOF
38747
38748 fi
38749 done
38750
38751
38752 for ac_func in gethostbyname2
38753 do
38754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38758   echo $ECHO_N "(cached) $ECHO_C" >&6
38759 else
38760   cat >conftest.$ac_ext <<_ACEOF
38761 /* confdefs.h.  */
38762 _ACEOF
38763 cat confdefs.h >>conftest.$ac_ext
38764 cat >>conftest.$ac_ext <<_ACEOF
38765 /* end confdefs.h.  */
38766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38768 #define $ac_func innocuous_$ac_func
38769
38770 /* System header to define __stub macros and hopefully few prototypes,
38771     which can conflict with char $ac_func (); below.
38772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38773     <limits.h> exists even on freestanding compilers.  */
38774
38775 #ifdef __STDC__
38776 # include <limits.h>
38777 #else
38778 # include <assert.h>
38779 #endif
38780
38781 #undef $ac_func
38782
38783 /* Override any GCC internal prototype to avoid an error.
38784    Use char because int might match the return type of a GCC
38785    builtin and then its argument prototype would still apply.  */
38786 #ifdef __cplusplus
38787 extern "C"
38788 #endif
38789 char $ac_func ();
38790 /* The GNU C library defines this for functions which it implements
38791     to always fail with ENOSYS.  Some functions are actually named
38792     something starting with __ and the normal name is an alias.  */
38793 #if defined __stub_$ac_func || defined __stub___$ac_func
38794 choke me
38795 #endif
38796
38797 int
38798 main ()
38799 {
38800 return $ac_func ();
38801   ;
38802   return 0;
38803 }
38804 _ACEOF
38805 rm -f conftest.$ac_objext conftest$ac_exeext
38806 if { (ac_try="$ac_link"
38807 case "(($ac_try" in
38808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38809   *) ac_try_echo=$ac_try;;
38810 esac
38811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38812   (eval "$ac_link") 2>conftest.er1
38813   ac_status=$?
38814   grep -v '^ *+' conftest.er1 >conftest.err
38815   rm -f conftest.er1
38816   cat conftest.err >&5
38817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38818   (exit $ac_status); } && {
38819          test -z "$ac_c_werror_flag" ||
38820          test ! -s conftest.err
38821        } && test -s conftest$ac_exeext &&
38822        $as_test_x conftest$ac_exeext; then
38823   eval "$as_ac_var=yes"
38824 else
38825   echo "$as_me: failed program was:" >&5
38826 sed 's/^/| /' conftest.$ac_ext >&5
38827
38828         eval "$as_ac_var=no"
38829 fi
38830
38831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38832       conftest$ac_exeext conftest.$ac_ext
38833 fi
38834 ac_res=`eval echo '${'$as_ac_var'}'`
38835                { echo "$as_me:$LINENO: result: $ac_res" >&5
38836 echo "${ECHO_T}$ac_res" >&6; }
38837 if test `eval echo '${'$as_ac_var'}'` = yes; then
38838   cat >>confdefs.h <<_ACEOF
38839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38840 _ACEOF
38841  cat >>confdefs.h <<\_ACEOF
38842 #define HAVE_GETHOSTBYNAME2 1
38843 _ACEOF
38844
38845 fi
38846 done
38847
38848
38849 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38850 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38851 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38852   echo $ECHO_N "(cached) $ECHO_C" >&6
38853 else
38854
38855        cat >conftest.$ac_ext <<_ACEOF
38856 /* confdefs.h.  */
38857 _ACEOF
38858 cat confdefs.h >>conftest.$ac_ext
38859 cat >>conftest.$ac_ext <<_ACEOF
38860 /* end confdefs.h.  */
38861
38862               #include <sys/socket.h>
38863
38864 int
38865 main ()
38866 {
38867
38868               struct sockaddr s; s.sa_len;
38869
38870   ;
38871   return 0;
38872 }
38873 _ACEOF
38874 rm -f conftest.$ac_objext
38875 if { (ac_try="$ac_compile"
38876 case "(($ac_try" in
38877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38878   *) ac_try_echo=$ac_try;;
38879 esac
38880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38881   (eval "$ac_compile") 2>conftest.er1
38882   ac_status=$?
38883   grep -v '^ *+' conftest.er1 >conftest.err
38884   rm -f conftest.er1
38885   cat conftest.err >&5
38886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38887   (exit $ac_status); } && {
38888          test -z "$ac_c_werror_flag" ||
38889          test ! -s conftest.err
38890        } && test -s conftest.$ac_objext; then
38891
38892              ac_cv_struct_sockaddr_sa_len=yes
38893
38894 else
38895   echo "$as_me: failed program was:" >&5
38896 sed 's/^/| /' conftest.$ac_ext >&5
38897
38898         ac_cv_struct_sockaddr_sa_len=no
38899
38900
38901 fi
38902
38903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38904
38905
38906 fi
38907 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38908 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38909
38910 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38911
38912 cat >>confdefs.h <<\_ACEOF
38913 #define HAVE_SA_LEN 1
38914 _ACEOF
38915
38916 fi
38917
38918
38919 for ac_func in strftime
38920 do
38921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38925   echo $ECHO_N "(cached) $ECHO_C" >&6
38926 else
38927   cat >conftest.$ac_ext <<_ACEOF
38928 /* confdefs.h.  */
38929 _ACEOF
38930 cat confdefs.h >>conftest.$ac_ext
38931 cat >>conftest.$ac_ext <<_ACEOF
38932 /* end confdefs.h.  */
38933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38935 #define $ac_func innocuous_$ac_func
38936
38937 /* System header to define __stub macros and hopefully few prototypes,
38938     which can conflict with char $ac_func (); below.
38939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38940     <limits.h> exists even on freestanding compilers.  */
38941
38942 #ifdef __STDC__
38943 # include <limits.h>
38944 #else
38945 # include <assert.h>
38946 #endif
38947
38948 #undef $ac_func
38949
38950 /* Override any GCC internal prototype to avoid an error.
38951    Use char because int might match the return type of a GCC
38952    builtin and then its argument prototype would still apply.  */
38953 #ifdef __cplusplus
38954 extern "C"
38955 #endif
38956 char $ac_func ();
38957 /* The GNU C library defines this for functions which it implements
38958     to always fail with ENOSYS.  Some functions are actually named
38959     something starting with __ and the normal name is an alias.  */
38960 #if defined __stub_$ac_func || defined __stub___$ac_func
38961 choke me
38962 #endif
38963
38964 int
38965 main ()
38966 {
38967 return $ac_func ();
38968   ;
38969   return 0;
38970 }
38971 _ACEOF
38972 rm -f conftest.$ac_objext conftest$ac_exeext
38973 if { (ac_try="$ac_link"
38974 case "(($ac_try" in
38975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38976   *) ac_try_echo=$ac_try;;
38977 esac
38978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38979   (eval "$ac_link") 2>conftest.er1
38980   ac_status=$?
38981   grep -v '^ *+' conftest.er1 >conftest.err
38982   rm -f conftest.er1
38983   cat conftest.err >&5
38984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38985   (exit $ac_status); } && {
38986          test -z "$ac_c_werror_flag" ||
38987          test ! -s conftest.err
38988        } && test -s conftest$ac_exeext &&
38989        $as_test_x conftest$ac_exeext; then
38990   eval "$as_ac_var=yes"
38991 else
38992   echo "$as_me: failed program was:" >&5
38993 sed 's/^/| /' conftest.$ac_ext >&5
38994
38995         eval "$as_ac_var=no"
38996 fi
38997
38998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38999       conftest$ac_exeext conftest.$ac_ext
39000 fi
39001 ac_res=`eval echo '${'$as_ac_var'}'`
39002                { echo "$as_me:$LINENO: result: $ac_res" >&5
39003 echo "${ECHO_T}$ac_res" >&6; }
39004 if test `eval echo '${'$as_ac_var'}'` = yes; then
39005   cat >>confdefs.h <<_ACEOF
39006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39007 _ACEOF
39008
39009 else
39010   # strftime is in -lintl on SCO UNIX.
39011 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39012 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39013 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39014   echo $ECHO_N "(cached) $ECHO_C" >&6
39015 else
39016   ac_check_lib_save_LIBS=$LIBS
39017 LIBS="-lintl  $LIBS"
39018 cat >conftest.$ac_ext <<_ACEOF
39019 /* confdefs.h.  */
39020 _ACEOF
39021 cat confdefs.h >>conftest.$ac_ext
39022 cat >>conftest.$ac_ext <<_ACEOF
39023 /* end confdefs.h.  */
39024
39025 /* Override any GCC internal prototype to avoid an error.
39026    Use char because int might match the return type of a GCC
39027    builtin and then its argument prototype would still apply.  */
39028 #ifdef __cplusplus
39029 extern "C"
39030 #endif
39031 char strftime ();
39032 int
39033 main ()
39034 {
39035 return strftime ();
39036   ;
39037   return 0;
39038 }
39039 _ACEOF
39040 rm -f conftest.$ac_objext conftest$ac_exeext
39041 if { (ac_try="$ac_link"
39042 case "(($ac_try" in
39043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39044   *) ac_try_echo=$ac_try;;
39045 esac
39046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39047   (eval "$ac_link") 2>conftest.er1
39048   ac_status=$?
39049   grep -v '^ *+' conftest.er1 >conftest.err
39050   rm -f conftest.er1
39051   cat conftest.err >&5
39052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39053   (exit $ac_status); } && {
39054          test -z "$ac_c_werror_flag" ||
39055          test ! -s conftest.err
39056        } && test -s conftest$ac_exeext &&
39057        $as_test_x conftest$ac_exeext; then
39058   ac_cv_lib_intl_strftime=yes
39059 else
39060   echo "$as_me: failed program was:" >&5
39061 sed 's/^/| /' conftest.$ac_ext >&5
39062
39063         ac_cv_lib_intl_strftime=no
39064 fi
39065
39066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39067       conftest$ac_exeext conftest.$ac_ext
39068 LIBS=$ac_check_lib_save_LIBS
39069 fi
39070 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39071 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39072 if test $ac_cv_lib_intl_strftime = yes; then
39073   cat >>confdefs.h <<\_ACEOF
39074 #define HAVE_STRFTIME 1
39075 _ACEOF
39076
39077 LIBS="-lintl $LIBS"
39078 fi
39079
39080 fi
39081 done
39082
39083
39084 for ac_func in vprintf
39085 do
39086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39087 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39089 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39090   echo $ECHO_N "(cached) $ECHO_C" >&6
39091 else
39092   cat >conftest.$ac_ext <<_ACEOF
39093 /* confdefs.h.  */
39094 _ACEOF
39095 cat confdefs.h >>conftest.$ac_ext
39096 cat >>conftest.$ac_ext <<_ACEOF
39097 /* end confdefs.h.  */
39098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39100 #define $ac_func innocuous_$ac_func
39101
39102 /* System header to define __stub macros and hopefully few prototypes,
39103     which can conflict with char $ac_func (); below.
39104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39105     <limits.h> exists even on freestanding compilers.  */
39106
39107 #ifdef __STDC__
39108 # include <limits.h>
39109 #else
39110 # include <assert.h>
39111 #endif
39112
39113 #undef $ac_func
39114
39115 /* Override any GCC internal prototype to avoid an error.
39116    Use char because int might match the return type of a GCC
39117    builtin and then its argument prototype would still apply.  */
39118 #ifdef __cplusplus
39119 extern "C"
39120 #endif
39121 char $ac_func ();
39122 /* The GNU C library defines this for functions which it implements
39123     to always fail with ENOSYS.  Some functions are actually named
39124     something starting with __ and the normal name is an alias.  */
39125 #if defined __stub_$ac_func || defined __stub___$ac_func
39126 choke me
39127 #endif
39128
39129 int
39130 main ()
39131 {
39132 return $ac_func ();
39133   ;
39134   return 0;
39135 }
39136 _ACEOF
39137 rm -f conftest.$ac_objext conftest$ac_exeext
39138 if { (ac_try="$ac_link"
39139 case "(($ac_try" in
39140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39141   *) ac_try_echo=$ac_try;;
39142 esac
39143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39144   (eval "$ac_link") 2>conftest.er1
39145   ac_status=$?
39146   grep -v '^ *+' conftest.er1 >conftest.err
39147   rm -f conftest.er1
39148   cat conftest.err >&5
39149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150   (exit $ac_status); } && {
39151          test -z "$ac_c_werror_flag" ||
39152          test ! -s conftest.err
39153        } && test -s conftest$ac_exeext &&
39154        $as_test_x conftest$ac_exeext; then
39155   eval "$as_ac_var=yes"
39156 else
39157   echo "$as_me: failed program was:" >&5
39158 sed 's/^/| /' conftest.$ac_ext >&5
39159
39160         eval "$as_ac_var=no"
39161 fi
39162
39163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39164       conftest$ac_exeext conftest.$ac_ext
39165 fi
39166 ac_res=`eval echo '${'$as_ac_var'}'`
39167                { echo "$as_me:$LINENO: result: $ac_res" >&5
39168 echo "${ECHO_T}$ac_res" >&6; }
39169 if test `eval echo '${'$as_ac_var'}'` = yes; then
39170   cat >>confdefs.h <<_ACEOF
39171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39172 _ACEOF
39173
39174 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39175 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39176 if test "${ac_cv_func__doprnt+set}" = set; then
39177   echo $ECHO_N "(cached) $ECHO_C" >&6
39178 else
39179   cat >conftest.$ac_ext <<_ACEOF
39180 /* confdefs.h.  */
39181 _ACEOF
39182 cat confdefs.h >>conftest.$ac_ext
39183 cat >>conftest.$ac_ext <<_ACEOF
39184 /* end confdefs.h.  */
39185 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39187 #define _doprnt innocuous__doprnt
39188
39189 /* System header to define __stub macros and hopefully few prototypes,
39190     which can conflict with char _doprnt (); below.
39191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39192     <limits.h> exists even on freestanding compilers.  */
39193
39194 #ifdef __STDC__
39195 # include <limits.h>
39196 #else
39197 # include <assert.h>
39198 #endif
39199
39200 #undef _doprnt
39201
39202 /* Override any GCC internal prototype to avoid an error.
39203    Use char because int might match the return type of a GCC
39204    builtin and then its argument prototype would still apply.  */
39205 #ifdef __cplusplus
39206 extern "C"
39207 #endif
39208 char _doprnt ();
39209 /* The GNU C library defines this for functions which it implements
39210     to always fail with ENOSYS.  Some functions are actually named
39211     something starting with __ and the normal name is an alias.  */
39212 #if defined __stub__doprnt || defined __stub____doprnt
39213 choke me
39214 #endif
39215
39216 int
39217 main ()
39218 {
39219 return _doprnt ();
39220   ;
39221   return 0;
39222 }
39223 _ACEOF
39224 rm -f conftest.$ac_objext conftest$ac_exeext
39225 if { (ac_try="$ac_link"
39226 case "(($ac_try" in
39227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39228   *) ac_try_echo=$ac_try;;
39229 esac
39230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39231   (eval "$ac_link") 2>conftest.er1
39232   ac_status=$?
39233   grep -v '^ *+' conftest.er1 >conftest.err
39234   rm -f conftest.er1
39235   cat conftest.err >&5
39236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39237   (exit $ac_status); } && {
39238          test -z "$ac_c_werror_flag" ||
39239          test ! -s conftest.err
39240        } && test -s conftest$ac_exeext &&
39241        $as_test_x conftest$ac_exeext; then
39242   ac_cv_func__doprnt=yes
39243 else
39244   echo "$as_me: failed program was:" >&5
39245 sed 's/^/| /' conftest.$ac_ext >&5
39246
39247         ac_cv_func__doprnt=no
39248 fi
39249
39250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39251       conftest$ac_exeext conftest.$ac_ext
39252 fi
39253 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39254 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39255 if test $ac_cv_func__doprnt = yes; then
39256
39257 cat >>confdefs.h <<\_ACEOF
39258 #define HAVE_DOPRNT 1
39259 _ACEOF
39260
39261 fi
39262
39263 fi
39264 done
39265
39266
39267 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39268 # for constant arguments.  Useless!
39269 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39270 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39271 if test "${ac_cv_working_alloca_h+set}" = set; then
39272   echo $ECHO_N "(cached) $ECHO_C" >&6
39273 else
39274   cat >conftest.$ac_ext <<_ACEOF
39275 /* confdefs.h.  */
39276 _ACEOF
39277 cat confdefs.h >>conftest.$ac_ext
39278 cat >>conftest.$ac_ext <<_ACEOF
39279 /* end confdefs.h.  */
39280 #include <alloca.h>
39281 int
39282 main ()
39283 {
39284 char *p = (char *) alloca (2 * sizeof (int));
39285                           if (p) return 0;
39286   ;
39287   return 0;
39288 }
39289 _ACEOF
39290 rm -f conftest.$ac_objext conftest$ac_exeext
39291 if { (ac_try="$ac_link"
39292 case "(($ac_try" in
39293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39294   *) ac_try_echo=$ac_try;;
39295 esac
39296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39297   (eval "$ac_link") 2>conftest.er1
39298   ac_status=$?
39299   grep -v '^ *+' conftest.er1 >conftest.err
39300   rm -f conftest.er1
39301   cat conftest.err >&5
39302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39303   (exit $ac_status); } && {
39304          test -z "$ac_c_werror_flag" ||
39305          test ! -s conftest.err
39306        } && test -s conftest$ac_exeext &&
39307        $as_test_x conftest$ac_exeext; then
39308   ac_cv_working_alloca_h=yes
39309 else
39310   echo "$as_me: failed program was:" >&5
39311 sed 's/^/| /' conftest.$ac_ext >&5
39312
39313         ac_cv_working_alloca_h=no
39314 fi
39315
39316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39317       conftest$ac_exeext conftest.$ac_ext
39318 fi
39319 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39320 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39321 if test $ac_cv_working_alloca_h = yes; then
39322
39323 cat >>confdefs.h <<\_ACEOF
39324 #define HAVE_ALLOCA_H 1
39325 _ACEOF
39326
39327 fi
39328
39329 { echo "$as_me:$LINENO: checking for alloca" >&5
39330 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39331 if test "${ac_cv_func_alloca_works+set}" = set; then
39332   echo $ECHO_N "(cached) $ECHO_C" >&6
39333 else
39334   cat >conftest.$ac_ext <<_ACEOF
39335 /* confdefs.h.  */
39336 _ACEOF
39337 cat confdefs.h >>conftest.$ac_ext
39338 cat >>conftest.$ac_ext <<_ACEOF
39339 /* end confdefs.h.  */
39340 #ifdef __GNUC__
39341 # define alloca __builtin_alloca
39342 #else
39343 # ifdef _MSC_VER
39344 #  include <malloc.h>
39345 #  define alloca _alloca
39346 # else
39347 #  ifdef HAVE_ALLOCA_H
39348 #   include <alloca.h>
39349 #  else
39350 #   ifdef _AIX
39351  #pragma alloca
39352 #   else
39353 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39354 char *alloca ();
39355 #    endif
39356 #   endif
39357 #  endif
39358 # endif
39359 #endif
39360
39361 int
39362 main ()
39363 {
39364 char *p = (char *) alloca (1);
39365                                     if (p) return 0;
39366   ;
39367   return 0;
39368 }
39369 _ACEOF
39370 rm -f conftest.$ac_objext conftest$ac_exeext
39371 if { (ac_try="$ac_link"
39372 case "(($ac_try" in
39373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39374   *) ac_try_echo=$ac_try;;
39375 esac
39376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39377   (eval "$ac_link") 2>conftest.er1
39378   ac_status=$?
39379   grep -v '^ *+' conftest.er1 >conftest.err
39380   rm -f conftest.er1
39381   cat conftest.err >&5
39382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39383   (exit $ac_status); } && {
39384          test -z "$ac_c_werror_flag" ||
39385          test ! -s conftest.err
39386        } && test -s conftest$ac_exeext &&
39387        $as_test_x conftest$ac_exeext; then
39388   ac_cv_func_alloca_works=yes
39389 else
39390   echo "$as_me: failed program was:" >&5
39391 sed 's/^/| /' conftest.$ac_ext >&5
39392
39393         ac_cv_func_alloca_works=no
39394 fi
39395
39396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39397       conftest$ac_exeext conftest.$ac_ext
39398 fi
39399 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39400 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39401
39402 if test $ac_cv_func_alloca_works = yes; then
39403
39404 cat >>confdefs.h <<\_ACEOF
39405 #define HAVE_ALLOCA 1
39406 _ACEOF
39407
39408 else
39409   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39410 # that cause trouble.  Some versions do not even contain alloca or
39411 # contain a buggy version.  If you still want to use their alloca,
39412 # use ar to extract alloca.o from them instead of compiling alloca.c.
39413
39414 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39415
39416 cat >>confdefs.h <<\_ACEOF
39417 #define C_ALLOCA 1
39418 _ACEOF
39419
39420
39421 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39422 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39423 if test "${ac_cv_os_cray+set}" = set; then
39424   echo $ECHO_N "(cached) $ECHO_C" >&6
39425 else
39426   cat >conftest.$ac_ext <<_ACEOF
39427 /* confdefs.h.  */
39428 _ACEOF
39429 cat confdefs.h >>conftest.$ac_ext
39430 cat >>conftest.$ac_ext <<_ACEOF
39431 /* end confdefs.h.  */
39432 #if defined CRAY && ! defined CRAY2
39433 webecray
39434 #else
39435 wenotbecray
39436 #endif
39437
39438 _ACEOF
39439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39440   $EGREP "webecray" >/dev/null 2>&1; then
39441   ac_cv_os_cray=yes
39442 else
39443   ac_cv_os_cray=no
39444 fi
39445 rm -f conftest*
39446
39447 fi
39448 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39449 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39450 if test $ac_cv_os_cray = yes; then
39451   for ac_func in _getb67 GETB67 getb67; do
39452     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39456   echo $ECHO_N "(cached) $ECHO_C" >&6
39457 else
39458   cat >conftest.$ac_ext <<_ACEOF
39459 /* confdefs.h.  */
39460 _ACEOF
39461 cat confdefs.h >>conftest.$ac_ext
39462 cat >>conftest.$ac_ext <<_ACEOF
39463 /* end confdefs.h.  */
39464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39466 #define $ac_func innocuous_$ac_func
39467
39468 /* System header to define __stub macros and hopefully few prototypes,
39469     which can conflict with char $ac_func (); below.
39470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39471     <limits.h> exists even on freestanding compilers.  */
39472
39473 #ifdef __STDC__
39474 # include <limits.h>
39475 #else
39476 # include <assert.h>
39477 #endif
39478
39479 #undef $ac_func
39480
39481 /* Override any GCC internal prototype to avoid an error.
39482    Use char because int might match the return type of a GCC
39483    builtin and then its argument prototype would still apply.  */
39484 #ifdef __cplusplus
39485 extern "C"
39486 #endif
39487 char $ac_func ();
39488 /* The GNU C library defines this for functions which it implements
39489     to always fail with ENOSYS.  Some functions are actually named
39490     something starting with __ and the normal name is an alias.  */
39491 #if defined __stub_$ac_func || defined __stub___$ac_func
39492 choke me
39493 #endif
39494
39495 int
39496 main ()
39497 {
39498 return $ac_func ();
39499   ;
39500   return 0;
39501 }
39502 _ACEOF
39503 rm -f conftest.$ac_objext conftest$ac_exeext
39504 if { (ac_try="$ac_link"
39505 case "(($ac_try" in
39506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39507   *) ac_try_echo=$ac_try;;
39508 esac
39509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39510   (eval "$ac_link") 2>conftest.er1
39511   ac_status=$?
39512   grep -v '^ *+' conftest.er1 >conftest.err
39513   rm -f conftest.er1
39514   cat conftest.err >&5
39515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516   (exit $ac_status); } && {
39517          test -z "$ac_c_werror_flag" ||
39518          test ! -s conftest.err
39519        } && test -s conftest$ac_exeext &&
39520        $as_test_x conftest$ac_exeext; then
39521   eval "$as_ac_var=yes"
39522 else
39523   echo "$as_me: failed program was:" >&5
39524 sed 's/^/| /' conftest.$ac_ext >&5
39525
39526         eval "$as_ac_var=no"
39527 fi
39528
39529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39530       conftest$ac_exeext conftest.$ac_ext
39531 fi
39532 ac_res=`eval echo '${'$as_ac_var'}'`
39533                { echo "$as_me:$LINENO: result: $ac_res" >&5
39534 echo "${ECHO_T}$ac_res" >&6; }
39535 if test `eval echo '${'$as_ac_var'}'` = yes; then
39536
39537 cat >>confdefs.h <<_ACEOF
39538 #define CRAY_STACKSEG_END $ac_func
39539 _ACEOF
39540
39541     break
39542 fi
39543
39544   done
39545 fi
39546
39547 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39548 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39549 if test "${ac_cv_c_stack_direction+set}" = set; then
39550   echo $ECHO_N "(cached) $ECHO_C" >&6
39551 else
39552   if test "$cross_compiling" = yes; then
39553   ac_cv_c_stack_direction=0
39554 else
39555   cat >conftest.$ac_ext <<_ACEOF
39556 /* confdefs.h.  */
39557 _ACEOF
39558 cat confdefs.h >>conftest.$ac_ext
39559 cat >>conftest.$ac_ext <<_ACEOF
39560 /* end confdefs.h.  */
39561 $ac_includes_default
39562 int
39563 find_stack_direction ()
39564 {
39565   static char *addr = 0;
39566   auto char dummy;
39567   if (addr == 0)
39568     {
39569       addr = &dummy;
39570       return find_stack_direction ();
39571     }
39572   else
39573     return (&dummy > addr) ? 1 : -1;
39574 }
39575
39576 int
39577 main ()
39578 {
39579   return find_stack_direction () < 0;
39580 }
39581 _ACEOF
39582 rm -f conftest$ac_exeext
39583 if { (ac_try="$ac_link"
39584 case "(($ac_try" in
39585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39586   *) ac_try_echo=$ac_try;;
39587 esac
39588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39589   (eval "$ac_link") 2>&5
39590   ac_status=$?
39591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39593   { (case "(($ac_try" in
39594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39595   *) ac_try_echo=$ac_try;;
39596 esac
39597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39598   (eval "$ac_try") 2>&5
39599   ac_status=$?
39600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39601   (exit $ac_status); }; }; then
39602   ac_cv_c_stack_direction=1
39603 else
39604   echo "$as_me: program exited with status $ac_status" >&5
39605 echo "$as_me: failed program was:" >&5
39606 sed 's/^/| /' conftest.$ac_ext >&5
39607
39608 ( exit $ac_status )
39609 ac_cv_c_stack_direction=-1
39610 fi
39611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39612 fi
39613
39614
39615 fi
39616 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39617 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39618
39619 cat >>confdefs.h <<_ACEOF
39620 #define STACK_DIRECTION $ac_cv_c_stack_direction
39621 _ACEOF
39622
39623
39624 fi
39625
39626 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39627 # -lseq on Dynix/PTX, -lgen on Unixware.
39628 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39629 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39630 if test "${ac_cv_search_getmntent+set}" = set; then
39631   echo $ECHO_N "(cached) $ECHO_C" >&6
39632 else
39633   ac_func_search_save_LIBS=$LIBS
39634 cat >conftest.$ac_ext <<_ACEOF
39635 /* confdefs.h.  */
39636 _ACEOF
39637 cat confdefs.h >>conftest.$ac_ext
39638 cat >>conftest.$ac_ext <<_ACEOF
39639 /* end confdefs.h.  */
39640
39641 /* Override any GCC internal prototype to avoid an error.
39642    Use char because int might match the return type of a GCC
39643    builtin and then its argument prototype would still apply.  */
39644 #ifdef __cplusplus
39645 extern "C"
39646 #endif
39647 char getmntent ();
39648 int
39649 main ()
39650 {
39651 return getmntent ();
39652   ;
39653   return 0;
39654 }
39655 _ACEOF
39656 for ac_lib in '' sun seq gen; do
39657   if test -z "$ac_lib"; then
39658     ac_res="none required"
39659   else
39660     ac_res=-l$ac_lib
39661     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39662   fi
39663   rm -f conftest.$ac_objext conftest$ac_exeext
39664 if { (ac_try="$ac_link"
39665 case "(($ac_try" in
39666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39667   *) ac_try_echo=$ac_try;;
39668 esac
39669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39670   (eval "$ac_link") 2>conftest.er1
39671   ac_status=$?
39672   grep -v '^ *+' conftest.er1 >conftest.err
39673   rm -f conftest.er1
39674   cat conftest.err >&5
39675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39676   (exit $ac_status); } && {
39677          test -z "$ac_c_werror_flag" ||
39678          test ! -s conftest.err
39679        } && test -s conftest$ac_exeext &&
39680        $as_test_x conftest$ac_exeext; then
39681   ac_cv_search_getmntent=$ac_res
39682 else
39683   echo "$as_me: failed program was:" >&5
39684 sed 's/^/| /' conftest.$ac_ext >&5
39685
39686
39687 fi
39688
39689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39690       conftest$ac_exeext
39691   if test "${ac_cv_search_getmntent+set}" = set; then
39692   break
39693 fi
39694 done
39695 if test "${ac_cv_search_getmntent+set}" = set; then
39696   :
39697 else
39698   ac_cv_search_getmntent=no
39699 fi
39700 rm conftest.$ac_ext
39701 LIBS=$ac_func_search_save_LIBS
39702 fi
39703 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39704 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39705 ac_res=$ac_cv_search_getmntent
39706 if test "$ac_res" != no; then
39707   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39708   ac_cv_func_getmntent=yes
39709
39710 cat >>confdefs.h <<\_ACEOF
39711 #define HAVE_GETMNTENT 1
39712 _ACEOF
39713
39714 else
39715   ac_cv_func_getmntent=no
39716 fi
39717
39718
39719 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39720 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39721 if test "${ac_cv_func_closedir_void+set}" = set; then
39722   echo $ECHO_N "(cached) $ECHO_C" >&6
39723 else
39724   if test "$cross_compiling" = yes; then
39725   ac_cv_func_closedir_void=yes
39726 else
39727   cat >conftest.$ac_ext <<_ACEOF
39728 /* confdefs.h.  */
39729 _ACEOF
39730 cat confdefs.h >>conftest.$ac_ext
39731 cat >>conftest.$ac_ext <<_ACEOF
39732 /* end confdefs.h.  */
39733 $ac_includes_default
39734 #include <$ac_header_dirent>
39735 #ifndef __cplusplus
39736 int closedir ();
39737 #endif
39738
39739 int
39740 main ()
39741 {
39742 return closedir (opendir (".")) != 0;
39743   ;
39744   return 0;
39745 }
39746 _ACEOF
39747 rm -f conftest$ac_exeext
39748 if { (ac_try="$ac_link"
39749 case "(($ac_try" in
39750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39751   *) ac_try_echo=$ac_try;;
39752 esac
39753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39754   (eval "$ac_link") 2>&5
39755   ac_status=$?
39756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39757   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39758   { (case "(($ac_try" in
39759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39760   *) ac_try_echo=$ac_try;;
39761 esac
39762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39763   (eval "$ac_try") 2>&5
39764   ac_status=$?
39765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39766   (exit $ac_status); }; }; then
39767   ac_cv_func_closedir_void=no
39768 else
39769   echo "$as_me: program exited with status $ac_status" >&5
39770 echo "$as_me: failed program was:" >&5
39771 sed 's/^/| /' conftest.$ac_ext >&5
39772
39773 ( exit $ac_status )
39774 ac_cv_func_closedir_void=yes
39775 fi
39776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39777 fi
39778
39779
39780 fi
39781 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39782 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39783 if test $ac_cv_func_closedir_void = yes; then
39784
39785 cat >>confdefs.h <<\_ACEOF
39786 #define CLOSEDIR_VOID 1
39787 _ACEOF
39788
39789 fi
39790
39791 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39792 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39793 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39794   echo $ECHO_N "(cached) $ECHO_C" >&6
39795 else
39796   if test "$cross_compiling" = yes; then
39797   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39798 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39799    { (exit 1); exit 1; }; }
39800 else
39801   cat >conftest.$ac_ext <<_ACEOF
39802 /* confdefs.h.  */
39803 _ACEOF
39804 cat confdefs.h >>conftest.$ac_ext
39805 cat >>conftest.$ac_ext <<_ACEOF
39806 /* end confdefs.h.  */
39807 $ac_includes_default
39808 int
39809 main ()
39810 {
39811 /* If this system has a BSD-style setpgrp which takes arguments,
39812   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39813   exit successfully. */
39814   return setpgrp (1,1) != -1;
39815   ;
39816   return 0;
39817 }
39818 _ACEOF
39819 rm -f conftest$ac_exeext
39820 if { (ac_try="$ac_link"
39821 case "(($ac_try" in
39822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39823   *) ac_try_echo=$ac_try;;
39824 esac
39825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39826   (eval "$ac_link") 2>&5
39827   ac_status=$?
39828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39829   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39830   { (case "(($ac_try" in
39831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39832   *) ac_try_echo=$ac_try;;
39833 esac
39834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39835   (eval "$ac_try") 2>&5
39836   ac_status=$?
39837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838   (exit $ac_status); }; }; then
39839   ac_cv_func_setpgrp_void=no
39840 else
39841   echo "$as_me: program exited with status $ac_status" >&5
39842 echo "$as_me: failed program was:" >&5
39843 sed 's/^/| /' conftest.$ac_ext >&5
39844
39845 ( exit $ac_status )
39846 ac_cv_func_setpgrp_void=yes
39847 fi
39848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39849 fi
39850
39851
39852 fi
39853 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39854 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39855 if test $ac_cv_func_setpgrp_void = yes; then
39856
39857 cat >>confdefs.h <<\_ACEOF
39858 #define SETPGRP_VOID 1
39859 _ACEOF
39860
39861 fi
39862             # AC_FUNC_FNMATCH    dnl use local version
39863
39864 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39865 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39866 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39867   echo $ECHO_N "(cached) $ECHO_C" >&6
39868 else
39869   ac_check_lib_save_LIBS=$LIBS
39870 LIBS="-lintl  $LIBS"
39871 cat >conftest.$ac_ext <<_ACEOF
39872 /* confdefs.h.  */
39873 _ACEOF
39874 cat confdefs.h >>conftest.$ac_ext
39875 cat >>conftest.$ac_ext <<_ACEOF
39876 /* end confdefs.h.  */
39877
39878 /* Override any GCC internal prototype to avoid an error.
39879    Use char because int might match the return type of a GCC
39880    builtin and then its argument prototype would still apply.  */
39881 #ifdef __cplusplus
39882 extern "C"
39883 #endif
39884 char gettext ();
39885 int
39886 main ()
39887 {
39888 return gettext ();
39889   ;
39890   return 0;
39891 }
39892 _ACEOF
39893 rm -f conftest.$ac_objext conftest$ac_exeext
39894 if { (ac_try="$ac_link"
39895 case "(($ac_try" in
39896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39897   *) ac_try_echo=$ac_try;;
39898 esac
39899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39900   (eval "$ac_link") 2>conftest.er1
39901   ac_status=$?
39902   grep -v '^ *+' conftest.er1 >conftest.err
39903   rm -f conftest.er1
39904   cat conftest.err >&5
39905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39906   (exit $ac_status); } && {
39907          test -z "$ac_c_werror_flag" ||
39908          test ! -s conftest.err
39909        } && test -s conftest$ac_exeext &&
39910        $as_test_x conftest$ac_exeext; then
39911   ac_cv_lib_intl_gettext=yes
39912 else
39913   echo "$as_me: failed program was:" >&5
39914 sed 's/^/| /' conftest.$ac_ext >&5
39915
39916         ac_cv_lib_intl_gettext=no
39917 fi
39918
39919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39920       conftest$ac_exeext conftest.$ac_ext
39921 LIBS=$ac_check_lib_save_LIBS
39922 fi
39923 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39924 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39925 if test $ac_cv_lib_intl_gettext = yes; then
39926   LIBS="$LIBS -lintl"
39927 fi
39928
39929
39930
39931 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39932 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39933 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39934   echo $ECHO_N "(cached) $ECHO_C" >&6
39935 else
39936   ac_check_lib_save_LIBS=$LIBS
39937 LIBS="-lsun  $LIBS"
39938 cat >conftest.$ac_ext <<_ACEOF
39939 /* confdefs.h.  */
39940 _ACEOF
39941 cat confdefs.h >>conftest.$ac_ext
39942 cat >>conftest.$ac_ext <<_ACEOF
39943 /* end confdefs.h.  */
39944
39945 /* Override any GCC internal prototype to avoid an error.
39946    Use char because int might match the return type of a GCC
39947    builtin and then its argument prototype would still apply.  */
39948 #ifdef __cplusplus
39949 extern "C"
39950 #endif
39951 char getpwnam ();
39952 int
39953 main ()
39954 {
39955 return getpwnam ();
39956   ;
39957   return 0;
39958 }
39959 _ACEOF
39960 rm -f conftest.$ac_objext conftest$ac_exeext
39961 if { (ac_try="$ac_link"
39962 case "(($ac_try" in
39963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39964   *) ac_try_echo=$ac_try;;
39965 esac
39966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39967   (eval "$ac_link") 2>conftest.er1
39968   ac_status=$?
39969   grep -v '^ *+' conftest.er1 >conftest.err
39970   rm -f conftest.er1
39971   cat conftest.err >&5
39972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39973   (exit $ac_status); } && {
39974          test -z "$ac_c_werror_flag" ||
39975          test ! -s conftest.err
39976        } && test -s conftest$ac_exeext &&
39977        $as_test_x conftest$ac_exeext; then
39978   ac_cv_lib_sun_getpwnam=yes
39979 else
39980   echo "$as_me: failed program was:" >&5
39981 sed 's/^/| /' conftest.$ac_ext >&5
39982
39983         ac_cv_lib_sun_getpwnam=no
39984 fi
39985
39986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39987       conftest$ac_exeext conftest.$ac_ext
39988 LIBS=$ac_check_lib_save_LIBS
39989 fi
39990 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39991 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39992 if test $ac_cv_lib_sun_getpwnam = yes; then
39993   cat >>confdefs.h <<_ACEOF
39994 #define HAVE_LIBSUN 1
39995 _ACEOF
39996
39997   LIBS="-lsun $LIBS"
39998
39999 fi
40000
40001
40002
40003 for ac_header in zlib.h
40004 do
40005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40007   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40010   echo $ECHO_N "(cached) $ECHO_C" >&6
40011 fi
40012 ac_res=`eval echo '${'$as_ac_Header'}'`
40013                { echo "$as_me:$LINENO: result: $ac_res" >&5
40014 echo "${ECHO_T}$ac_res" >&6; }
40015 else
40016   # Is the header compilable?
40017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40019 cat >conftest.$ac_ext <<_ACEOF
40020 /* confdefs.h.  */
40021 _ACEOF
40022 cat confdefs.h >>conftest.$ac_ext
40023 cat >>conftest.$ac_ext <<_ACEOF
40024 /* end confdefs.h.  */
40025 $ac_includes_default
40026 #include <$ac_header>
40027 _ACEOF
40028 rm -f conftest.$ac_objext
40029 if { (ac_try="$ac_compile"
40030 case "(($ac_try" in
40031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40032   *) ac_try_echo=$ac_try;;
40033 esac
40034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40035   (eval "$ac_compile") 2>conftest.er1
40036   ac_status=$?
40037   grep -v '^ *+' conftest.er1 >conftest.err
40038   rm -f conftest.er1
40039   cat conftest.err >&5
40040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041   (exit $ac_status); } && {
40042          test -z "$ac_c_werror_flag" ||
40043          test ! -s conftest.err
40044        } && test -s conftest.$ac_objext; then
40045   ac_header_compiler=yes
40046 else
40047   echo "$as_me: failed program was:" >&5
40048 sed 's/^/| /' conftest.$ac_ext >&5
40049
40050         ac_header_compiler=no
40051 fi
40052
40053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40055 echo "${ECHO_T}$ac_header_compiler" >&6; }
40056
40057 # Is the header present?
40058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40060 cat >conftest.$ac_ext <<_ACEOF
40061 /* confdefs.h.  */
40062 _ACEOF
40063 cat confdefs.h >>conftest.$ac_ext
40064 cat >>conftest.$ac_ext <<_ACEOF
40065 /* end confdefs.h.  */
40066 #include <$ac_header>
40067 _ACEOF
40068 if { (ac_try="$ac_cpp conftest.$ac_ext"
40069 case "(($ac_try" in
40070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40071   *) ac_try_echo=$ac_try;;
40072 esac
40073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40075   ac_status=$?
40076   grep -v '^ *+' conftest.er1 >conftest.err
40077   rm -f conftest.er1
40078   cat conftest.err >&5
40079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080   (exit $ac_status); } >/dev/null && {
40081          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40082          test ! -s conftest.err
40083        }; then
40084   ac_header_preproc=yes
40085 else
40086   echo "$as_me: failed program was:" >&5
40087 sed 's/^/| /' conftest.$ac_ext >&5
40088
40089   ac_header_preproc=no
40090 fi
40091
40092 rm -f conftest.err conftest.$ac_ext
40093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40094 echo "${ECHO_T}$ac_header_preproc" >&6; }
40095
40096 # So?  What about this header?
40097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40098   yes:no: )
40099     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40103     ac_header_preproc=yes
40104     ;;
40105   no:yes:* )
40106     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40108     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40109 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40110     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40112     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40113 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40116     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40118
40119     ;;
40120 esac
40121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40124   echo $ECHO_N "(cached) $ECHO_C" >&6
40125 else
40126   eval "$as_ac_Header=\$ac_header_preproc"
40127 fi
40128 ac_res=`eval echo '${'$as_ac_Header'}'`
40129                { echo "$as_me:$LINENO: result: $ac_res" >&5
40130 echo "${ECHO_T}$ac_res" >&6; }
40131
40132 fi
40133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40134   cat >>confdefs.h <<_ACEOF
40135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40136 _ACEOF
40137
40138 fi
40139
40140 done
40141
40142 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40143 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40144 if test "${ac_cv_lib_z_deflate+set}" = set; then
40145   echo $ECHO_N "(cached) $ECHO_C" >&6
40146 else
40147   ac_check_lib_save_LIBS=$LIBS
40148 LIBS="-lz  $LIBS"
40149 cat >conftest.$ac_ext <<_ACEOF
40150 /* confdefs.h.  */
40151 _ACEOF
40152 cat confdefs.h >>conftest.$ac_ext
40153 cat >>conftest.$ac_ext <<_ACEOF
40154 /* end confdefs.h.  */
40155
40156 /* Override any GCC internal prototype to avoid an error.
40157    Use char because int might match the return type of a GCC
40158    builtin and then its argument prototype would still apply.  */
40159 #ifdef __cplusplus
40160 extern "C"
40161 #endif
40162 char deflate ();
40163 int
40164 main ()
40165 {
40166 return deflate ();
40167   ;
40168   return 0;
40169 }
40170 _ACEOF
40171 rm -f conftest.$ac_objext conftest$ac_exeext
40172 if { (ac_try="$ac_link"
40173 case "(($ac_try" in
40174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40175   *) ac_try_echo=$ac_try;;
40176 esac
40177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40178   (eval "$ac_link") 2>conftest.er1
40179   ac_status=$?
40180   grep -v '^ *+' conftest.er1 >conftest.err
40181   rm -f conftest.er1
40182   cat conftest.err >&5
40183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40184   (exit $ac_status); } && {
40185          test -z "$ac_c_werror_flag" ||
40186          test ! -s conftest.err
40187        } && test -s conftest$ac_exeext &&
40188        $as_test_x conftest$ac_exeext; then
40189   ac_cv_lib_z_deflate=yes
40190 else
40191   echo "$as_me: failed program was:" >&5
40192 sed 's/^/| /' conftest.$ac_ext >&5
40193
40194         ac_cv_lib_z_deflate=no
40195 fi
40196
40197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40198       conftest$ac_exeext conftest.$ac_ext
40199 LIBS=$ac_check_lib_save_LIBS
40200 fi
40201 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40202 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40203 if test $ac_cv_lib_z_deflate = yes; then
40204   FDLIBS="-lz"
40205 fi
40206
40207 have_zlib=no
40208 if test x$FDLIBS = x-lz; then
40209    cat >>confdefs.h <<\_ACEOF
40210 #define HAVE_LIBZ 1
40211 _ACEOF
40212
40213    have_zlib=yes
40214 fi
40215
40216 have_acl=no
40217 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40218   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40219 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40220 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40221   echo $ECHO_N "(cached) $ECHO_C" >&6
40222 fi
40223 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40224 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40225 else
40226   # Is the header compilable?
40227 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40228 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40229 cat >conftest.$ac_ext <<_ACEOF
40230 /* confdefs.h.  */
40231 _ACEOF
40232 cat confdefs.h >>conftest.$ac_ext
40233 cat >>conftest.$ac_ext <<_ACEOF
40234 /* end confdefs.h.  */
40235 $ac_includes_default
40236 #include <sys/acl.h>
40237 _ACEOF
40238 rm -f conftest.$ac_objext
40239 if { (ac_try="$ac_compile"
40240 case "(($ac_try" in
40241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40242   *) ac_try_echo=$ac_try;;
40243 esac
40244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40245   (eval "$ac_compile") 2>conftest.er1
40246   ac_status=$?
40247   grep -v '^ *+' conftest.er1 >conftest.err
40248   rm -f conftest.er1
40249   cat conftest.err >&5
40250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40251   (exit $ac_status); } && {
40252          test -z "$ac_c_werror_flag" ||
40253          test ! -s conftest.err
40254        } && test -s conftest.$ac_objext; then
40255   ac_header_compiler=yes
40256 else
40257   echo "$as_me: failed program was:" >&5
40258 sed 's/^/| /' conftest.$ac_ext >&5
40259
40260         ac_header_compiler=no
40261 fi
40262
40263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40265 echo "${ECHO_T}$ac_header_compiler" >&6; }
40266
40267 # Is the header present?
40268 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40269 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40270 cat >conftest.$ac_ext <<_ACEOF
40271 /* confdefs.h.  */
40272 _ACEOF
40273 cat confdefs.h >>conftest.$ac_ext
40274 cat >>conftest.$ac_ext <<_ACEOF
40275 /* end confdefs.h.  */
40276 #include <sys/acl.h>
40277 _ACEOF
40278 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
40291          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40292          test ! -s conftest.err
40293        }; then
40294   ac_header_preproc=yes
40295 else
40296   echo "$as_me: failed program was:" >&5
40297 sed 's/^/| /' conftest.$ac_ext >&5
40298
40299   ac_header_preproc=no
40300 fi
40301
40302 rm -f conftest.err conftest.$ac_ext
40303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40304 echo "${ECHO_T}$ac_header_preproc" >&6; }
40305
40306 # So?  What about this header?
40307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40308   yes:no: )
40309     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40310 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40311     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40312 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40313     ac_header_preproc=yes
40314     ;;
40315   no:yes:* )
40316     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40317 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40318     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40319 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40320     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40321 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40322     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40323 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40324     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40325 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40326     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40327 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40328
40329     ;;
40330 esac
40331 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40332 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40333 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40334   echo $ECHO_N "(cached) $ECHO_C" >&6
40335 else
40336   ac_cv_header_sys_acl_h=$ac_header_preproc
40337 fi
40338 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40339 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40340
40341 fi
40342
40343
40344 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40345 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40346 if test "${ac_cv_func_acl_get_file+set}" = set; then
40347   echo $ECHO_N "(cached) $ECHO_C" >&6
40348 else
40349   cat >conftest.$ac_ext <<_ACEOF
40350 /* confdefs.h.  */
40351 _ACEOF
40352 cat confdefs.h >>conftest.$ac_ext
40353 cat >>conftest.$ac_ext <<_ACEOF
40354 /* end confdefs.h.  */
40355 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40357 #define acl_get_file innocuous_acl_get_file
40358
40359 /* System header to define __stub macros and hopefully few prototypes,
40360     which can conflict with char acl_get_file (); below.
40361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40362     <limits.h> exists even on freestanding compilers.  */
40363
40364 #ifdef __STDC__
40365 # include <limits.h>
40366 #else
40367 # include <assert.h>
40368 #endif
40369
40370 #undef acl_get_file
40371
40372 /* Override any GCC internal prototype to avoid an error.
40373    Use char because int might match the return type of a GCC
40374    builtin and then its argument prototype would still apply.  */
40375 #ifdef __cplusplus
40376 extern "C"
40377 #endif
40378 char acl_get_file ();
40379 /* The GNU C library defines this for functions which it implements
40380     to always fail with ENOSYS.  Some functions are actually named
40381     something starting with __ and the normal name is an alias.  */
40382 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40383 choke me
40384 #endif
40385
40386 int
40387 main ()
40388 {
40389 return acl_get_file ();
40390   ;
40391   return 0;
40392 }
40393 _ACEOF
40394 rm -f conftest.$ac_objext conftest$ac_exeext
40395 if { (ac_try="$ac_link"
40396 case "(($ac_try" in
40397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40398   *) ac_try_echo=$ac_try;;
40399 esac
40400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40401   (eval "$ac_link") 2>conftest.er1
40402   ac_status=$?
40403   grep -v '^ *+' conftest.er1 >conftest.err
40404   rm -f conftest.er1
40405   cat conftest.err >&5
40406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40407   (exit $ac_status); } && {
40408          test -z "$ac_c_werror_flag" ||
40409          test ! -s conftest.err
40410        } && test -s conftest$ac_exeext &&
40411        $as_test_x conftest$ac_exeext; then
40412   ac_cv_func_acl_get_file=yes
40413 else
40414   echo "$as_me: failed program was:" >&5
40415 sed 's/^/| /' conftest.$ac_ext >&5
40416
40417         ac_cv_func_acl_get_file=no
40418 fi
40419
40420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40421       conftest$ac_exeext conftest.$ac_ext
40422 fi
40423 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40424 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40425 if test $ac_cv_func_acl_get_file = yes; then
40426   have_acl=yes
40427 else
40428
40429        { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40430 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40431 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40432   echo $ECHO_N "(cached) $ECHO_C" >&6
40433 else
40434   ac_check_lib_save_LIBS=$LIBS
40435 LIBS="-lacl  $LIBS"
40436 cat >conftest.$ac_ext <<_ACEOF
40437 /* confdefs.h.  */
40438 _ACEOF
40439 cat confdefs.h >>conftest.$ac_ext
40440 cat >>conftest.$ac_ext <<_ACEOF
40441 /* end confdefs.h.  */
40442
40443 /* Override any GCC internal prototype to avoid an error.
40444    Use char because int might match the return type of a GCC
40445    builtin and then its argument prototype would still apply.  */
40446 #ifdef __cplusplus
40447 extern "C"
40448 #endif
40449 char acl_get_file ();
40450 int
40451 main ()
40452 {
40453 return acl_get_file ();
40454   ;
40455   return 0;
40456 }
40457 _ACEOF
40458 rm -f conftest.$ac_objext conftest$ac_exeext
40459 if { (ac_try="$ac_link"
40460 case "(($ac_try" in
40461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40462   *) ac_try_echo=$ac_try;;
40463 esac
40464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40465   (eval "$ac_link") 2>conftest.er1
40466   ac_status=$?
40467   grep -v '^ *+' conftest.er1 >conftest.err
40468   rm -f conftest.er1
40469   cat conftest.err >&5
40470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40471   (exit $ac_status); } && {
40472          test -z "$ac_c_werror_flag" ||
40473          test ! -s conftest.err
40474        } && test -s conftest$ac_exeext &&
40475        $as_test_x conftest$ac_exeext; then
40476   ac_cv_lib_acl_acl_get_file=yes
40477 else
40478   echo "$as_me: failed program was:" >&5
40479 sed 's/^/| /' conftest.$ac_ext >&5
40480
40481         ac_cv_lib_acl_acl_get_file=no
40482 fi
40483
40484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40485       conftest$ac_exeext conftest.$ac_ext
40486 LIBS=$ac_check_lib_save_LIBS
40487 fi
40488 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40489 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40490 if test $ac_cv_lib_acl_acl_get_file = yes; then
40491
40492               have_acl=yes;
40493               FDLIBS="-lacl $FDLIBS"
40494
40495 else
40496
40497               { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40498 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40499 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40500   echo $ECHO_N "(cached) $ECHO_C" >&6
40501 else
40502   ac_check_lib_save_LIBS=$LIBS
40503 LIBS="-lsec  $LIBS"
40504 cat >conftest.$ac_ext <<_ACEOF
40505 /* confdefs.h.  */
40506 _ACEOF
40507 cat confdefs.h >>conftest.$ac_ext
40508 cat >>conftest.$ac_ext <<_ACEOF
40509 /* end confdefs.h.  */
40510
40511 /* Override any GCC internal prototype to avoid an error.
40512    Use char because int might match the return type of a GCC
40513    builtin and then its argument prototype would still apply.  */
40514 #ifdef __cplusplus
40515 extern "C"
40516 #endif
40517 char acltotext ();
40518 int
40519 main ()
40520 {
40521 return acltotext ();
40522   ;
40523   return 0;
40524 }
40525 _ACEOF
40526 rm -f conftest.$ac_objext conftest$ac_exeext
40527 if { (ac_try="$ac_link"
40528 case "(($ac_try" in
40529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40530   *) ac_try_echo=$ac_try;;
40531 esac
40532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40533   (eval "$ac_link") 2>conftest.er1
40534   ac_status=$?
40535   grep -v '^ *+' conftest.er1 >conftest.err
40536   rm -f conftest.er1
40537   cat conftest.err >&5
40538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40539   (exit $ac_status); } && {
40540          test -z "$ac_c_werror_flag" ||
40541          test ! -s conftest.err
40542        } && test -s conftest$ac_exeext &&
40543        $as_test_x conftest$ac_exeext; then
40544   ac_cv_lib_sec_acltotext=yes
40545 else
40546   echo "$as_me: failed program was:" >&5
40547 sed 's/^/| /' conftest.$ac_ext >&5
40548
40549         ac_cv_lib_sec_acltotext=no
40550 fi
40551
40552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40553       conftest$ac_exeext conftest.$ac_ext
40554 LIBS=$ac_check_lib_save_LIBS
40555 fi
40556 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40557 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40558 if test $ac_cv_lib_sec_acltotext = yes; then
40559
40560                      have_acl=yes;
40561                      FDLIBS="-lsec $FDLIBS"
40562
40563
40564 fi
40565
40566
40567
40568 fi
40569
40570
40571
40572 fi
40573
40574 if test $have_acl = yes; then
40575    cat >>confdefs.h <<\_ACEOF
40576 #define HAVE_ACL 1
40577 _ACEOF
40578
40579 fi
40580
40581 PTHREAD_LIB=""
40582 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40583 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40584 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40585   echo $ECHO_N "(cached) $ECHO_C" >&6
40586 else
40587   ac_check_lib_save_LIBS=$LIBS
40588 LIBS="-lpthread  $LIBS"
40589 cat >conftest.$ac_ext <<_ACEOF
40590 /* confdefs.h.  */
40591 _ACEOF
40592 cat confdefs.h >>conftest.$ac_ext
40593 cat >>conftest.$ac_ext <<_ACEOF
40594 /* end confdefs.h.  */
40595
40596 /* Override any GCC internal prototype to avoid an error.
40597    Use char because int might match the return type of a GCC
40598    builtin and then its argument prototype would still apply.  */
40599 #ifdef __cplusplus
40600 extern "C"
40601 #endif
40602 char pthread_create ();
40603 int
40604 main ()
40605 {
40606 return pthread_create ();
40607   ;
40608   return 0;
40609 }
40610 _ACEOF
40611 rm -f conftest.$ac_objext conftest$ac_exeext
40612 if { (ac_try="$ac_link"
40613 case "(($ac_try" in
40614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40615   *) ac_try_echo=$ac_try;;
40616 esac
40617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40618   (eval "$ac_link") 2>conftest.er1
40619   ac_status=$?
40620   grep -v '^ *+' conftest.er1 >conftest.err
40621   rm -f conftest.er1
40622   cat conftest.err >&5
40623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40624   (exit $ac_status); } && {
40625          test -z "$ac_c_werror_flag" ||
40626          test ! -s conftest.err
40627        } && test -s conftest$ac_exeext &&
40628        $as_test_x conftest$ac_exeext; then
40629   ac_cv_lib_pthread_pthread_create=yes
40630 else
40631   echo "$as_me: failed program was:" >&5
40632 sed 's/^/| /' conftest.$ac_ext >&5
40633
40634         ac_cv_lib_pthread_pthread_create=no
40635 fi
40636
40637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40638       conftest$ac_exeext conftest.$ac_ext
40639 LIBS=$ac_check_lib_save_LIBS
40640 fi
40641 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40642 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40643 if test $ac_cv_lib_pthread_pthread_create = yes; then
40644   PTHREAD_LIB="-lpthread"
40645 else
40646
40647        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40648 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40649 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40650   echo $ECHO_N "(cached) $ECHO_C" >&6
40651 else
40652   ac_check_lib_save_LIBS=$LIBS
40653 LIBS="-lpthreads  $LIBS"
40654 cat >conftest.$ac_ext <<_ACEOF
40655 /* confdefs.h.  */
40656 _ACEOF
40657 cat confdefs.h >>conftest.$ac_ext
40658 cat >>conftest.$ac_ext <<_ACEOF
40659 /* end confdefs.h.  */
40660
40661 /* Override any GCC internal prototype to avoid an error.
40662    Use char because int might match the return type of a GCC
40663    builtin and then its argument prototype would still apply.  */
40664 #ifdef __cplusplus
40665 extern "C"
40666 #endif
40667 char pthread_create ();
40668 int
40669 main ()
40670 {
40671 return pthread_create ();
40672   ;
40673   return 0;
40674 }
40675 _ACEOF
40676 rm -f conftest.$ac_objext conftest$ac_exeext
40677 if { (ac_try="$ac_link"
40678 case "(($ac_try" in
40679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40680   *) ac_try_echo=$ac_try;;
40681 esac
40682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40683   (eval "$ac_link") 2>conftest.er1
40684   ac_status=$?
40685   grep -v '^ *+' conftest.er1 >conftest.err
40686   rm -f conftest.er1
40687   cat conftest.err >&5
40688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40689   (exit $ac_status); } && {
40690          test -z "$ac_c_werror_flag" ||
40691          test ! -s conftest.err
40692        } && test -s conftest$ac_exeext &&
40693        $as_test_x conftest$ac_exeext; then
40694   ac_cv_lib_pthreads_pthread_create=yes
40695 else
40696   echo "$as_me: failed program was:" >&5
40697 sed 's/^/| /' conftest.$ac_ext >&5
40698
40699         ac_cv_lib_pthreads_pthread_create=no
40700 fi
40701
40702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40703       conftest$ac_exeext conftest.$ac_ext
40704 LIBS=$ac_check_lib_save_LIBS
40705 fi
40706 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40707 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40708 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40709   PTHREAD_LIB="-lpthreads"
40710 else
40711
40712               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40713 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40714 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40715   echo $ECHO_N "(cached) $ECHO_C" >&6
40716 else
40717   ac_check_lib_save_LIBS=$LIBS
40718 LIBS="-lc_r  $LIBS"
40719 cat >conftest.$ac_ext <<_ACEOF
40720 /* confdefs.h.  */
40721 _ACEOF
40722 cat confdefs.h >>conftest.$ac_ext
40723 cat >>conftest.$ac_ext <<_ACEOF
40724 /* end confdefs.h.  */
40725
40726 /* Override any GCC internal prototype to avoid an error.
40727    Use char because int might match the return type of a GCC
40728    builtin and then its argument prototype would still apply.  */
40729 #ifdef __cplusplus
40730 extern "C"
40731 #endif
40732 char pthread_create ();
40733 int
40734 main ()
40735 {
40736 return pthread_create ();
40737   ;
40738   return 0;
40739 }
40740 _ACEOF
40741 rm -f conftest.$ac_objext conftest$ac_exeext
40742 if { (ac_try="$ac_link"
40743 case "(($ac_try" in
40744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40745   *) ac_try_echo=$ac_try;;
40746 esac
40747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40748   (eval "$ac_link") 2>conftest.er1
40749   ac_status=$?
40750   grep -v '^ *+' conftest.er1 >conftest.err
40751   rm -f conftest.er1
40752   cat conftest.err >&5
40753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40754   (exit $ac_status); } && {
40755          test -z "$ac_c_werror_flag" ||
40756          test ! -s conftest.err
40757        } && test -s conftest$ac_exeext &&
40758        $as_test_x conftest$ac_exeext; then
40759   ac_cv_lib_c_r_pthread_create=yes
40760 else
40761   echo "$as_me: failed program was:" >&5
40762 sed 's/^/| /' conftest.$ac_ext >&5
40763
40764         ac_cv_lib_c_r_pthread_create=no
40765 fi
40766
40767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40768       conftest$ac_exeext conftest.$ac_ext
40769 LIBS=$ac_check_lib_save_LIBS
40770 fi
40771 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40772 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40773 if test $ac_cv_lib_c_r_pthread_create = yes; then
40774   PTHREAD_LIB="-lc_r"
40775 else
40776
40777                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
40778 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40779 if test "${ac_cv_func_pthread_create+set}" = set; then
40780   echo $ECHO_N "(cached) $ECHO_C" >&6
40781 else
40782   cat >conftest.$ac_ext <<_ACEOF
40783 /* confdefs.h.  */
40784 _ACEOF
40785 cat confdefs.h >>conftest.$ac_ext
40786 cat >>conftest.$ac_ext <<_ACEOF
40787 /* end confdefs.h.  */
40788 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40790 #define pthread_create innocuous_pthread_create
40791
40792 /* System header to define __stub macros and hopefully few prototypes,
40793     which can conflict with char pthread_create (); below.
40794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40795     <limits.h> exists even on freestanding compilers.  */
40796
40797 #ifdef __STDC__
40798 # include <limits.h>
40799 #else
40800 # include <assert.h>
40801 #endif
40802
40803 #undef pthread_create
40804
40805 /* Override any GCC internal prototype to avoid an error.
40806    Use char because int might match the return type of a GCC
40807    builtin and then its argument prototype would still apply.  */
40808 #ifdef __cplusplus
40809 extern "C"
40810 #endif
40811 char pthread_create ();
40812 /* The GNU C library defines this for functions which it implements
40813     to always fail with ENOSYS.  Some functions are actually named
40814     something starting with __ and the normal name is an alias.  */
40815 #if defined __stub_pthread_create || defined __stub___pthread_create
40816 choke me
40817 #endif
40818
40819 int
40820 main ()
40821 {
40822 return pthread_create ();
40823   ;
40824   return 0;
40825 }
40826 _ACEOF
40827 rm -f conftest.$ac_objext conftest$ac_exeext
40828 if { (ac_try="$ac_link"
40829 case "(($ac_try" in
40830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40831   *) ac_try_echo=$ac_try;;
40832 esac
40833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40834   (eval "$ac_link") 2>conftest.er1
40835   ac_status=$?
40836   grep -v '^ *+' conftest.er1 >conftest.err
40837   rm -f conftest.er1
40838   cat conftest.err >&5
40839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40840   (exit $ac_status); } && {
40841          test -z "$ac_c_werror_flag" ||
40842          test ! -s conftest.err
40843        } && test -s conftest$ac_exeext &&
40844        $as_test_x conftest$ac_exeext; then
40845   ac_cv_func_pthread_create=yes
40846 else
40847   echo "$as_me: failed program was:" >&5
40848 sed 's/^/| /' conftest.$ac_ext >&5
40849
40850         ac_cv_func_pthread_create=no
40851 fi
40852
40853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40854       conftest$ac_exeext conftest.$ac_ext
40855 fi
40856 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40857 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40858
40859
40860
40861 fi
40862
40863
40864
40865 fi
40866
40867
40868
40869 fi
40870
40871
40872
40873 cat >>confdefs.h <<\_ACEOF
40874 #define FDLIBS 1
40875 _ACEOF
40876
40877
40878 CFLAGS=${CFLAGS--O}
40879
40880 if test x$have_gcc = xyes ; then
40881    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40882    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40883 fi
40884 LDFLAGS=${LDFLAGS--O}
40885 DB_LIBS="${SQL_LFLAGS}"
40886 CPPFLAGS="$CPPFLAGS"
40887 CFLAGS="$CFLAGS"
40888
40889
40890
40891
40892
40893
40894
40895
40896
40897
40898
40899
40900
40901
40902
40903
40904 OBJLIST=
40905
40906
40907 lld="lld"
40908 llu="llu"
40909
40910 WCFLAGS=
40911 WLDFLAGS=
40912
40913 PFILES="platforms/Makefile"
40914 PSCMD="ps -e"
40915 WIN32=
40916 MACOSX=
40917 hostname=`uname -n | cut -d '.' -f 1`
40918 if test x${hostname} = x ; then
40919    hostname="localhost"
40920 fi
40921 case "$DISTNAME" in
40922 aix)
40923    DISTVER=`uname -r`
40924    PSCMD="ps -e -o pid,comm"
40925    PFILES="${PFILES} \
40926       platforms/aix/Makefile"
40927    TAPEDRIVE="/dev/rmt0.1"
40928   ;;
40929 alpha)
40930    DISTVER=`uname -r`
40931    PTHREAD_LIB="-lpthread -lexc"
40932    if test "${CC}" = "gcc" ; then
40933       lld="lld"
40934       llu="llu"
40935    else
40936       lld="ld"
40937       llu="lu"
40938    fi
40939    TAPEDRIVE="/dev/nrmt0"
40940   ;;
40941 bsdi)
40942    DISTVER=`uname -a |awk '{print $3}'`
40943    TAPEDRIVE="/dev/nrmt0"
40944    PTHREAD_LIB="-pthread"
40945    CFLAGS="${CFLAGS} -pthread"
40946    PSCMD="ps -ax -o pid,command"
40947    lld="qd"
40948    llu="qu"
40949    PFILES="${PFILES} \
40950        platforms/bsdi/Makefile \
40951        platforms/bsdi/bacula-fd \
40952        platforms/bsdi/bacula-sd \
40953        platforms/bsdi/bacula-dir"
40954    largefile_support="yes"
40955   ;;
40956 cygwin)
40957    DISTVER=`uname -a |awk '{print $3}'`
40958    TAPEDRIVE="/dev/nrst0"
40959    WIN32=win32
40960    WCFLAGS="-mwindows"
40961    WLDFLAGS="-mwindows"
40962   ;;
40963 darwin)
40964    DISTVER=`uname -r`
40965    TAPEDRIVE="/dev/nst0"
40966    PSCMD="ps -e -o pid,command"
40967    MACOSX=macosx
40968    PFILES="${PFILES} \
40969       platforms/darwin/Makefile"
40970   ;;
40971 debian)
40972       ping -c 1 $hostname 2>&1 1>/dev/null
40973    if test ! $? = 0; then
40974       hostname="localhost"
40975    fi
40976    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
40977       DISTNAME="ubuntu"
40978    fi
40979    DISTVER=`cat /etc/debian_version`
40980    if test -f /etc/lsb-release ; then
40981       . /etc/lsb-release
40982       if test "x$DISTRIB_ID" != "x" ; then
40983          DISTNAME=$DISTRIB_ID
40984       fi
40985       if test "x$DISTRIB_RELEASE" != "x" ; then
40986          DISTVER=$DISTRIB_RELEASE
40987       fi
40988    fi
40989    if test "$DISTNAME" = "Ubuntu" ; then
40990       DISTNAME="ubuntu"
40991    fi
40992    TAPEDRIVE="/dev/nst0"
40993    PSCMD="ps -e -o pid,command"
40994    if test "$DISTNAME" = "ubuntu" ; then
40995       PFILES="${PFILES} \
40996          platforms/ubuntu/Makefile \
40997          platforms/ubuntu/bacula-fd \
40998          platforms/ubuntu/bacula-sd \
40999          platforms/ubuntu/bacula-dir"
41000    else
41001       PFILES="${PFILES} \
41002          platforms/debian/Makefile \
41003          platforms/debian/bacula-fd \
41004          platforms/debian/bacula-sd \
41005          platforms/debian/bacula-dir"
41006    fi
41007   ;;
41008 freebsd)
41009       ping -c 1 $hostname 2>&1 1>/dev/null
41010    if test ! $? = 0; then
41011       hostname="localhost"
41012    fi
41013    DISTVER=`uname -a |awk '{print $3}'`
41014    VER=`echo $DISTVER | cut -c 1`
41015    if test x$VER = x4 ; then
41016       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41017       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41018    fi
41019    lld="qd"
41020    llu="qu"
41021    TAPEDRIVE="/dev/nrsa0"
41022    PSCMD="ps -ax -o pid,command"
41023    PFILES="${PFILES} \
41024        platforms/freebsd/Makefile \
41025        platforms/freebsd/bacula-fd \
41026        platforms/freebsd/bacula-sd \
41027        platforms/freebsd/bacula-dir"
41028    largefile_support="yes"
41029   ;;
41030 hpux)
41031    PSCMD="UNIX95=1; ps -e -o pid,comm"
41032    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41033    DISTVER=`uname -r`
41034    TAPEDRIVE="/dev/rmt/0hnb"
41035    PTHREAD_LIB="-lpthread"
41036    cat >>confdefs.h <<\_ACEOF
41037 #define _INCLUDE_LONGLONG 1
41038 _ACEOF
41039
41040   ;;
41041 irix)
41042    DISTVER=`uname -r`
41043    TAPEDRIVE="/dev/rmt/0cbn"
41044    PSCMD="ps -e -o pid,comm"
41045    PFILES="${PFILES} \
41046        platforms/irix/Makefile \
41047        platforms/irix/bacula-fd \
41048        platforms/irix/bacula-sd \
41049        platforms/irix/bacula-dir"
41050   ;;
41051 netbsd)
41052    DISTVER=`uname -a |awk '{print $3}'`
41053    lld="qd"
41054    llu="qu"
41055    TAPEDRIVE="/dev/nrst0"
41056    PSCMD="ps -ax -o pid,command"
41057    PTHREAD_LIB="-pthread"
41058    CFLAGS="${CFLAGS} -pthread"
41059   ;;
41060 openbsd)
41061    DISTVER=`uname -a |awk '{print $3}'`
41062    lld="qd"
41063    llu="qu"
41064    TAPEDRIVE="/dev/nrst0"
41065    PSCMD="ps -ax -o pid,command"
41066    PTHREAD_LIB="-pthread"
41067    CFLAGS="${CFLAGS} -pthread"
41068    PFILES="${PFILES} \
41069        platforms/openbsd/Makefile \
41070        platforms/openbsd/bacula-fd \
41071        platforms/openbsd/bacula-sd \
41072        platforms/openbsd/bacula-dir"
41073   ;;
41074 redhat)
41075       ping -c 1 $hostname 2>&1 1>/dev/null
41076    if test ! $? = 0; then
41077       hostname="localhost"
41078    fi
41079    if test -f /etc/whitebox-release ; then
41080       f=/etc/whitebox-release
41081    else
41082       f=/etc/redhat-release
41083    fi
41084    if test `cat $f | grep release |\
41085          cut -f 3 -d ' '`x = "Enterprise"x ; then
41086       DISTVER="Enterprise "`cat $f | grep release |\
41087           cut -f 6 -d ' '`
41088    else
41089        DISTVER=`cat /etc/redhat-release | grep release |\
41090            cut -f 5 -d ' '`
41091    fi
41092    TAPEDRIVE="/dev/nst0"
41093    PSCMD="ps -e -o pid,command"
41094    PFILES="${PFILES} \
41095        platforms/redhat/Makefile \
41096        platforms/redhat/bacula-fd \
41097        platforms/redhat/bacula-sd \
41098        platforms/redhat/bacula-dir \
41099        platforms/redhat/bacula.spec \
41100        "
41101   ;;
41102 mandrake)
41103       ping -c 1 $hostname 2>&1 1>/dev/null
41104    if test ! $? = 0; then
41105       hostname="localhost"
41106    fi
41107    DISTVER=`cat /etc/mandrake-release | grep release |\
41108       cut -f 5 -d ' '`
41109    TAPEDRIVE="/dev/nst0"
41110    PSCMD="ps -e -o pid,command"
41111    PFILES="${PFILES} \
41112        platforms/mandrake/Makefile \
41113        platforms/mandrake/bacula-fd \
41114        platforms/mandrake/bacula-sd \
41115        platforms/mandrake/bacula-dir \
41116        platforms/mandrake/bacula.spec \
41117        "
41118   ;;
41119 gentoo)
41120       ping -c 1 $hostname 2>&1 1>/dev/null
41121    if test ! $? = 0; then
41122       hostname="localhost"
41123    fi
41124    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41125    TAPEDRIVE="/dev/nst0"
41126    PSCMD="ps -e -o pid,command"
41127    PFILES="${PFILES} \
41128        platforms/gentoo/Makefile \
41129     platforms/gentoo/bacula-init \
41130        platforms/gentoo/bacula-fd \
41131        platforms/gentoo/bacula-sd \
41132        platforms/gentoo/bacula-dir"
41133   ;;
41134 slackware)
41135       ping -c 1 $hostname 2>&1 1>/dev/null
41136    if test ! $? = 0; then
41137       hostname="localhost"
41138    fi
41139    DISTVER=`cat /etc/slackware-version`
41140    TAPEDRIVE="/dev/nst0"
41141    PSCMD="ps -e -o pid,command"
41142    PFILES="${PFILES} \
41143        platforms/slackware/Makefile \
41144        platforms/slackware/rc.bacula-fd \
41145        platforms/slackware/rc.bacula-sd \
41146        platforms/slackware/rc.bacula-dir\
41147        platforms/slackware/functions.bacula"
41148   ;;
41149 solaris)
41150    DISTVER=`uname -r`
41151    TAPEDRIVE="/dev/rmt/0cbn"
41152    PSCMD="ps -e -o pid,comm"
41153    PFILES="${PFILES} \
41154        platforms/solaris/Makefile \
41155        platforms/solaris/bacula-fd \
41156        platforms/solaris/bacula-sd \
41157        platforms/solaris/bacula-dir"
41158    if test x$DISTVER = x5.6 ; then
41159        cat >>confdefs.h <<\_ACEOF
41160 #define HAVE_OLD_SOCKOPT 1
41161 _ACEOF
41162
41163    fi
41164    LIBS="$LIBS -lresolv"
41165   ;;
41166 suse)
41167       ping -c 1 $hostname 2>&1 1>/dev/null
41168    if test ! $? = 0; then
41169       hostname="localhost"
41170    fi
41171    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41172        cut -f 3 -d ' '`
41173    TAPEDRIVE="/dev/nst0"
41174    PSCMD="ps -e -o pid,command"
41175    PFILES="${PFILES} \
41176        platforms/suse/Makefile \
41177        platforms/suse/bacula-fd \
41178        platforms/suse/bacula-sd \
41179        platforms/suse/bacula-dir \
41180        platforms/suse/bacula \
41181        platforms/suse/bacula.spec"
41182   ;;
41183 suse5)
41184       ping -c 1 $hostname 2>&1 1>/dev/null
41185    if test ! $? = 0; then
41186       hostname="localhost"
41187    fi
41188    DISTNAME=suse
41189    DISTVER=5.x
41190    TAPEDRIVE="/dev/nst0"
41191    PSCMD="ps -e -o pid,command"
41192    PFILES="${PFILES} \
41193        platforms/suse/Makefile \
41194        platforms/suse/bacula-fd \
41195        platforms/suse/bacula-sd \
41196        platforms/suse/bacula-dir"
41197   ;;
41198 unknown)
41199    DISTVER=unknown
41200    TAPEDRIVE="/dev/nst0"
41201   ;;
41202 *)
41203   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41204   ;;
41205 esac
41206
41207
41208
41209 LIBS="$PTHREAD_LIB $LIBS"
41210
41211 cat >>confdefs.h <<_ACEOF
41212 #define lld "$lld"
41213 _ACEOF
41214
41215 cat >>confdefs.h <<_ACEOF
41216 #define llu "$llu"
41217 _ACEOF
41218
41219
41220
41221
41222
41223
41224
41225
41226 MCOMMON=./autoconf/Make.common
41227
41228
41229 if test "x${subsysdir}" = "x${sbindir}" ; then
41230    echo " "
41231    echo " "
41232    echo "You have set both --sbindir and --with-subsys-dir"
41233    echo "  equal to: ${subsysdir} "
41234    echo "This is not permitted. Please reconfigure."
41235    echo " "
41236    echo "Aborting configuration ..."
41237    echo " "
41238    echo " "
41239    exit 1
41240 fi
41241
41242 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
41243
41244 ac_config_commands="$ac_config_commands default"
41245
41246 cat >confcache <<\_ACEOF
41247 # This file is a shell script that caches the results of configure
41248 # tests run on this system so they can be shared between configure
41249 # scripts and configure runs, see configure's option --config-cache.
41250 # It is not useful on other systems.  If it contains results you don't
41251 # want to keep, you may remove or edit it.
41252 #
41253 # config.status only pays attention to the cache file if you give it
41254 # the --recheck option to rerun configure.
41255 #
41256 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41257 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41258 # following values.
41259
41260 _ACEOF
41261
41262 # The following way of writing the cache mishandles newlines in values,
41263 # but we know of no workaround that is simple, portable, and efficient.
41264 # So, we kill variables containing newlines.
41265 # Ultrix sh set writes to stderr and can't be redirected directly,
41266 # and sets the high bit in the cache file unless we assign to the vars.
41267 (
41268   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41269     eval ac_val=\$$ac_var
41270     case $ac_val in #(
41271     *${as_nl}*)
41272       case $ac_var in #(
41273       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41274 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41275       esac
41276       case $ac_var in #(
41277       _ | IFS | as_nl) ;; #(
41278       *) $as_unset $ac_var ;;
41279       esac ;;
41280     esac
41281   done
41282
41283   (set) 2>&1 |
41284     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41285     *${as_nl}ac_space=\ *)
41286       # `set' does not quote correctly, so add quotes (double-quote
41287       # substitution turns \\\\ into \\, and sed turns \\ into \).
41288       sed -n \
41289         "s/'/'\\\\''/g;
41290           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41291       ;; #(
41292     *)
41293       # `set' quotes correctly as required by POSIX, so do not add quotes.
41294       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41295       ;;
41296     esac |
41297     sort
41298 ) |
41299   sed '
41300      /^ac_cv_env_/b end
41301      t clear
41302      :clear
41303      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41304      t end
41305      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41306      :end' >>confcache
41307 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41308   if test -w "$cache_file"; then
41309     test "x$cache_file" != "x/dev/null" &&
41310       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41311 echo "$as_me: updating cache $cache_file" >&6;}
41312     cat confcache >$cache_file
41313   else
41314     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41315 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41316   fi
41317 fi
41318 rm -f confcache
41319
41320 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41321 # Let make expand exec_prefix.
41322 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41323
41324 DEFS=-DHAVE_CONFIG_H
41325
41326 ac_libobjs=
41327 ac_ltlibobjs=
41328 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41329   # 1. Remove the extension, and $U if already installed.
41330   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41331   ac_i=`echo "$ac_i" | sed "$ac_script"`
41332   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41333   #    will be set to the directory where LIBOBJS objects are built.
41334   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41335   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41336 done
41337 LIBOBJS=$ac_libobjs
41338
41339 LTLIBOBJS=$ac_ltlibobjs
41340
41341
41342
41343 : ${CONFIG_STATUS=./config.status}
41344 ac_clean_files_save=$ac_clean_files
41345 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41346 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41347 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41348 cat >$CONFIG_STATUS <<_ACEOF
41349 #! $SHELL
41350 # Generated by $as_me.
41351 # Run this file to recreate the current configuration.
41352 # Compiler output produced by configure, useful for debugging
41353 # configure, is in config.log if it exists.
41354
41355 debug=false
41356 ac_cs_recheck=false
41357 ac_cs_silent=false
41358 SHELL=\${CONFIG_SHELL-$SHELL}
41359 _ACEOF
41360
41361 cat >>$CONFIG_STATUS <<\_ACEOF
41362 ## --------------------- ##
41363 ## M4sh Initialization.  ##
41364 ## --------------------- ##
41365
41366 # Be more Bourne compatible
41367 DUALCASE=1; export DUALCASE # for MKS sh
41368 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41369   emulate sh
41370   NULLCMD=:
41371   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41372   # is contrary to our usage.  Disable this feature.
41373   alias -g '${1+"$@"}'='"$@"'
41374   setopt NO_GLOB_SUBST
41375 else
41376   case `(set -o) 2>/dev/null` in
41377   *posix*) set -o posix ;;
41378 esac
41379
41380 fi
41381
41382
41383
41384
41385 # PATH needs CR
41386 # Avoid depending upon Character Ranges.
41387 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41388 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41389 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41390 as_cr_digits='0123456789'
41391 as_cr_alnum=$as_cr_Letters$as_cr_digits
41392
41393 # The user is always right.
41394 if test "${PATH_SEPARATOR+set}" != set; then
41395   echo "#! /bin/sh" >conf$$.sh
41396   echo  "exit 0"   >>conf$$.sh
41397   chmod +x conf$$.sh
41398   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41399     PATH_SEPARATOR=';'
41400   else
41401     PATH_SEPARATOR=:
41402   fi
41403   rm -f conf$$.sh
41404 fi
41405
41406 # Support unset when possible.
41407 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41408   as_unset=unset
41409 else
41410   as_unset=false
41411 fi
41412
41413
41414 # IFS
41415 # We need space, tab and new line, in precisely that order.  Quoting is
41416 # there to prevent editors from complaining about space-tab.
41417 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41418 # splitting by setting IFS to empty value.)
41419 as_nl='
41420 '
41421 IFS=" ""        $as_nl"
41422
41423 # Find who we are.  Look in the path if we contain no directory separator.
41424 case $0 in
41425   *[\\/]* ) as_myself=$0 ;;
41426   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41427 for as_dir in $PATH
41428 do
41429   IFS=$as_save_IFS
41430   test -z "$as_dir" && as_dir=.
41431   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41432 done
41433 IFS=$as_save_IFS
41434
41435      ;;
41436 esac
41437 # We did not find ourselves, most probably we were run as `sh COMMAND'
41438 # in which case we are not to be found in the path.
41439 if test "x$as_myself" = x; then
41440   as_myself=$0
41441 fi
41442 if test ! -f "$as_myself"; then
41443   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41444   { (exit 1); exit 1; }
41445 fi
41446
41447 # Work around bugs in pre-3.0 UWIN ksh.
41448 for as_var in ENV MAIL MAILPATH
41449 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41450 done
41451 PS1='$ '
41452 PS2='> '
41453 PS4='+ '
41454
41455 # NLS nuisances.
41456 for as_var in \
41457   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41458   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41459   LC_TELEPHONE LC_TIME
41460 do
41461   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41462     eval $as_var=C; export $as_var
41463   else
41464     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41465   fi
41466 done
41467
41468 # Required to use basename.
41469 if expr a : '\(a\)' >/dev/null 2>&1 &&
41470    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41471   as_expr=expr
41472 else
41473   as_expr=false
41474 fi
41475
41476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41477   as_basename=basename
41478 else
41479   as_basename=false
41480 fi
41481
41482
41483 # Name of the executable.
41484 as_me=`$as_basename -- "$0" ||
41485 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41486          X"$0" : 'X\(//\)$' \| \
41487          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41488 echo X/"$0" |
41489     sed '/^.*\/\([^/][^/]*\)\/*$/{
41490             s//\1/
41491             q
41492           }
41493           /^X\/\(\/\/\)$/{
41494             s//\1/
41495             q
41496           }
41497           /^X\/\(\/\).*/{
41498             s//\1/
41499             q
41500           }
41501           s/.*/./; q'`
41502
41503 # CDPATH.
41504 $as_unset CDPATH
41505
41506
41507
41508   as_lineno_1=$LINENO
41509   as_lineno_2=$LINENO
41510   test "x$as_lineno_1" != "x$as_lineno_2" &&
41511   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41512
41513   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41514   # uniformly replaced by the line number.  The first 'sed' inserts a
41515   # line-number line after each line using $LINENO; the second 'sed'
41516   # does the real work.  The second script uses 'N' to pair each
41517   # line-number line with the line containing $LINENO, and appends
41518   # trailing '-' during substitution so that $LINENO is not a special
41519   # case at line end.
41520   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41521   # scripts with optimization help from Paolo Bonzini.  Blame Lee
41522   # E. McMahon (1931-1989) for sed's syntax.  :-)
41523   sed -n '
41524     p
41525     /[$]LINENO/=
41526   ' <$as_myself |
41527     sed '
41528       s/[$]LINENO.*/&-/
41529       t lineno
41530       b
41531       :lineno
41532       N
41533       :loop
41534       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41535       t loop
41536       s/-\n.*//
41537     ' >$as_me.lineno &&
41538   chmod +x "$as_me.lineno" ||
41539     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41540    { (exit 1); exit 1; }; }
41541
41542   # Don't try to exec as it changes $[0], causing all sort of problems
41543   # (the dirname of $[0] is not the place where we might find the
41544   # original and so on.  Autoconf is especially sensitive to this).
41545   . "./$as_me.lineno"
41546   # Exit status is that of the last command.
41547   exit
41548 }
41549
41550
41551 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41552   as_dirname=dirname
41553 else
41554   as_dirname=false
41555 fi
41556
41557 ECHO_C= ECHO_N= ECHO_T=
41558 case `echo -n x` in
41559 -n*)
41560   case `echo 'x\c'` in
41561   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
41562   *)   ECHO_C='\c';;
41563   esac;;
41564 *)
41565   ECHO_N='-n';;
41566 esac
41567
41568 if expr a : '\(a\)' >/dev/null 2>&1 &&
41569    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41570   as_expr=expr
41571 else
41572   as_expr=false
41573 fi
41574
41575 rm -f conf$$ conf$$.exe conf$$.file
41576 if test -d conf$$.dir; then
41577   rm -f conf$$.dir/conf$$.file
41578 else
41579   rm -f conf$$.dir
41580   mkdir conf$$.dir
41581 fi
41582 echo >conf$$.file
41583 if ln -s conf$$.file conf$$ 2>/dev/null; then
41584   as_ln_s='ln -s'
41585   # ... but there are two gotchas:
41586   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41587   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41588   # In both cases, we have to default to `cp -p'.
41589   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41590     as_ln_s='cp -p'
41591 elif ln conf$$.file conf$$ 2>/dev/null; then
41592   as_ln_s=ln
41593 else
41594   as_ln_s='cp -p'
41595 fi
41596 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41597 rmdir conf$$.dir 2>/dev/null
41598
41599 if mkdir -p . 2>/dev/null; then
41600   as_mkdir_p=:
41601 else
41602   test -d ./-p && rmdir ./-p
41603   as_mkdir_p=false
41604 fi
41605
41606 if test -x / >/dev/null 2>&1; then
41607   as_test_x='test -x'
41608 else
41609   if ls -dL / >/dev/null 2>&1; then
41610     as_ls_L_option=L
41611   else
41612     as_ls_L_option=
41613   fi
41614   as_test_x='
41615     eval sh -c '\''
41616       if test -d "$1"; then
41617         test -d "$1/.";
41618       else
41619         case $1 in
41620         -*)set "./$1";;
41621         esac;
41622         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41623         ???[sx]*):;;*)false;;esac;fi
41624     '\'' sh
41625   '
41626 fi
41627 as_executable_p=$as_test_x
41628
41629 # Sed expression to map a string onto a valid CPP name.
41630 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41631
41632 # Sed expression to map a string onto a valid variable name.
41633 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41634
41635
41636 exec 6>&1
41637
41638 # Save the log message, to keep $[0] and so on meaningful, and to
41639 # report actual input values of CONFIG_FILES etc. instead of their
41640 # values after options handling.
41641 ac_log="
41642 This file was extended by $as_me, which was
41643 generated by GNU Autoconf 2.61.  Invocation command line was
41644
41645   CONFIG_FILES    = $CONFIG_FILES
41646   CONFIG_HEADERS  = $CONFIG_HEADERS
41647   CONFIG_LINKS    = $CONFIG_LINKS
41648   CONFIG_COMMANDS = $CONFIG_COMMANDS
41649   $ $0 $@
41650
41651 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41652 "
41653
41654 _ACEOF
41655
41656 cat >>$CONFIG_STATUS <<_ACEOF
41657 # Files that config.status was made for.
41658 config_files="$ac_config_files"
41659 config_headers="$ac_config_headers"
41660 config_commands="$ac_config_commands"
41661
41662 _ACEOF
41663
41664 cat >>$CONFIG_STATUS <<\_ACEOF
41665 ac_cs_usage="\
41666 \`$as_me' instantiates files from templates according to the
41667 current configuration.
41668
41669 Usage: $0 [OPTIONS] [FILE]...
41670
41671   -h, --help       print this help, then exit
41672   -V, --version    print version number and configuration settings, then exit
41673   -q, --quiet      do not print progress messages
41674   -d, --debug      don't remove temporary files
41675       --recheck    update $as_me by reconfiguring in the same conditions
41676   --file=FILE[:TEMPLATE]
41677                    instantiate the configuration file FILE
41678   --header=FILE[:TEMPLATE]
41679                    instantiate the configuration header FILE
41680
41681 Configuration files:
41682 $config_files
41683
41684 Configuration headers:
41685 $config_headers
41686
41687 Configuration commands:
41688 $config_commands
41689
41690 Report bugs to <bug-autoconf@gnu.org>."
41691
41692 _ACEOF
41693 cat >>$CONFIG_STATUS <<_ACEOF
41694 ac_cs_version="\\
41695 config.status
41696 configured by $0, generated by GNU Autoconf 2.61,
41697   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41698
41699 Copyright (C) 2006 Free Software Foundation, Inc.
41700 This config.status script is free software; the Free Software Foundation
41701 gives unlimited permission to copy, distribute and modify it."
41702
41703 ac_pwd='$ac_pwd'
41704 srcdir='$srcdir'
41705 INSTALL='$INSTALL'
41706 _ACEOF
41707
41708 cat >>$CONFIG_STATUS <<\_ACEOF
41709 # If no file are specified by the user, then we need to provide default
41710 # value.  By we need to know if files were specified by the user.
41711 ac_need_defaults=:
41712 while test $# != 0
41713 do
41714   case $1 in
41715   --*=*)
41716     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41717     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41718     ac_shift=:
41719     ;;
41720   *)
41721     ac_option=$1
41722     ac_optarg=$2
41723     ac_shift=shift
41724     ;;
41725   esac
41726
41727   case $ac_option in
41728   # Handling of the options.
41729   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41730     ac_cs_recheck=: ;;
41731   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41732     echo "$ac_cs_version"; exit ;;
41733   --debug | --debu | --deb | --de | --d | -d )
41734     debug=: ;;
41735   --file | --fil | --fi | --f )
41736     $ac_shift
41737     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41738     ac_need_defaults=false;;
41739   --header | --heade | --head | --hea )
41740     $ac_shift
41741     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41742     ac_need_defaults=false;;
41743   --he | --h)
41744     # Conflict between --help and --header
41745     { echo "$as_me: error: ambiguous option: $1
41746 Try \`$0 --help' for more information." >&2
41747    { (exit 1); exit 1; }; };;
41748   --help | --hel | -h )
41749     echo "$ac_cs_usage"; exit ;;
41750   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41751   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41752     ac_cs_silent=: ;;
41753
41754   # This is an error.
41755   -*) { echo "$as_me: error: unrecognized option: $1
41756 Try \`$0 --help' for more information." >&2
41757    { (exit 1); exit 1; }; } ;;
41758
41759   *) ac_config_targets="$ac_config_targets $1"
41760      ac_need_defaults=false ;;
41761
41762   esac
41763   shift
41764 done
41765
41766 ac_configure_extra_args=
41767
41768 if $ac_cs_silent; then
41769   exec 6>/dev/null
41770   ac_configure_extra_args="$ac_configure_extra_args --silent"
41771 fi
41772
41773 _ACEOF
41774 cat >>$CONFIG_STATUS <<_ACEOF
41775 if \$ac_cs_recheck; then
41776   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41777   CONFIG_SHELL=$SHELL
41778   export CONFIG_SHELL
41779   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41780 fi
41781
41782 _ACEOF
41783 cat >>$CONFIG_STATUS <<\_ACEOF
41784 exec 5>>config.log
41785 {
41786   echo
41787   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41788 ## Running $as_me. ##
41789 _ASBOX
41790   echo "$ac_log"
41791 } >&5
41792
41793 _ACEOF
41794 cat >>$CONFIG_STATUS <<_ACEOF
41795 #
41796 # INIT-COMMANDS
41797 #
41798
41799
41800 # The HP-UX ksh and POSIX shell print the target directory to stdout
41801 # if CDPATH is set.
41802 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41803
41804 sed_quote_subst='$sed_quote_subst'
41805 double_quote_subst='$double_quote_subst'
41806 delay_variable_subst='$delay_variable_subst'
41807 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41808 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41809 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41810 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41811 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41812 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41813 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41814 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41815 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41816 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41817 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41818 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41819 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41820 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41821 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41822 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41823 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41824 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41825 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41826 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41827 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41828 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41829 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41830 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41831 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41832 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41833 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41834 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41835 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41836 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41837 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41838 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41839 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41840 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41841 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41842 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41843 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41844 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41845 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41846 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41847 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41848 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41849 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41850 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41851 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"`'
41852 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"`'
41853 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41854 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41855 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41856 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41857 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41858 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41859 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41860 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41861 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41862 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41863 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41864 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41865 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41866 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41867 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41868 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41869 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41870 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41871 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41872 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41873 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41874 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41875 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41876 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41877 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41878 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41879 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41880 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41881 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41882 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41883 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41884 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41885 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41886 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41887 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41888 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41889 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41890 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41891 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41892 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41893 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41894 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41895 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41896 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41897 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41898 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41899 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41900 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41901 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41902 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41903 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41904 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41905 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41906 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41907 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41908 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41909 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41910 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41911 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41912 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41913 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41914 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41915 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41916 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
41917 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41918 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41919 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
41920 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
41921 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
41922 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
41923 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
41924 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
41925 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
41926 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41927 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41928 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
41929 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
41930 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
41931 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41932 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41933 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41934 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41935 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41936 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41937 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41938 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41939 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41940 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41941 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41942 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41943 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41944 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41945 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41946 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41947 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41948 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41949 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41950 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41951 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41952 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41953 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41954 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41955 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41956 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41957 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41958 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41959 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41960 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41961 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41962 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41963 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41964 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41965 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41966 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41967 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41968 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41969 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41970 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41971 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41972 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41973 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41974 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41975 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41976 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41977 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41978
41979 LTCC='$LTCC'
41980 LTCFLAGS='$LTCFLAGS'
41981 compiler='$compiler_DEFAULT'
41982
41983 # Quote evaled strings.
41984 for var in SED \
41985 GREP \
41986 EGREP \
41987 FGREP \
41988 LD \
41989 NM \
41990 LN_S \
41991 lt_SP2NL \
41992 lt_NL2SP \
41993 reload_flag \
41994 OBJDUMP \
41995 deplibs_check_method \
41996 file_magic_cmd \
41997 AR \
41998 AR_FLAGS \
41999 STRIP \
42000 RANLIB \
42001 CC \
42002 CFLAGS \
42003 compiler \
42004 lt_cv_sys_global_symbol_pipe \
42005 lt_cv_sys_global_symbol_to_cdecl \
42006 lt_cv_sys_global_symbol_to_c_name_address \
42007 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42008 SHELL \
42009 ECHO \
42010 lt_prog_compiler_no_builtin_flag \
42011 lt_prog_compiler_wl \
42012 lt_prog_compiler_pic \
42013 lt_prog_compiler_static \
42014 lt_cv_prog_compiler_c_o \
42015 need_locks \
42016 DSYMUTIL \
42017 NMEDIT \
42018 LIPO \
42019 OTOOL \
42020 OTOOL64 \
42021 shrext_cmds \
42022 export_dynamic_flag_spec \
42023 whole_archive_flag_spec \
42024 compiler_needs_object \
42025 with_gnu_ld \
42026 allow_undefined_flag \
42027 no_undefined_flag \
42028 hardcode_libdir_flag_spec \
42029 hardcode_libdir_flag_spec_ld \
42030 hardcode_libdir_separator \
42031 fix_srcfile_path \
42032 exclude_expsyms \
42033 include_expsyms \
42034 file_list_spec \
42035 variables_saved_for_relink \
42036 libname_spec \
42037 library_names_spec \
42038 soname_spec \
42039 finish_eval \
42040 old_striplib \
42041 striplib \
42042 compiler_lib_search_dirs \
42043 predep_objects \
42044 postdep_objects \
42045 predeps \
42046 postdeps \
42047 compiler_lib_search_path \
42048 LD_CXX \
42049 compiler_CXX \
42050 lt_prog_compiler_no_builtin_flag_CXX \
42051 lt_prog_compiler_wl_CXX \
42052 lt_prog_compiler_pic_CXX \
42053 lt_prog_compiler_static_CXX \
42054 lt_cv_prog_compiler_c_o_CXX \
42055 export_dynamic_flag_spec_CXX \
42056 whole_archive_flag_spec_CXX \
42057 compiler_needs_object_CXX \
42058 with_gnu_ld_CXX \
42059 allow_undefined_flag_CXX \
42060 no_undefined_flag_CXX \
42061 hardcode_libdir_flag_spec_CXX \
42062 hardcode_libdir_flag_spec_ld_CXX \
42063 hardcode_libdir_separator_CXX \
42064 fix_srcfile_path_CXX \
42065 exclude_expsyms_CXX \
42066 include_expsyms_CXX \
42067 file_list_spec_CXX \
42068 compiler_lib_search_dirs_CXX \
42069 predep_objects_CXX \
42070 postdep_objects_CXX \
42071 predeps_CXX \
42072 postdeps_CXX \
42073 compiler_lib_search_path_CXX; do
42074     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42075     *[\\\\\\\`\\"\\\$]*)
42076       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42077       ;;
42078     *)
42079       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42080       ;;
42081     esac
42082 done
42083
42084 # Double-quote double-evaled strings.
42085 for var in reload_cmds \
42086 old_postinstall_cmds \
42087 old_postuninstall_cmds \
42088 old_archive_cmds \
42089 extract_expsyms_cmds \
42090 old_archive_from_new_cmds \
42091 old_archive_from_expsyms_cmds \
42092 archive_cmds \
42093 archive_expsym_cmds \
42094 module_cmds \
42095 module_expsym_cmds \
42096 export_symbols_cmds \
42097 prelink_cmds \
42098 postinstall_cmds \
42099 postuninstall_cmds \
42100 finish_cmds \
42101 sys_lib_search_path_spec \
42102 sys_lib_dlsearch_path_spec \
42103 old_archive_cmds_CXX \
42104 old_archive_from_new_cmds_CXX \
42105 old_archive_from_expsyms_cmds_CXX \
42106 archive_cmds_CXX \
42107 archive_expsym_cmds_CXX \
42108 module_cmds_CXX \
42109 module_expsym_cmds_CXX \
42110 export_symbols_cmds_CXX \
42111 prelink_cmds_CXX; do
42112     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42113     *[\\\\\\\`\\"\\\$]*)
42114       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42115       ;;
42116     *)
42117       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42118       ;;
42119     esac
42120 done
42121
42122 # Fix-up fallback echo if it was mangled by the above quoting rules.
42123 case \$lt_ECHO in
42124 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42125   ;;
42126 esac
42127
42128 ac_aux_dir='$ac_aux_dir'
42129 xsi_shell='$xsi_shell'
42130 lt_shell_append='$lt_shell_append'
42131
42132 # See if we are running on zsh, and set the options which allow our
42133 # commands through without removal of \ escapes INIT.
42134 if test -n "\${ZSH_VERSION+set}" ; then
42135    setopt NO_GLOB_SUBST
42136 fi
42137
42138
42139     PACKAGE='$PACKAGE'
42140     VERSION='$VERSION'
42141     TIMESTAMP='$TIMESTAMP'
42142     RM='$RM'
42143     ofile='$ofile'
42144
42145
42146
42147
42148
42149 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42150     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42151     # from automake.
42152     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42153     # Capture the value of LINGUAS because we need it to compute CATALOGS.
42154     LINGUAS="${LINGUAS-%UNSET%}"
42155
42156
42157 _ACEOF
42158
42159 cat >>$CONFIG_STATUS <<\_ACEOF
42160
42161 # Handling of arguments.
42162 for ac_config_target in $ac_config_targets
42163 do
42164   case $ac_config_target in
42165     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42166     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42167     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42168     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42169     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42170     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42171     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42172     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42173     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42174     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42175     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42176     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42177     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42178     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42179     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42180     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42181     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42182     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42183     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42184     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42185     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42186     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42187     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42188     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42189     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42190     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42191     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42192     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42193     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42194     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42195     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42196     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42197     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42198     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42199     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42200     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42201     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42202     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42203     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42204     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42205     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42206     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42207     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42208     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42209     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42210     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42211     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42212     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42213     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42214     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42215     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42216     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42217     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42218     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42219     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42220     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42221     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42222     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42223     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42224     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42225     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42226     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42227     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42228     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42229     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42230     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42231     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42232     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42233     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42234     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42235     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42236     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42237     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42238     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42239     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42240     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42241     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42242     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42243     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42244     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42245     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42246     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42247     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42248     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42249     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42250     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42251     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42252     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42253     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42254     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42255     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42256     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42257     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42258     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42259     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42260     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42261     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42262     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42263     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42264     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42265     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42266     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42267     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42268     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42269     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42270     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42271     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42272     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42273     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42274     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42275     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42276     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42277     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42278
42279   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42280 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42281    { (exit 1); exit 1; }; };;
42282   esac
42283 done
42284
42285
42286 # If the user did not use the arguments to specify the items to instantiate,
42287 # then the envvar interface is used.  Set only those that are not.
42288 # We use the long form for the default assignment because of an extremely
42289 # bizarre bug on SunOS 4.1.3.
42290 if $ac_need_defaults; then
42291   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42292   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42293   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42294 fi
42295
42296 # Have a temporary directory for convenience.  Make it in the build tree
42297 # simply because there is no reason against having it here, and in addition,
42298 # creating and moving files from /tmp can sometimes cause problems.
42299 # Hook for its removal unless debugging.
42300 # Note that there is a small window in which the directory will not be cleaned:
42301 # after its creation but before its name has been assigned to `$tmp'.
42302 $debug ||
42303 {
42304   tmp=
42305   trap 'exit_status=$?
42306   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42307 ' 0
42308   trap '{ (exit 1); exit 1; }' 1 2 13 15
42309 }
42310 # Create a (secure) tmp directory for tmp files.
42311
42312 {
42313   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42314   test -n "$tmp" && test -d "$tmp"
42315 }  ||
42316 {
42317   tmp=./conf$$-$RANDOM
42318   (umask 077 && mkdir "$tmp")
42319 } ||
42320 {
42321    echo "$me: cannot create a temporary directory in ." >&2
42322    { (exit 1); exit 1; }
42323 }
42324
42325 #
42326 # Set up the sed scripts for CONFIG_FILES section.
42327 #
42328
42329 # No need to generate the scripts if there are no CONFIG_FILES.
42330 # This happens for instance when ./config.status config.h
42331 if test -n "$CONFIG_FILES"; then
42332
42333 _ACEOF
42334
42335 # Create sed commands to just substitute file output variables.
42336
42337 # Remaining file output variables are in a fragment that also has non-file
42338 # output varibles.
42339
42340
42341
42342 ac_delim='%!_!# '
42343 for ac_last_try in false false false false false :; do
42344   cat >conf$$subs.sed <<_ACEOF
42345 SHELL!$SHELL$ac_delim
42346 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42347 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42348 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42349 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42350 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42351 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42352 exec_prefix!$exec_prefix$ac_delim
42353 prefix!$prefix$ac_delim
42354 program_transform_name!$program_transform_name$ac_delim
42355 bindir!$bindir$ac_delim
42356 sbindir!$sbindir$ac_delim
42357 libexecdir!$libexecdir$ac_delim
42358 datarootdir!$datarootdir$ac_delim
42359 datadir!$datadir$ac_delim
42360 sysconfdir!$sysconfdir$ac_delim
42361 sharedstatedir!$sharedstatedir$ac_delim
42362 localstatedir!$localstatedir$ac_delim
42363 includedir!$includedir$ac_delim
42364 oldincludedir!$oldincludedir$ac_delim
42365 docdir!$docdir$ac_delim
42366 infodir!$infodir$ac_delim
42367 htmldir!$htmldir$ac_delim
42368 dvidir!$dvidir$ac_delim
42369 pdfdir!$pdfdir$ac_delim
42370 psdir!$psdir$ac_delim
42371 libdir!$libdir$ac_delim
42372 localedir!$localedir$ac_delim
42373 mandir!$mandir$ac_delim
42374 DEFS!$DEFS$ac_delim
42375 ECHO_C!$ECHO_C$ac_delim
42376 ECHO_N!$ECHO_N$ac_delim
42377 ECHO_T!$ECHO_T$ac_delim
42378 LIBS!$LIBS$ac_delim
42379 build_alias!$build_alias$ac_delim
42380 host_alias!$host_alias$ac_delim
42381 target_alias!$target_alias$ac_delim
42382 BUILD_DIR!$BUILD_DIR$ac_delim
42383 TOP_DIR!$TOP_DIR$ac_delim
42384 TRUEPRG!$TRUEPRG$ac_delim
42385 FALSEPRG!$FALSEPRG$ac_delim
42386 VERSION!$VERSION$ac_delim
42387 DATE!$DATE$ac_delim
42388 LSMDATE!$LSMDATE$ac_delim
42389 BACULA!$BACULA$ac_delim
42390 post_host!$post_host$ac_delim
42391 CC!$CC$ac_delim
42392 CFLAGS!$CFLAGS$ac_delim
42393 LDFLAGS!$LDFLAGS$ac_delim
42394 CPPFLAGS!$CPPFLAGS$ac_delim
42395 ac_ct_CC!$ac_ct_CC$ac_delim
42396 EXEEXT!$EXEEXT$ac_delim
42397 OBJEXT!$OBJEXT$ac_delim
42398 CXX!$CXX$ac_delim
42399 CXXFLAGS!$CXXFLAGS$ac_delim
42400 ac_ct_CXX!$ac_ct_CXX$ac_delim
42401 CPP!$CPP$ac_delim
42402 GREP!$GREP$ac_delim
42403 EGREP!$EGREP$ac_delim
42404 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42405 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42406 INSTALL_DATA!$INSTALL_DATA$ac_delim
42407 MV!$MV$ac_delim
42408 REMOVE!$REMOVE$ac_delim
42409 CP!$CP$ac_delim
42410 SED!$SED$ac_delim
42411 ECHO!$ECHO$ac_delim
42412 CMP!$CMP$ac_delim
42413 TBL!$TBL$ac_delim
42414 AR!$AR$ac_delim
42415 OPENSSL!$OPENSSL$ac_delim
42416 MTX!$MTX$ac_delim
42417 DD!$DD$ac_delim
42418 MKISOFS!$MKISOFS$ac_delim
42419 PYTHON!$PYTHON$ac_delim
42420 GROWISOFS!$GROWISOFS$ac_delim
42421 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42422 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42423 PKGCONFIG!$PKGCONFIG$ac_delim
42424 QMAKE!$QMAKE$ac_delim
42425 QMAKEQT4!$QMAKEQT4$ac_delim
42426 WXCONFIG!$WXCONFIG$ac_delim
42427 WXFLAGS!$WXFLAGS$ac_delim
42428 CDRECORD!$CDRECORD$ac_delim
42429 PIDOF!$PIDOF$ac_delim
42430 AWK!$AWK$ac_delim
42431 ARFLAGS!$ARFLAGS$ac_delim
42432 MAKE_SHELL!$MAKE_SHELL$ac_delim
42433 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42434 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42435 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42436 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42437 LIBTOOL!$LIBTOOL$ac_delim
42438 build!$build$ac_delim
42439 _ACEOF
42440
42441   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42442     break
42443   elif $ac_last_try; then
42444     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42445 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42446    { (exit 1); exit 1; }; }
42447   else
42448     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42449   fi
42450 done
42451
42452 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42453 if test -n "$ac_eof"; then
42454   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42455   ac_eof=`expr $ac_eof + 1`
42456 fi
42457
42458 cat >>$CONFIG_STATUS <<_ACEOF
42459 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42461 /^[      ]*@MCOMMON@[    ]*$/{
42462 r $MCOMMON
42463 d
42464 }
42465 _ACEOF
42466 sed '
42467 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42468 s/^/s,@/; s/!/@,|#_!!_#|/
42469 :n
42470 t n
42471 s/'"$ac_delim"'$/,g/; t
42472 s/$/\\/; p
42473 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42474 ' >>$CONFIG_STATUS <conf$$subs.sed
42475 rm -f conf$$subs.sed
42476 cat >>$CONFIG_STATUS <<_ACEOF
42477 CEOF$ac_eof
42478 _ACEOF
42479
42480
42481 ac_delim='%!_!# '
42482 for ac_last_try in false false false false false :; do
42483   cat >conf$$subs.sed <<_ACEOF
42484 build_cpu!$build_cpu$ac_delim
42485 build_vendor!$build_vendor$ac_delim
42486 build_os!$build_os$ac_delim
42487 host!$host$ac_delim
42488 host_cpu!$host_cpu$ac_delim
42489 host_vendor!$host_vendor$ac_delim
42490 host_os!$host_os$ac_delim
42491 FGREP!$FGREP$ac_delim
42492 LD!$LD$ac_delim
42493 DUMPBIN!$DUMPBIN$ac_delim
42494 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42495 NM!$NM$ac_delim
42496 LN_S!$LN_S$ac_delim
42497 OBJDUMP!$OBJDUMP$ac_delim
42498 STRIP!$STRIP$ac_delim
42499 RANLIB!$RANLIB$ac_delim
42500 lt_ECHO!$lt_ECHO$ac_delim
42501 DSYMUTIL!$DSYMUTIL$ac_delim
42502 NMEDIT!$NMEDIT$ac_delim
42503 LIPO!$LIPO$ac_delim
42504 OTOOL!$OTOOL$ac_delim
42505 OTOOL64!$OTOOL64$ac_delim
42506 CXXCPP!$CXXCPP$ac_delim
42507 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42508 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42509 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42510 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42511 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42512 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42513 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42514 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
42515 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
42516 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42517 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42518 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42519 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42520 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42521 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42522 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42523 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42524 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42525 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42526 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42527 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42528 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42529 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42530 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42531 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42532 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42533 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42534 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42535 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42536 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42537 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42538 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42539 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42540 SET_MAKE!$SET_MAKE$ac_delim
42541 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42542 USE_NLS!$USE_NLS$ac_delim
42543 MSGFMT!$MSGFMT$ac_delim
42544 GMSGFMT!$GMSGFMT$ac_delim
42545 XGETTEXT!$XGETTEXT$ac_delim
42546 MSGMERGE!$MSGMERGE$ac_delim
42547 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42548 LIBICONV!$LIBICONV$ac_delim
42549 LTLIBICONV!$LTLIBICONV$ac_delim
42550 INTLLIBS!$INTLLIBS$ac_delim
42551 LIBINTL!$LIBINTL$ac_delim
42552 LTLIBINTL!$LTLIBINTL$ac_delim
42553 POSUB!$POSUB$ac_delim
42554 GLIBC2!$GLIBC2$ac_delim
42555 ALLOCA!$ALLOCA$ac_delim
42556 GLIBC21!$GLIBC21$ac_delim
42557 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42558 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42559 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42560 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42561 INTLBISON!$INTLBISON$ac_delim
42562 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42563 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42564 CATOBJEXT!$CATOBJEXT$ac_delim
42565 DATADIRNAME!$DATADIRNAME$ac_delim
42566 INSTOBJEXT!$INSTOBJEXT$ac_delim
42567 GENCAT!$GENCAT$ac_delim
42568 INTLOBJS!$INTLOBJS$ac_delim
42569 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42570 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42571 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42572 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42573 GNOME_LIBS!$GNOME_LIBS$ac_delim
42574 GNOME_DIR!$GNOME_DIR$ac_delim
42575 BAT_DIR!$BAT_DIR$ac_delim
42576 QWT_INC!$QWT_INC$ac_delim
42577 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42578 QWT_LIB!$QWT_LIB$ac_delim
42579 QWT!$QWT$ac_delim
42580 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42581 _ACEOF
42582
42583   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42584     break
42585   elif $ac_last_try; then
42586     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42587 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42588    { (exit 1); exit 1; }; }
42589   else
42590     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42591   fi
42592 done
42593
42594 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42595 if test -n "$ac_eof"; then
42596   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42597   ac_eof=`expr $ac_eof + 1`
42598 fi
42599
42600 cat >>$CONFIG_STATUS <<_ACEOF
42601 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42603 _ACEOF
42604 sed '
42605 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42606 s/^/s,@/; s/!/@,|#_!!_#|/
42607 :n
42608 t n
42609 s/'"$ac_delim"'$/,g/; t
42610 s/$/\\/; p
42611 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42612 ' >>$CONFIG_STATUS <conf$$subs.sed
42613 rm -f conf$$subs.sed
42614 cat >>$CONFIG_STATUS <<_ACEOF
42615 CEOF$ac_eof
42616 _ACEOF
42617
42618
42619 ac_delim='%!_!# '
42620 for ac_last_try in false false false false false :; do
42621   cat >conf$$subs.sed <<_ACEOF
42622 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42623 WX_DIR!$WX_DIR$ac_delim
42624 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42625 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42626 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42627 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42628 STATIC_FD!$STATIC_FD$ac_delim
42629 STATIC_SD!$STATIC_SD$ac_delim
42630 STATIC_DIR!$STATIC_DIR$ac_delim
42631 STATIC_CONS!$STATIC_CONS$ac_delim
42632 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42633 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42634 ALL_DIRS!$ALL_DIRS$ac_delim
42635 DIRD_DIR!$DIRD_DIR$ac_delim
42636 DIR_TOOLS!$DIR_TOOLS$ac_delim
42637 STORED_DIR!$STORED_DIR$ac_delim
42638 CONS_INC!$CONS_INC$ac_delim
42639 CONS_OBJ!$CONS_OBJ$ac_delim
42640 CONS_SRC!$CONS_SRC$ac_delim
42641 CONS_LIBS!$CONS_LIBS$ac_delim
42642 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42643 READLINE_SRC!$READLINE_SRC$ac_delim
42644 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42645 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42646 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42647 OPENSSL_INC!$OPENSSL_INC$ac_delim
42648 working_dir!$working_dir$ac_delim
42649 archivedir!$archivedir$ac_delim
42650 scriptdir!$scriptdir$ac_delim
42651 plugindir!$plugindir$ac_delim
42652 dump_email!$dump_email$ac_delim
42653 job_email!$job_email$ac_delim
42654 smtp_host!$smtp_host$ac_delim
42655 piddir!$piddir$ac_delim
42656 subsysdir!$subsysdir$ac_delim
42657 baseport!$baseport$ac_delim
42658 dir_port!$dir_port$ac_delim
42659 fd_port!$fd_port$ac_delim
42660 sd_port!$sd_port$ac_delim
42661 dir_password!$dir_password$ac_delim
42662 fd_password!$fd_password$ac_delim
42663 sd_password!$sd_password$ac_delim
42664 mon_dir_password!$mon_dir_password$ac_delim
42665 mon_fd_password!$mon_fd_password$ac_delim
42666 mon_sd_password!$mon_sd_password$ac_delim
42667 db_name!$db_name$ac_delim
42668 db_user!$db_user$ac_delim
42669 db_password!$db_password$ac_delim
42670 db_port!$db_port$ac_delim
42671 dir_user!$dir_user$ac_delim
42672 dir_group!$dir_group$ac_delim
42673 sd_user!$sd_user$ac_delim
42674 sd_group!$sd_group$ac_delim
42675 fd_user!$fd_user$ac_delim
42676 fd_group!$fd_group$ac_delim
42677 SBINPERM!$SBINPERM$ac_delim
42678 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42679 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42680 SQL_BINDIR!$SQL_BINDIR$ac_delim
42681 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42682 uncomment_dbi!$uncomment_dbi$ac_delim
42683 DB_PROG!$DB_PROG$ac_delim
42684 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42685 cats!$cats$ac_delim
42686 DB_TYPE!$DB_TYPE$ac_delim
42687 GETCONF!$GETCONF$ac_delim
42688 XMKMF!$XMKMF$ac_delim
42689 X_CFLAGS!$X_CFLAGS$ac_delim
42690 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42691 X_LIBS!$X_LIBS$ac_delim
42692 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42693 LIBOBJS!$LIBOBJS$ac_delim
42694 FDLIBS!$FDLIBS$ac_delim
42695 DEBUG!$DEBUG$ac_delim
42696 DINCLUDE!$DINCLUDE$ac_delim
42697 DLIB!$DLIB$ac_delim
42698 DB_LIBS!$DB_LIBS$ac_delim
42699 WCFLAGS!$WCFLAGS$ac_delim
42700 WLDFLAGS!$WLDFLAGS$ac_delim
42701 WRAPLIBS!$WRAPLIBS$ac_delim
42702 OBJLIST!$OBJLIST$ac_delim
42703 hostname!$hostname$ac_delim
42704 TAPEDRIVE!$TAPEDRIVE$ac_delim
42705 PSCMD!$PSCMD$ac_delim
42706 WIN32!$WIN32$ac_delim
42707 MACOSX!$MACOSX$ac_delim
42708 DISTNAME!$DISTNAME$ac_delim
42709 DISTVER!$DISTVER$ac_delim
42710 LTLIBOBJS!$LTLIBOBJS$ac_delim
42711 _ACEOF
42712
42713   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
42714     break
42715   elif $ac_last_try; then
42716     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42717 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42718    { (exit 1); exit 1; }; }
42719   else
42720     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42721   fi
42722 done
42723
42724 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42725 if test -n "$ac_eof"; then
42726   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42727   ac_eof=`expr $ac_eof + 1`
42728 fi
42729
42730 cat >>$CONFIG_STATUS <<_ACEOF
42731 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42732 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42733 _ACEOF
42734 sed '
42735 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42736 s/^/s,@/; s/!/@,|#_!!_#|/
42737 :n
42738 t n
42739 s/'"$ac_delim"'$/,g/; t
42740 s/$/\\/; p
42741 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42742 ' >>$CONFIG_STATUS <conf$$subs.sed
42743 rm -f conf$$subs.sed
42744 cat >>$CONFIG_STATUS <<_ACEOF
42745 :end
42746 s/|#_!!_#|//g
42747 CEOF$ac_eof
42748 _ACEOF
42749
42750
42751 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42752 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42753 # trailing colons and then remove the whole line if VPATH becomes empty
42754 # (actually we leave an empty line to preserve line numbers).
42755 if test "x$srcdir" = x.; then
42756   ac_vpsub='/^[  ]*VPATH[        ]*=/{
42757 s/:*\$(srcdir):*/:/
42758 s/:*\${srcdir}:*/:/
42759 s/:*@srcdir@:*/:/
42760 s/^\([^=]*=[     ]*\):*/\1/
42761 s/:*$//
42762 s/^[^=]*=[       ]*$//
42763 }'
42764 fi
42765
42766 cat >>$CONFIG_STATUS <<\_ACEOF
42767 fi # test -n "$CONFIG_FILES"
42768
42769
42770 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
42771 do
42772   case $ac_tag in
42773   :[FHLC]) ac_mode=$ac_tag; continue;;
42774   esac
42775   case $ac_mode$ac_tag in
42776   :[FHL]*:*);;
42777   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42778 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42779    { (exit 1); exit 1; }; };;
42780   :[FH]-) ac_tag=-:-;;
42781   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42782   esac
42783   ac_save_IFS=$IFS
42784   IFS=:
42785   set x $ac_tag
42786   IFS=$ac_save_IFS
42787   shift
42788   ac_file=$1
42789   shift
42790
42791   case $ac_mode in
42792   :L) ac_source=$1;;
42793   :[FH])
42794     ac_file_inputs=
42795     for ac_f
42796     do
42797       case $ac_f in
42798       -) ac_f="$tmp/stdin";;
42799       *) # Look for the file first in the build tree, then in the source tree
42800          # (if the path is not absolute).  The absolute path cannot be DOS-style,
42801          # because $ac_f cannot contain `:'.
42802          test -f "$ac_f" ||
42803            case $ac_f in
42804            [\\/$]*) false;;
42805            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42806            esac ||
42807            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42808 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42809    { (exit 1); exit 1; }; };;
42810       esac
42811       ac_file_inputs="$ac_file_inputs $ac_f"
42812     done
42813
42814     # Let's still pretend it is `configure' which instantiates (i.e., don't
42815     # use $as_me), people would be surprised to read:
42816     #    /* config.h.  Generated by config.status.  */
42817     configure_input="Generated from "`IFS=:
42818           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42819     if test x"$ac_file" != x-; then
42820       configure_input="$ac_file.  $configure_input"
42821       { echo "$as_me:$LINENO: creating $ac_file" >&5
42822 echo "$as_me: creating $ac_file" >&6;}
42823     fi
42824
42825     case $ac_tag in
42826     *:-:* | *:-) cat >"$tmp/stdin";;
42827     esac
42828     ;;
42829   esac
42830
42831   ac_dir=`$as_dirname -- "$ac_file" ||
42832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42833          X"$ac_file" : 'X\(//\)[^/]' \| \
42834          X"$ac_file" : 'X\(//\)$' \| \
42835          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42836 echo X"$ac_file" |
42837     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42838             s//\1/
42839             q
42840           }
42841           /^X\(\/\/\)[^/].*/{
42842             s//\1/
42843             q
42844           }
42845           /^X\(\/\/\)$/{
42846             s//\1/
42847             q
42848           }
42849           /^X\(\/\).*/{
42850             s//\1/
42851             q
42852           }
42853           s/.*/./; q'`
42854   { as_dir="$ac_dir"
42855   case $as_dir in #(
42856   -*) as_dir=./$as_dir;;
42857   esac
42858   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42859     as_dirs=
42860     while :; do
42861       case $as_dir in #(
42862       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42863       *) as_qdir=$as_dir;;
42864       esac
42865       as_dirs="'$as_qdir' $as_dirs"
42866       as_dir=`$as_dirname -- "$as_dir" ||
42867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42868          X"$as_dir" : 'X\(//\)[^/]' \| \
42869          X"$as_dir" : 'X\(//\)$' \| \
42870          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42871 echo X"$as_dir" |
42872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42873             s//\1/
42874             q
42875           }
42876           /^X\(\/\/\)[^/].*/{
42877             s//\1/
42878             q
42879           }
42880           /^X\(\/\/\)$/{
42881             s//\1/
42882             q
42883           }
42884           /^X\(\/\).*/{
42885             s//\1/
42886             q
42887           }
42888           s/.*/./; q'`
42889       test -d "$as_dir" && break
42890     done
42891     test -z "$as_dirs" || eval "mkdir $as_dirs"
42892   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42893 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42894    { (exit 1); exit 1; }; }; }
42895   ac_builddir=.
42896
42897 case "$ac_dir" in
42898 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42899 *)
42900   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42901   # A ".." for each directory in $ac_dir_suffix.
42902   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42903   case $ac_top_builddir_sub in
42904   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42905   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42906   esac ;;
42907 esac
42908 ac_abs_top_builddir=$ac_pwd
42909 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42910 # for backward compatibility:
42911 ac_top_builddir=$ac_top_build_prefix
42912
42913 case $srcdir in
42914   .)  # We are building in place.
42915     ac_srcdir=.
42916     ac_top_srcdir=$ac_top_builddir_sub
42917     ac_abs_top_srcdir=$ac_pwd ;;
42918   [\\/]* | ?:[\\/]* )  # Absolute name.
42919     ac_srcdir=$srcdir$ac_dir_suffix;
42920     ac_top_srcdir=$srcdir
42921     ac_abs_top_srcdir=$srcdir ;;
42922   *) # Relative name.
42923     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42924     ac_top_srcdir=$ac_top_build_prefix$srcdir
42925     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42926 esac
42927 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42928
42929
42930   case $ac_mode in
42931   :F)
42932   #
42933   # CONFIG_FILE
42934   #
42935
42936   case $INSTALL in
42937   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42938   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42939   esac
42940 _ACEOF
42941
42942 cat >>$CONFIG_STATUS <<\_ACEOF
42943 # If the template does not know about datarootdir, expand it.
42944 # FIXME: This hack should be removed a few years after 2.60.
42945 ac_datarootdir_hack=; ac_datarootdir_seen=
42946
42947 case `sed -n '/datarootdir/ {
42948   p
42949   q
42950 }
42951 /@datadir@/p
42952 /@docdir@/p
42953 /@infodir@/p
42954 /@localedir@/p
42955 /@mandir@/p
42956 ' $ac_file_inputs` in
42957 *datarootdir*) ac_datarootdir_seen=yes;;
42958 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42959   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42960 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42961 _ACEOF
42962 cat >>$CONFIG_STATUS <<_ACEOF
42963   ac_datarootdir_hack='
42964   s&@datadir@&$datadir&g
42965   s&@docdir@&$docdir&g
42966   s&@infodir@&$infodir&g
42967   s&@localedir@&$localedir&g
42968   s&@mandir@&$mandir&g
42969     s&\\\${datarootdir}&$datarootdir&g' ;;
42970 esac
42971 _ACEOF
42972
42973 # Neutralize VPATH when `$srcdir' = `.'.
42974 # Shell code in configure.ac might set extrasub.
42975 # FIXME: do we really want to maintain this feature?
42976 cat >>$CONFIG_STATUS <<_ACEOF
42977   sed "$ac_vpsub
42978 $extrasub
42979 _ACEOF
42980 cat >>$CONFIG_STATUS <<\_ACEOF
42981 :t
42982 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42983 s&@configure_input@&$configure_input&;t t
42984 s&@top_builddir@&$ac_top_builddir_sub&;t t
42985 s&@srcdir@&$ac_srcdir&;t t
42986 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42987 s&@top_srcdir@&$ac_top_srcdir&;t t
42988 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42989 s&@builddir@&$ac_builddir&;t t
42990 s&@abs_builddir@&$ac_abs_builddir&;t t
42991 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42992 s&@INSTALL@&$ac_INSTALL&;t t
42993 $ac_datarootdir_hack
42994 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
42995
42996 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42997   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
42998   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
42999   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43000 which seems to be undefined.  Please make sure it is defined." >&5
43001 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43002 which seems to be undefined.  Please make sure it is defined." >&2;}
43003
43004   rm -f "$tmp/stdin"
43005   case $ac_file in
43006   -) cat "$tmp/out"; rm -f "$tmp/out";;
43007   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43008   esac
43009  ;;
43010   :H)
43011   #
43012   # CONFIG_HEADER
43013   #
43014 _ACEOF
43015
43016 # Transform confdefs.h into a sed script `conftest.defines', that
43017 # substitutes the proper values into config.h.in to produce config.h.
43018 rm -f conftest.defines conftest.tail
43019 # First, append a space to every undef/define line, to ease matching.
43020 echo 's/$/ /' >conftest.defines
43021 # Then, protect against being on the right side of a sed subst, or in
43022 # an unquoted here document, in config.status.  If some macros were
43023 # called several times there might be several #defines for the same
43024 # symbol, which is useless.  But do not sort them, since the last
43025 # AC_DEFINE must be honored.
43026 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43027 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43028 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43029 # PARAMS is the parameter list in the macro definition--in most cases, it's
43030 # just an empty string.
43031 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
43032 ac_dB='\\)[      (].*,\\1define\\2'
43033 ac_dC=' '
43034 ac_dD=' ,'
43035
43036 uniq confdefs.h |
43037   sed -n '
43038         t rset
43039         :rset
43040         s/^[     ]*#[    ]*define[       ][      ]*//
43041         t ok
43042         d
43043         :ok
43044         s/[\\&,]/\\&/g
43045         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43046         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43047   ' >>conftest.defines
43048
43049 # Remove the space that was appended to ease matching.
43050 # Then replace #undef with comments.  This is necessary, for
43051 # example, in the case of _POSIX_SOURCE, which is predefined and required
43052 # on some systems where configure will not decide to define it.
43053 # (The regexp can be short, since the line contains either #define or #undef.)
43054 echo 's/ $//
43055 s,^[     #]*u.*,/* & */,' >>conftest.defines
43056
43057 # Break up conftest.defines:
43058 ac_max_sed_lines=50
43059
43060 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43061 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43062 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43063 # et cetera.
43064 ac_in='$ac_file_inputs'
43065 ac_out='"$tmp/out1"'
43066 ac_nxt='"$tmp/out2"'
43067
43068 while :
43069 do
43070   # Write a here document:
43071     cat >>$CONFIG_STATUS <<_ACEOF
43072     # First, check the format of the line:
43073     cat >"\$tmp/defines.sed" <<\\CEOF
43074 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
43075 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
43076 b
43077 :def
43078 _ACEOF
43079   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43080   echo 'CEOF
43081     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43082   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43083   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43084   grep . conftest.tail >/dev/null || break
43085   rm -f conftest.defines
43086   mv conftest.tail conftest.defines
43087 done
43088 rm -f conftest.defines conftest.tail
43089
43090 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43091 cat >>$CONFIG_STATUS <<\_ACEOF
43092   if test x"$ac_file" != x-; then
43093     echo "/* $configure_input  */" >"$tmp/config.h"
43094     cat "$ac_result" >>"$tmp/config.h"
43095     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43096       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43097 echo "$as_me: $ac_file is unchanged" >&6;}
43098     else
43099       rm -f $ac_file
43100       mv "$tmp/config.h" $ac_file
43101     fi
43102   else
43103     echo "/* $configure_input  */"
43104     cat "$ac_result"
43105   fi
43106   rm -f "$tmp/out12"
43107  ;;
43108
43109   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43110 echo "$as_me: executing $ac_file commands" >&6;}
43111  ;;
43112   esac
43113
43114
43115   case $ac_file$ac_mode in
43116     "libtool":C)
43117
43118     # See if we are running on zsh, and set the options which allow our
43119     # commands through without removal of \ escapes.
43120     if test -n "${ZSH_VERSION+set}" ; then
43121       setopt NO_GLOB_SUBST
43122     fi
43123
43124     cfgfile="${ofile}T"
43125     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43126     $RM "$cfgfile"
43127
43128     cat <<_LT_EOF >> "$cfgfile"
43129 #! $SHELL
43130
43131 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43132 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43133 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43134 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43135 #
43136 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43137 #                 2006, 2007, 2008 Free Software Foundation, Inc.
43138 #   Written by Gordon Matzigkeit, 1996
43139 #
43140 #   This file is part of GNU Libtool.
43141 #
43142 # GNU Libtool is free software; you can redistribute it and/or
43143 # modify it under the terms of the GNU General Public License as
43144 # published by the Free Software Foundation; either version 2 of
43145 # the License, or (at your option) any later version.
43146 #
43147 # As a special exception to the GNU General Public License,
43148 # if you distribute this file as part of a program or library that
43149 # is built using GNU Libtool, you may include this file under the
43150 # same distribution terms that you use for the rest of that program.
43151 #
43152 # GNU Libtool is distributed in the hope that it will be useful,
43153 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43154 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43155 # GNU General Public License for more details.
43156 #
43157 # You should have received a copy of the GNU General Public License
43158 # along with GNU Libtool; see the file COPYING.  If not, a copy
43159 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43160 # obtained by writing to the Free Software Foundation, Inc.,
43161 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43162
43163
43164 # The names of the tagged configurations supported by this script.
43165 available_tags="CXX "
43166
43167 # ### BEGIN LIBTOOL CONFIG
43168
43169 # Which release of libtool.m4 was used?
43170 macro_version=$macro_version
43171 macro_revision=$macro_revision
43172
43173 # Whether or not to build shared libraries.
43174 build_libtool_libs=$enable_shared
43175
43176 # Whether or not to build static libraries.
43177 build_old_libs=$enable_static
43178
43179 # What type of objects to build.
43180 pic_mode=$pic_mode
43181
43182 # Whether or not to optimize for fast installation.
43183 fast_install=$enable_fast_install
43184
43185 # The host system.
43186 host_alias=$host_alias
43187 host=$host
43188 host_os=$host_os
43189
43190 # The build system.
43191 build_alias=$build_alias
43192 build=$build
43193 build_os=$build_os
43194
43195 # A sed program that does not truncate output.
43196 SED=$lt_SED
43197
43198 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43199 Xsed="\$SED -e 1s/^X//"
43200
43201 # A grep program that handles long lines.
43202 GREP=$lt_GREP
43203
43204 # An ERE matcher.
43205 EGREP=$lt_EGREP
43206
43207 # A literal string matcher.
43208 FGREP=$lt_FGREP
43209
43210 # A BSD- or MS-compatible name lister.
43211 NM=$lt_NM
43212
43213 # Whether we need soft or hard links.
43214 LN_S=$lt_LN_S
43215
43216 # What is the maximum length of a command?
43217 max_cmd_len=$max_cmd_len
43218
43219 # Object file suffix (normally "o").
43220 objext=$ac_objext
43221
43222 # Executable file suffix (normally "").
43223 exeext=$exeext
43224
43225 # whether the shell understands "unset".
43226 lt_unset=$lt_unset
43227
43228 # turn spaces into newlines.
43229 SP2NL=$lt_lt_SP2NL
43230
43231 # turn newlines into spaces.
43232 NL2SP=$lt_lt_NL2SP
43233
43234 # How to create reloadable object files.
43235 reload_flag=$lt_reload_flag
43236 reload_cmds=$lt_reload_cmds
43237
43238 # An object symbol dumper.
43239 OBJDUMP=$lt_OBJDUMP
43240
43241 # Method to check whether dependent libraries are shared objects.
43242 deplibs_check_method=$lt_deplibs_check_method
43243
43244 # Command to use when deplibs_check_method == "file_magic".
43245 file_magic_cmd=$lt_file_magic_cmd
43246
43247 # The archiver.
43248 AR=$lt_AR
43249 AR_FLAGS=$lt_AR_FLAGS
43250
43251 # A symbol stripping program.
43252 STRIP=$lt_STRIP
43253
43254 # Commands used to install an old-style archive.
43255 RANLIB=$lt_RANLIB
43256 old_postinstall_cmds=$lt_old_postinstall_cmds
43257 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43258
43259 # A C compiler.
43260 LTCC=$lt_CC
43261
43262 # LTCC compiler flags.
43263 LTCFLAGS=$lt_CFLAGS
43264
43265 # Take the output of nm and produce a listing of raw symbols and C names.
43266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43267
43268 # Transform the output of nm in a proper C declaration.
43269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43270
43271 # Transform the output of nm in a C name address pair.
43272 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43273
43274 # Transform the output of nm in a C name address pair when lib prefix is needed.
43275 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43276
43277 # The name of the directory that contains temporary libtool files.
43278 objdir=$objdir
43279
43280 # Shell to use when invoking shell scripts.
43281 SHELL=$lt_SHELL
43282
43283 # An echo program that does not interpret backslashes.
43284 ECHO=$lt_ECHO
43285
43286 # Used to examine libraries when file_magic_cmd begins with "file".
43287 MAGIC_CMD=$MAGIC_CMD
43288
43289 # Must we lock files when doing compilation?
43290 need_locks=$lt_need_locks
43291
43292 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43293 DSYMUTIL=$lt_DSYMUTIL
43294
43295 # Tool to change global to local symbols on Mac OS X.
43296 NMEDIT=$lt_NMEDIT
43297
43298 # Tool to manipulate fat objects and archives on Mac OS X.
43299 LIPO=$lt_LIPO
43300
43301 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43302 OTOOL=$lt_OTOOL
43303
43304 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43305 OTOOL64=$lt_OTOOL64
43306
43307 # Old archive suffix (normally "a").
43308 libext=$libext
43309
43310 # Shared library suffix (normally ".so").
43311 shrext_cmds=$lt_shrext_cmds
43312
43313 # The commands to extract the exported symbol list from a shared archive.
43314 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43315
43316 # Variables whose values should be saved in libtool wrapper scripts and
43317 # restored at link time.
43318 variables_saved_for_relink=$lt_variables_saved_for_relink
43319
43320 # Do we need the "lib" prefix for modules?
43321 need_lib_prefix=$need_lib_prefix
43322
43323 # Do we need a version for libraries?
43324 need_version=$need_version
43325
43326 # Library versioning type.
43327 version_type=$version_type
43328
43329 # Shared library runtime path variable.
43330 runpath_var=$runpath_var
43331
43332 # Shared library path variable.
43333 shlibpath_var=$shlibpath_var
43334
43335 # Is shlibpath searched before the hard-coded library search path?
43336 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43337
43338 # Format of library name prefix.
43339 libname_spec=$lt_libname_spec
43340
43341 # List of archive names.  First name is the real one, the rest are links.
43342 # The last name is the one that the linker finds with -lNAME
43343 library_names_spec=$lt_library_names_spec
43344
43345 # The coded name of the library, if different from the real name.
43346 soname_spec=$lt_soname_spec
43347
43348 # Command to use after installation of a shared archive.
43349 postinstall_cmds=$lt_postinstall_cmds
43350
43351 # Command to use after uninstallation of a shared archive.
43352 postuninstall_cmds=$lt_postuninstall_cmds
43353
43354 # Commands used to finish a libtool library installation in a directory.
43355 finish_cmds=$lt_finish_cmds
43356
43357 # As "finish_cmds", except a single script fragment to be evaled but
43358 # not shown.
43359 finish_eval=$lt_finish_eval
43360
43361 # Whether we should hardcode library paths into libraries.
43362 hardcode_into_libs=$hardcode_into_libs
43363
43364 # Compile-time system search path for libraries.
43365 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43366
43367 # Run-time system search path for libraries.
43368 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43369
43370 # Whether dlopen is supported.
43371 dlopen_support=$enable_dlopen
43372
43373 # Whether dlopen of programs is supported.
43374 dlopen_self=$enable_dlopen_self
43375
43376 # Whether dlopen of statically linked programs is supported.
43377 dlopen_self_static=$enable_dlopen_self_static
43378
43379 # Commands to strip libraries.
43380 old_striplib=$lt_old_striplib
43381 striplib=$lt_striplib
43382
43383
43384 # The linker used to build libraries.
43385 LD=$lt_LD
43386
43387 # Commands used to build an old-style archive.
43388 old_archive_cmds=$lt_old_archive_cmds
43389
43390 # A language specific compiler.
43391 CC=$lt_compiler
43392
43393 # Is the compiler the GNU compiler?
43394 with_gcc=$GCC
43395
43396 # Compiler flag to turn off builtin functions.
43397 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43398
43399 # How to pass a linker flag through the compiler.
43400 wl=$lt_lt_prog_compiler_wl
43401
43402 # Additional compiler flags for building library objects.
43403 pic_flag=$lt_lt_prog_compiler_pic
43404
43405 # Compiler flag to prevent dynamic linking.
43406 link_static_flag=$lt_lt_prog_compiler_static
43407
43408 # Does compiler simultaneously support -c and -o options?
43409 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43410
43411 # Whether or not to add -lc for building shared libraries.
43412 build_libtool_need_lc=$archive_cmds_need_lc
43413
43414 # Whether or not to disallow shared libs when runtime libs are static.
43415 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43416
43417 # Compiler flag to allow reflexive dlopens.
43418 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43419
43420 # Compiler flag to generate shared objects directly from archives.
43421 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43422
43423 # Whether the compiler copes with passing no objects directly.
43424 compiler_needs_object=$lt_compiler_needs_object
43425
43426 # Create an old-style archive from a shared archive.
43427 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43428
43429 # Create a temporary old-style archive to link instead of a shared archive.
43430 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43431
43432 # Commands used to build a shared archive.
43433 archive_cmds=$lt_archive_cmds
43434 archive_expsym_cmds=$lt_archive_expsym_cmds
43435
43436 # Commands used to build a loadable module if different from building
43437 # a shared archive.
43438 module_cmds=$lt_module_cmds
43439 module_expsym_cmds=$lt_module_expsym_cmds
43440
43441 # Whether we are building with GNU ld or not.
43442 with_gnu_ld=$lt_with_gnu_ld
43443
43444 # Flag that allows shared libraries with undefined symbols to be built.
43445 allow_undefined_flag=$lt_allow_undefined_flag
43446
43447 # Flag that enforces no undefined symbols.
43448 no_undefined_flag=$lt_no_undefined_flag
43449
43450 # Flag to hardcode \$libdir into a binary during linking.
43451 # This must work even if \$libdir does not exist
43452 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43453
43454 # If ld is used when linking, flag to hardcode \$libdir into a binary
43455 # during linking.  This must work even if \$libdir does not exist.
43456 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43457
43458 # Whether we need a single "-rpath" flag with a separated argument.
43459 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43460
43461 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43462 # DIR into the resulting binary.
43463 hardcode_direct=$hardcode_direct
43464
43465 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43466 # DIR into the resulting binary and the resulting library dependency is
43467 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43468 # library is relocated.
43469 hardcode_direct_absolute=$hardcode_direct_absolute
43470
43471 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43472 # into the resulting binary.
43473 hardcode_minus_L=$hardcode_minus_L
43474
43475 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43476 # into the resulting binary.
43477 hardcode_shlibpath_var=$hardcode_shlibpath_var
43478
43479 # Set to "yes" if building a shared library automatically hardcodes DIR
43480 # into the library and all subsequent libraries and executables linked
43481 # against it.
43482 hardcode_automatic=$hardcode_automatic
43483
43484 # Set to yes if linker adds runtime paths of dependent libraries
43485 # to runtime path list.
43486 inherit_rpath=$inherit_rpath
43487
43488 # Whether libtool must link a program against all its dependency libraries.
43489 link_all_deplibs=$link_all_deplibs
43490
43491 # Fix the shell variable \$srcfile for the compiler.
43492 fix_srcfile_path=$lt_fix_srcfile_path
43493
43494 # Set to "yes" if exported symbols are required.
43495 always_export_symbols=$always_export_symbols
43496
43497 # The commands to list exported symbols.
43498 export_symbols_cmds=$lt_export_symbols_cmds
43499
43500 # Symbols that should not be listed in the preloaded symbols.
43501 exclude_expsyms=$lt_exclude_expsyms
43502
43503 # Symbols that must always be exported.
43504 include_expsyms=$lt_include_expsyms
43505
43506 # Commands necessary for linking programs (against libraries) with templates.
43507 prelink_cmds=$lt_prelink_cmds
43508
43509 # Specify filename containing input files.
43510 file_list_spec=$lt_file_list_spec
43511
43512 # How to hardcode a shared library path into an executable.
43513 hardcode_action=$hardcode_action
43514
43515 # The directories searched by this compiler when creating a shared library.
43516 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43517
43518 # Dependencies to place before and after the objects being linked to
43519 # create a shared library.
43520 predep_objects=$lt_predep_objects
43521 postdep_objects=$lt_postdep_objects
43522 predeps=$lt_predeps
43523 postdeps=$lt_postdeps
43524
43525 # The library search path used internally by the compiler when linking
43526 # a shared library.
43527 compiler_lib_search_path=$lt_compiler_lib_search_path
43528
43529 # ### END LIBTOOL CONFIG
43530
43531 _LT_EOF
43532
43533   case $host_os in
43534   aix3*)
43535     cat <<\_LT_EOF >> "$cfgfile"
43536 # AIX sometimes has problems with the GCC collect2 program.  For some
43537 # reason, if we set the COLLECT_NAMES environment variable, the problems
43538 # vanish in a puff of smoke.
43539 if test "X${COLLECT_NAMES+set}" != Xset; then
43540   COLLECT_NAMES=
43541   export COLLECT_NAMES
43542 fi
43543 _LT_EOF
43544     ;;
43545   esac
43546
43547
43548 ltmain="$ac_aux_dir/ltmain.sh"
43549
43550
43551   # We use sed instead of cat because bash on DJGPP gets confused if
43552   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
43553   # text mode, it properly converts lines to CR/LF.  This bash problem
43554   # is reportedly fixed, but why not run on old versions too?
43555   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43556     || (rm -f "$cfgfile"; exit 1)
43557
43558   case $xsi_shell in
43559   yes)
43560     cat << \_LT_EOF >> "$cfgfile"
43561
43562 # func_dirname file append nondir_replacement
43563 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43564 # otherwise set result to NONDIR_REPLACEMENT.
43565 func_dirname ()
43566 {
43567   case ${1} in
43568     */*) func_dirname_result="${1%/*}${2}" ;;
43569     *  ) func_dirname_result="${3}" ;;
43570   esac
43571 }
43572
43573 # func_basename file
43574 func_basename ()
43575 {
43576   func_basename_result="${1##*/}"
43577 }
43578
43579 # func_dirname_and_basename file append nondir_replacement
43580 # perform func_basename and func_dirname in a single function
43581 # call:
43582 #   dirname:  Compute the dirname of FILE.  If nonempty,
43583 #             add APPEND to the result, otherwise set result
43584 #             to NONDIR_REPLACEMENT.
43585 #             value returned in "$func_dirname_result"
43586 #   basename: Compute filename of FILE.
43587 #             value retuned in "$func_basename_result"
43588 # Implementation must be kept synchronized with func_dirname
43589 # and func_basename. For efficiency, we do not delegate to
43590 # those functions but instead duplicate the functionality here.
43591 func_dirname_and_basename ()
43592 {
43593   case ${1} in
43594     */*) func_dirname_result="${1%/*}${2}" ;;
43595     *  ) func_dirname_result="${3}" ;;
43596   esac
43597   func_basename_result="${1##*/}"
43598 }
43599
43600 # func_stripname prefix suffix name
43601 # strip PREFIX and SUFFIX off of NAME.
43602 # PREFIX and SUFFIX must not contain globbing or regex special
43603 # characters, hashes, percent signs, but SUFFIX may contain a leading
43604 # dot (in which case that matches only a dot).
43605 func_stripname ()
43606 {
43607   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43608   # positional parameters, so assign one to ordinary parameter first.
43609   func_stripname_result=${3}
43610   func_stripname_result=${func_stripname_result#"${1}"}
43611   func_stripname_result=${func_stripname_result%"${2}"}
43612 }
43613
43614 # func_opt_split
43615 func_opt_split ()
43616 {
43617   func_opt_split_opt=${1%%=*}
43618   func_opt_split_arg=${1#*=}
43619 }
43620
43621 # func_lo2o object
43622 func_lo2o ()
43623 {
43624   case ${1} in
43625     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43626     *)    func_lo2o_result=${1} ;;
43627   esac
43628 }
43629
43630 # func_xform libobj-or-source
43631 func_xform ()
43632 {
43633   func_xform_result=${1%.*}.lo
43634 }
43635
43636 # func_arith arithmetic-term...
43637 func_arith ()
43638 {
43639   func_arith_result=$(( $* ))
43640 }
43641
43642 # func_len string
43643 # STRING may not start with a hyphen.
43644 func_len ()
43645 {
43646   func_len_result=${#1}
43647 }
43648
43649 _LT_EOF
43650     ;;
43651   *) # Bourne compatible functions.
43652     cat << \_LT_EOF >> "$cfgfile"
43653
43654 # func_dirname file append nondir_replacement
43655 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43656 # otherwise set result to NONDIR_REPLACEMENT.
43657 func_dirname ()
43658 {
43659   # Extract subdirectory from the argument.
43660   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43661   if test "X$func_dirname_result" = "X${1}"; then
43662     func_dirname_result="${3}"
43663   else
43664     func_dirname_result="$func_dirname_result${2}"
43665   fi
43666 }
43667
43668 # func_basename file
43669 func_basename ()
43670 {
43671   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43672 }
43673
43674
43675 # func_stripname prefix suffix name
43676 # strip PREFIX and SUFFIX off of NAME.
43677 # PREFIX and SUFFIX must not contain globbing or regex special
43678 # characters, hashes, percent signs, but SUFFIX may contain a leading
43679 # dot (in which case that matches only a dot).
43680 # func_strip_suffix prefix name
43681 func_stripname ()
43682 {
43683   case ${2} in
43684     .*) func_stripname_result=`$ECHO "X${3}" \
43685            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43686     *)  func_stripname_result=`$ECHO "X${3}" \
43687            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43688   esac
43689 }
43690
43691 # sed scripts:
43692 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43693 my_sed_long_arg='1s/^-[^=]*=//'
43694
43695 # func_opt_split
43696 func_opt_split ()
43697 {
43698   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43699   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43700 }
43701
43702 # func_lo2o object
43703 func_lo2o ()
43704 {
43705   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43706 }
43707
43708 # func_xform libobj-or-source
43709 func_xform ()
43710 {
43711   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43712 }
43713
43714 # func_arith arithmetic-term...
43715 func_arith ()
43716 {
43717   func_arith_result=`expr "$@"`
43718 }
43719
43720 # func_len string
43721 # STRING may not start with a hyphen.
43722 func_len ()
43723 {
43724   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43725 }
43726
43727 _LT_EOF
43728 esac
43729
43730 case $lt_shell_append in
43731   yes)
43732     cat << \_LT_EOF >> "$cfgfile"
43733
43734 # func_append var value
43735 # Append VALUE to the end of shell variable VAR.
43736 func_append ()
43737 {
43738   eval "$1+=\$2"
43739 }
43740 _LT_EOF
43741     ;;
43742   *)
43743     cat << \_LT_EOF >> "$cfgfile"
43744
43745 # func_append var value
43746 # Append VALUE to the end of shell variable VAR.
43747 func_append ()
43748 {
43749   eval "$1=\$$1\$2"
43750 }
43751
43752 _LT_EOF
43753     ;;
43754   esac
43755
43756
43757   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43758     || (rm -f "$cfgfile"; exit 1)
43759
43760   mv -f "$cfgfile" "$ofile" ||
43761     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43762   chmod +x "$ofile"
43763
43764
43765     cat <<_LT_EOF >> "$ofile"
43766
43767 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43768
43769 # The linker used to build libraries.
43770 LD=$lt_LD_CXX
43771
43772 # Commands used to build an old-style archive.
43773 old_archive_cmds=$lt_old_archive_cmds_CXX
43774
43775 # A language specific compiler.
43776 CC=$lt_compiler_CXX
43777
43778 # Is the compiler the GNU compiler?
43779 with_gcc=$GCC_CXX
43780
43781 # Compiler flag to turn off builtin functions.
43782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43783
43784 # How to pass a linker flag through the compiler.
43785 wl=$lt_lt_prog_compiler_wl_CXX
43786
43787 # Additional compiler flags for building library objects.
43788 pic_flag=$lt_lt_prog_compiler_pic_CXX
43789
43790 # Compiler flag to prevent dynamic linking.
43791 link_static_flag=$lt_lt_prog_compiler_static_CXX
43792
43793 # Does compiler simultaneously support -c and -o options?
43794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43795
43796 # Whether or not to add -lc for building shared libraries.
43797 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43798
43799 # Whether or not to disallow shared libs when runtime libs are static.
43800 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43801
43802 # Compiler flag to allow reflexive dlopens.
43803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43804
43805 # Compiler flag to generate shared objects directly from archives.
43806 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43807
43808 # Whether the compiler copes with passing no objects directly.
43809 compiler_needs_object=$lt_compiler_needs_object_CXX
43810
43811 # Create an old-style archive from a shared archive.
43812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43813
43814 # Create a temporary old-style archive to link instead of a shared archive.
43815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43816
43817 # Commands used to build a shared archive.
43818 archive_cmds=$lt_archive_cmds_CXX
43819 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43820
43821 # Commands used to build a loadable module if different from building
43822 # a shared archive.
43823 module_cmds=$lt_module_cmds_CXX
43824 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43825
43826 # Whether we are building with GNU ld or not.
43827 with_gnu_ld=$lt_with_gnu_ld_CXX
43828
43829 # Flag that allows shared libraries with undefined symbols to be built.
43830 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43831
43832 # Flag that enforces no undefined symbols.
43833 no_undefined_flag=$lt_no_undefined_flag_CXX
43834
43835 # Flag to hardcode \$libdir into a binary during linking.
43836 # This must work even if \$libdir does not exist
43837 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43838
43839 # If ld is used when linking, flag to hardcode \$libdir into a binary
43840 # during linking.  This must work even if \$libdir does not exist.
43841 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43842
43843 # Whether we need a single "-rpath" flag with a separated argument.
43844 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43845
43846 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43847 # DIR into the resulting binary.
43848 hardcode_direct=$hardcode_direct_CXX
43849
43850 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43851 # DIR into the resulting binary and the resulting library dependency is
43852 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43853 # library is relocated.
43854 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43855
43856 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43857 # into the resulting binary.
43858 hardcode_minus_L=$hardcode_minus_L_CXX
43859
43860 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43861 # into the resulting binary.
43862 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43863
43864 # Set to "yes" if building a shared library automatically hardcodes DIR
43865 # into the library and all subsequent libraries and executables linked
43866 # against it.
43867 hardcode_automatic=$hardcode_automatic_CXX
43868
43869 # Set to yes if linker adds runtime paths of dependent libraries
43870 # to runtime path list.
43871 inherit_rpath=$inherit_rpath_CXX
43872
43873 # Whether libtool must link a program against all its dependency libraries.
43874 link_all_deplibs=$link_all_deplibs_CXX
43875
43876 # Fix the shell variable \$srcfile for the compiler.
43877 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43878
43879 # Set to "yes" if exported symbols are required.
43880 always_export_symbols=$always_export_symbols_CXX
43881
43882 # The commands to list exported symbols.
43883 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43884
43885 # Symbols that should not be listed in the preloaded symbols.
43886 exclude_expsyms=$lt_exclude_expsyms_CXX
43887
43888 # Symbols that must always be exported.
43889 include_expsyms=$lt_include_expsyms_CXX
43890
43891 # Commands necessary for linking programs (against libraries) with templates.
43892 prelink_cmds=$lt_prelink_cmds_CXX
43893
43894 # Specify filename containing input files.
43895 file_list_spec=$lt_file_list_spec_CXX
43896
43897 # How to hardcode a shared library path into an executable.
43898 hardcode_action=$hardcode_action_CXX
43899
43900 # The directories searched by this compiler when creating a shared library.
43901 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43902
43903 # Dependencies to place before and after the objects being linked to
43904 # create a shared library.
43905 predep_objects=$lt_predep_objects_CXX
43906 postdep_objects=$lt_postdep_objects_CXX
43907 predeps=$lt_predeps_CXX
43908 postdeps=$lt_postdeps_CXX
43909
43910 # The library search path used internally by the compiler when linking
43911 # a shared library.
43912 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43913
43914 # ### END LIBTOOL TAG CONFIG: CXX
43915 _LT_EOF
43916
43917  ;;
43918     "default-1":C)
43919     for ac_file in $CONFIG_FILES; do
43920       # Support "outfile[:infile[:infile...]]"
43921       case "$ac_file" in
43922         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
43923       esac
43924       # PO directories have a Makefile.in generated from Makefile.in.in.
43925       case "$ac_file" in */Makefile.in)
43926         # Adjust a relative srcdir.
43927         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
43928         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
43929         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
43930         # In autoconf-2.13 it is called $ac_given_srcdir.
43931         # In autoconf-2.50 it is called $srcdir.
43932         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
43933         case "$ac_given_srcdir" in
43934           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
43935           /*) top_srcdir="$ac_given_srcdir" ;;
43936           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
43937         esac
43938         # Treat a directory as a PO directory if and only if it has a
43939         # POTFILES.in file. This allows packages to have multiple PO
43940         # directories under different names or in different locations.
43941         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
43942           rm -f "$ac_dir/POTFILES"
43943           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
43944           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
43945           POMAKEFILEDEPS="POTFILES.in"
43946           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
43947           # on $ac_dir but don't depend on user-specified configuration
43948           # parameters.
43949           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
43950             # The LINGUAS file contains the set of available languages.
43951             if test -n "$OBSOLETE_ALL_LINGUAS"; then
43952               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
43953             fi
43954             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
43955             # Hide the ALL_LINGUAS assigment from automake.
43956             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
43957             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
43958           else
43959             # The set of available languages was given in configure.in.
43960             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
43961           fi
43962           # Compute POFILES
43963           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
43964           # Compute UPDATEPOFILES
43965           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
43966           # Compute DUMMYPOFILES
43967           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
43968           # Compute GMOFILES
43969           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
43970           case "$ac_given_srcdir" in
43971             .) srcdirpre= ;;
43972             *) srcdirpre='$(srcdir)/' ;;
43973           esac
43974           POFILES=
43975           UPDATEPOFILES=
43976           DUMMYPOFILES=
43977           GMOFILES=
43978           for lang in $ALL_LINGUAS; do
43979             POFILES="$POFILES $srcdirpre$lang.po"
43980             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
43981             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
43982             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
43983           done
43984           # CATALOGS depends on both $ac_dir and the user's LINGUAS
43985           # environment variable.
43986           INST_LINGUAS=
43987           if test -n "$ALL_LINGUAS"; then
43988             for presentlang in $ALL_LINGUAS; do
43989               useit=no
43990               if test "%UNSET%" != "$LINGUAS"; then
43991                 desiredlanguages="$LINGUAS"
43992               else
43993                 desiredlanguages="$ALL_LINGUAS"
43994               fi
43995               for desiredlang in $desiredlanguages; do
43996                 # Use the presentlang catalog if desiredlang is
43997                 #   a. equal to presentlang, or
43998                 #   b. a variant of presentlang (because in this case,
43999                 #      presentlang can be used as a fallback for messages
44000                 #      which are not translated in the desiredlang catalog).
44001                 case "$desiredlang" in
44002                   "$presentlang"*) useit=yes;;
44003                 esac
44004               done
44005               if test $useit = yes; then
44006                 INST_LINGUAS="$INST_LINGUAS $presentlang"
44007               fi
44008             done
44009           fi
44010           CATALOGS=
44011           if test -n "$INST_LINGUAS"; then
44012             for lang in $INST_LINGUAS; do
44013               CATALOGS="$CATALOGS $lang.gmo"
44014             done
44015           fi
44016           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44017           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"
44018           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44019             if test -f "$f"; then
44020               case "$f" in
44021                 *.orig | *.bak | *~) ;;
44022                 *) cat "$f" >> "$ac_dir/Makefile" ;;
44023               esac
44024             fi
44025           done
44026         fi
44027         ;;
44028       esac
44029     done ;;
44030     "default":C)
44031  ;;
44032
44033   esac
44034 done # for ac_tag
44035
44036
44037 { (exit 0); exit 0; }
44038 _ACEOF
44039 chmod +x $CONFIG_STATUS
44040 ac_clean_files=$ac_clean_files_save
44041
44042
44043 # configure is writing to config.log, and then calls config.status.
44044 # config.status does its own redirection, appending to config.log.
44045 # Unfortunately, on DOS this fails, as config.log is still kept open
44046 # by configure, so config.status won't be able to write to it; its
44047 # output is simply discarded.  So we exec the FD to /dev/null,
44048 # effectively closing config.log, so it can be properly (re)opened and
44049 # appended to by config.status.  When coming back to configure, we
44050 # need to make the FD available again.
44051 if test "$no_create" != yes; then
44052   ac_cs_success=:
44053   ac_config_status_args=
44054   test "$silent" = yes &&
44055     ac_config_status_args="$ac_config_status_args --quiet"
44056   exec 5>/dev/null
44057   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44058   exec 5>>config.log
44059   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44060   # would make configure fail if this is the last instruction.
44061   $ac_cs_success || { (exit 1); exit 1; }
44062 fi
44063
44064
44065 if test "${support_bat}" = "yes" ; then
44066    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44067       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44068       exit 1
44069    fi
44070
44071    QMAKEBIN="qmake"
44072
44073    if test "x$QMAKEQT4" != "xnone"; then
44074        QMAKEBIN=qmake-qt4
44075    fi
44076
44077    cd src/qt-console
44078    chmod 755 install_conf_file build-depkgs-qt-console
44079    echo "Creating bat Makefile"
44080    $QMAKEBIN
44081    make clean
44082    cd ${BUILD_DIR}
44083 fi
44084
44085 if test X"$GCC" = "Xyes" ; then
44086   echo "Doing make of dependencies"
44087   ${MAKE:-make} depend
44088 fi
44089
44090 cd scripts
44091 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44092 chmod 755 dvd-handler dvd-simulator
44093 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44094 cd ..
44095
44096 c=updatedb
44097 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
44098 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
44099
44100 c=src/cats
44101
44102 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
44103 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
44104
44105 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
44106 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
44107
44108 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
44109 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
44110
44111 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
44112 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
44113
44114 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
44115 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
44116
44117 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
44118 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
44119
44120 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44121 chmod 755 $c/sqlite
44122 chmod 755 $c/mysql
44123
44124 chmod 755 src/win32/build-depkgs-mingw32
44125
44126 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44127    largefile_support="yes"
44128 fi
44129
44130 if test X"$GCC" = "Xyes" ; then
44131                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44132    if test "x${CCVERSION}" = "x" ; then
44133       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44134    fi
44135    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44136    if test x"${CXXVERSION}" = x ; then
44137       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44138    fi
44139 fi
44140
44141 if test "x${db_type}" = "xInternal" ; then
44142    echo " "
44143    echo " "
44144    echo "You have not specified either --enable-client-only or one of the"
44145    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44146    echo "  This is not permitted. Please reconfigure."
44147    echo " "
44148    echo "Aborting the configuration ..."
44149    echo " "
44150    echo " "
44151    exit 1
44152 fi
44153
44154 echo "
44155 Configuration on `date`:
44156
44157    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44158    Bacula version:          ${BACULA} ${VERSION} (${DATE})
44159    Source code location:    ${srcdir}
44160    Install binaries:        ${sbindir}
44161    Install libraries:       ${libdir}
44162    Install config files:    ${sysconfdir}
44163    Scripts directory:       ${scriptdir}
44164    Archive directory:       ${archivedir}
44165    Working directory:       ${working_dir}
44166    PID directory:           ${piddir}
44167    Subsys directory:        ${subsysdir}
44168    Man directory:           ${mandir}
44169    Data directory:          ${datarootdir}
44170    C Compiler:              ${CC} ${CCVERSION}
44171    C++ Compiler:            ${CXX} ${CXXVERSION}
44172    Compiler flags:          ${WCFLAGS} ${CFLAGS}
44173    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
44174    Libraries:               ${LIBS}
44175    Statically Linked Tools: ${support_static_tools}
44176    Statically Linked FD:    ${support_static_fd}
44177    Statically Linked SD:    ${support_static_sd}
44178    Statically Linked DIR:   ${support_static_dir}
44179    Statically Linked CONS:  ${support_static_cons}
44180    Database type:           ${db_type}
44181    Database port:           ${db_port}
44182    Database lib:            ${DB_LIBS}
44183    Database name:           ${db_name}
44184    Database user:           ${db_user}
44185
44186    Job Output Email:        ${job_email}
44187    Traceback Email:         ${dump_email}
44188    SMTP Host Address:       ${smtp_host}
44189
44190    Director Port:           ${dir_port}
44191    File daemon Port:        ${fd_port}
44192    Storage daemon Port:     ${sd_port}
44193
44194    Director User:           ${dir_user}
44195    Director Group:          ${dir_group}
44196    Storage Daemon User:     ${sd_user}
44197    Storage DaemonGroup:     ${sd_group}
44198    File Daemon User:        ${fd_user}
44199    File Daemon Group:       ${fd_group}
44200
44201    SQL binaries Directory   ${SQL_BINDIR}
44202
44203    Large file support:      $largefile_support
44204    Bacula conio support:    ${got_conio} ${CONS_LIBS}
44205    readline support:        ${got_readline} ${PRTREADLINE_SRC}
44206    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
44207    TLS support:             ${support_tls}
44208    Encryption support:      ${support_crypto}
44209    ZLIB support:            ${have_zlib}
44210    enable-smartalloc:       ${support_smartalloc}
44211    bat support:             ${support_bat} ${QWT_LDFLAGS}
44212    enable-gnome:            ${support_gnome} ${gnome_version}
44213    enable-bwx-console:      ${support_wx_console} ${wx_version}
44214    enable-tray-monitor:     ${support_tray_monitor}
44215    client-only:             ${build_client_only}
44216    build-dird:              ${build_dird}
44217    build-stored:            ${build_stored}
44218    ACL support:             ${have_acl}
44219    Python support:          ${support_python} ${PYTHON_LIBS}
44220    Batch insert enabled:    ${support_batch_insert}
44221
44222   " > config.out
44223
44224 cat config.out