]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Rebuild configure
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 BUILD_DIR
803 TOP_DIR
804 WIN32BUILDDIR
805 WIN32MAINDIR
806 WIN32TOPDIR
807 TRUEPRG
808 FALSEPRG
809 VERSION
810 DATE
811 LSMDATE
812 BACULA
813 post_host
814 CC
815 CFLAGS
816 LDFLAGS
817 CPPFLAGS
818 ac_ct_CC
819 EXEEXT
820 OBJEXT
821 CXX
822 CXXFLAGS
823 ac_ct_CXX
824 CPP
825 GREP
826 EGREP
827 INSTALL_PROGRAM
828 INSTALL_SCRIPT
829 INSTALL_DATA
830 MV
831 REMOVE
832 CP
833 SED
834 ECHO
835 CMP
836 TBL
837 AR
838 OPENSSL
839 MTX
840 DD
841 MKISOFS
842 PYTHON
843 GROWISOFS
844 DVDRWMEDIAINFO
845 DVDRWFORMAT
846 PKGCONFIG
847 QMAKE
848 QMAKEQT4
849 GMAKE
850 WXCONFIG
851 WXFLAGS
852 CDRECORD
853 PIDOF
854 AWK
855 ARFLAGS
856 MAKE_SHELL
857 LOCAL_LIBS
858 LOCAL_CFLAGS
859 LOCAL_LDFLAGS
860 LOCAL_DEFS
861 LIBTOOL
862 build
863 build_cpu
864 build_vendor
865 build_os
866 host
867 host_cpu
868 host_vendor
869 host_os
870 FGREP
871 LD
872 DUMPBIN
873 ac_ct_DUMPBIN
874 NM
875 LN_S
876 OBJDUMP
877 STRIP
878 RANLIB
879 lt_ECHO
880 DSYMUTIL
881 NMEDIT
882 LIPO
883 OTOOL
884 OTOOL64
885 CXXCPP
886 DEFAULT_OBJECT_TYPE
887 DEFAULT_ARCHIVE_TYPE
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
891 LIBTOOL_CLEAN_TARGET
892 QMAKE_LIBTOOL
893 INCLUDE_INSTALL_TARGET
894 INCLUDE_UNINSTALL_TARGET
895 HAVE_SUN_OS_TRUE
896 HAVE_SUN_OS_FALSE
897 HAVE_OSF1_OS_TRUE
898 HAVE_OSF1_OS_FALSE
899 HAVE_AIX_OS_TRUE
900 HAVE_AIX_OS_FALSE
901 HAVE_HPUX_OS_TRUE
902 HAVE_HPUX_OS_FALSE
903 HAVE_LINUX_OS_TRUE
904 HAVE_LINUX_OS_FALSE
905 HAVE_FREEBSD_OS_TRUE
906 HAVE_FREEBSD_OS_FALSE
907 HAVE_NETBSD_OS_TRUE
908 HAVE_NETBSD_OS_FALSE
909 HAVE_OPENBSD_OS_TRUE
910 HAVE_OPENBSD_OS_FALSE
911 HAVE_BSDI_OS_TRUE
912 HAVE_BSDI_OS_FALSE
913 HAVE_SGI_OS_TRUE
914 HAVE_SGI_OS_FALSE
915 HAVE_IRIX_OS_TRUE
916 HAVE_IRIX_OS_FALSE
917 HAVE_DARWIN_OS_TRUE
918 HAVE_DARWIN_OS_FALSE
919 SET_MAKE
920 MKINSTALLDIRS
921 USE_NLS
922 MSGFMT
923 GMSGFMT
924 XGETTEXT
925 MSGMERGE
926 INTL_MACOSX_LIBS
927 LIBICONV
928 LTLIBICONV
929 INTLLIBS
930 LIBINTL
931 LTLIBINTL
932 POSUB
933 GLIBC2
934 ALLOCA
935 GLIBC21
936 HAVE_POSIX_PRINTF
937 HAVE_ASPRINTF
938 HAVE_SNPRINTF
939 HAVE_WPRINTF
940 INTLBISON
941 BUILD_INCLUDED_LIBINTL
942 USE_INCLUDED_LIBINTL
943 CATOBJEXT
944 DATADIRNAME
945 INSTOBJEXT
946 GENCAT
947 INTLOBJS
948 INTL_LIBTOOL_SUFFIX_PREFIX
949 GNOME_INCLUDEDIR
950 GNOMEUI_LIBS
951 GNOME_LIBDIR
952 GNOME_LIBS
953 GNOME_DIR
954 BAT_DIR
955 QWT_INC
956 QWT_LDFLAGS
957 QWT_LIB
958 QWT
959 WXCONS_CPPFLAGS
960 WXCONS_LDFLAGS
961 WX_DIR
962 TRAY_MONITOR_CPPFLAGS
963 TRAY_MONITOR_LDFLAGS
964 TRAY_MONITOR_DIR
965 TTOOL_LDFLAGS
966 STATIC_FD
967 STATIC_SD
968 STATIC_DIR
969 STATIC_CONS
970 STATIC_GNOME_CONS
971 STATIC_WX_CONS
972 ALL_DIRS
973 DIRD_DIR
974 DIR_TOOLS
975 STORED_DIR
976 CONS_INC
977 CONS_OBJ
978 CONS_SRC
979 CONS_LIBS
980 CONS_LDFLAGS
981 READLINE_SRC
982 PYTHON_LIBS
983 PYTHON_INCDIR
984 OPENSSL_LIBS
985 OPENSSL_INC
986 working_dir
987 archivedir
988 basename
989 hostname
990 scriptdir
991 bsrdir
992 logdir
993 plugindir
994 dump_email
995 job_email
996 smtp_host
997 piddir
998 subsysdir
999 baseport
1000 dir_port
1001 fd_port
1002 sd_port
1003 dir_password
1004 fd_password
1005 sd_password
1006 mon_dir_password
1007 mon_fd_password
1008 mon_sd_password
1009 db_name
1010 db_user
1011 db_password
1012 db_port
1013 dir_user
1014 dir_group
1015 sd_user
1016 sd_group
1017 fd_user
1018 fd_group
1019 SBINPERM
1020 SQL_LFLAGS
1021 SQL_INCLUDE
1022 SQL_BINDIR
1023 DBI_DBD_DRIVERDIR
1024 uncomment_dbi
1025 DB_PROG
1026 DB_PROG_LIB
1027 cats
1028 DB_TYPE
1029 GETCONF
1030 XMKMF
1031 X_CFLAGS
1032 X_PRE_LIBS
1033 X_LIBS
1034 X_EXTRA_LIBS
1035 LIBOBJS
1036 FDLIBS
1037 DEBUG
1038 DINCLUDE
1039 DLIB
1040 DB_LIBS
1041 WCFLAGS
1042 WLDFLAGS
1043 WRAPLIBS
1044 OBJLIST
1045 TAPEDRIVE
1046 PSCMD
1047 WIN32
1048 MACOSX
1049 DISTNAME
1050 DISTVER
1051 LTLIBOBJS'
1052 ac_subst_files='MCOMMON'
1053       ac_precious_vars='build_alias
1054 host_alias
1055 target_alias
1056 CC
1057 CFLAGS
1058 LDFLAGS
1059 LIBS
1060 CPPFLAGS
1061 CXX
1062 CXXFLAGS
1063 CCC
1064 CPP
1065 WXCONFIG
1066 WXFLAGS
1067 CXXCPP
1068 XMKMF'
1069
1070
1071 # Initialize some variables set by options.
1072 ac_init_help=
1073 ac_init_version=false
1074 # The variables have the same names as the options, with
1075 # dashes changed to underlines.
1076 cache_file=/dev/null
1077 exec_prefix=NONE
1078 no_create=
1079 no_recursion=
1080 prefix=NONE
1081 program_prefix=NONE
1082 program_suffix=NONE
1083 program_transform_name=s,x,x,
1084 silent=
1085 site=
1086 srcdir=
1087 verbose=
1088 x_includes=NONE
1089 x_libraries=NONE
1090
1091 # Installation directory options.
1092 # These are left unexpanded so users can "make install exec_prefix=/foo"
1093 # and all the variables that are supposed to be based on exec_prefix
1094 # by default will actually change.
1095 # Use braces instead of parens because sh, perl, etc. also accept them.
1096 # (The list follows the same order as the GNU Coding Standards.)
1097 bindir='${exec_prefix}/bin'
1098 sbindir='${exec_prefix}/sbin'
1099 libexecdir='${exec_prefix}/libexec'
1100 datarootdir='${prefix}/share'
1101 datadir='${datarootdir}'
1102 sysconfdir='${prefix}/etc'
1103 sharedstatedir='${prefix}/com'
1104 localstatedir='${prefix}/var'
1105 includedir='${prefix}/include'
1106 oldincludedir='/usr/include'
1107 docdir='${datarootdir}/doc/${PACKAGE}'
1108 infodir='${datarootdir}/info'
1109 htmldir='${docdir}'
1110 dvidir='${docdir}'
1111 pdfdir='${docdir}'
1112 psdir='${docdir}'
1113 libdir='${exec_prefix}/lib'
1114 localedir='${datarootdir}/locale'
1115 mandir='${datarootdir}/man'
1116
1117 ac_prev=
1118 ac_dashdash=
1119 for ac_option
1120 do
1121   # If the previous option needs an argument, assign it.
1122   if test -n "$ac_prev"; then
1123     eval $ac_prev=\$ac_option
1124     ac_prev=
1125     continue
1126   fi
1127
1128   case $ac_option in
1129   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1130   *)    ac_optarg=yes ;;
1131   esac
1132
1133   # Accept the important Cygnus configure options, so we can diagnose typos.
1134
1135   case $ac_dashdash$ac_option in
1136   --)
1137     ac_dashdash=yes ;;
1138
1139   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1140     ac_prev=bindir ;;
1141   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1142     bindir=$ac_optarg ;;
1143
1144   -build | --build | --buil | --bui | --bu)
1145     ac_prev=build_alias ;;
1146   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1147     build_alias=$ac_optarg ;;
1148
1149   -cache-file | --cache-file | --cache-fil | --cache-fi \
1150   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1151     ac_prev=cache_file ;;
1152   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1153   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1154     cache_file=$ac_optarg ;;
1155
1156   --config-cache | -C)
1157     cache_file=config.cache ;;
1158
1159   -datadir | --datadir | --datadi | --datad)
1160     ac_prev=datadir ;;
1161   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1162     datadir=$ac_optarg ;;
1163
1164   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1165   | --dataroo | --dataro | --datar)
1166     ac_prev=datarootdir ;;
1167   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1168   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1169     datarootdir=$ac_optarg ;;
1170
1171   -disable-* | --disable-*)
1172     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1176    { (exit 1); exit 1; }; }
1177     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1178     eval enable_$ac_feature=no ;;
1179
1180   -docdir | --docdir | --docdi | --doc | --do)
1181     ac_prev=docdir ;;
1182   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1183     docdir=$ac_optarg ;;
1184
1185   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1186     ac_prev=dvidir ;;
1187   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1188     dvidir=$ac_optarg ;;
1189
1190   -enable-* | --enable-*)
1191     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1192     # Reject names that are not valid shell variable names.
1193     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1195    { (exit 1); exit 1; }; }
1196     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1197     eval enable_$ac_feature=\$ac_optarg ;;
1198
1199   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1200   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1201   | --exec | --exe | --ex)
1202     ac_prev=exec_prefix ;;
1203   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1204   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1205   | --exec=* | --exe=* | --ex=*)
1206     exec_prefix=$ac_optarg ;;
1207
1208   -gas | --gas | --ga | --g)
1209     # Obsolete; use --with-gas.
1210     with_gas=yes ;;
1211
1212   -help | --help | --hel | --he | -h)
1213     ac_init_help=long ;;
1214   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1215     ac_init_help=recursive ;;
1216   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1217     ac_init_help=short ;;
1218
1219   -host | --host | --hos | --ho)
1220     ac_prev=host_alias ;;
1221   -host=* | --host=* | --hos=* | --ho=*)
1222     host_alias=$ac_optarg ;;
1223
1224   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1225     ac_prev=htmldir ;;
1226   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1227   | --ht=*)
1228     htmldir=$ac_optarg ;;
1229
1230   -includedir | --includedir | --includedi | --included | --include \
1231   | --includ | --inclu | --incl | --inc)
1232     ac_prev=includedir ;;
1233   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1234   | --includ=* | --inclu=* | --incl=* | --inc=*)
1235     includedir=$ac_optarg ;;
1236
1237   -infodir | --infodir | --infodi | --infod | --info | --inf)
1238     ac_prev=infodir ;;
1239   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1240     infodir=$ac_optarg ;;
1241
1242   -libdir | --libdir | --libdi | --libd)
1243     ac_prev=libdir ;;
1244   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1245     libdir=$ac_optarg ;;
1246
1247   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1248   | --libexe | --libex | --libe)
1249     ac_prev=libexecdir ;;
1250   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1251   | --libexe=* | --libex=* | --libe=*)
1252     libexecdir=$ac_optarg ;;
1253
1254   -localedir | --localedir | --localedi | --localed | --locale)
1255     ac_prev=localedir ;;
1256   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1257     localedir=$ac_optarg ;;
1258
1259   -localstatedir | --localstatedir | --localstatedi | --localstated \
1260   | --localstate | --localstat | --localsta | --localst | --locals)
1261     ac_prev=localstatedir ;;
1262   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1263   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1264     localstatedir=$ac_optarg ;;
1265
1266   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1267     ac_prev=mandir ;;
1268   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1269     mandir=$ac_optarg ;;
1270
1271   -nfp | --nfp | --nf)
1272     # Obsolete; use --without-fp.
1273     with_fp=no ;;
1274
1275   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1276   | --no-cr | --no-c | -n)
1277     no_create=yes ;;
1278
1279   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1280   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1281     no_recursion=yes ;;
1282
1283   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1284   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1285   | --oldin | --oldi | --old | --ol | --o)
1286     ac_prev=oldincludedir ;;
1287   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1288   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1289   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1290     oldincludedir=$ac_optarg ;;
1291
1292   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1293     ac_prev=prefix ;;
1294   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1295     prefix=$ac_optarg ;;
1296
1297   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1298   | --program-pre | --program-pr | --program-p)
1299     ac_prev=program_prefix ;;
1300   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1301   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1302     program_prefix=$ac_optarg ;;
1303
1304   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1305   | --program-suf | --program-su | --program-s)
1306     ac_prev=program_suffix ;;
1307   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1308   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1309     program_suffix=$ac_optarg ;;
1310
1311   -program-transform-name | --program-transform-name \
1312   | --program-transform-nam | --program-transform-na \
1313   | --program-transform-n | --program-transform- \
1314   | --program-transform | --program-transfor \
1315   | --program-transfo | --program-transf \
1316   | --program-trans | --program-tran \
1317   | --progr-tra | --program-tr | --program-t)
1318     ac_prev=program_transform_name ;;
1319   -program-transform-name=* | --program-transform-name=* \
1320   | --program-transform-nam=* | --program-transform-na=* \
1321   | --program-transform-n=* | --program-transform-=* \
1322   | --program-transform=* | --program-transfor=* \
1323   | --program-transfo=* | --program-transf=* \
1324   | --program-trans=* | --program-tran=* \
1325   | --progr-tra=* | --program-tr=* | --program-t=*)
1326     program_transform_name=$ac_optarg ;;
1327
1328   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1329     ac_prev=pdfdir ;;
1330   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1331     pdfdir=$ac_optarg ;;
1332
1333   -psdir | --psdir | --psdi | --psd | --ps)
1334     ac_prev=psdir ;;
1335   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1336     psdir=$ac_optarg ;;
1337
1338   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1339   | -silent | --silent | --silen | --sile | --sil)
1340     silent=yes ;;
1341
1342   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1343     ac_prev=sbindir ;;
1344   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1345   | --sbi=* | --sb=*)
1346     sbindir=$ac_optarg ;;
1347
1348   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1349   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1350   | --sharedst | --shareds | --shared | --share | --shar \
1351   | --sha | --sh)
1352     ac_prev=sharedstatedir ;;
1353   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1354   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1355   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1356   | --sha=* | --sh=*)
1357     sharedstatedir=$ac_optarg ;;
1358
1359   -site | --site | --sit)
1360     ac_prev=site ;;
1361   -site=* | --site=* | --sit=*)
1362     site=$ac_optarg ;;
1363
1364   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1365     ac_prev=srcdir ;;
1366   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1367     srcdir=$ac_optarg ;;
1368
1369   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1370   | --syscon | --sysco | --sysc | --sys | --sy)
1371     ac_prev=sysconfdir ;;
1372   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1373   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1374     sysconfdir=$ac_optarg ;;
1375
1376   -target | --target | --targe | --targ | --tar | --ta | --t)
1377     ac_prev=target_alias ;;
1378   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1379     target_alias=$ac_optarg ;;
1380
1381   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1382     verbose=yes ;;
1383
1384   -version | --version | --versio | --versi | --vers | -V)
1385     ac_init_version=: ;;
1386
1387   -with-* | --with-*)
1388     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1389     # Reject names that are not valid shell variable names.
1390     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1391       { echo "$as_me: error: invalid package name: $ac_package" >&2
1392    { (exit 1); exit 1; }; }
1393     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1394     eval with_$ac_package=\$ac_optarg ;;
1395
1396   -without-* | --without-*)
1397     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1398     # Reject names that are not valid shell variable names.
1399     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1400       { echo "$as_me: error: invalid package name: $ac_package" >&2
1401    { (exit 1); exit 1; }; }
1402     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1403     eval with_$ac_package=no ;;
1404
1405   --x)
1406     # Obsolete; use --with-x.
1407     with_x=yes ;;
1408
1409   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410   | --x-incl | --x-inc | --x-in | --x-i)
1411     ac_prev=x_includes ;;
1412   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414     x_includes=$ac_optarg ;;
1415
1416   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418     ac_prev=x_libraries ;;
1419   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421     x_libraries=$ac_optarg ;;
1422
1423   -*) { echo "$as_me: error: unrecognized option: $ac_option
1424 Try \`$0 --help' for more information." >&2
1425    { (exit 1); exit 1; }; }
1426     ;;
1427
1428   *=*)
1429     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1430     # Reject names that are not valid shell variable names.
1431     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1432       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1433    { (exit 1); exit 1; }; }
1434     eval $ac_envvar=\$ac_optarg
1435     export $ac_envvar ;;
1436
1437   *)
1438     # FIXME: should be removed in autoconf 3.0.
1439     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1443     ;;
1444
1445   esac
1446 done
1447
1448 if test -n "$ac_prev"; then
1449   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450   { echo "$as_me: error: missing argument to $ac_option" >&2
1451    { (exit 1); exit 1; }; }
1452 fi
1453
1454 # Be sure to have absolute directory names.
1455 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1456                 datadir sysconfdir sharedstatedir localstatedir includedir \
1457                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1458                 libdir localedir mandir
1459 do
1460   eval ac_val=\$$ac_var
1461   case $ac_val in
1462     [\\/$]* | ?:[\\/]* )  continue;;
1463     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1464   esac
1465   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1466    { (exit 1); exit 1; }; }
1467 done
1468
1469 # There might be people who depend on the old broken behavior: `$host'
1470 # used to hold the argument of --host etc.
1471 # FIXME: To remove some day.
1472 build=$build_alias
1473 host=$host_alias
1474 target=$target_alias
1475
1476 # FIXME: To remove some day.
1477 if test "x$host_alias" != x; then
1478   if test "x$build_alias" = x; then
1479     cross_compiling=maybe
1480     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1481     If a cross compiler is detected then cross compile mode will be used." >&2
1482   elif test "x$build_alias" != "x$host_alias"; then
1483     cross_compiling=yes
1484   fi
1485 fi
1486
1487 ac_tool_prefix=
1488 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1489
1490 test "$silent" = yes && exec 6>/dev/null
1491
1492
1493 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1494 ac_ls_di=`ls -di .` &&
1495 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1496   { echo "$as_me: error: Working directory cannot be determined" >&2
1497    { (exit 1); exit 1; }; }
1498 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1499   { echo "$as_me: error: pwd does not report name of working directory" >&2
1500    { (exit 1); exit 1; }; }
1501
1502
1503 # Find the source files, if location was not specified.
1504 if test -z "$srcdir"; then
1505   ac_srcdir_defaulted=yes
1506   # Try the directory containing this script, then the parent directory.
1507   ac_confdir=`$as_dirname -- "$0" ||
1508 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1509          X"$0" : 'X\(//\)[^/]' \| \
1510          X"$0" : 'X\(//\)$' \| \
1511          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1512 echo X"$0" |
1513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1514             s//\1/
1515             q
1516           }
1517           /^X\(\/\/\)[^/].*/{
1518             s//\1/
1519             q
1520           }
1521           /^X\(\/\/\)$/{
1522             s//\1/
1523             q
1524           }
1525           /^X\(\/\).*/{
1526             s//\1/
1527             q
1528           }
1529           s/.*/./; q'`
1530   srcdir=$ac_confdir
1531   if test ! -r "$srcdir/$ac_unique_file"; then
1532     srcdir=..
1533   fi
1534 else
1535   ac_srcdir_defaulted=no
1536 fi
1537 if test ! -r "$srcdir/$ac_unique_file"; then
1538   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1539   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1540    { (exit 1); exit 1; }; }
1541 fi
1542 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1543 ac_abs_confdir=`(
1544         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1545    { (exit 1); exit 1; }; }
1546         pwd)`
1547 # When building in place, set srcdir=.
1548 if test "$ac_abs_confdir" = "$ac_pwd"; then
1549   srcdir=.
1550 fi
1551 # Remove unnecessary trailing slashes from srcdir.
1552 # Double slashes in file names in object file debugging info
1553 # mess up M-x gdb in Emacs.
1554 case $srcdir in
1555 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1556 esac
1557 for ac_var in $ac_precious_vars; do
1558   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1559   eval ac_env_${ac_var}_value=\$${ac_var}
1560   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1561   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1562 done
1563
1564 #
1565 # Report the --help message.
1566 #
1567 if test "$ac_init_help" = "long"; then
1568   # Omit some internal or obsolete options to make the list less imposing.
1569   # This message is too long to be a string in the A/UX 3.1 sh.
1570   cat <<_ACEOF
1571 \`configure' configures this package to adapt to many kinds of systems.
1572
1573 Usage: $0 [OPTION]... [VAR=VALUE]...
1574
1575 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1576 VAR=VALUE.  See below for descriptions of some of the useful variables.
1577
1578 Defaults for the options are specified in brackets.
1579
1580 Configuration:
1581   -h, --help              display this help and exit
1582       --help=short        display options specific to this package
1583       --help=recursive    display the short help of all the included packages
1584   -V, --version           display version information and exit
1585   -q, --quiet, --silent   do not print \`checking...' messages
1586       --cache-file=FILE   cache test results in FILE [disabled]
1587   -C, --config-cache      alias for \`--cache-file=config.cache'
1588   -n, --no-create         do not create output files
1589       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1590
1591 Installation directories:
1592   --prefix=PREFIX         install architecture-independent files in PREFIX
1593                           [$ac_default_prefix]
1594   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1595                           [PREFIX]
1596
1597 By default, \`make install' will install all the files in
1598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1600 for instance \`--prefix=\$HOME'.
1601
1602 For better control, use the options below.
1603
1604 Fine tuning of the installation directories:
1605   --bindir=DIR           user executables [EPREFIX/bin]
1606   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1607   --libexecdir=DIR       program executables [EPREFIX/libexec]
1608   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1609   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1610   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1611   --libdir=DIR           object code libraries [EPREFIX/lib]
1612   --includedir=DIR       C header files [PREFIX/include]
1613   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1614   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1615   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1616   --infodir=DIR          info documentation [DATAROOTDIR/info]
1617   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1618   --mandir=DIR           man documentation [DATAROOTDIR/man]
1619   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1620   --htmldir=DIR          html documentation [DOCDIR]
1621   --dvidir=DIR           dvi documentation [DOCDIR]
1622   --pdfdir=DIR           pdf documentation [DOCDIR]
1623   --psdir=DIR            ps documentation [DOCDIR]
1624 _ACEOF
1625
1626   cat <<\_ACEOF
1627
1628 X features:
1629   --x-includes=DIR    X include files are in DIR
1630   --x-libraries=DIR   X library files are in DIR
1631
1632 System types:
1633   --build=BUILD     configure for building on BUILD [guessed]
1634   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1635 _ACEOF
1636 fi
1637
1638 if test -n "$ac_init_help"; then
1639
1640   cat <<\_ACEOF
1641
1642 Optional Features:
1643   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1644   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1645   --enable-libtool        enable building using GNU libtool [default=yes]
1646   --enable-shared[=PKGS]  build shared libraries [default=yes]
1647   --enable-static[=PKGS]  build static libraries [default=no]
1648   --enable-fast-install[=PKGS]
1649                           optimize for fast installation [default=yes]
1650   --disable-libtool-lock  avoid locking (might break parallel builds)
1651   --enable-includes       enable installing of include files [default=no]
1652   --disable-nls           do not use Native Language Support
1653   --disable-rpath         do not hardcode runtime library paths
1654   --enable-gnome          enable build of bgnome-console GUI [default=no]
1655   --enable-bat            enable build of bat Qt4 GUI [default=no]
1656   --enable-bwx-console    enable build of wxWidgets console [default=no]
1657   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1658                           KDE [default=no]
1659   --enable-smartalloc     enable smartalloc debugging support [default=no]
1660   --enable-lockmgr        enable lock manager support [default=no]
1661   --enable-static-tools   enable static tape tools [default=no]
1662   --enable-static-fd      enable static File daemon [default=no]
1663   --enable-static-sd      enable static Storage daemon [default=no]
1664   --enable-static-dir     enable static Director [default=no]
1665   --enable-static-cons    enable static Console [default=no]
1666   --enable-client-only    build client (File daemon) only [default=no]
1667   --enable-build-dird     enable building of dird (Director) [default=yes]
1668   --enable-build-stored   enable building of stored (Storage daemon)
1669                           [default=yes]
1670   --disable-conio         disable conio support [default=no]
1671   --enable-ipv6           enable ipv6 support [default=yes]
1672   --disable-readline      disable readline support [default=yes]
1673   --enable-batch-insert   enable the DB batch insert code [default=no]
1674   --disable-largefile     omit support for large files
1675   --disable-acl           disable acl support [default=auto]
1676   --disable-xattr         disable xattr support [default=auto]
1677
1678 Optional Packages:
1679   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1680   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1681   --with-pic              try to use only PIC/non-PIC objects [default=use
1682                           both]
1683   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1684   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1685   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1686   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1687   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1688   --without-libintl-prefix     don't search for libintl in includedir and libdir
1689   --with-included-gettext use the GNU gettext library included here
1690   --with-qwt[=DIR]        specify qwt library directory
1691   --with-readline[=DIR]   specify readline library directory
1692   --with-python[=DIR]     Include Python support. DIR is the Python base
1693                           install directory, default is to search through a
1694                           number of common places for the Python files.
1695   --with-tcp-wrappers[=DIR]
1696                           enable tcpwrappers support
1697   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1698   --with-working-dir=PATH specify path of Bacula working directory
1699   --with-archivedir=PATH  specify path of SD archive directory
1700   --with-basename=RESNAME specify base resource name for daemons
1701   --with-hostname=RESNAME specify host name for daemons
1702   --with-scriptdir=PATH   specify path of Bacula scripts directory
1703   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1704   --with-logdir=PATH      specify path of Bacula logs directory
1705   --with-plugindir=PATH   specify path of Bacula plugins directory
1706   --with-dump-email=EMAIL dump email address
1707   --with-job-email=EMAIL  job output email address
1708   --with-smtp-host=HOST   SMTP mail host address
1709   --with-pid-dir=PATH     specify location of Bacula pid files
1710   --with-subsys-dir=PATH  specify location of Bacula subsys file
1711   --with-baseport=PORT    specify base port address for daemons
1712   --with-dir-password=PASSWORD
1713                           specify Director's password
1714   --with-fd-password=PASSWORD
1715                           specify Client's password
1716   --with-sd-password=PASSWORD
1717                           specify Storage daemon's password
1718   --with-mon-dir-password=PASSWORD
1719                           specify Director's password used by the monitor
1720   --with-mon-fd-password=PASSWORD
1721                           specify Client's password used by the monitor
1722   --with-mon-sd-password=PASSWORD
1723                           specify Storage daemon's password used by the
1724                           monitor
1725   --with-db-name=DBNAME   specify database name [default=bacula]
1726   --with-db-user=UNAME    specify database user [default=bacula]
1727   --with-db-password=PWD  specify database password [default=*none*]
1728   --with-db-port=DBPORT   specify a database port [default=null]
1729   --with-dir-user=USER    specify user for Director daemon
1730   --with-dir-group=GROUP  specify group for Director daemon
1731   --with-sd-user=USER     specify user for Storage daemon
1732   --with-sd-group=GROUP   specify group for Storage daemon
1733   --with-fd-user=USER     specify user for File daemon
1734   --with-fd-group=GROUP   specify group for File daemon
1735   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1736   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1737                           base install directory, [default=/usr/local/pgsql]
1738   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1739                           directory, default is to search through a number of
1740                           common places for the MySQL files.
1741   --with-embedded-mysql[=DIR]
1742                           Include MySQL support. DIR is the MySQL base install
1743                           directory, default is to search through a number of
1744                           common places for the MySQL files.
1745   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1746                           install directory, default is to search through a
1747                           number of common places for the SQLite3 files.
1748   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1749                           install directory, default is to search through a
1750                           number of common places for the SQLite files.
1751   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1752                           directory, default is to search through a number of
1753                           common places for the DBI files.
1754   --with-dbi-driver[=DRIVER]
1755                           Suport for DBI driver. DRIVER is the one DBI driver
1756                           like Mysql, Postgresql, others. Default is to not
1757                           configure any driver.
1758   --with-x                use the X Window System
1759
1760 Some influential environment variables:
1761   CC          C compiler command
1762   CFLAGS      C compiler flags
1763   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1764               nonstandard directory <lib dir>
1765   LIBS        libraries to pass to the linker, e.g. -l<library>
1766   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1767               you have headers in a nonstandard directory <include dir>
1768   CXX         C++ compiler command
1769   CXXFLAGS    C++ compiler flags
1770   CPP         C preprocessor
1771   WXCONFIG    wx-config command. On some systems, you must set it to
1772               wx-config-2.6 to use wxWidgets 2.6.
1773   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1774   CXXCPP      C++ preprocessor
1775   XMKMF       Path to xmkmf, Makefile generator for X Window System
1776
1777 Use these variables to override the choices made by `configure' or to help
1778 it to find libraries and programs with nonstandard names/locations.
1779
1780 _ACEOF
1781 ac_status=$?
1782 fi
1783
1784 if test "$ac_init_help" = "recursive"; then
1785   # If there are subdirs, report their specific --help.
1786   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1787     test -d "$ac_dir" || continue
1788     ac_builddir=.
1789
1790 case "$ac_dir" in
1791 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792 *)
1793   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1794   # A ".." for each directory in $ac_dir_suffix.
1795   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1796   case $ac_top_builddir_sub in
1797   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1798   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1799   esac ;;
1800 esac
1801 ac_abs_top_builddir=$ac_pwd
1802 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1803 # for backward compatibility:
1804 ac_top_builddir=$ac_top_build_prefix
1805
1806 case $srcdir in
1807   .)  # We are building in place.
1808     ac_srcdir=.
1809     ac_top_srcdir=$ac_top_builddir_sub
1810     ac_abs_top_srcdir=$ac_pwd ;;
1811   [\\/]* | ?:[\\/]* )  # Absolute name.
1812     ac_srcdir=$srcdir$ac_dir_suffix;
1813     ac_top_srcdir=$srcdir
1814     ac_abs_top_srcdir=$srcdir ;;
1815   *) # Relative name.
1816     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1817     ac_top_srcdir=$ac_top_build_prefix$srcdir
1818     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1819 esac
1820 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1821
1822     cd "$ac_dir" || { ac_status=$?; continue; }
1823     # Check for guested configure.
1824     if test -f "$ac_srcdir/configure.gnu"; then
1825       echo &&
1826       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1827     elif test -f "$ac_srcdir/configure"; then
1828       echo &&
1829       $SHELL "$ac_srcdir/configure" --help=recursive
1830     else
1831       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1832     fi || ac_status=$?
1833     cd "$ac_pwd" || { ac_status=$?; break; }
1834   done
1835 fi
1836
1837 test -n "$ac_init_help" && exit $ac_status
1838 if $ac_init_version; then
1839   cat <<\_ACEOF
1840 configure
1841 generated by GNU Autoconf 2.61
1842
1843 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1844 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1845 This configure script is free software; the Free Software Foundation
1846 gives unlimited permission to copy, distribute and modify it.
1847 _ACEOF
1848   exit
1849 fi
1850 cat >config.log <<_ACEOF
1851 This file contains any messages produced by compilers while
1852 running configure, to aid debugging if configure makes a mistake.
1853
1854 It was created by $as_me, which was
1855 generated by GNU Autoconf 2.61.  Invocation command line was
1856
1857   $ $0 $@
1858
1859 _ACEOF
1860 exec 5>>config.log
1861 {
1862 cat <<_ASUNAME
1863 ## --------- ##
1864 ## Platform. ##
1865 ## --------- ##
1866
1867 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1872
1873 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1875
1876 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1877 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1878 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1880 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1881 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1882 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1883
1884 _ASUNAME
1885
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889   IFS=$as_save_IFS
1890   test -z "$as_dir" && as_dir=.
1891   echo "PATH: $as_dir"
1892 done
1893 IFS=$as_save_IFS
1894
1895 } >&5
1896
1897 cat >&5 <<_ACEOF
1898
1899
1900 ## ----------- ##
1901 ## Core tests. ##
1902 ## ----------- ##
1903
1904 _ACEOF
1905
1906
1907 # Keep a trace of the command line.
1908 # Strip out --no-create and --no-recursion so they do not pile up.
1909 # Strip out --silent because we don't want to record it for future runs.
1910 # Also quote any args containing shell meta-characters.
1911 # Make two passes to allow for proper duplicate-argument suppression.
1912 ac_configure_args=
1913 ac_configure_args0=
1914 ac_configure_args1=
1915 ac_must_keep_next=false
1916 for ac_pass in 1 2
1917 do
1918   for ac_arg
1919   do
1920     case $ac_arg in
1921     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923     | -silent | --silent | --silen | --sile | --sil)
1924       continue ;;
1925     *\'*)
1926       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927     esac
1928     case $ac_pass in
1929     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1930     2)
1931       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1932       if test $ac_must_keep_next = true; then
1933         ac_must_keep_next=false # Got value, back to normal.
1934       else
1935         case $ac_arg in
1936           *=* | --config-cache | -C | -disable-* | --disable-* \
1937           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939           | -with-* | --with-* | -without-* | --without-* | --x)
1940             case "$ac_configure_args0 " in
1941               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942             esac
1943             ;;
1944           -* ) ac_must_keep_next=true ;;
1945         esac
1946       fi
1947       ac_configure_args="$ac_configure_args '$ac_arg'"
1948       ;;
1949     esac
1950   done
1951 done
1952 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1953 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1954
1955 # When interrupted or exit'd, cleanup temporary files, and complete
1956 # config.log.  We remove comments because anyway the quotes in there
1957 # would cause problems or look ugly.
1958 # WARNING: Use '\'' to represent an apostrophe within the trap.
1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960 trap 'exit_status=$?
1961   # Save into config.log some information that might help in debugging.
1962   {
1963     echo
1964
1965     cat <<\_ASBOX
1966 ## ---------------- ##
1967 ## Cache variables. ##
1968 ## ---------------- ##
1969 _ASBOX
1970     echo
1971     # The following way of writing the cache mishandles newlines in values,
1972 (
1973   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1974     eval ac_val=\$$ac_var
1975     case $ac_val in #(
1976     *${as_nl}*)
1977       case $ac_var in #(
1978       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1979 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1980       esac
1981       case $ac_var in #(
1982       _ | IFS | as_nl) ;; #(
1983       *) $as_unset $ac_var ;;
1984       esac ;;
1985     esac
1986   done
1987   (set) 2>&1 |
1988     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1989     *${as_nl}ac_space=\ *)
1990       sed -n \
1991         "s/'\''/'\''\\\\'\'''\''/g;
1992           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1993       ;; #(
1994     *)
1995       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1996       ;;
1997     esac |
1998     sort
1999 )
2000     echo
2001
2002     cat <<\_ASBOX
2003 ## ----------------- ##
2004 ## Output variables. ##
2005 ## ----------------- ##
2006 _ASBOX
2007     echo
2008     for ac_var in $ac_subst_vars
2009     do
2010       eval ac_val=\$$ac_var
2011       case $ac_val in
2012       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013       esac
2014       echo "$ac_var='\''$ac_val'\''"
2015     done | sort
2016     echo
2017
2018     if test -n "$ac_subst_files"; then
2019       cat <<\_ASBOX
2020 ## ------------------- ##
2021 ## File substitutions. ##
2022 ## ------------------- ##
2023 _ASBOX
2024       echo
2025       for ac_var in $ac_subst_files
2026       do
2027         eval ac_val=\$$ac_var
2028         case $ac_val in
2029         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030         esac
2031         echo "$ac_var='\''$ac_val'\''"
2032       done | sort
2033       echo
2034     fi
2035
2036     if test -s confdefs.h; then
2037       cat <<\_ASBOX
2038 ## ----------- ##
2039 ## confdefs.h. ##
2040 ## ----------- ##
2041 _ASBOX
2042       echo
2043       cat confdefs.h
2044       echo
2045     fi
2046     test "$ac_signal" != 0 &&
2047       echo "$as_me: caught signal $ac_signal"
2048     echo "$as_me: exit $exit_status"
2049   } >&5
2050   rm -f core *.core core.conftest.* &&
2051     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2052     exit $exit_status
2053 ' 0
2054 for ac_signal in 1 2 13 15; do
2055   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2056 done
2057 ac_signal=0
2058
2059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2060 rm -f -r conftest* confdefs.h
2061
2062 # Predefined preprocessor variables.
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_NAME "$PACKAGE_NAME"
2066 _ACEOF
2067
2068
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2071 _ACEOF
2072
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2076 _ACEOF
2077
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_STRING "$PACKAGE_STRING"
2081 _ACEOF
2082
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2086 _ACEOF
2087
2088
2089 # Let the site file select an alternate cache file if it wants to.
2090 # Prefer explicitly selected file to automatically selected ones.
2091 if test -n "$CONFIG_SITE"; then
2092   set x "$CONFIG_SITE"
2093 elif test "x$prefix" != xNONE; then
2094   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2095 else
2096   set x "$ac_default_prefix/share/config.site" \
2097         "$ac_default_prefix/etc/config.site"
2098 fi
2099 shift
2100 for ac_site_file
2101 do
2102   if test -r "$ac_site_file"; then
2103     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2104 echo "$as_me: loading site script $ac_site_file" >&6;}
2105     sed 's/^/| /' "$ac_site_file" >&5
2106     . "$ac_site_file"
2107   fi
2108 done
2109
2110 if test -r "$cache_file"; then
2111   # Some versions of bash will fail to source /dev/null (special
2112   # files actually), so we avoid doing that.
2113   if test -f "$cache_file"; then
2114     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2115 echo "$as_me: loading cache $cache_file" >&6;}
2116     case $cache_file in
2117       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2118       *)                      . "./$cache_file";;
2119     esac
2120   fi
2121 else
2122   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2123 echo "$as_me: creating cache $cache_file" >&6;}
2124   >$cache_file
2125 fi
2126
2127 # Check that the precious variables saved in the cache have kept the same
2128 # value.
2129 ac_cache_corrupted=false
2130 for ac_var in $ac_precious_vars; do
2131   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2132   eval ac_new_set=\$ac_env_${ac_var}_set
2133   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2134   eval ac_new_val=\$ac_env_${ac_var}_value
2135   case $ac_old_set,$ac_new_set in
2136     set,)
2137       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2138 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2139       ac_cache_corrupted=: ;;
2140     ,set)
2141       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2142 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2143       ac_cache_corrupted=: ;;
2144     ,);;
2145     *)
2146       if test "x$ac_old_val" != "x$ac_new_val"; then
2147         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2148 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2149         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2150 echo "$as_me:   former value:  $ac_old_val" >&2;}
2151         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2152 echo "$as_me:   current value: $ac_new_val" >&2;}
2153         ac_cache_corrupted=:
2154       fi;;
2155   esac
2156   # Pass precious variables to config.status.
2157   if test "$ac_new_set" = set; then
2158     case $ac_new_val in
2159     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2160     *) ac_arg=$ac_var=$ac_new_val ;;
2161     esac
2162     case " $ac_configure_args " in
2163       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2164       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2165     esac
2166   fi
2167 done
2168 if $ac_cache_corrupted; then
2169   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2170 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2171   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2172 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2173    { (exit 1); exit 1; }; }
2174 fi
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192 ac_ext=c
2193 ac_cpp='$CPP $CPPFLAGS'
2194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197
2198
2199 BUILD_DIR=`pwd`
2200 cd ..
2201 TOP_DIR=`pwd`
2202 cd ${BUILD_DIR}
2203
2204
2205 ac_aux_dir=
2206 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2207   if test -f "$ac_dir/install-sh"; then
2208     ac_aux_dir=$ac_dir
2209     ac_install_sh="$ac_aux_dir/install-sh -c"
2210     break
2211   elif test -f "$ac_dir/install.sh"; then
2212     ac_aux_dir=$ac_dir
2213     ac_install_sh="$ac_aux_dir/install.sh -c"
2214     break
2215   elif test -f "$ac_dir/shtool"; then
2216     ac_aux_dir=$ac_dir
2217     ac_install_sh="$ac_aux_dir/shtool install -c"
2218     break
2219   fi
2220 done
2221 if test -z "$ac_aux_dir"; then
2222   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2223 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2224    { (exit 1); exit 1; }; }
2225 fi
2226
2227 # These three variables are undocumented and unsupported,
2228 # and are intended to be withdrawn in a future Autoconf release.
2229 # They can cause serious problems if a builder's source tree is in a directory
2230 # whose full name contains unusual characters.
2231 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2232 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2233 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2234
2235
2236 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2237
2238
2239 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2240 WIN32MAINDIR=${BUILD_DIR}
2241 WIN32TOPDIR=${TOP_DIR}
2242
2243
2244
2245
2246
2247
2248
2249 for ac_prog in true
2250 do
2251   # Extract the first word of "$ac_prog", so it can be a program name with args.
2252 set dummy $ac_prog; ac_word=$2
2253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2255 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2256   echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258   case $TRUEPRG in
2259   [\\/]* | ?:[\\/]*)
2260   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2261   ;;
2262   *)
2263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH
2265 do
2266   IFS=$as_save_IFS
2267   test -z "$as_dir" && as_dir=.
2268   for ac_exec_ext in '' $ac_executable_extensions; do
2269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272     break 2
2273   fi
2274 done
2275 done
2276 IFS=$as_save_IFS
2277
2278   ;;
2279 esac
2280 fi
2281 TRUEPRG=$ac_cv_path_TRUEPRG
2282 if test -n "$TRUEPRG"; then
2283   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2284 echo "${ECHO_T}$TRUEPRG" >&6; }
2285 else
2286   { echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6; }
2288 fi
2289
2290
2291   test -n "$TRUEPRG" && break
2292 done
2293 test -n "$TRUEPRG" || TRUEPRG=":"
2294
2295 for ac_prog in false
2296 do
2297   # Extract the first word of "$ac_prog", so it can be a program name with args.
2298 set dummy $ac_prog; ac_word=$2
2299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2301 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   case $FALSEPRG in
2305   [\\/]* | ?:[\\/]*)
2306   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2307   ;;
2308   *)
2309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2311 do
2312   IFS=$as_save_IFS
2313   test -z "$as_dir" && as_dir=.
2314   for ac_exec_ext in '' $ac_executable_extensions; do
2315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318     break 2
2319   fi
2320 done
2321 done
2322 IFS=$as_save_IFS
2323
2324   ;;
2325 esac
2326 fi
2327 FALSEPRG=$ac_cv_path_FALSEPRG
2328 if test -n "$FALSEPRG"; then
2329   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2330 echo "${ECHO_T}$FALSEPRG" >&6; }
2331 else
2332   { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2334 fi
2335
2336
2337   test -n "$FALSEPRG" && break
2338 done
2339 test -n "$FALSEPRG" || FALSEPRG=":"
2340
2341
2342
2343 post_host=
2344 if test "x$BACULA" != x; then
2345    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2346 fi
2347 BACULA=${BACULA:-Bacula}
2348 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2349 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2350 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2351 echo "configuring for ${BACULA} $VERSION ($DATE)"
2352
2353
2354 ac_ext=c
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 if test -n "$ac_tool_prefix"; then
2360   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_CC+set}" = set; then
2365   echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367   if test -n "$CC"; then
2368   ac_cv_prog_CC="$CC" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2372 do
2373   IFS=$as_save_IFS
2374   test -z "$as_dir" && as_dir=.
2375   for ac_exec_ext in '' $ac_executable_extensions; do
2376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379     break 2
2380   fi
2381 done
2382 done
2383 IFS=$as_save_IFS
2384
2385 fi
2386 fi
2387 CC=$ac_cv_prog_CC
2388 if test -n "$CC"; then
2389   { echo "$as_me:$LINENO: result: $CC" >&5
2390 echo "${ECHO_T}$CC" >&6; }
2391 else
2392   { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2394 fi
2395
2396
2397 fi
2398 if test -z "$ac_cv_prog_CC"; then
2399   ac_ct_CC=$CC
2400   # Extract the first word of "gcc", so it can be a program name with args.
2401 set dummy gcc; ac_word=$2
2402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   if test -n "$ac_ct_CC"; then
2408   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2412 do
2413   IFS=$as_save_IFS
2414   test -z "$as_dir" && as_dir=.
2415   for ac_exec_ext in '' $ac_executable_extensions; do
2416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2417     ac_cv_prog_ac_ct_CC="gcc"
2418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419     break 2
2420   fi
2421 done
2422 done
2423 IFS=$as_save_IFS
2424
2425 fi
2426 fi
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430 echo "${ECHO_T}$ac_ct_CC" >&6; }
2431 else
2432   { echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6; }
2434 fi
2435
2436   if test "x$ac_ct_CC" = x; then
2437     CC=""
2438   else
2439     case $cross_compiling:$ac_tool_warned in
2440 yes:)
2441 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2442 whose name does not start with the host triplet.  If you think this
2443 configuration is useful to you, please write to autoconf@gnu.org." >&5
2444 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet.  If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2447 ac_tool_warned=yes ;;
2448 esac
2449     CC=$ac_ct_CC
2450   fi
2451 else
2452   CC="$ac_cv_prog_CC"
2453 fi
2454
2455 if test -z "$CC"; then
2456           if test -n "$ac_tool_prefix"; then
2457     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}cc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$CC"; then
2465   ac_cv_prog_CC="$CC" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474     ac_cv_prog_CC="${ac_tool_prefix}cc"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480 IFS=$as_save_IFS
2481
2482 fi
2483 fi
2484 CC=$ac_cv_prog_CC
2485 if test -n "$CC"; then
2486   { echo "$as_me:$LINENO: result: $CC" >&5
2487 echo "${ECHO_T}$CC" >&6; }
2488 else
2489   { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2491 fi
2492
2493
2494   fi
2495 fi
2496 if test -z "$CC"; then
2497   # Extract the first word of "cc", so it can be a program name with args.
2498 set dummy cc; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_CC+set}" = set; then
2502   echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504   if test -n "$CC"; then
2505   ac_cv_prog_CC="$CC" # Let the user override the test.
2506 else
2507   ac_prog_rejected=no
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511   IFS=$as_save_IFS
2512   test -z "$as_dir" && as_dir=.
2513   for ac_exec_ext in '' $ac_executable_extensions; do
2514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2516        ac_prog_rejected=yes
2517        continue
2518      fi
2519     ac_cv_prog_CC="cc"
2520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521     break 2
2522   fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 if test $ac_prog_rejected = yes; then
2528   # We found a bogon in the path, so make sure we never use it.
2529   set dummy $ac_cv_prog_CC
2530   shift
2531   if test $# != 0; then
2532     # We chose a different compiler from the bogus one.
2533     # However, it has the same basename, so the bogon will be chosen
2534     # first if we set CC to just the basename; use the full file name.
2535     shift
2536     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2537   fi
2538 fi
2539 fi
2540 fi
2541 CC=$ac_cv_prog_CC
2542 if test -n "$CC"; then
2543   { echo "$as_me:$LINENO: result: $CC" >&5
2544 echo "${ECHO_T}$CC" >&6; }
2545 else
2546   { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2548 fi
2549
2550
2551 fi
2552 if test -z "$CC"; then
2553   if test -n "$ac_tool_prefix"; then
2554   for ac_prog in cl.exe
2555   do
2556     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_CC+set}" = set; then
2561   echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563   if test -n "$CC"; then
2564   ac_cv_prog_CC="$CC" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569   IFS=$as_save_IFS
2570   test -z "$as_dir" && as_dir=.
2571   for ac_exec_ext in '' $ac_executable_extensions; do
2572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575     break 2
2576   fi
2577 done
2578 done
2579 IFS=$as_save_IFS
2580
2581 fi
2582 fi
2583 CC=$ac_cv_prog_CC
2584 if test -n "$CC"; then
2585   { echo "$as_me:$LINENO: result: $CC" >&5
2586 echo "${ECHO_T}$CC" >&6; }
2587 else
2588   { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2590 fi
2591
2592
2593     test -n "$CC" && break
2594   done
2595 fi
2596 if test -z "$CC"; then
2597   ac_ct_CC=$CC
2598   for ac_prog in cl.exe
2599 do
2600   # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   if test -n "$ac_ct_CC"; then
2608   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615   for ac_exec_ext in '' $ac_executable_extensions; do
2616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617     ac_cv_prog_ac_ct_CC="$ac_prog"
2618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619     break 2
2620   fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2628 if test -n "$ac_ct_CC"; then
2629   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2630 echo "${ECHO_T}$ac_ct_CC" >&6; }
2631 else
2632   { echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6; }
2634 fi
2635
2636
2637   test -n "$ac_ct_CC" && break
2638 done
2639
2640   if test "x$ac_ct_CC" = x; then
2641     CC=""
2642   else
2643     case $cross_compiling:$ac_tool_warned in
2644 yes:)
2645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2646 whose name does not start with the host triplet.  If you think this
2647 configuration is useful to you, please write to autoconf@gnu.org." >&5
2648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet.  If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2651 ac_tool_warned=yes ;;
2652 esac
2653     CC=$ac_ct_CC
2654   fi
2655 fi
2656
2657 fi
2658
2659
2660 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2661 See \`config.log' for more details." >&5
2662 echo "$as_me: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&2;}
2664    { (exit 1); exit 1; }; }
2665
2666 # Provide some information about the compiler.
2667 echo "$as_me:$LINENO: checking for C compiler version" >&5
2668 ac_compiler=`set X $ac_compile; echo $2`
2669 { (ac_try="$ac_compiler --version >&5"
2670 case "(($ac_try" in
2671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672   *) ac_try_echo=$ac_try;;
2673 esac
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675   (eval "$ac_compiler --version >&5") 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }
2679 { (ac_try="$ac_compiler -v >&5"
2680 case "(($ac_try" in
2681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682   *) ac_try_echo=$ac_try;;
2683 esac
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685   (eval "$ac_compiler -v >&5") 2>&5
2686   ac_status=$?
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); }
2689 { (ac_try="$ac_compiler -V >&5"
2690 case "(($ac_try" in
2691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692   *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695   (eval "$ac_compiler -V >&5") 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }
2699
2700 cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706
2707 int
2708 main ()
2709 {
2710
2711   ;
2712   return 0;
2713 }
2714 _ACEOF
2715 ac_clean_files_save=$ac_clean_files
2716 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2717 # Try to create an executable without -o first, disregard a.out.
2718 # It will help us diagnose broken compilers, and finding out an intuition
2719 # of exeext.
2720 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2721 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2722 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2723 #
2724 # List of possible output files, starting from the most likely.
2725 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2726 # only as a last resort.  b.out is created by i960 compilers.
2727 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2728 #
2729 # The IRIX 6 linker writes into existing files which may not be
2730 # executable, retaining their permissions.  Remove them first so a
2731 # subsequent execution test works.
2732 ac_rmfiles=
2733 for ac_file in $ac_files
2734 do
2735   case $ac_file in
2736     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2737     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2738   esac
2739 done
2740 rm -f $ac_rmfiles
2741
2742 if { (ac_try="$ac_link_default"
2743 case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748   (eval "$ac_link_default") 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; then
2752   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2753 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2754 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2755 # so that the user can short-circuit this test for compilers unknown to
2756 # Autoconf.
2757 for ac_file in $ac_files ''
2758 do
2759   test -f "$ac_file" || continue
2760   case $ac_file in
2761     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2762         ;;
2763     [ab].out )
2764         # We found the default executable, but exeext='' is most
2765         # certainly right.
2766         break;;
2767     *.* )
2768         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2769         then :; else
2770            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2771         fi
2772         # We set ac_cv_exeext here because the later test for it is not
2773         # safe: cross compilers may not add the suffix if given an `-o'
2774         # argument, so we may need to know it at that point already.
2775         # Even if this section looks crufty: it has the advantage of
2776         # actually working.
2777         break;;
2778     * )
2779         break;;
2780   esac
2781 done
2782 test "$ac_cv_exeext" = no && ac_cv_exeext=
2783
2784 else
2785   ac_file=''
2786 fi
2787
2788 { echo "$as_me:$LINENO: result: $ac_file" >&5
2789 echo "${ECHO_T}$ac_file" >&6; }
2790 if test -z "$ac_file"; then
2791   echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2793
2794 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2795 See \`config.log' for more details." >&5
2796 echo "$as_me: error: C compiler cannot create executables
2797 See \`config.log' for more details." >&2;}
2798    { (exit 77); exit 77; }; }
2799 fi
2800
2801 ac_exeext=$ac_cv_exeext
2802
2803 # Check that the compiler produces executables we can run.  If not, either
2804 # the compiler is broken, or we cross compile.
2805 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2806 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2807 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2808 # If not cross compiling, check that we can run a simple program.
2809 if test "$cross_compiling" != yes; then
2810   if { ac_try='./$ac_file'
2811   { (case "(($ac_try" in
2812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813   *) ac_try_echo=$ac_try;;
2814 esac
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816   (eval "$ac_try") 2>&5
2817   ac_status=$?
2818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819   (exit $ac_status); }; }; then
2820     cross_compiling=no
2821   else
2822     if test "$cross_compiling" = maybe; then
2823         cross_compiling=yes
2824     else
2825         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2826 If you meant to cross compile, use \`--host'.
2827 See \`config.log' for more details." >&5
2828 echo "$as_me: error: cannot run C compiled programs.
2829 If you meant to cross compile, use \`--host'.
2830 See \`config.log' for more details." >&2;}
2831    { (exit 1); exit 1; }; }
2832     fi
2833   fi
2834 fi
2835 { echo "$as_me:$LINENO: result: yes" >&5
2836 echo "${ECHO_T}yes" >&6; }
2837
2838 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2839 ac_clean_files=$ac_clean_files_save
2840 # Check that the compiler produces executables we can run.  If not, either
2841 # the compiler is broken, or we cross compile.
2842 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2843 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2844 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2845 echo "${ECHO_T}$cross_compiling" >&6; }
2846
2847 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2848 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2849 if { (ac_try="$ac_link"
2850 case "(($ac_try" in
2851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852   *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855   (eval "$ac_link") 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; then
2859   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2860 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2861 # work properly (i.e., refer to `conftest.exe'), while it won't with
2862 # `rm'.
2863 for ac_file in conftest.exe conftest conftest.*; do
2864   test -f "$ac_file" || continue
2865   case $ac_file in
2866     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2867     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2868           break;;
2869     * ) break;;
2870   esac
2871 done
2872 else
2873   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2874 See \`config.log' for more details." >&5
2875 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2876 See \`config.log' for more details." >&2;}
2877    { (exit 1); exit 1; }; }
2878 fi
2879
2880 rm -f conftest$ac_cv_exeext
2881 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2882 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2883
2884 rm -f conftest.$ac_ext
2885 EXEEXT=$ac_cv_exeext
2886 ac_exeext=$EXEEXT
2887 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2888 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2889 if test "${ac_cv_objext+set}" = set; then
2890   echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892   cat >conftest.$ac_ext <<_ACEOF
2893 /* confdefs.h.  */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h.  */
2898
2899 int
2900 main ()
2901 {
2902
2903   ;
2904   return 0;
2905 }
2906 _ACEOF
2907 rm -f conftest.o conftest.obj
2908 if { (ac_try="$ac_compile"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914   (eval "$ac_compile") 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }; then
2918   for ac_file in conftest.o conftest.obj conftest.*; do
2919   test -f "$ac_file" || continue;
2920   case $ac_file in
2921     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2922     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2923        break;;
2924   esac
2925 done
2926 else
2927   echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2929
2930 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2931 See \`config.log' for more details." >&5
2932 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2933 See \`config.log' for more details." >&2;}
2934    { (exit 1); exit 1; }; }
2935 fi
2936
2937 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2938 fi
2939 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2940 echo "${ECHO_T}$ac_cv_objext" >&6; }
2941 OBJEXT=$ac_cv_objext
2942 ac_objext=$OBJEXT
2943 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2944 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2945 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2946   echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948   cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h.  */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h.  */
2954
2955 int
2956 main ()
2957 {
2958 #ifndef __GNUC__
2959        choke me
2960 #endif
2961
2962   ;
2963   return 0;
2964 }
2965 _ACEOF
2966 rm -f conftest.$ac_objext
2967 if { (ac_try="$ac_compile"
2968 case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973   (eval "$ac_compile") 2>conftest.er1
2974   ac_status=$?
2975   grep -v '^ *+' conftest.er1 >conftest.err
2976   rm -f conftest.er1
2977   cat conftest.err >&5
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); } && {
2980          test -z "$ac_c_werror_flag" ||
2981          test ! -s conftest.err
2982        } && test -s conftest.$ac_objext; then
2983   ac_compiler_gnu=yes
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988         ac_compiler_gnu=no
2989 fi
2990
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2993
2994 fi
2995 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2996 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2997 GCC=`test $ac_compiler_gnu = yes && echo yes`
2998 ac_test_CFLAGS=${CFLAGS+set}
2999 ac_save_CFLAGS=$CFLAGS
3000 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3001 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_cc_g+set}" = set; then
3003   echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005   ac_save_c_werror_flag=$ac_c_werror_flag
3006    ac_c_werror_flag=yes
3007    ac_cv_prog_cc_g=no
3008    CFLAGS="-g"
3009    cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015
3016 int
3017 main ()
3018 {
3019
3020   ;
3021   return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3026 case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_compile") 2>conftest.er1
3032   ac_status=$?
3033   grep -v '^ *+' conftest.er1 >conftest.err
3034   rm -f conftest.er1
3035   cat conftest.err >&5
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); } && {
3038          test -z "$ac_c_werror_flag" ||
3039          test ! -s conftest.err
3040        } && test -s conftest.$ac_objext; then
3041   ac_cv_prog_cc_g=yes
3042 else
3043   echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046         CFLAGS=""
3047       cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053
3054 int
3055 main ()
3056 {
3057
3058   ;
3059   return 0;
3060 }
3061 _ACEOF
3062 rm -f conftest.$ac_objext
3063 if { (ac_try="$ac_compile"
3064 case "(($ac_try" in
3065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066   *) ac_try_echo=$ac_try;;
3067 esac
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069   (eval "$ac_compile") 2>conftest.er1
3070   ac_status=$?
3071   grep -v '^ *+' conftest.er1 >conftest.err
3072   rm -f conftest.er1
3073   cat conftest.err >&5
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); } && {
3076          test -z "$ac_c_werror_flag" ||
3077          test ! -s conftest.err
3078        } && test -s conftest.$ac_objext; then
3079   :
3080 else
3081   echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084         ac_c_werror_flag=$ac_save_c_werror_flag
3085          CFLAGS="-g"
3086          cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h.  */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h.  */
3092
3093 int
3094 main ()
3095 {
3096
3097   ;
3098   return 0;
3099 }
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3103 case "(($ac_try" in
3104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105   *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108   (eval "$ac_compile") 2>conftest.er1
3109   ac_status=$?
3110   grep -v '^ *+' conftest.er1 >conftest.err
3111   rm -f conftest.er1
3112   cat conftest.err >&5
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); } && {
3115          test -z "$ac_c_werror_flag" ||
3116          test ! -s conftest.err
3117        } && test -s conftest.$ac_objext; then
3118   ac_cv_prog_cc_g=yes
3119 else
3120   echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3122
3123
3124 fi
3125
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 fi
3128
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130 fi
3131
3132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133    ac_c_werror_flag=$ac_save_c_werror_flag
3134 fi
3135 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3136 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3137 if test "$ac_test_CFLAGS" = set; then
3138   CFLAGS=$ac_save_CFLAGS
3139 elif test $ac_cv_prog_cc_g = yes; then
3140   if test "$GCC" = yes; then
3141     CFLAGS="-g -O2"
3142   else
3143     CFLAGS="-g"
3144   fi
3145 else
3146   if test "$GCC" = yes; then
3147     CFLAGS="-O2"
3148   else
3149     CFLAGS=
3150   fi
3151 fi
3152 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3153 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3154 if test "${ac_cv_prog_cc_c89+set}" = set; then
3155   echo $ECHO_N "(cached) $ECHO_C" >&6
3156 else
3157   ac_cv_prog_cc_c89=no
3158 ac_save_CC=$CC
3159 cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165 #include <stdarg.h>
3166 #include <stdio.h>
3167 #include <sys/types.h>
3168 #include <sys/stat.h>
3169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3170 struct buf { int x; };
3171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3172 static char *e (p, i)
3173      char **p;
3174      int i;
3175 {
3176   return p[i];
3177 }
3178 static char *f (char * (*g) (char **, int), char **p, ...)
3179 {
3180   char *s;
3181   va_list v;
3182   va_start (v,p);
3183   s = g (p, va_arg (v,int));
3184   va_end (v);
3185   return s;
3186 }
3187
3188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3189    function prototypes and stuff, but not '\xHH' hex character constants.
3190    These don't provoke an error unfortunately, instead are silently treated
3191    as 'x'.  The following induces an error, until -std is added to get
3192    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3193    array size at least.  It's necessary to write '\x00'==0 to get something
3194    that's true only with -std.  */
3195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3196
3197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3198    inside strings and character constants.  */
3199 #define FOO(x) 'x'
3200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3201
3202 int test (int i, double x);
3203 struct s1 {int (*f) (int a);};
3204 struct s2 {int (*f) (double a);};
3205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3206 int argc;
3207 char **argv;
3208 int
3209 main ()
3210 {
3211 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3212   ;
3213   return 0;
3214 }
3215 _ACEOF
3216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3217         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3218 do
3219   CC="$ac_save_CC $ac_arg"
3220   rm -f conftest.$ac_objext
3221 if { (ac_try="$ac_compile"
3222 case "(($ac_try" in
3223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224   *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227   (eval "$ac_compile") 2>conftest.er1
3228   ac_status=$?
3229   grep -v '^ *+' conftest.er1 >conftest.err
3230   rm -f conftest.er1
3231   cat conftest.err >&5
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); } && {
3234          test -z "$ac_c_werror_flag" ||
3235          test ! -s conftest.err
3236        } && test -s conftest.$ac_objext; then
3237   ac_cv_prog_cc_c89=$ac_arg
3238 else
3239   echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242
3243 fi
3244
3245 rm -f core conftest.err conftest.$ac_objext
3246   test "x$ac_cv_prog_cc_c89" != "xno" && break
3247 done
3248 rm -f conftest.$ac_ext
3249 CC=$ac_save_CC
3250
3251 fi
3252 # AC_CACHE_VAL
3253 case "x$ac_cv_prog_cc_c89" in
3254   x)
3255     { echo "$as_me:$LINENO: result: none needed" >&5
3256 echo "${ECHO_T}none needed" >&6; } ;;
3257   xno)
3258     { echo "$as_me:$LINENO: result: unsupported" >&5
3259 echo "${ECHO_T}unsupported" >&6; } ;;
3260   *)
3261     CC="$CC $ac_cv_prog_cc_c89"
3262     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3263 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3264 esac
3265
3266
3267 ac_ext=c
3268 ac_cpp='$CPP $CPPFLAGS'
3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272
3273 ac_ext=cpp
3274 ac_cpp='$CXXCPP $CPPFLAGS'
3275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3278 if test -z "$CXX"; then
3279   if test -n "$CCC"; then
3280     CXX=$CCC
3281   else
3282     if test -n "$ac_tool_prefix"; then
3283   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3284   do
3285     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3289 if test "${ac_cv_prog_CXX+set}" = set; then
3290   echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292   if test -n "$CXX"; then
3293   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298   IFS=$as_save_IFS
3299   test -z "$as_dir" && as_dir=.
3300   for ac_exec_ext in '' $ac_executable_extensions; do
3301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304     break 2
3305   fi
3306 done
3307 done
3308 IFS=$as_save_IFS
3309
3310 fi
3311 fi
3312 CXX=$ac_cv_prog_CXX
3313 if test -n "$CXX"; then
3314   { echo "$as_me:$LINENO: result: $CXX" >&5
3315 echo "${ECHO_T}$CXX" >&6; }
3316 else
3317   { echo "$as_me:$LINENO: result: no" >&5
3318 echo "${ECHO_T}no" >&6; }
3319 fi
3320
3321
3322     test -n "$CXX" && break
3323   done
3324 fi
3325 if test -z "$CXX"; then
3326   ac_ct_CXX=$CXX
3327   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3328 do
3329   # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy $ac_prog; ac_word=$2
3331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3333 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3334   echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336   if test -n "$ac_ct_CXX"; then
3337   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342   IFS=$as_save_IFS
3343   test -z "$as_dir" && as_dir=.
3344   for ac_exec_ext in '' $ac_executable_extensions; do
3345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346     ac_cv_prog_ac_ct_CXX="$ac_prog"
3347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348     break 2
3349   fi
3350 done
3351 done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3357 if test -n "$ac_ct_CXX"; then
3358   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3359 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3360 else
3361   { echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6; }
3363 fi
3364
3365
3366   test -n "$ac_ct_CXX" && break
3367 done
3368
3369   if test "x$ac_ct_CXX" = x; then
3370     CXX="g++"
3371   else
3372     case $cross_compiling:$ac_tool_warned in
3373 yes:)
3374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3375 whose name does not start with the host triplet.  If you think this
3376 configuration is useful to you, please write to autoconf@gnu.org." >&5
3377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3378 whose name does not start with the host triplet.  If you think this
3379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3380 ac_tool_warned=yes ;;
3381 esac
3382     CXX=$ac_ct_CXX
3383   fi
3384 fi
3385
3386   fi
3387 fi
3388 # Provide some information about the compiler.
3389 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3390 ac_compiler=`set X $ac_compile; echo $2`
3391 { (ac_try="$ac_compiler --version >&5"
3392 case "(($ac_try" in
3393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394   *) ac_try_echo=$ac_try;;
3395 esac
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397   (eval "$ac_compiler --version >&5") 2>&5
3398   ac_status=$?
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); }
3401 { (ac_try="$ac_compiler -v >&5"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407   (eval "$ac_compiler -v >&5") 2>&5
3408   ac_status=$?
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); }
3411 { (ac_try="$ac_compiler -V >&5"
3412 case "(($ac_try" in
3413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414   *) ac_try_echo=$ac_try;;
3415 esac
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417   (eval "$ac_compiler -V >&5") 2>&5
3418   ac_status=$?
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); }
3421
3422 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3423 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3424 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h.  */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h.  */
3433
3434 int
3435 main ()
3436 {
3437 #ifndef __GNUC__
3438        choke me
3439 #endif
3440
3441   ;
3442   return 0;
3443 }
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452   (eval "$ac_compile") 2>conftest.er1
3453   ac_status=$?
3454   grep -v '^ *+' conftest.er1 >conftest.err
3455   rm -f conftest.er1
3456   cat conftest.err >&5
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); } && {
3459          test -z "$ac_cxx_werror_flag" ||
3460          test ! -s conftest.err
3461        } && test -s conftest.$ac_objext; then
3462   ac_compiler_gnu=yes
3463 else
3464   echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467         ac_compiler_gnu=no
3468 fi
3469
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3472
3473 fi
3474 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3475 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3476 GXX=`test $ac_compiler_gnu = yes && echo yes`
3477 ac_test_CXXFLAGS=${CXXFLAGS+set}
3478 ac_save_CXXFLAGS=$CXXFLAGS
3479 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3480 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3481 if test "${ac_cv_prog_cxx_g+set}" = set; then
3482   echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
3484   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3485    ac_cxx_werror_flag=yes
3486    ac_cv_prog_cxx_g=no
3487    CXXFLAGS="-g"
3488    cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h.  */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h.  */
3494
3495 int
3496 main ()
3497 {
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3505 case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510   (eval "$ac_compile") 2>conftest.er1
3511   ac_status=$?
3512   grep -v '^ *+' conftest.er1 >conftest.err
3513   rm -f conftest.er1
3514   cat conftest.err >&5
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); } && {
3517          test -z "$ac_cxx_werror_flag" ||
3518          test ! -s conftest.err
3519        } && test -s conftest.$ac_objext; then
3520   ac_cv_prog_cxx_g=yes
3521 else
3522   echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525         CXXFLAGS=""
3526       cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h.  */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h.  */
3532
3533 int
3534 main ()
3535 {
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 rm -f conftest.$ac_objext
3542 if { (ac_try="$ac_compile"
3543 case "(($ac_try" in
3544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545   *) ac_try_echo=$ac_try;;
3546 esac
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548   (eval "$ac_compile") 2>conftest.er1
3549   ac_status=$?
3550   grep -v '^ *+' conftest.er1 >conftest.err
3551   rm -f conftest.er1
3552   cat conftest.err >&5
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); } && {
3555          test -z "$ac_cxx_werror_flag" ||
3556          test ! -s conftest.err
3557        } && test -s conftest.$ac_objext; then
3558   :
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3564          CXXFLAGS="-g"
3565          cat >conftest.$ac_ext <<_ACEOF
3566 /* confdefs.h.  */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h.  */
3571
3572 int
3573 main ()
3574 {
3575
3576   ;
3577   return 0;
3578 }
3579 _ACEOF
3580 rm -f conftest.$ac_objext
3581 if { (ac_try="$ac_compile"
3582 case "(($ac_try" in
3583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584   *) ac_try_echo=$ac_try;;
3585 esac
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587   (eval "$ac_compile") 2>conftest.er1
3588   ac_status=$?
3589   grep -v '^ *+' conftest.er1 >conftest.err
3590   rm -f conftest.er1
3591   cat conftest.err >&5
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); } && {
3594          test -z "$ac_cxx_werror_flag" ||
3595          test ! -s conftest.err
3596        } && test -s conftest.$ac_objext; then
3597   ac_cv_prog_cxx_g=yes
3598 else
3599   echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3601
3602
3603 fi
3604
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 fi
3607
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 fi
3610
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3613 fi
3614 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3615 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3616 if test "$ac_test_CXXFLAGS" = set; then
3617   CXXFLAGS=$ac_save_CXXFLAGS
3618 elif test $ac_cv_prog_cxx_g = yes; then
3619   if test "$GXX" = yes; then
3620     CXXFLAGS="-g -O2"
3621   else
3622     CXXFLAGS="-g"
3623   fi
3624 else
3625   if test "$GXX" = yes; then
3626     CXXFLAGS="-O2"
3627   else
3628     CXXFLAGS=
3629   fi
3630 fi
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636
3637 if test "x$CC" != xcc; then
3638   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3639 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3640 else
3641   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3642 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3643 fi
3644 set dummy $CC; ac_cc=`echo $2 |
3645                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3646 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3647   echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649   cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h.  */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h.  */
3655
3656 int
3657 main ()
3658 {
3659
3660   ;
3661   return 0;
3662 }
3663 _ACEOF
3664 # Make sure it works both with $CC and with simple cc.
3665 # We do the test twice because some compilers refuse to overwrite an
3666 # existing .o file with -o, though they will create one.
3667 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3668 rm -f conftest2.*
3669 if { (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); } &&
3678    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680   *) ac_try_echo=$ac_try;;
3681 esac
3682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683   (eval "$ac_try") 2>&5
3684   ac_status=$?
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); };
3687 then
3688   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3689   if test "x$CC" != xcc; then
3690     # Test first that cc exists at all.
3691     if { ac_try='cc -c conftest.$ac_ext >&5'
3692   { (case "(($ac_try" in
3693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694   *) ac_try_echo=$ac_try;;
3695 esac
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697   (eval "$ac_try") 2>&5
3698   ac_status=$?
3699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700   (exit $ac_status); }; }; then
3701       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3702       rm -f conftest2.*
3703       if { (case "(($ac_try" in
3704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705   *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708   (eval "$ac_try") 2>&5
3709   ac_status=$?
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); } &&
3712          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714   *) ac_try_echo=$ac_try;;
3715 esac
3716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717   (eval "$ac_try") 2>&5
3718   ac_status=$?
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); };
3721       then
3722         # cc works too.
3723         :
3724       else
3725         # cc exists but doesn't like -o.
3726         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3727       fi
3728     fi
3729   fi
3730 else
3731   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3732 fi
3733 rm -f core conftest*
3734
3735 fi
3736 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3737   { echo "$as_me:$LINENO: result: yes" >&5
3738 echo "${ECHO_T}yes" >&6; }
3739 else
3740   { echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6; }
3742
3743 cat >>confdefs.h <<\_ACEOF
3744 #define NO_MINUS_C_MINUS_O 1
3745 _ACEOF
3746
3747 fi
3748
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3755 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3756 # On Suns, sometimes $CPP names a directory.
3757 if test -n "$CPP" && test -d "$CPP"; then
3758   CPP=
3759 fi
3760 if test -z "$CPP"; then
3761   if test "${ac_cv_prog_CPP+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764       # Double quotes because CPP needs to be expanded
3765     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3766     do
3767       ac_preproc_ok=false
3768 for ac_c_preproc_warn_flag in '' yes
3769 do
3770   # Use a header file that comes with gcc, so configuring glibc
3771   # with a fresh cross-compiler works.
3772   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3773   # <limits.h> exists even on freestanding compilers.
3774   # On the NeXT, cc -E runs the code through the compiler's parser,
3775   # not just through cpp. "Syntax error" is here to catch this case.
3776   cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h.  */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h.  */
3782 #ifdef __STDC__
3783 # include <limits.h>
3784 #else
3785 # include <assert.h>
3786 #endif
3787                      Syntax error
3788 _ACEOF
3789 if { (ac_try="$ac_cpp conftest.$ac_ext"
3790 case "(($ac_try" in
3791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792   *) ac_try_echo=$ac_try;;
3793 esac
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3796   ac_status=$?
3797   grep -v '^ *+' conftest.er1 >conftest.err
3798   rm -f conftest.er1
3799   cat conftest.err >&5
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); } >/dev/null && {
3802          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3803          test ! -s conftest.err
3804        }; then
3805   :
3806 else
3807   echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3809
3810   # Broken: fails on valid input.
3811 continue
3812 fi
3813
3814 rm -f conftest.err conftest.$ac_ext
3815
3816   # OK, works on sane cases.  Now check whether nonexistent headers
3817   # can be detected and how.
3818   cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h.  */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h.  */
3824 #include <ac_nonexistent.h>
3825 _ACEOF
3826 if { (ac_try="$ac_cpp conftest.$ac_ext"
3827 case "(($ac_try" in
3828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829   *) ac_try_echo=$ac_try;;
3830 esac
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3833   ac_status=$?
3834   grep -v '^ *+' conftest.er1 >conftest.err
3835   rm -f conftest.er1
3836   cat conftest.err >&5
3837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); } >/dev/null && {
3839          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3840          test ! -s conftest.err
3841        }; then
3842   # Broken: success on invalid input.
3843 continue
3844 else
3845   echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848   # Passes both tests.
3849 ac_preproc_ok=:
3850 break
3851 fi
3852
3853 rm -f conftest.err conftest.$ac_ext
3854
3855 done
3856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3857 rm -f conftest.err conftest.$ac_ext
3858 if $ac_preproc_ok; then
3859   break
3860 fi
3861
3862     done
3863     ac_cv_prog_CPP=$CPP
3864
3865 fi
3866   CPP=$ac_cv_prog_CPP
3867 else
3868   ac_cv_prog_CPP=$CPP
3869 fi
3870 { echo "$as_me:$LINENO: result: $CPP" >&5
3871 echo "${ECHO_T}$CPP" >&6; }
3872 ac_preproc_ok=false
3873 for ac_c_preproc_warn_flag in '' yes
3874 do
3875   # Use a header file that comes with gcc, so configuring glibc
3876   # with a fresh cross-compiler works.
3877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3878   # <limits.h> exists even on freestanding compilers.
3879   # On the NeXT, cc -E runs the code through the compiler's parser,
3880   # not just through cpp. "Syntax error" is here to catch this case.
3881   cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h.  */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h.  */
3887 #ifdef __STDC__
3888 # include <limits.h>
3889 #else
3890 # include <assert.h>
3891 #endif
3892                      Syntax error
3893 _ACEOF
3894 if { (ac_try="$ac_cpp conftest.$ac_ext"
3895 case "(($ac_try" in
3896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897   *) ac_try_echo=$ac_try;;
3898 esac
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3901   ac_status=$?
3902   grep -v '^ *+' conftest.er1 >conftest.err
3903   rm -f conftest.er1
3904   cat conftest.err >&5
3905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); } >/dev/null && {
3907          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3908          test ! -s conftest.err
3909        }; then
3910   :
3911 else
3912   echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915   # Broken: fails on valid input.
3916 continue
3917 fi
3918
3919 rm -f conftest.err conftest.$ac_ext
3920
3921   # OK, works on sane cases.  Now check whether nonexistent headers
3922   # can be detected and how.
3923   cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h.  */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h.  */
3929 #include <ac_nonexistent.h>
3930 _ACEOF
3931 if { (ac_try="$ac_cpp conftest.$ac_ext"
3932 case "(($ac_try" in
3933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934   *) ac_try_echo=$ac_try;;
3935 esac
3936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3938   ac_status=$?
3939   grep -v '^ *+' conftest.er1 >conftest.err
3940   rm -f conftest.er1
3941   cat conftest.err >&5
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); } >/dev/null && {
3944          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3945          test ! -s conftest.err
3946        }; then
3947   # Broken: success on invalid input.
3948 continue
3949 else
3950   echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3952
3953   # Passes both tests.
3954 ac_preproc_ok=:
3955 break
3956 fi
3957
3958 rm -f conftest.err conftest.$ac_ext
3959
3960 done
3961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3962 rm -f conftest.err conftest.$ac_ext
3963 if $ac_preproc_ok; then
3964   :
3965 else
3966   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3967 See \`config.log' for more details." >&5
3968 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3969 See \`config.log' for more details." >&2;}
3970    { (exit 1); exit 1; }; }
3971 fi
3972
3973 ac_ext=c
3974 ac_cpp='$CPP $CPPFLAGS'
3975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3978
3979
3980 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3981 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3982 if test "${ac_cv_path_GREP+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   # Extract the first word of "grep ggrep" to use in msg output
3986 if test -z "$GREP"; then
3987 set dummy grep ggrep; ac_prog_name=$2
3988 if test "${ac_cv_path_GREP+set}" = set; then
3989   echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991   ac_path_GREP_found=false
3992 # Loop through the user's path and test for each of PROGNAME-LIST
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3995 do
3996   IFS=$as_save_IFS
3997   test -z "$as_dir" && as_dir=.
3998   for ac_prog in grep ggrep; do
3999   for ac_exec_ext in '' $ac_executable_extensions; do
4000     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4001     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4002     # Check for GNU ac_path_GREP and select it if it is found.
4003   # Check for GNU $ac_path_GREP
4004 case `"$ac_path_GREP" --version 2>&1` in
4005 *GNU*)
4006   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4007 *)
4008   ac_count=0
4009   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4010   while :
4011   do
4012     cat "conftest.in" "conftest.in" >"conftest.tmp"
4013     mv "conftest.tmp" "conftest.in"
4014     cp "conftest.in" "conftest.nl"
4015     echo 'GREP' >> "conftest.nl"
4016     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4017     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4018     ac_count=`expr $ac_count + 1`
4019     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4020       # Best one so far, save it but keep looking for a better one
4021       ac_cv_path_GREP="$ac_path_GREP"
4022       ac_path_GREP_max=$ac_count
4023     fi
4024     # 10*(2^10) chars as input seems more than enough
4025     test $ac_count -gt 10 && break
4026   done
4027   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4028 esac
4029
4030
4031     $ac_path_GREP_found && break 3
4032   done
4033 done
4034
4035 done
4036 IFS=$as_save_IFS
4037
4038
4039 fi
4040
4041 GREP="$ac_cv_path_GREP"
4042 if test -z "$GREP"; then
4043   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4044 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4045    { (exit 1); exit 1; }; }
4046 fi
4047
4048 else
4049   ac_cv_path_GREP=$GREP
4050 fi
4051
4052
4053 fi
4054 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4055 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4056  GREP="$ac_cv_path_GREP"
4057
4058
4059 { echo "$as_me:$LINENO: checking for egrep" >&5
4060 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4061 if test "${ac_cv_path_EGREP+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4065    then ac_cv_path_EGREP="$GREP -E"
4066    else
4067      # Extract the first word of "egrep" to use in msg output
4068 if test -z "$EGREP"; then
4069 set dummy egrep; ac_prog_name=$2
4070 if test "${ac_cv_path_EGREP+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   ac_path_EGREP_found=false
4074 # Loop through the user's path and test for each of PROGNAME-LIST
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4077 do
4078   IFS=$as_save_IFS
4079   test -z "$as_dir" && as_dir=.
4080   for ac_prog in egrep; do
4081   for ac_exec_ext in '' $ac_executable_extensions; do
4082     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4083     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4084     # Check for GNU ac_path_EGREP and select it if it is found.
4085   # Check for GNU $ac_path_EGREP
4086 case `"$ac_path_EGREP" --version 2>&1` in
4087 *GNU*)
4088   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4089 *)
4090   ac_count=0
4091   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4092   while :
4093   do
4094     cat "conftest.in" "conftest.in" >"conftest.tmp"
4095     mv "conftest.tmp" "conftest.in"
4096     cp "conftest.in" "conftest.nl"
4097     echo 'EGREP' >> "conftest.nl"
4098     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4099     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4100     ac_count=`expr $ac_count + 1`
4101     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4102       # Best one so far, save it but keep looking for a better one
4103       ac_cv_path_EGREP="$ac_path_EGREP"
4104       ac_path_EGREP_max=$ac_count
4105     fi
4106     # 10*(2^10) chars as input seems more than enough
4107     test $ac_count -gt 10 && break
4108   done
4109   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4110 esac
4111
4112
4113     $ac_path_EGREP_found && break 3
4114   done
4115 done
4116
4117 done
4118 IFS=$as_save_IFS
4119
4120
4121 fi
4122
4123 EGREP="$ac_cv_path_EGREP"
4124 if test -z "$EGREP"; then
4125   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4126 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4127    { (exit 1); exit 1; }; }
4128 fi
4129
4130 else
4131   ac_cv_path_EGREP=$EGREP
4132 fi
4133
4134
4135    fi
4136 fi
4137 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4138 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4139  EGREP="$ac_cv_path_EGREP"
4140
4141
4142 if test $ac_cv_c_compiler_gnu = yes; then
4143     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4144 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4145 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148     ac_pattern="Autoconf.*'x'"
4149   cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h.  */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h.  */
4155 #include <sgtty.h>
4156 Autoconf TIOCGETP
4157 _ACEOF
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4160   ac_cv_prog_gcc_traditional=yes
4161 else
4162   ac_cv_prog_gcc_traditional=no
4163 fi
4164 rm -f conftest*
4165
4166
4167   if test $ac_cv_prog_gcc_traditional = no; then
4168     cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h.  */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h.  */
4174 #include <termio.h>
4175 Autoconf TCGETA
4176 _ACEOF
4177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4178   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4179   ac_cv_prog_gcc_traditional=yes
4180 fi
4181 rm -f conftest*
4182
4183   fi
4184 fi
4185 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4186 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4187   if test $ac_cv_prog_gcc_traditional = yes; then
4188     CC="$CC -traditional"
4189   fi
4190 fi
4191
4192 BASECC=`basename $CC`
4193 have_gcc=no
4194 if test "x$BASECC" = xgcc; then
4195    cat >>confdefs.h <<\_ACEOF
4196 #define HAVE_GCC 1
4197 _ACEOF
4198
4199    have_gcc=yes
4200 fi
4201 # Extract the first word of "$CXX", so it can be a program name with args.
4202 set dummy $CXX; ac_word=$2
4203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4205 if test "${ac_cv_path_CXX+set}" = set; then
4206   echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208   case $CXX in
4209   [\\/]* | ?:[\\/]*)
4210   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4211   ;;
4212   *)
4213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218   for ac_exec_ext in '' $ac_executable_extensions; do
4219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222     break 2
4223   fi
4224 done
4225 done
4226 IFS=$as_save_IFS
4227
4228   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4229   ;;
4230 esac
4231 fi
4232 CXX=$ac_cv_path_CXX
4233 if test -n "$CXX"; then
4234   { echo "$as_me:$LINENO: result: $CXX" >&5
4235 echo "${ECHO_T}$CXX" >&6; }
4236 else
4237   { echo "$as_me:$LINENO: result: no" >&5
4238 echo "${ECHO_T}no" >&6; }
4239 fi
4240
4241
4242 if test ! -e $CXX; then
4243    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4244 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4245    { (exit 1); exit 1; }; }
4246 fi
4247
4248 # Find a good install program.  We prefer a C program (faster),
4249 # so one script is as good as another.  But avoid the broken or
4250 # incompatible versions:
4251 # SysV /etc/install, /usr/sbin/install
4252 # SunOS /usr/etc/install
4253 # IRIX /sbin/install
4254 # AIX /bin/install
4255 # AmigaOS /C/install, which installs bootblocks on floppy discs
4256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4259 # OS/2's system install, which has a completely different semantic
4260 # ./install, which can be erroneously created by make from ./install.sh.
4261 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4262 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4263 if test -z "$INSTALL"; then
4264 if test "${ac_cv_path_install+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270   IFS=$as_save_IFS
4271   test -z "$as_dir" && as_dir=.
4272   # Account for people who put trailing slashes in PATH elements.
4273 case $as_dir/ in
4274   ./ | .// | /cC/* | \
4275   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4276   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4277   /usr/ucb/* ) ;;
4278   *)
4279     # OSF1 and SCO ODT 3.0 have their own names for install.
4280     # Don't use installbsd from OSF since it installs stuff as root
4281     # by default.
4282     for ac_prog in ginstall scoinst install; do
4283       for ac_exec_ext in '' $ac_executable_extensions; do
4284         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4285           if test $ac_prog = install &&
4286             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4287             # AIX install.  It has an incompatible calling convention.
4288             :
4289           elif test $ac_prog = install &&
4290             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4291             # program-specific install script used by HP pwplus--don't use.
4292             :
4293           else
4294             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4295             break 3
4296           fi
4297         fi
4298       done
4299     done
4300     ;;
4301 esac
4302 done
4303 IFS=$as_save_IFS
4304
4305
4306 fi
4307   if test "${ac_cv_path_install+set}" = set; then
4308     INSTALL=$ac_cv_path_install
4309   else
4310     # As a last resort, use the slow shell script.  Don't cache a
4311     # value for INSTALL within a source directory, because that will
4312     # break other packages using the cache if that directory is
4313     # removed, or if the value is a relative name.
4314     INSTALL=$ac_install_sh
4315   fi
4316 fi
4317 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4318 echo "${ECHO_T}$INSTALL" >&6; }
4319
4320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4321 # It thinks the first close brace ends the variable substitution.
4322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4323
4324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4325
4326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4327
4328 # Extract the first word of "mv", so it can be a program name with args.
4329 set dummy mv; ac_word=$2
4330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4332 if test "${ac_cv_path_MV+set}" = set; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335   case $MV in
4336   [\\/]* | ?:[\\/]*)
4337   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4338   ;;
4339   *)
4340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343   IFS=$as_save_IFS
4344   test -z "$as_dir" && as_dir=.
4345   for ac_exec_ext in '' $ac_executable_extensions; do
4346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349     break 2
4350   fi
4351 done
4352 done
4353 IFS=$as_save_IFS
4354
4355   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4356   ;;
4357 esac
4358 fi
4359 MV=$ac_cv_path_MV
4360 if test -n "$MV"; then
4361   { echo "$as_me:$LINENO: result: $MV" >&5
4362 echo "${ECHO_T}$MV" >&6; }
4363 else
4364   { echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6; }
4366 fi
4367
4368
4369 # Extract the first word of "rm", so it can be a program name with args.
4370 set dummy rm; ac_word=$2
4371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373 if test "${ac_cv_path_REMOVE+set}" = set; then
4374   echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376   case $REMOVE in
4377   [\\/]* | ?:[\\/]*)
4378   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4379   ;;
4380   *)
4381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4383 do
4384   IFS=$as_save_IFS
4385   test -z "$as_dir" && as_dir=.
4386   for ac_exec_ext in '' $ac_executable_extensions; do
4387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390     break 2
4391   fi
4392 done
4393 done
4394 IFS=$as_save_IFS
4395
4396   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4397   ;;
4398 esac
4399 fi
4400 REMOVE=$ac_cv_path_REMOVE
4401 if test -n "$REMOVE"; then
4402   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4403 echo "${ECHO_T}$REMOVE" >&6; }
4404 else
4405   { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4407 fi
4408
4409
4410 # Extract the first word of "cp", so it can be a program name with args.
4411 set dummy cp; ac_word=$2
4412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4414 if test "${ac_cv_path_CP+set}" = set; then
4415   echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417   case $CP in
4418   [\\/]* | ?:[\\/]*)
4419   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4420   ;;
4421   *)
4422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4424 do
4425   IFS=$as_save_IFS
4426   test -z "$as_dir" && as_dir=.
4427   for ac_exec_ext in '' $ac_executable_extensions; do
4428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431     break 2
4432   fi
4433 done
4434 done
4435 IFS=$as_save_IFS
4436
4437   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4438   ;;
4439 esac
4440 fi
4441 CP=$ac_cv_path_CP
4442 if test -n "$CP"; then
4443   { echo "$as_me:$LINENO: result: $CP" >&5
4444 echo "${ECHO_T}$CP" >&6; }
4445 else
4446   { echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6; }
4448 fi
4449
4450
4451 # Extract the first word of "sed", so it can be a program name with args.
4452 set dummy sed; ac_word=$2
4453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4455 if test "${ac_cv_path_SED+set}" = set; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   case $SED in
4459   [\\/]* | ?:[\\/]*)
4460   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4461   ;;
4462   *)
4463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466   IFS=$as_save_IFS
4467   test -z "$as_dir" && as_dir=.
4468   for ac_exec_ext in '' $ac_executable_extensions; do
4469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472     break 2
4473   fi
4474 done
4475 done
4476 IFS=$as_save_IFS
4477
4478   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4479   ;;
4480 esac
4481 fi
4482 SED=$ac_cv_path_SED
4483 if test -n "$SED"; then
4484   { echo "$as_me:$LINENO: result: $SED" >&5
4485 echo "${ECHO_T}$SED" >&6; }
4486 else
4487   { echo "$as_me:$LINENO: result: no" >&5
4488 echo "${ECHO_T}no" >&6; }
4489 fi
4490
4491
4492 # Extract the first word of "echo", so it can be a program name with args.
4493 set dummy echo; ac_word=$2
4494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4496 if test "${ac_cv_path_ECHO+set}" = set; then
4497   echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499   case $ECHO in
4500   [\\/]* | ?:[\\/]*)
4501   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4502   ;;
4503   *)
4504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4506 do
4507   IFS=$as_save_IFS
4508   test -z "$as_dir" && as_dir=.
4509   for ac_exec_ext in '' $ac_executable_extensions; do
4510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513     break 2
4514   fi
4515 done
4516 done
4517 IFS=$as_save_IFS
4518
4519   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4520   ;;
4521 esac
4522 fi
4523 ECHO=$ac_cv_path_ECHO
4524 if test -n "$ECHO"; then
4525   { echo "$as_me:$LINENO: result: $ECHO" >&5
4526 echo "${ECHO_T}$ECHO" >&6; }
4527 else
4528   { echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6; }
4530 fi
4531
4532
4533 # Extract the first word of "cmp", so it can be a program name with args.
4534 set dummy cmp; ac_word=$2
4535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4537 if test "${ac_cv_path_CMP+set}" = set; then
4538   echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540   case $CMP in
4541   [\\/]* | ?:[\\/]*)
4542   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4543   ;;
4544   *)
4545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548   IFS=$as_save_IFS
4549   test -z "$as_dir" && as_dir=.
4550   for ac_exec_ext in '' $ac_executable_extensions; do
4551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554     break 2
4555   fi
4556 done
4557 done
4558 IFS=$as_save_IFS
4559
4560   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4561   ;;
4562 esac
4563 fi
4564 CMP=$ac_cv_path_CMP
4565 if test -n "$CMP"; then
4566   { echo "$as_me:$LINENO: result: $CMP" >&5
4567 echo "${ECHO_T}$CMP" >&6; }
4568 else
4569   { echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6; }
4571 fi
4572
4573
4574 # Extract the first word of "tbl", so it can be a program name with args.
4575 set dummy tbl; ac_word=$2
4576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578 if test "${ac_cv_path_TBL+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   case $TBL in
4582   [\\/]* | ?:[\\/]*)
4583   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4584   ;;
4585   *)
4586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589   IFS=$as_save_IFS
4590   test -z "$as_dir" && as_dir=.
4591   for ac_exec_ext in '' $ac_executable_extensions; do
4592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595     break 2
4596   fi
4597 done
4598 done
4599 IFS=$as_save_IFS
4600
4601   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4602   ;;
4603 esac
4604 fi
4605 TBL=$ac_cv_path_TBL
4606 if test -n "$TBL"; then
4607   { echo "$as_me:$LINENO: result: $TBL" >&5
4608 echo "${ECHO_T}$TBL" >&6; }
4609 else
4610   { echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; }
4612 fi
4613
4614
4615 # Extract the first word of "ar", so it can be a program name with args.
4616 set dummy ar; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_path_AR+set}" = set; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622   case $AR in
4623   [\\/]* | ?:[\\/]*)
4624   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4625   ;;
4626   *)
4627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630   IFS=$as_save_IFS
4631   test -z "$as_dir" && as_dir=.
4632   for ac_exec_ext in '' $ac_executable_extensions; do
4633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636     break 2
4637   fi
4638 done
4639 done
4640 IFS=$as_save_IFS
4641
4642   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4643   ;;
4644 esac
4645 fi
4646 AR=$ac_cv_path_AR
4647 if test -n "$AR"; then
4648   { echo "$as_me:$LINENO: result: $AR" >&5
4649 echo "${ECHO_T}$AR" >&6; }
4650 else
4651   { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4653 fi
4654
4655
4656 # Extract the first word of "openssl", so it can be a program name with args.
4657 set dummy openssl; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_path_OPENSSL+set}" = set; then
4661   echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663   case $OPENSSL in
4664   [\\/]* | ?:[\\/]*)
4665   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4666   ;;
4667   *)
4668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673   for ac_exec_ext in '' $ac_executable_extensions; do
4674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677     break 2
4678   fi
4679 done
4680 done
4681 IFS=$as_save_IFS
4682
4683   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4684   ;;
4685 esac
4686 fi
4687 OPENSSL=$ac_cv_path_OPENSSL
4688 if test -n "$OPENSSL"; then
4689   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4690 echo "${ECHO_T}$OPENSSL" >&6; }
4691 else
4692   { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4694 fi
4695
4696
4697 # Extract the first word of "mtx", so it can be a program name with args.
4698 set dummy mtx; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_path_MTX+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   case $MTX in
4705   [\\/]* | ?:[\\/]*)
4706   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4707   ;;
4708   *)
4709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4725   ;;
4726 esac
4727 fi
4728 MTX=$ac_cv_path_MTX
4729 if test -n "$MTX"; then
4730   { echo "$as_me:$LINENO: result: $MTX" >&5
4731 echo "${ECHO_T}$MTX" >&6; }
4732 else
4733   { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4735 fi
4736
4737
4738 # Extract the first word of "dd", so it can be a program name with args.
4739 set dummy dd; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_path_DD+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   case $DD in
4746   [\\/]* | ?:[\\/]*)
4747   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4748   ;;
4749   *)
4750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755   for ac_exec_ext in '' $ac_executable_extensions; do
4756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762 done
4763 IFS=$as_save_IFS
4764
4765   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4766   ;;
4767 esac
4768 fi
4769 DD=$ac_cv_path_DD
4770 if test -n "$DD"; then
4771   { echo "$as_me:$LINENO: result: $DD" >&5
4772 echo "${ECHO_T}$DD" >&6; }
4773 else
4774   { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4776 fi
4777
4778
4779 # Extract the first word of "mkisofs", so it can be a program name with args.
4780 set dummy mkisofs; ac_word=$2
4781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783 if test "${ac_cv_path_MKISOFS+set}" = set; then
4784   echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786   case $MKISOFS in
4787   [\\/]* | ?:[\\/]*)
4788   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4789   ;;
4790   *)
4791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796   for ac_exec_ext in '' $ac_executable_extensions; do
4797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800     break 2
4801   fi
4802 done
4803 done
4804 IFS=$as_save_IFS
4805
4806   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4807   ;;
4808 esac
4809 fi
4810 MKISOFS=$ac_cv_path_MKISOFS
4811 if test -n "$MKISOFS"; then
4812   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4813 echo "${ECHO_T}$MKISOFS" >&6; }
4814 else
4815   { echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6; }
4817 fi
4818
4819
4820 # Extract the first word of "python", so it can be a program name with args.
4821 set dummy python; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_path_PYTHON+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   case $PYTHON in
4828   [\\/]* | ?:[\\/]*)
4829   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4830   ;;
4831   *)
4832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837   for ac_exec_ext in '' $ac_executable_extensions; do
4838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4846
4847   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4848   ;;
4849 esac
4850 fi
4851 PYTHON=$ac_cv_path_PYTHON
4852 if test -n "$PYTHON"; then
4853   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4854 echo "${ECHO_T}$PYTHON" >&6; }
4855 else
4856   { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4858 fi
4859
4860
4861 # Extract the first word of "growisofs", so it can be a program name with args.
4862 set dummy growisofs; ac_word=$2
4863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   case $GROWISOFS in
4869   [\\/]* | ?:[\\/]*)
4870   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4871   ;;
4872   *)
4873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876   IFS=$as_save_IFS
4877   test -z "$as_dir" && as_dir=.
4878   for ac_exec_ext in '' $ac_executable_extensions; do
4879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882     break 2
4883   fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4887
4888   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4889   ;;
4890 esac
4891 fi
4892 GROWISOFS=$ac_cv_path_GROWISOFS
4893 if test -n "$GROWISOFS"; then
4894   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4895 echo "${ECHO_T}$GROWISOFS" >&6; }
4896 else
4897   { echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6; }
4899 fi
4900
4901
4902 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4903 set dummy dvd+rw-mediainfo; ac_word=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   case $DVDRWMEDIAINFO in
4910   [\\/]* | ?:[\\/]*)
4911   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4912   ;;
4913   *)
4914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919   for ac_exec_ext in '' $ac_executable_extensions; do
4920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923     break 2
4924   fi
4925 done
4926 done
4927 IFS=$as_save_IFS
4928
4929   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4930   ;;
4931 esac
4932 fi
4933 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4934 if test -n "$DVDRWMEDIAINFO"; then
4935   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4936 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4937 else
4938   { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4940 fi
4941
4942
4943 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4944 set dummy dvd+rw-format; ac_word=$2
4945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4947 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   case $DVDRWFORMAT in
4951   [\\/]* | ?:[\\/]*)
4952   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4953   ;;
4954   *)
4955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958   IFS=$as_save_IFS
4959   test -z "$as_dir" && as_dir=.
4960   for ac_exec_ext in '' $ac_executable_extensions; do
4961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967 done
4968 IFS=$as_save_IFS
4969
4970   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4971   ;;
4972 esac
4973 fi
4974 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4975 if test -n "$DVDRWFORMAT"; then
4976   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4977 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4978 else
4979   { echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6; }
4981 fi
4982
4983
4984 # Extract the first word of "pkg-config", so it can be a program name with args.
4985 set dummy pkg-config; ac_word=$2
4986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4988 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4989   echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991   case $PKGCONFIG in
4992   [\\/]* | ?:[\\/]*)
4993   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4994   ;;
4995   *)
4996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999   IFS=$as_save_IFS
5000   test -z "$as_dir" && as_dir=.
5001   for ac_exec_ext in '' $ac_executable_extensions; do
5002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5005     break 2
5006   fi
5007 done
5008 done
5009 IFS=$as_save_IFS
5010
5011   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5012   ;;
5013 esac
5014 fi
5015 PKGCONFIG=$ac_cv_path_PKGCONFIG
5016 if test -n "$PKGCONFIG"; then
5017   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5018 echo "${ECHO_T}$PKGCONFIG" >&6; }
5019 else
5020   { echo "$as_me:$LINENO: result: no" >&5
5021 echo "${ECHO_T}no" >&6; }
5022 fi
5023
5024
5025 # Extract the first word of "qmake", so it can be a program name with args.
5026 set dummy qmake; ac_word=$2
5027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5029 if test "${ac_cv_path_QMAKE+set}" = set; then
5030   echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032   case $QMAKE in
5033   [\\/]* | ?:[\\/]*)
5034   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5035   ;;
5036   *)
5037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040   IFS=$as_save_IFS
5041   test -z "$as_dir" && as_dir=.
5042   for ac_exec_ext in '' $ac_executable_extensions; do
5043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046     break 2
5047   fi
5048 done
5049 done
5050 IFS=$as_save_IFS
5051
5052   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5053   ;;
5054 esac
5055 fi
5056 QMAKE=$ac_cv_path_QMAKE
5057 if test -n "$QMAKE"; then
5058   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5059 echo "${ECHO_T}$QMAKE" >&6; }
5060 else
5061   { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5063 fi
5064
5065
5066 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5067 set dummy qmake-qt4; ac_word=$2
5068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5070 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5071   echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073   case $QMAKEQT4 in
5074   [\\/]* | ?:[\\/]*)
5075   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5076   ;;
5077   *)
5078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081   IFS=$as_save_IFS
5082   test -z "$as_dir" && as_dir=.
5083   for ac_exec_ext in '' $ac_executable_extensions; do
5084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087     break 2
5088   fi
5089 done
5090 done
5091 IFS=$as_save_IFS
5092
5093   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5094   ;;
5095 esac
5096 fi
5097 QMAKEQT4=$ac_cv_path_QMAKEQT4
5098 if test -n "$QMAKEQT4"; then
5099   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5100 echo "${ECHO_T}$QMAKEQT4" >&6; }
5101 else
5102   { echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6; }
5104 fi
5105
5106
5107 # Extract the first word of "gmake", so it can be a program name with args.
5108 set dummy gmake; ac_word=$2
5109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5111 if test "${ac_cv_path_GMAKE+set}" = set; then
5112   echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114   case $GMAKE in
5115   [\\/]* | ?:[\\/]*)
5116   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5117   ;;
5118   *)
5119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122   IFS=$as_save_IFS
5123   test -z "$as_dir" && as_dir=.
5124   for ac_exec_ext in '' $ac_executable_extensions; do
5125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5128     break 2
5129   fi
5130 done
5131 done
5132 IFS=$as_save_IFS
5133
5134   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5135   ;;
5136 esac
5137 fi
5138 GMAKE=$ac_cv_path_GMAKE
5139 if test -n "$GMAKE"; then
5140   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5141 echo "${ECHO_T}$GMAKE" >&6; }
5142 else
5143   { echo "$as_me:$LINENO: result: no" >&5
5144 echo "${ECHO_T}no" >&6; }
5145 fi
5146
5147
5148
5149 if test "x$WXCONFIG" = x; then
5150    WXCONFIG=wx-config
5151 fi
5152 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5153 set dummy ${WXCONFIG}; ac_word=$2
5154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5156 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5157   echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159   case $WXCONFIG in
5160   [\\/]* | ?:[\\/]*)
5161   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5162   ;;
5163   *)
5164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167   IFS=$as_save_IFS
5168   test -z "$as_dir" && as_dir=.
5169   for ac_exec_ext in '' $ac_executable_extensions; do
5170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5173     break 2
5174   fi
5175 done
5176 done
5177 IFS=$as_save_IFS
5178
5179   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5180   ;;
5181 esac
5182 fi
5183 WXCONFIG=$ac_cv_path_WXCONFIG
5184 if test -n "$WXCONFIG"; then
5185   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5186 echo "${ECHO_T}$WXCONFIG" >&6; }
5187 else
5188   { echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6; }
5190 fi
5191
5192
5193
5194 # Extract the first word of "cdrecord", so it can be a program name with args.
5195 set dummy cdrecord; ac_word=$2
5196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5198 if test "${ac_cv_path_CDRECORD+set}" = set; then
5199   echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201   case $CDRECORD in
5202   [\\/]* | ?:[\\/]*)
5203   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5204   ;;
5205   *)
5206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209   IFS=$as_save_IFS
5210   test -z "$as_dir" && as_dir=.
5211   for ac_exec_ext in '' $ac_executable_extensions; do
5212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215     break 2
5216   fi
5217 done
5218 done
5219 IFS=$as_save_IFS
5220
5221   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5222   ;;
5223 esac
5224 fi
5225 CDRECORD=$ac_cv_path_CDRECORD
5226 if test -n "$CDRECORD"; then
5227   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5228 echo "${ECHO_T}$CDRECORD" >&6; }
5229 else
5230   { echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6; }
5232 fi
5233
5234
5235 # Extract the first word of "pidof", so it can be a program name with args.
5236 set dummy pidof; ac_word=$2
5237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5239 if test "${ac_cv_path_PIDOF+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   case $PIDOF in
5243   [\\/]* | ?:[\\/]*)
5244   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5245   ;;
5246   *)
5247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5249 do
5250   IFS=$as_save_IFS
5251   test -z "$as_dir" && as_dir=.
5252   for ac_exec_ext in '' $ac_executable_extensions; do
5253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5254     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256     break 2
5257   fi
5258 done
5259 done
5260 IFS=$as_save_IFS
5261
5262   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5263   ;;
5264 esac
5265 fi
5266 PIDOF=$ac_cv_path_PIDOF
5267 if test -n "$PIDOF"; then
5268   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5269 echo "${ECHO_T}$PIDOF" >&6; }
5270 else
5271   { echo "$as_me:$LINENO: result: no" >&5
5272 echo "${ECHO_T}no" >&6; }
5273 fi
5274
5275
5276 for ac_prog in gawk mawk nawk awk
5277 do
5278   # Extract the first word of "$ac_prog", so it can be a program name with args.
5279 set dummy $ac_prog; ac_word=$2
5280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5282 if test "${ac_cv_prog_AWK+set}" = set; then
5283   echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285   if test -n "$AWK"; then
5286   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291   IFS=$as_save_IFS
5292   test -z "$as_dir" && as_dir=.
5293   for ac_exec_ext in '' $ac_executable_extensions; do
5294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295     ac_cv_prog_AWK="$ac_prog"
5296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297     break 2
5298   fi
5299 done
5300 done
5301 IFS=$as_save_IFS
5302
5303 fi
5304 fi
5305 AWK=$ac_cv_prog_AWK
5306 if test -n "$AWK"; then
5307   { echo "$as_me:$LINENO: result: $AWK" >&5
5308 echo "${ECHO_T}$AWK" >&6; }
5309 else
5310   { echo "$as_me:$LINENO: result: no" >&5
5311 echo "${ECHO_T}no" >&6; }
5312 fi
5313
5314
5315   test -n "$AWK" && break
5316 done
5317
5318 # Some AWK programs fail, so test it and warn the user
5319 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5320       { if ((prog == $2) || (("(" prog ")") == $2) ||
5321       (("" prog "") == $2) ||
5322       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5323 else
5324   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5325    The regex engine of $AWK is too broken to be used you
5326    might want to install GNU AWK.
5327    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5328 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5329    The regex engine of $AWK is too broken to be used you
5330    might want to install GNU AWK.
5331    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5332    { (exit 1); exit 1; }; }
5333 fi
5334 THE_AWK=$AWK
5335 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5336 set dummy $THE_AWK; ac_word=$2
5337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5339 if test "${ac_cv_path_AWK+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342   case $AWK in
5343   [\\/]* | ?:[\\/]*)
5344   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5345   ;;
5346   *)
5347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5349 do
5350   IFS=$as_save_IFS
5351   test -z "$as_dir" && as_dir=.
5352   for ac_exec_ext in '' $ac_executable_extensions; do
5353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356     break 2
5357   fi
5358 done
5359 done
5360 IFS=$as_save_IFS
5361
5362   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5363   ;;
5364 esac
5365 fi
5366 AWK=$ac_cv_path_AWK
5367 if test -n "$AWK"; then
5368   { echo "$as_me:$LINENO: result: $AWK" >&5
5369 echo "${ECHO_T}$AWK" >&6; }
5370 else
5371   { echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6; }
5373 fi
5374
5375
5376
5377
5378 test -n "$ARFLAG" || ARFLAGS="cr"
5379
5380
5381 MAKE_SHELL=/bin/sh
5382
5383
5384
5385
5386
5387
5388
5389 # Check whether --enable-libtool was given.
5390 if test "${enable_libtool+set}" = set; then
5391   enableval=$enable_libtool;
5392        if test x$enableval = xno; then
5393           use_libtool=no
5394        fi
5395
5396
5397 fi
5398
5399 case `pwd` in
5400   *\ * | *\     *)
5401     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5402 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5403 esac
5404
5405
5406
5407 macro_version='2.2.6'
5408 macro_revision='1.3012'
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422 ltmain="$ac_aux_dir/ltmain.sh"
5423
5424 # Make sure we can run config.sub.
5425 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5426   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5427 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5428    { (exit 1); exit 1; }; }
5429
5430 { echo "$as_me:$LINENO: checking build system type" >&5
5431 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5432 if test "${ac_cv_build+set}" = set; then
5433   echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435   ac_build_alias=$build_alias
5436 test "x$ac_build_alias" = x &&
5437   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5438 test "x$ac_build_alias" = x &&
5439   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5440 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5441    { (exit 1); exit 1; }; }
5442 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5443   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5444 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5445    { (exit 1); exit 1; }; }
5446
5447 fi
5448 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5449 echo "${ECHO_T}$ac_cv_build" >&6; }
5450 case $ac_cv_build in
5451 *-*-*) ;;
5452 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5453 echo "$as_me: error: invalid value of canonical build" >&2;}
5454    { (exit 1); exit 1; }; };;
5455 esac
5456 build=$ac_cv_build
5457 ac_save_IFS=$IFS; IFS='-'
5458 set x $ac_cv_build
5459 shift
5460 build_cpu=$1
5461 build_vendor=$2
5462 shift; shift
5463 # Remember, the first character of IFS is used to create $*,
5464 # except with old shells:
5465 build_os=$*
5466 IFS=$ac_save_IFS
5467 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5468
5469
5470 { echo "$as_me:$LINENO: checking host system type" >&5
5471 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5472 if test "${ac_cv_host+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   if test "x$host_alias" = x; then
5476   ac_cv_host=$ac_cv_build
5477 else
5478   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5479     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5480 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5481    { (exit 1); exit 1; }; }
5482 fi
5483
5484 fi
5485 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5486 echo "${ECHO_T}$ac_cv_host" >&6; }
5487 case $ac_cv_host in
5488 *-*-*) ;;
5489 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5490 echo "$as_me: error: invalid value of canonical host" >&2;}
5491    { (exit 1); exit 1; }; };;
5492 esac
5493 host=$ac_cv_host
5494 ac_save_IFS=$IFS; IFS='-'
5495 set x $ac_cv_host
5496 shift
5497 host_cpu=$1
5498 host_vendor=$2
5499 shift; shift
5500 # Remember, the first character of IFS is used to create $*,
5501 # except with old shells:
5502 host_os=$*
5503 IFS=$ac_save_IFS
5504 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5505
5506
5507 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5508 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5509 if test "${ac_cv_path_SED+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5513      for ac_i in 1 2 3 4 5 6 7; do
5514        ac_script="$ac_script$as_nl$ac_script"
5515      done
5516      echo "$ac_script" | sed 99q >conftest.sed
5517      $as_unset ac_script || ac_script=
5518      # Extract the first word of "sed gsed" to use in msg output
5519 if test -z "$SED"; then
5520 set dummy sed gsed; ac_prog_name=$2
5521 if test "${ac_cv_path_SED+set}" = set; then
5522   echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524   ac_path_SED_found=false
5525 # Loop through the user's path and test for each of PROGNAME-LIST
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5528 do
5529   IFS=$as_save_IFS
5530   test -z "$as_dir" && as_dir=.
5531   for ac_prog in sed gsed; do
5532   for ac_exec_ext in '' $ac_executable_extensions; do
5533     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5534     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5535     # Check for GNU ac_path_SED and select it if it is found.
5536   # Check for GNU $ac_path_SED
5537 case `"$ac_path_SED" --version 2>&1` in
5538 *GNU*)
5539   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5540 *)
5541   ac_count=0
5542   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5543   while :
5544   do
5545     cat "conftest.in" "conftest.in" >"conftest.tmp"
5546     mv "conftest.tmp" "conftest.in"
5547     cp "conftest.in" "conftest.nl"
5548     echo '' >> "conftest.nl"
5549     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5550     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5551     ac_count=`expr $ac_count + 1`
5552     if test $ac_count -gt ${ac_path_SED_max-0}; then
5553       # Best one so far, save it but keep looking for a better one
5554       ac_cv_path_SED="$ac_path_SED"
5555       ac_path_SED_max=$ac_count
5556     fi
5557     # 10*(2^10) chars as input seems more than enough
5558     test $ac_count -gt 10 && break
5559   done
5560   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5561 esac
5562
5563
5564     $ac_path_SED_found && break 3
5565   done
5566 done
5567
5568 done
5569 IFS=$as_save_IFS
5570
5571
5572 fi
5573
5574 SED="$ac_cv_path_SED"
5575 if test -z "$SED"; then
5576   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5577 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5578    { (exit 1); exit 1; }; }
5579 fi
5580
5581 else
5582   ac_cv_path_SED=$SED
5583 fi
5584
5585 fi
5586 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5587 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5588  SED="$ac_cv_path_SED"
5589   rm -f conftest.sed
5590
5591 test -z "$SED" && SED=sed
5592 Xsed="$SED -e 1s/^X//"
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604 { echo "$as_me:$LINENO: checking for fgrep" >&5
5605 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5606 if test "${ac_cv_path_FGREP+set}" = set; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5610    then ac_cv_path_FGREP="$GREP -F"
5611    else
5612      # Extract the first word of "fgrep" to use in msg output
5613 if test -z "$FGREP"; then
5614 set dummy fgrep; ac_prog_name=$2
5615 if test "${ac_cv_path_FGREP+set}" = set; then
5616   echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618   ac_path_FGREP_found=false
5619 # Loop through the user's path and test for each of PROGNAME-LIST
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5622 do
5623   IFS=$as_save_IFS
5624   test -z "$as_dir" && as_dir=.
5625   for ac_prog in fgrep; do
5626   for ac_exec_ext in '' $ac_executable_extensions; do
5627     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5628     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5629     # Check for GNU ac_path_FGREP and select it if it is found.
5630   # Check for GNU $ac_path_FGREP
5631 case `"$ac_path_FGREP" --version 2>&1` in
5632 *GNU*)
5633   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5634 *)
5635   ac_count=0
5636   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5637   while :
5638   do
5639     cat "conftest.in" "conftest.in" >"conftest.tmp"
5640     mv "conftest.tmp" "conftest.in"
5641     cp "conftest.in" "conftest.nl"
5642     echo 'FGREP' >> "conftest.nl"
5643     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5644     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5645     ac_count=`expr $ac_count + 1`
5646     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5647       # Best one so far, save it but keep looking for a better one
5648       ac_cv_path_FGREP="$ac_path_FGREP"
5649       ac_path_FGREP_max=$ac_count
5650     fi
5651     # 10*(2^10) chars as input seems more than enough
5652     test $ac_count -gt 10 && break
5653   done
5654   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5655 esac
5656
5657
5658     $ac_path_FGREP_found && break 3
5659   done
5660 done
5661
5662 done
5663 IFS=$as_save_IFS
5664
5665
5666 fi
5667
5668 FGREP="$ac_cv_path_FGREP"
5669 if test -z "$FGREP"; then
5670   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5671 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5672    { (exit 1); exit 1; }; }
5673 fi
5674
5675 else
5676   ac_cv_path_FGREP=$FGREP
5677 fi
5678
5679
5680    fi
5681 fi
5682 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5683 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5684  FGREP="$ac_cv_path_FGREP"
5685
5686
5687 test -z "$GREP" && GREP=grep
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707 # Check whether --with-gnu-ld was given.
5708 if test "${with_gnu_ld+set}" = set; then
5709   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5710 else
5711   with_gnu_ld=no
5712 fi
5713
5714 ac_prog=ld
5715 if test "$GCC" = yes; then
5716   # Check if gcc -print-prog-name=ld gives a path.
5717   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5718 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5719   case $host in
5720   *-*-mingw*)
5721     # gcc leaves a trailing carriage return which upsets mingw
5722     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5723   *)
5724     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5725   esac
5726   case $ac_prog in
5727     # Accept absolute paths.
5728     [\\/]* | ?:[\\/]*)
5729       re_direlt='/[^/][^/]*/\.\./'
5730       # Canonicalize the pathname of ld
5731       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5732       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5733         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5734       done
5735       test -z "$LD" && LD="$ac_prog"
5736       ;;
5737   "")
5738     # If it fails, then pretend we aren't using GCC.
5739     ac_prog=ld
5740     ;;
5741   *)
5742     # If it is relative, then search for the first ld in PATH.
5743     with_gnu_ld=unknown
5744     ;;
5745   esac
5746 elif test "$with_gnu_ld" = yes; then
5747   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5748 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5749 else
5750   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5751 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5752 fi
5753 if test "${lt_cv_path_LD+set}" = set; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756   if test -z "$LD"; then
5757   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5758   for ac_dir in $PATH; do
5759     IFS="$lt_save_ifs"
5760     test -z "$ac_dir" && ac_dir=.
5761     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5762       lt_cv_path_LD="$ac_dir/$ac_prog"
5763       # Check to see if the program is GNU ld.  I'd rather use --version,
5764       # but apparently some variants of GNU ld only accept -v.
5765       # Break only if it was the GNU/non-GNU ld that we prefer.
5766       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5767       *GNU* | *'with BFD'*)
5768         test "$with_gnu_ld" != no && break
5769         ;;
5770       *)
5771         test "$with_gnu_ld" != yes && break
5772         ;;
5773       esac
5774     fi
5775   done
5776   IFS="$lt_save_ifs"
5777 else
5778   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5779 fi
5780 fi
5781
5782 LD="$lt_cv_path_LD"
5783 if test -n "$LD"; then
5784   { echo "$as_me:$LINENO: result: $LD" >&5
5785 echo "${ECHO_T}$LD" >&6; }
5786 else
5787   { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5789 fi
5790 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5791 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5792    { (exit 1); exit 1; }; }
5793 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5794 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5795 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5799 case `$LD -v 2>&1 </dev/null` in
5800 *GNU* | *'with BFD'*)
5801   lt_cv_prog_gnu_ld=yes
5802   ;;
5803 *)
5804   lt_cv_prog_gnu_ld=no
5805   ;;
5806 esac
5807 fi
5808 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5809 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5810 with_gnu_ld=$lt_cv_prog_gnu_ld
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5821 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5822 if test "${lt_cv_path_NM+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   if test -n "$NM"; then
5826   # Let the user override the test.
5827   lt_cv_path_NM="$NM"
5828 else
5829   lt_nm_to_check="${ac_tool_prefix}nm"
5830   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5831     lt_nm_to_check="$lt_nm_to_check nm"
5832   fi
5833   for lt_tmp_nm in $lt_nm_to_check; do
5834     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5835     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5836       IFS="$lt_save_ifs"
5837       test -z "$ac_dir" && ac_dir=.
5838       tmp_nm="$ac_dir/$lt_tmp_nm"
5839       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5840         # Check to see if the nm accepts a BSD-compat flag.
5841         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5842         #   nm: unknown option "B" ignored
5843         # Tru64's nm complains that /dev/null is an invalid object file
5844         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5845         */dev/null* | *'Invalid file or object type'*)
5846           lt_cv_path_NM="$tmp_nm -B"
5847           break
5848           ;;
5849         *)
5850           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5851           */dev/null*)
5852             lt_cv_path_NM="$tmp_nm -p"
5853             break
5854             ;;
5855           *)
5856             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5857             continue # so that we can try to find one that supports BSD flags
5858             ;;
5859           esac
5860           ;;
5861         esac
5862       fi
5863     done
5864     IFS="$lt_save_ifs"
5865   done
5866   : ${lt_cv_path_NM=no}
5867 fi
5868 fi
5869 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5870 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5871 if test "$lt_cv_path_NM" != "no"; then
5872   NM="$lt_cv_path_NM"
5873 else
5874   # Didn't find any BSD compatible name lister, look for dumpbin.
5875   if test -n "$ac_tool_prefix"; then
5876   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5877   do
5878     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5882 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   if test -n "$DUMPBIN"; then
5886   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891   IFS=$as_save_IFS
5892   test -z "$as_dir" && as_dir=.
5893   for ac_exec_ext in '' $ac_executable_extensions; do
5894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5897     break 2
5898   fi
5899 done
5900 done
5901 IFS=$as_save_IFS
5902
5903 fi
5904 fi
5905 DUMPBIN=$ac_cv_prog_DUMPBIN
5906 if test -n "$DUMPBIN"; then
5907   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5908 echo "${ECHO_T}$DUMPBIN" >&6; }
5909 else
5910   { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5912 fi
5913
5914
5915     test -n "$DUMPBIN" && break
5916   done
5917 fi
5918 if test -z "$DUMPBIN"; then
5919   ac_ct_DUMPBIN=$DUMPBIN
5920   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5921 do
5922   # Extract the first word of "$ac_prog", so it can be a program name with args.
5923 set dummy $ac_prog; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   if test -n "$ac_ct_DUMPBIN"; then
5930   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935   IFS=$as_save_IFS
5936   test -z "$as_dir" && as_dir=.
5937   for ac_exec_ext in '' $ac_executable_extensions; do
5938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941     break 2
5942   fi
5943 done
5944 done
5945 IFS=$as_save_IFS
5946
5947 fi
5948 fi
5949 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5950 if test -n "$ac_ct_DUMPBIN"; then
5951   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5952 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5953 else
5954   { echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6; }
5956 fi
5957
5958
5959   test -n "$ac_ct_DUMPBIN" && break
5960 done
5961
5962   if test "x$ac_ct_DUMPBIN" = x; then
5963     DUMPBIN=":"
5964   else
5965     case $cross_compiling:$ac_tool_warned in
5966 yes:)
5967 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5968 whose name does not start with the host triplet.  If you think this
5969 configuration is useful to you, please write to autoconf@gnu.org." >&5
5970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5971 whose name does not start with the host triplet.  If you think this
5972 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5973 ac_tool_warned=yes ;;
5974 esac
5975     DUMPBIN=$ac_ct_DUMPBIN
5976   fi
5977 fi
5978
5979
5980   if test "$DUMPBIN" != ":"; then
5981     NM="$DUMPBIN"
5982   fi
5983 fi
5984 test -z "$NM" && NM=nm
5985
5986
5987
5988
5989
5990
5991 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5992 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5993 if test "${lt_cv_nm_interface+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   lt_cv_nm_interface="BSD nm"
5997   echo "int some_variable = 0;" > conftest.$ac_ext
5998   (eval echo "\"\$as_me:5998: $ac_compile\"" >&5)
5999   (eval "$ac_compile" 2>conftest.err)
6000   cat conftest.err >&5
6001   (eval echo "\"\$as_me:6001: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6002   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6003   cat conftest.err >&5
6004   (eval echo "\"\$as_me:6004: output\"" >&5)
6005   cat conftest.out >&5
6006   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6007     lt_cv_nm_interface="MS dumpbin"
6008   fi
6009   rm -f conftest*
6010 fi
6011 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6012 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6013
6014 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6015 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6016 LN_S=$as_ln_s
6017 if test "$LN_S" = "ln -s"; then
6018   { echo "$as_me:$LINENO: result: yes" >&5
6019 echo "${ECHO_T}yes" >&6; }
6020 else
6021   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6022 echo "${ECHO_T}no, using $LN_S" >&6; }
6023 fi
6024
6025 # find the maximum length of command line arguments
6026 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6027 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6028 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6029   echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031     i=0
6032   teststring="ABCD"
6033
6034   case $build_os in
6035   msdosdjgpp*)
6036     # On DJGPP, this test can blow up pretty badly due to problems in libc
6037     # (any single argument exceeding 2000 bytes causes a buffer overrun
6038     # during glob expansion).  Even if it were fixed, the result of this
6039     # check would be larger than it should be.
6040     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6041     ;;
6042
6043   gnu*)
6044     # Under GNU Hurd, this test is not required because there is
6045     # no limit to the length of command line arguments.
6046     # Libtool will interpret -1 as no limit whatsoever
6047     lt_cv_sys_max_cmd_len=-1;
6048     ;;
6049
6050   cygwin* | mingw* | cegcc*)
6051     # On Win9x/ME, this test blows up -- it succeeds, but takes
6052     # about 5 minutes as the teststring grows exponentially.
6053     # Worse, since 9x/ME are not pre-emptively multitasking,
6054     # you end up with a "frozen" computer, even though with patience
6055     # the test eventually succeeds (with a max line length of 256k).
6056     # Instead, let's just punt: use the minimum linelength reported by
6057     # all of the supported platforms: 8192 (on NT/2K/XP).
6058     lt_cv_sys_max_cmd_len=8192;
6059     ;;
6060
6061   amigaos*)
6062     # On AmigaOS with pdksh, this test takes hours, literally.
6063     # So we just punt and use a minimum line length of 8192.
6064     lt_cv_sys_max_cmd_len=8192;
6065     ;;
6066
6067   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6068     # This has been around since 386BSD, at least.  Likely further.
6069     if test -x /sbin/sysctl; then
6070       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6071     elif test -x /usr/sbin/sysctl; then
6072       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6073     else
6074       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6075     fi
6076     # And add a safety zone
6077     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6078     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6079     ;;
6080
6081   interix*)
6082     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6083     lt_cv_sys_max_cmd_len=196608
6084     ;;
6085
6086   osf*)
6087     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6088     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6089     # nice to cause kernel panics so lets avoid the loop below.
6090     # First set a reasonable default.
6091     lt_cv_sys_max_cmd_len=16384
6092     #
6093     if test -x /sbin/sysconfig; then
6094       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6095         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6096       esac
6097     fi
6098     ;;
6099   sco3.2v5*)
6100     lt_cv_sys_max_cmd_len=102400
6101     ;;
6102   sysv5* | sco5v6* | sysv4.2uw2*)
6103     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6104     if test -n "$kargmax"; then
6105       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6106     else
6107       lt_cv_sys_max_cmd_len=32768
6108     fi
6109     ;;
6110   *)
6111     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6112     if test -n "$lt_cv_sys_max_cmd_len"; then
6113       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6114       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6115     else
6116       # Make teststring a little bigger before we do anything with it.
6117       # a 1K string should be a reasonable start.
6118       for i in 1 2 3 4 5 6 7 8 ; do
6119         teststring=$teststring$teststring
6120       done
6121       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6122       # If test is not a shell built-in, we'll probably end up computing a
6123       # maximum length that is only half of the actual maximum length, but
6124       # we can't tell.
6125       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6126                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6127               test $i != 17 # 1/2 MB should be enough
6128       do
6129         i=`expr $i + 1`
6130         teststring=$teststring$teststring
6131       done
6132       # Only check the string length outside the loop.
6133       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6134       teststring=
6135       # Add a significant safety factor because C++ compilers can tack on
6136       # massive amounts of additional arguments before passing them to the
6137       # linker.  It appears as though 1/2 is a usable value.
6138       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6139     fi
6140     ;;
6141   esac
6142
6143 fi
6144
6145 if test -n $lt_cv_sys_max_cmd_len ; then
6146   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6147 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6148 else
6149   { echo "$as_me:$LINENO: result: none" >&5
6150 echo "${ECHO_T}none" >&6; }
6151 fi
6152 max_cmd_len=$lt_cv_sys_max_cmd_len
6153
6154
6155
6156
6157
6158
6159 : ${CP="cp -f"}
6160 : ${MV="mv -f"}
6161 : ${RM="rm -f"}
6162
6163 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6164 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6165 # Try some XSI features
6166 xsi_shell=no
6167 ( _lt_dummy="a/b/c"
6168   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6169       = c,a/b,, \
6170     && eval 'test $(( 1 + 1 )) -eq 2 \
6171     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6172   && xsi_shell=yes
6173 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6174 echo "${ECHO_T}$xsi_shell" >&6; }
6175
6176
6177 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6178 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6179 lt_shell_append=no
6180 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6181     >/dev/null 2>&1 \
6182   && lt_shell_append=yes
6183 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6184 echo "${ECHO_T}$lt_shell_append" >&6; }
6185
6186
6187 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6188   lt_unset=unset
6189 else
6190   lt_unset=false
6191 fi
6192
6193
6194
6195
6196
6197 # test EBCDIC or ASCII
6198 case `echo X|tr X '\101'` in
6199  A) # ASCII based system
6200     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6201   lt_SP2NL='tr \040 \012'
6202   lt_NL2SP='tr \015\012 \040\040'
6203   ;;
6204  *) # EBCDIC based system
6205   lt_SP2NL='tr \100 \n'
6206   lt_NL2SP='tr \r\n \100\100'
6207   ;;
6208 esac
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6219 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6220 if test "${lt_cv_ld_reload_flag+set}" = set; then
6221   echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223   lt_cv_ld_reload_flag='-r'
6224 fi
6225 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6226 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6227 reload_flag=$lt_cv_ld_reload_flag
6228 case $reload_flag in
6229 "" | " "*) ;;
6230 *) reload_flag=" $reload_flag" ;;
6231 esac
6232 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6233 case $host_os in
6234   darwin*)
6235     if test "$GCC" = yes; then
6236       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6237     else
6238       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6239     fi
6240     ;;
6241 esac
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251 if test -n "$ac_tool_prefix"; then
6252   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6253 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6256 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6257   echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259   if test -n "$OBJDUMP"; then
6260   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265   IFS=$as_save_IFS
6266   test -z "$as_dir" && as_dir=.
6267   for ac_exec_ext in '' $ac_executable_extensions; do
6268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271     break 2
6272   fi
6273 done
6274 done
6275 IFS=$as_save_IFS
6276
6277 fi
6278 fi
6279 OBJDUMP=$ac_cv_prog_OBJDUMP
6280 if test -n "$OBJDUMP"; then
6281   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6282 echo "${ECHO_T}$OBJDUMP" >&6; }
6283 else
6284   { echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6; }
6286 fi
6287
6288
6289 fi
6290 if test -z "$ac_cv_prog_OBJDUMP"; then
6291   ac_ct_OBJDUMP=$OBJDUMP
6292   # Extract the first word of "objdump", so it can be a program name with args.
6293 set dummy objdump; ac_word=$2
6294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6296 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6297   echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299   if test -n "$ac_ct_OBJDUMP"; then
6300   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6301 else
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6304 do
6305   IFS=$as_save_IFS
6306   test -z "$as_dir" && as_dir=.
6307   for ac_exec_ext in '' $ac_executable_extensions; do
6308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6311     break 2
6312   fi
6313 done
6314 done
6315 IFS=$as_save_IFS
6316
6317 fi
6318 fi
6319 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6320 if test -n "$ac_ct_OBJDUMP"; then
6321   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6322 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6323 else
6324   { echo "$as_me:$LINENO: result: no" >&5
6325 echo "${ECHO_T}no" >&6; }
6326 fi
6327
6328   if test "x$ac_ct_OBJDUMP" = x; then
6329     OBJDUMP="false"
6330   else
6331     case $cross_compiling:$ac_tool_warned in
6332 yes:)
6333 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6334 whose name does not start with the host triplet.  If you think this
6335 configuration is useful to you, please write to autoconf@gnu.org." >&5
6336 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6337 whose name does not start with the host triplet.  If you think this
6338 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6339 ac_tool_warned=yes ;;
6340 esac
6341     OBJDUMP=$ac_ct_OBJDUMP
6342   fi
6343 else
6344   OBJDUMP="$ac_cv_prog_OBJDUMP"
6345 fi
6346
6347 test -z "$OBJDUMP" && OBJDUMP=objdump
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6358 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6359 if test "${lt_cv_deplibs_check_method+set}" = set; then
6360   echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362   lt_cv_file_magic_cmd='$MAGIC_CMD'
6363 lt_cv_file_magic_test_file=
6364 lt_cv_deplibs_check_method='unknown'
6365 # Need to set the preceding variable on all platforms that support
6366 # interlibrary dependencies.
6367 # 'none' -- dependencies not supported.
6368 # `unknown' -- same as none, but documents that we really don't know.
6369 # 'pass_all' -- all dependencies passed with no checks.
6370 # 'test_compile' -- check by making test program.
6371 # 'file_magic [[regex]]' -- check by looking for files in library path
6372 # which responds to the $file_magic_cmd with a given extended regex.
6373 # If you have `file' or equivalent on your system and you're not sure
6374 # whether `pass_all' will *always* work, you probably want this one.
6375
6376 case $host_os in
6377 aix[4-9]*)
6378   lt_cv_deplibs_check_method=pass_all
6379   ;;
6380
6381 beos*)
6382   lt_cv_deplibs_check_method=pass_all
6383   ;;
6384
6385 bsdi[45]*)
6386   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6387   lt_cv_file_magic_cmd='/usr/bin/file -L'
6388   lt_cv_file_magic_test_file=/shlib/libc.so
6389   ;;
6390
6391 cygwin*)
6392   # func_win32_libid is a shell function defined in ltmain.sh
6393   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6394   lt_cv_file_magic_cmd='func_win32_libid'
6395   ;;
6396
6397 mingw* | pw32*)
6398   # Base MSYS/MinGW do not provide the 'file' command needed by
6399   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6400   # unless we find 'file', for example because we are cross-compiling.
6401   if ( file / ) >/dev/null 2>&1; then
6402     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6403     lt_cv_file_magic_cmd='func_win32_libid'
6404   else
6405     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6406     lt_cv_file_magic_cmd='$OBJDUMP -f'
6407   fi
6408   ;;
6409
6410 cegcc)
6411   # use the weaker test based on 'objdump'. See mingw*.
6412   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6413   lt_cv_file_magic_cmd='$OBJDUMP -f'
6414   ;;
6415
6416 darwin* | rhapsody*)
6417   lt_cv_deplibs_check_method=pass_all
6418   ;;
6419
6420 freebsd* | dragonfly*)
6421   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6422     case $host_cpu in
6423     i*86 )
6424       # Not sure whether the presence of OpenBSD here was a mistake.
6425       # Let's accept both of them until this is cleared up.
6426       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6427       lt_cv_file_magic_cmd=/usr/bin/file
6428       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6429       ;;
6430     esac
6431   else
6432     lt_cv_deplibs_check_method=pass_all
6433   fi
6434   ;;
6435
6436 gnu*)
6437   lt_cv_deplibs_check_method=pass_all
6438   ;;
6439
6440 hpux10.20* | hpux11*)
6441   lt_cv_file_magic_cmd=/usr/bin/file
6442   case $host_cpu in
6443   ia64*)
6444     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6445     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6446     ;;
6447   hppa*64*)
6448     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]'
6449     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6450     ;;
6451   *)
6452     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6453     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6454     ;;
6455   esac
6456   ;;
6457
6458 interix[3-9]*)
6459   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6460   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6461   ;;
6462
6463 irix5* | irix6* | nonstopux*)
6464   case $LD in
6465   *-32|*"-32 ") libmagic=32-bit;;
6466   *-n32|*"-n32 ") libmagic=N32;;
6467   *-64|*"-64 ") libmagic=64-bit;;
6468   *) libmagic=never-match;;
6469   esac
6470   lt_cv_deplibs_check_method=pass_all
6471   ;;
6472
6473 # This must be Linux ELF.
6474 linux* | k*bsd*-gnu)
6475   lt_cv_deplibs_check_method=pass_all
6476   ;;
6477
6478 netbsd*)
6479   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6480     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6481   else
6482     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6483   fi
6484   ;;
6485
6486 newos6*)
6487   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6488   lt_cv_file_magic_cmd=/usr/bin/file
6489   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6490   ;;
6491
6492 *nto* | *qnx*)
6493   lt_cv_deplibs_check_method=pass_all
6494   ;;
6495
6496 openbsd*)
6497   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6498     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6499   else
6500     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6501   fi
6502   ;;
6503
6504 osf3* | osf4* | osf5*)
6505   lt_cv_deplibs_check_method=pass_all
6506   ;;
6507
6508 rdos*)
6509   lt_cv_deplibs_check_method=pass_all
6510   ;;
6511
6512 solaris*)
6513   lt_cv_deplibs_check_method=pass_all
6514   ;;
6515
6516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6517   lt_cv_deplibs_check_method=pass_all
6518   ;;
6519
6520 sysv4 | sysv4.3*)
6521   case $host_vendor in
6522   motorola)
6523     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]'
6524     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6525     ;;
6526   ncr)
6527     lt_cv_deplibs_check_method=pass_all
6528     ;;
6529   sequent)
6530     lt_cv_file_magic_cmd='/bin/file'
6531     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6532     ;;
6533   sni)
6534     lt_cv_file_magic_cmd='/bin/file'
6535     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6536     lt_cv_file_magic_test_file=/lib/libc.so
6537     ;;
6538   siemens)
6539     lt_cv_deplibs_check_method=pass_all
6540     ;;
6541   pc)
6542     lt_cv_deplibs_check_method=pass_all
6543     ;;
6544   esac
6545   ;;
6546
6547 tpf*)
6548   lt_cv_deplibs_check_method=pass_all
6549   ;;
6550 esac
6551
6552 fi
6553 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6554 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6555 file_magic_cmd=$lt_cv_file_magic_cmd
6556 deplibs_check_method=$lt_cv_deplibs_check_method
6557 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570 if test -n "$ac_tool_prefix"; then
6571   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6572 set dummy ${ac_tool_prefix}ar; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_prog_AR+set}" = set; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578   if test -n "$AR"; then
6579   ac_cv_prog_AR="$AR" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584   IFS=$as_save_IFS
6585   test -z "$as_dir" && as_dir=.
6586   for ac_exec_ext in '' $ac_executable_extensions; do
6587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588     ac_cv_prog_AR="${ac_tool_prefix}ar"
6589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590     break 2
6591   fi
6592 done
6593 done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 AR=$ac_cv_prog_AR
6599 if test -n "$AR"; then
6600   { echo "$as_me:$LINENO: result: $AR" >&5
6601 echo "${ECHO_T}$AR" >&6; }
6602 else
6603   { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6605 fi
6606
6607
6608 fi
6609 if test -z "$ac_cv_prog_AR"; then
6610   ac_ct_AR=$AR
6611   # Extract the first word of "ar", so it can be a program name with args.
6612 set dummy ar; ac_word=$2
6613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6615 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6616   echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618   if test -n "$ac_ct_AR"; then
6619   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624   IFS=$as_save_IFS
6625   test -z "$as_dir" && as_dir=.
6626   for ac_exec_ext in '' $ac_executable_extensions; do
6627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628     ac_cv_prog_ac_ct_AR="ar"
6629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630     break 2
6631   fi
6632 done
6633 done
6634 IFS=$as_save_IFS
6635
6636 fi
6637 fi
6638 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6639 if test -n "$ac_ct_AR"; then
6640   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6641 echo "${ECHO_T}$ac_ct_AR" >&6; }
6642 else
6643   { echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6; }
6645 fi
6646
6647   if test "x$ac_ct_AR" = x; then
6648     AR="false"
6649   else
6650     case $cross_compiling:$ac_tool_warned in
6651 yes:)
6652 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6653 whose name does not start with the host triplet.  If you think this
6654 configuration is useful to you, please write to autoconf@gnu.org." >&5
6655 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6656 whose name does not start with the host triplet.  If you think this
6657 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6658 ac_tool_warned=yes ;;
6659 esac
6660     AR=$ac_ct_AR
6661   fi
6662 else
6663   AR="$ac_cv_prog_AR"
6664 fi
6665
6666 test -z "$AR" && AR=ar
6667 test -z "$AR_FLAGS" && AR_FLAGS=cru
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679 if test -n "$ac_tool_prefix"; then
6680   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6681 set dummy ${ac_tool_prefix}strip; ac_word=$2
6682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6684 if test "${ac_cv_prog_STRIP+set}" = set; then
6685   echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687   if test -n "$STRIP"; then
6688   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693   IFS=$as_save_IFS
6694   test -z "$as_dir" && as_dir=.
6695   for ac_exec_ext in '' $ac_executable_extensions; do
6696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699     break 2
6700   fi
6701 done
6702 done
6703 IFS=$as_save_IFS
6704
6705 fi
6706 fi
6707 STRIP=$ac_cv_prog_STRIP
6708 if test -n "$STRIP"; then
6709   { echo "$as_me:$LINENO: result: $STRIP" >&5
6710 echo "${ECHO_T}$STRIP" >&6; }
6711 else
6712   { echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6; }
6714 fi
6715
6716
6717 fi
6718 if test -z "$ac_cv_prog_STRIP"; then
6719   ac_ct_STRIP=$STRIP
6720   # Extract the first word of "strip", so it can be a program name with args.
6721 set dummy strip; ac_word=$2
6722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6724 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6725   echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727   if test -n "$ac_ct_STRIP"; then
6728   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735   for ac_exec_ext in '' $ac_executable_extensions; do
6736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737     ac_cv_prog_ac_ct_STRIP="strip"
6738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742 done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6748 if test -n "$ac_ct_STRIP"; then
6749   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6750 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6751 else
6752   { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6754 fi
6755
6756   if test "x$ac_ct_STRIP" = x; then
6757     STRIP=":"
6758   else
6759     case $cross_compiling:$ac_tool_warned in
6760 yes:)
6761 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6762 whose name does not start with the host triplet.  If you think this
6763 configuration is useful to you, please write to autoconf@gnu.org." >&5
6764 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6765 whose name does not start with the host triplet.  If you think this
6766 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6767 ac_tool_warned=yes ;;
6768 esac
6769     STRIP=$ac_ct_STRIP
6770   fi
6771 else
6772   STRIP="$ac_cv_prog_STRIP"
6773 fi
6774
6775 test -z "$STRIP" && STRIP=:
6776
6777
6778
6779
6780
6781
6782 if test -n "$ac_tool_prefix"; then
6783   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787 if test "${ac_cv_prog_RANLIB+set}" = set; then
6788   echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790   if test -n "$RANLIB"; then
6791   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6792 else
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798   for ac_exec_ext in '' $ac_executable_extensions; do
6799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6800     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805 done
6806 IFS=$as_save_IFS
6807
6808 fi
6809 fi
6810 RANLIB=$ac_cv_prog_RANLIB
6811 if test -n "$RANLIB"; then
6812   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6813 echo "${ECHO_T}$RANLIB" >&6; }
6814 else
6815   { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6817 fi
6818
6819
6820 fi
6821 if test -z "$ac_cv_prog_RANLIB"; then
6822   ac_ct_RANLIB=$RANLIB
6823   # Extract the first word of "ranlib", so it can be a program name with args.
6824 set dummy ranlib; ac_word=$2
6825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6828   echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830   if test -n "$ac_ct_RANLIB"; then
6831   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838   for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_prog_ac_ct_RANLIB="ranlib"
6841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845 done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6851 if test -n "$ac_ct_RANLIB"; then
6852   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6853 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6854 else
6855   { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6857 fi
6858
6859   if test "x$ac_ct_RANLIB" = x; then
6860     RANLIB=":"
6861   else
6862     case $cross_compiling:$ac_tool_warned in
6863 yes:)
6864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6865 whose name does not start with the host triplet.  If you think this
6866 configuration is useful to you, please write to autoconf@gnu.org." >&5
6867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6868 whose name does not start with the host triplet.  If you think this
6869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6870 ac_tool_warned=yes ;;
6871 esac
6872     RANLIB=$ac_ct_RANLIB
6873   fi
6874 else
6875   RANLIB="$ac_cv_prog_RANLIB"
6876 fi
6877
6878 test -z "$RANLIB" && RANLIB=:
6879
6880
6881
6882
6883
6884
6885 # Determine commands to create old-style static archives.
6886 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6887 old_postinstall_cmds='chmod 644 $oldlib'
6888 old_postuninstall_cmds=
6889
6890 if test -n "$RANLIB"; then
6891   case $host_os in
6892   openbsd*)
6893     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6894     ;;
6895   *)
6896     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6897     ;;
6898   esac
6899   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6900 fi
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935 # If no C compiler was specified, use CC.
6936 LTCC=${LTCC-"$CC"}
6937
6938 # If no C compiler flags were specified, use CFLAGS.
6939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6940
6941 # Allow CC to be a program name with arguments.
6942 compiler=$CC
6943
6944
6945 # Check for command to grab the raw symbol name followed by C symbol from nm.
6946 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6947 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6948 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951
6952 # These are sane defaults that work on at least a few old systems.
6953 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6954
6955 # Character class describing NM global symbol codes.
6956 symcode='[BCDEGRST]'
6957
6958 # Regexp to match symbols that can be accessed directly from C.
6959 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6960
6961 # Define system-specific variables.
6962 case $host_os in
6963 aix*)
6964   symcode='[BCDT]'
6965   ;;
6966 cygwin* | mingw* | pw32* | cegcc*)
6967   symcode='[ABCDGISTW]'
6968   ;;
6969 hpux*)
6970   if test "$host_cpu" = ia64; then
6971     symcode='[ABCDEGRST]'
6972   fi
6973   ;;
6974 irix* | nonstopux*)
6975   symcode='[BCDEGRST]'
6976   ;;
6977 osf*)
6978   symcode='[BCDEGQRST]'
6979   ;;
6980 solaris*)
6981   symcode='[BDRT]'
6982   ;;
6983 sco3.2v5*)
6984   symcode='[DT]'
6985   ;;
6986 sysv4.2uw2*)
6987   symcode='[DT]'
6988   ;;
6989 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6990   symcode='[ABDT]'
6991   ;;
6992 sysv4)
6993   symcode='[DFNSTU]'
6994   ;;
6995 esac
6996
6997 # If we're using GNU nm, then use its standard symbol codes.
6998 case `$NM -V 2>&1` in
6999 *GNU* | *'with BFD'*)
7000   symcode='[ABCDGIRSTW]' ;;
7001 esac
7002
7003 # Transform an extracted symbol line into a proper C declaration.
7004 # Some systems (esp. on ia64) link data and code symbols differently,
7005 # so use this general approach.
7006 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7007
7008 # Transform an extracted symbol line into symbol name and symbol address
7009 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7010 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'"
7011
7012 # Handle CRLF in mingw tool chain
7013 opt_cr=
7014 case $build_os in
7015 mingw*)
7016   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7017   ;;
7018 esac
7019
7020 # Try without a prefix underscore, then with it.
7021 for ac_symprfx in "" "_"; do
7022
7023   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7024   symxfrm="\\1 $ac_symprfx\\2 \\2"
7025
7026   # Write the raw and C identifiers.
7027   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7028     # Fake it for dumpbin and say T for any non-static function
7029     # and D for any global variable.
7030     # Also find C++ and __fastcall symbols from MSVC++,
7031     # which start with @ or ?.
7032     lt_cv_sys_global_symbol_pipe="$AWK '"\
7033 "     {last_section=section; section=\$ 3};"\
7034 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7035 "     \$ 0!~/External *\|/{next};"\
7036 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7037 "     {if(hide[section]) next};"\
7038 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7039 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7040 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7041 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7042 "     ' prfx=^$ac_symprfx"
7043   else
7044     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7045   fi
7046
7047   # Check to see that the pipe works correctly.
7048   pipe_works=no
7049
7050   rm -f conftest*
7051   cat > conftest.$ac_ext <<_LT_EOF
7052 #ifdef __cplusplus
7053 extern "C" {
7054 #endif
7055 char nm_test_var;
7056 void nm_test_func(void);
7057 void nm_test_func(void){}
7058 #ifdef __cplusplus
7059 }
7060 #endif
7061 int main(){nm_test_var='a';nm_test_func();return(0);}
7062 _LT_EOF
7063
7064   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065   (eval $ac_compile) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); }; then
7069     # Now try to grab the symbols.
7070     nlist=conftest.nm
7071     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7072   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7073   ac_status=$?
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); } && test -s "$nlist"; then
7076       # Try sorting and uniquifying the output.
7077       if sort "$nlist" | uniq > "$nlist"T; then
7078         mv -f "$nlist"T "$nlist"
7079       else
7080         rm -f "$nlist"T
7081       fi
7082
7083       # Make sure that we snagged all the symbols we need.
7084       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7085         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7086           cat <<_LT_EOF > conftest.$ac_ext
7087 #ifdef __cplusplus
7088 extern "C" {
7089 #endif
7090
7091 _LT_EOF
7092           # Now generate the symbol file.
7093           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7094
7095           cat <<_LT_EOF >> conftest.$ac_ext
7096
7097 /* The mapping between symbol names and symbols.  */
7098 const struct {
7099   const char *name;
7100   void       *address;
7101 }
7102 lt__PROGRAM__LTX_preloaded_symbols[] =
7103 {
7104   { "@PROGRAM@", (void *) 0 },
7105 _LT_EOF
7106           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7107           cat <<\_LT_EOF >> conftest.$ac_ext
7108   {0, (void *) 0}
7109 };
7110
7111 /* This works around a problem in FreeBSD linker */
7112 #ifdef FREEBSD_WORKAROUND
7113 static const void *lt_preloaded_setup() {
7114   return lt__PROGRAM__LTX_preloaded_symbols;
7115 }
7116 #endif
7117
7118 #ifdef __cplusplus
7119 }
7120 #endif
7121 _LT_EOF
7122           # Now try linking the two files.
7123           mv conftest.$ac_objext conftstm.$ac_objext
7124           lt_save_LIBS="$LIBS"
7125           lt_save_CFLAGS="$CFLAGS"
7126           LIBS="conftstm.$ac_objext"
7127           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7128           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7129   (eval $ac_link) 2>&5
7130   ac_status=$?
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7133             pipe_works=yes
7134           fi
7135           LIBS="$lt_save_LIBS"
7136           CFLAGS="$lt_save_CFLAGS"
7137         else
7138           echo "cannot find nm_test_func in $nlist" >&5
7139         fi
7140       else
7141         echo "cannot find nm_test_var in $nlist" >&5
7142       fi
7143     else
7144       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7145     fi
7146   else
7147     echo "$progname: failed program was:" >&5
7148     cat conftest.$ac_ext >&5
7149   fi
7150   rm -rf conftest* conftst*
7151
7152   # Do not use the global_symbol_pipe unless it works.
7153   if test "$pipe_works" = yes; then
7154     break
7155   else
7156     lt_cv_sys_global_symbol_pipe=
7157   fi
7158 done
7159
7160 fi
7161
7162 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7163   lt_cv_sys_global_symbol_to_cdecl=
7164 fi
7165 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7166   { echo "$as_me:$LINENO: result: failed" >&5
7167 echo "${ECHO_T}failed" >&6; }
7168 else
7169   { echo "$as_me:$LINENO: result: ok" >&5
7170 echo "${ECHO_T}ok" >&6; }
7171 fi
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194 # Check whether --enable-libtool-lock was given.
7195 if test "${enable_libtool_lock+set}" = set; then
7196   enableval=$enable_libtool_lock;
7197 fi
7198
7199 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7200
7201 # Some flags need to be propagated to the compiler or linker for good
7202 # libtool support.
7203 case $host in
7204 ia64-*-hpux*)
7205   # Find out which ABI we are using.
7206   echo 'int i;' > conftest.$ac_ext
7207   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7208   (eval $ac_compile) 2>&5
7209   ac_status=$?
7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211   (exit $ac_status); }; then
7212     case `/usr/bin/file conftest.$ac_objext` in
7213       *ELF-32*)
7214         HPUX_IA64_MODE="32"
7215         ;;
7216       *ELF-64*)
7217         HPUX_IA64_MODE="64"
7218         ;;
7219     esac
7220   fi
7221   rm -rf conftest*
7222   ;;
7223 *-*-irix6*)
7224   # Find out which ABI we are using.
7225   echo '#line 7225 "configure"' > conftest.$ac_ext
7226   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227   (eval $ac_compile) 2>&5
7228   ac_status=$?
7229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230   (exit $ac_status); }; then
7231     if test "$lt_cv_prog_gnu_ld" = yes; then
7232       case `/usr/bin/file conftest.$ac_objext` in
7233         *32-bit*)
7234           LD="${LD-ld} -melf32bsmip"
7235           ;;
7236         *N32*)
7237           LD="${LD-ld} -melf32bmipn32"
7238           ;;
7239         *64-bit*)
7240           LD="${LD-ld} -melf64bmip"
7241         ;;
7242       esac
7243     else
7244       case `/usr/bin/file conftest.$ac_objext` in
7245         *32-bit*)
7246           LD="${LD-ld} -32"
7247           ;;
7248         *N32*)
7249           LD="${LD-ld} -n32"
7250           ;;
7251         *64-bit*)
7252           LD="${LD-ld} -64"
7253           ;;
7254       esac
7255     fi
7256   fi
7257   rm -rf conftest*
7258   ;;
7259
7260 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7261 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7262   # Find out which ABI we are using.
7263   echo 'int i;' > conftest.$ac_ext
7264   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265   (eval $ac_compile) 2>&5
7266   ac_status=$?
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); }; then
7269     case `/usr/bin/file conftest.o` in
7270       *32-bit*)
7271         case $host in
7272           x86_64-*kfreebsd*-gnu)
7273             LD="${LD-ld} -m elf_i386_fbsd"
7274             ;;
7275           x86_64-*linux*)
7276             LD="${LD-ld} -m elf_i386"
7277             ;;
7278           ppc64-*linux*|powerpc64-*linux*)
7279             LD="${LD-ld} -m elf32ppclinux"
7280             ;;
7281           s390x-*linux*)
7282             LD="${LD-ld} -m elf_s390"
7283             ;;
7284           sparc64-*linux*)
7285             LD="${LD-ld} -m elf32_sparc"
7286             ;;
7287         esac
7288         ;;
7289       *64-bit*)
7290         case $host in
7291           x86_64-*kfreebsd*-gnu)
7292             LD="${LD-ld} -m elf_x86_64_fbsd"
7293             ;;
7294           x86_64-*linux*)
7295             LD="${LD-ld} -m elf_x86_64"
7296             ;;
7297           ppc*-*linux*|powerpc*-*linux*)
7298             LD="${LD-ld} -m elf64ppc"
7299             ;;
7300           s390*-*linux*|s390*-*tpf*)
7301             LD="${LD-ld} -m elf64_s390"
7302             ;;
7303           sparc*-*linux*)
7304             LD="${LD-ld} -m elf64_sparc"
7305             ;;
7306         esac
7307         ;;
7308     esac
7309   fi
7310   rm -rf conftest*
7311   ;;
7312
7313 *-*-sco3.2v5*)
7314   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7315   SAVE_CFLAGS="$CFLAGS"
7316   CFLAGS="$CFLAGS -belf"
7317   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7318 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7319 if test "${lt_cv_cc_needs_belf+set}" = set; then
7320   echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322   ac_ext=c
7323 ac_cpp='$CPP $CPPFLAGS'
7324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7327
7328      cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h.  */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h.  */
7334
7335 int
7336 main ()
7337 {
7338
7339   ;
7340   return 0;
7341 }
7342 _ACEOF
7343 rm -f conftest.$ac_objext conftest$ac_exeext
7344 if { (ac_try="$ac_link"
7345 case "(($ac_try" in
7346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347   *) ac_try_echo=$ac_try;;
7348 esac
7349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350   (eval "$ac_link") 2>conftest.er1
7351   ac_status=$?
7352   grep -v '^ *+' conftest.er1 >conftest.err
7353   rm -f conftest.er1
7354   cat conftest.err >&5
7355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356   (exit $ac_status); } && {
7357          test -z "$ac_c_werror_flag" ||
7358          test ! -s conftest.err
7359        } && test -s conftest$ac_exeext &&
7360        $as_test_x conftest$ac_exeext; then
7361   lt_cv_cc_needs_belf=yes
7362 else
7363   echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7365
7366         lt_cv_cc_needs_belf=no
7367 fi
7368
7369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7370       conftest$ac_exeext conftest.$ac_ext
7371      ac_ext=c
7372 ac_cpp='$CPP $CPPFLAGS'
7373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7376
7377 fi
7378 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7379 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7380   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7381     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7382     CFLAGS="$SAVE_CFLAGS"
7383   fi
7384   ;;
7385 sparc*-*solaris*)
7386   # Find out which ABI we are using.
7387   echo 'int i;' > conftest.$ac_ext
7388   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7389   (eval $ac_compile) 2>&5
7390   ac_status=$?
7391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392   (exit $ac_status); }; then
7393     case `/usr/bin/file conftest.o` in
7394     *64-bit*)
7395       case $lt_cv_prog_gnu_ld in
7396       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7397       *)
7398         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7399           LD="${LD-ld} -64"
7400         fi
7401         ;;
7402       esac
7403       ;;
7404     esac
7405   fi
7406   rm -rf conftest*
7407   ;;
7408 esac
7409
7410 need_locks="$enable_libtool_lock"
7411
7412
7413   case $host_os in
7414     rhapsody* | darwin*)
7415     if test -n "$ac_tool_prefix"; then
7416   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7417 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   if test -n "$DSYMUTIL"; then
7424   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429   IFS=$as_save_IFS
7430   test -z "$as_dir" && as_dir=.
7431   for ac_exec_ext in '' $ac_executable_extensions; do
7432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435     break 2
7436   fi
7437 done
7438 done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7444 if test -n "$DSYMUTIL"; then
7445   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7446 echo "${ECHO_T}$DSYMUTIL" >&6; }
7447 else
7448   { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7450 fi
7451
7452
7453 fi
7454 if test -z "$ac_cv_prog_DSYMUTIL"; then
7455   ac_ct_DSYMUTIL=$DSYMUTIL
7456   # Extract the first word of "dsymutil", so it can be a program name with args.
7457 set dummy dsymutil; ac_word=$2
7458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7460 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7461   echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463   if test -n "$ac_ct_DSYMUTIL"; then
7464   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471   for ac_exec_ext in '' $ac_executable_extensions; do
7472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7473     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478 done
7479 IFS=$as_save_IFS
7480
7481 fi
7482 fi
7483 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7484 if test -n "$ac_ct_DSYMUTIL"; then
7485   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7486 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7487 else
7488   { echo "$as_me:$LINENO: result: no" >&5
7489 echo "${ECHO_T}no" >&6; }
7490 fi
7491
7492   if test "x$ac_ct_DSYMUTIL" = x; then
7493     DSYMUTIL=":"
7494   else
7495     case $cross_compiling:$ac_tool_warned in
7496 yes:)
7497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7498 whose name does not start with the host triplet.  If you think this
7499 configuration is useful to you, please write to autoconf@gnu.org." >&5
7500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7501 whose name does not start with the host triplet.  If you think this
7502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7503 ac_tool_warned=yes ;;
7504 esac
7505     DSYMUTIL=$ac_ct_DSYMUTIL
7506   fi
7507 else
7508   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7509 fi
7510
7511     if test -n "$ac_tool_prefix"; then
7512   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   if test -n "$NMEDIT"; then
7520   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525   IFS=$as_save_IFS
7526   test -z "$as_dir" && as_dir=.
7527   for ac_exec_ext in '' $ac_executable_extensions; do
7528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531     break 2
7532   fi
7533 done
7534 done
7535 IFS=$as_save_IFS
7536
7537 fi
7538 fi
7539 NMEDIT=$ac_cv_prog_NMEDIT
7540 if test -n "$NMEDIT"; then
7541   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7542 echo "${ECHO_T}$NMEDIT" >&6; }
7543 else
7544   { echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6; }
7546 fi
7547
7548
7549 fi
7550 if test -z "$ac_cv_prog_NMEDIT"; then
7551   ac_ct_NMEDIT=$NMEDIT
7552   # Extract the first word of "nmedit", so it can be a program name with args.
7553 set dummy nmedit; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   if test -n "$ac_ct_NMEDIT"; then
7560   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7561 else
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH
7564 do
7565   IFS=$as_save_IFS
7566   test -z "$as_dir" && as_dir=.
7567   for ac_exec_ext in '' $ac_executable_extensions; do
7568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571     break 2
7572   fi
7573 done
7574 done
7575 IFS=$as_save_IFS
7576
7577 fi
7578 fi
7579 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7580 if test -n "$ac_ct_NMEDIT"; then
7581   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7582 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7583 else
7584   { echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6; }
7586 fi
7587
7588   if test "x$ac_ct_NMEDIT" = x; then
7589     NMEDIT=":"
7590   else
7591     case $cross_compiling:$ac_tool_warned in
7592 yes:)
7593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7594 whose name does not start with the host triplet.  If you think this
7595 configuration is useful to you, please write to autoconf@gnu.org." >&5
7596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7597 whose name does not start with the host triplet.  If you think this
7598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7599 ac_tool_warned=yes ;;
7600 esac
7601     NMEDIT=$ac_ct_NMEDIT
7602   fi
7603 else
7604   NMEDIT="$ac_cv_prog_NMEDIT"
7605 fi
7606
7607     if test -n "$ac_tool_prefix"; then
7608   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7609 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612 if test "${ac_cv_prog_LIPO+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   if test -n "$LIPO"; then
7616   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621   IFS=$as_save_IFS
7622   test -z "$as_dir" && as_dir=.
7623   for ac_exec_ext in '' $ac_executable_extensions; do
7624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7625     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627     break 2
7628   fi
7629 done
7630 done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 LIPO=$ac_cv_prog_LIPO
7636 if test -n "$LIPO"; then
7637   { echo "$as_me:$LINENO: result: $LIPO" >&5
7638 echo "${ECHO_T}$LIPO" >&6; }
7639 else
7640   { echo "$as_me:$LINENO: result: no" >&5
7641 echo "${ECHO_T}no" >&6; }
7642 fi
7643
7644
7645 fi
7646 if test -z "$ac_cv_prog_LIPO"; then
7647   ac_ct_LIPO=$LIPO
7648   # Extract the first word of "lipo", so it can be a program name with args.
7649 set dummy lipo; ac_word=$2
7650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655   if test -n "$ac_ct_LIPO"; then
7656   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661   IFS=$as_save_IFS
7662   test -z "$as_dir" && as_dir=.
7663   for ac_exec_ext in '' $ac_executable_extensions; do
7664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7665     ac_cv_prog_ac_ct_LIPO="lipo"
7666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7667     break 2
7668   fi
7669 done
7670 done
7671 IFS=$as_save_IFS
7672
7673 fi
7674 fi
7675 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7676 if test -n "$ac_ct_LIPO"; then
7677   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7678 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7679 else
7680   { echo "$as_me:$LINENO: result: no" >&5
7681 echo "${ECHO_T}no" >&6; }
7682 fi
7683
7684   if test "x$ac_ct_LIPO" = x; then
7685     LIPO=":"
7686   else
7687     case $cross_compiling:$ac_tool_warned in
7688 yes:)
7689 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7690 whose name does not start with the host triplet.  If you think this
7691 configuration is useful to you, please write to autoconf@gnu.org." >&5
7692 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7693 whose name does not start with the host triplet.  If you think this
7694 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7695 ac_tool_warned=yes ;;
7696 esac
7697     LIPO=$ac_ct_LIPO
7698   fi
7699 else
7700   LIPO="$ac_cv_prog_LIPO"
7701 fi
7702
7703     if test -n "$ac_tool_prefix"; then
7704   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}otool; ac_word=$2
7706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708 if test "${ac_cv_prog_OTOOL+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   if test -n "$OTOOL"; then
7712   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717   IFS=$as_save_IFS
7718   test -z "$as_dir" && as_dir=.
7719   for ac_exec_ext in '' $ac_executable_extensions; do
7720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723     break 2
7724   fi
7725 done
7726 done
7727 IFS=$as_save_IFS
7728
7729 fi
7730 fi
7731 OTOOL=$ac_cv_prog_OTOOL
7732 if test -n "$OTOOL"; then
7733   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7734 echo "${ECHO_T}$OTOOL" >&6; }
7735 else
7736   { echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6; }
7738 fi
7739
7740
7741 fi
7742 if test -z "$ac_cv_prog_OTOOL"; then
7743   ac_ct_OTOOL=$OTOOL
7744   # Extract the first word of "otool", so it can be a program name with args.
7745 set dummy otool; ac_word=$2
7746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7748 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   if test -n "$ac_ct_OTOOL"; then
7752   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759   for ac_exec_ext in '' $ac_executable_extensions; do
7760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761     ac_cv_prog_ac_ct_OTOOL="otool"
7762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7772 if test -n "$ac_ct_OTOOL"; then
7773   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7774 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7775 else
7776   { echo "$as_me:$LINENO: result: no" >&5
7777 echo "${ECHO_T}no" >&6; }
7778 fi
7779
7780   if test "x$ac_ct_OTOOL" = x; then
7781     OTOOL=":"
7782   else
7783     case $cross_compiling:$ac_tool_warned in
7784 yes:)
7785 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7786 whose name does not start with the host triplet.  If you think this
7787 configuration is useful to you, please write to autoconf@gnu.org." >&5
7788 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7789 whose name does not start with the host triplet.  If you think this
7790 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7791 ac_tool_warned=yes ;;
7792 esac
7793     OTOOL=$ac_ct_OTOOL
7794   fi
7795 else
7796   OTOOL="$ac_cv_prog_OTOOL"
7797 fi
7798
7799     if test -n "$ac_tool_prefix"; then
7800   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7801 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7804 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7805   echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807   if test -n "$OTOOL64"; then
7808   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7809 else
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813   IFS=$as_save_IFS
7814   test -z "$as_dir" && as_dir=.
7815   for ac_exec_ext in '' $ac_executable_extensions; do
7816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7817     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7819     break 2
7820   fi
7821 done
7822 done
7823 IFS=$as_save_IFS
7824
7825 fi
7826 fi
7827 OTOOL64=$ac_cv_prog_OTOOL64
7828 if test -n "$OTOOL64"; then
7829   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7830 echo "${ECHO_T}$OTOOL64" >&6; }
7831 else
7832   { echo "$as_me:$LINENO: result: no" >&5
7833 echo "${ECHO_T}no" >&6; }
7834 fi
7835
7836
7837 fi
7838 if test -z "$ac_cv_prog_OTOOL64"; then
7839   ac_ct_OTOOL64=$OTOOL64
7840   # Extract the first word of "otool64", so it can be a program name with args.
7841 set dummy otool64; ac_word=$2
7842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7844 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7845   echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847   if test -n "$ac_ct_OTOOL64"; then
7848   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7849 else
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7852 do
7853   IFS=$as_save_IFS
7854   test -z "$as_dir" && as_dir=.
7855   for ac_exec_ext in '' $ac_executable_extensions; do
7856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857     ac_cv_prog_ac_ct_OTOOL64="otool64"
7858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859     break 2
7860   fi
7861 done
7862 done
7863 IFS=$as_save_IFS
7864
7865 fi
7866 fi
7867 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7868 if test -n "$ac_ct_OTOOL64"; then
7869   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7870 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7871 else
7872   { echo "$as_me:$LINENO: result: no" >&5
7873 echo "${ECHO_T}no" >&6; }
7874 fi
7875
7876   if test "x$ac_ct_OTOOL64" = x; then
7877     OTOOL64=":"
7878   else
7879     case $cross_compiling:$ac_tool_warned in
7880 yes:)
7881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7882 whose name does not start with the host triplet.  If you think this
7883 configuration is useful to you, please write to autoconf@gnu.org." >&5
7884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7885 whose name does not start with the host triplet.  If you think this
7886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7887 ac_tool_warned=yes ;;
7888 esac
7889     OTOOL64=$ac_ct_OTOOL64
7890   fi
7891 else
7892   OTOOL64="$ac_cv_prog_OTOOL64"
7893 fi
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7922 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7923 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7924   echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926   lt_cv_apple_cc_single_mod=no
7927       if test -z "${LT_MULTI_MODULE}"; then
7928         # By default we will add the -single_module flag. You can override
7929         # by either setting the environment variable LT_MULTI_MODULE
7930         # non-empty at configure time, or by adding -multi_module to the
7931         # link flags.
7932         rm -rf libconftest.dylib*
7933         echo "int foo(void){return 1;}" > conftest.c
7934         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7935 -dynamiclib -Wl,-single_module conftest.c" >&5
7936         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7937           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7938         _lt_result=$?
7939         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7940           lt_cv_apple_cc_single_mod=yes
7941         else
7942           cat conftest.err >&5
7943         fi
7944         rm -rf libconftest.dylib*
7945         rm -f conftest.*
7946       fi
7947 fi
7948 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7949 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7950     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7951 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7952 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7953   echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955   lt_cv_ld_exported_symbols_list=no
7956       save_LDFLAGS=$LDFLAGS
7957       echo "_main" > conftest.sym
7958       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7959       cat >conftest.$ac_ext <<_ACEOF
7960 /* confdefs.h.  */
7961 _ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h.  */
7965
7966 int
7967 main ()
7968 {
7969
7970   ;
7971   return 0;
7972 }
7973 _ACEOF
7974 rm -f conftest.$ac_objext conftest$ac_exeext
7975 if { (ac_try="$ac_link"
7976 case "(($ac_try" in
7977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978   *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981   (eval "$ac_link") 2>conftest.er1
7982   ac_status=$?
7983   grep -v '^ *+' conftest.er1 >conftest.err
7984   rm -f conftest.er1
7985   cat conftest.err >&5
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); } && {
7988          test -z "$ac_c_werror_flag" ||
7989          test ! -s conftest.err
7990        } && test -s conftest$ac_exeext &&
7991        $as_test_x conftest$ac_exeext; then
7992   lt_cv_ld_exported_symbols_list=yes
7993 else
7994   echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7996
7997         lt_cv_ld_exported_symbols_list=no
7998 fi
7999
8000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8001       conftest$ac_exeext conftest.$ac_ext
8002         LDFLAGS="$save_LDFLAGS"
8003
8004 fi
8005 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8006 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8007     case $host_os in
8008     rhapsody* | darwin1.[012])
8009       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8010     darwin1.*)
8011       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8012     darwin*) # darwin 5.x on
8013       # if running on 10.5 or later, the deployment target defaults
8014       # to the OS version, if on x86, and 10.4, the deployment
8015       # target defaults to 10.4. Don't you love it?
8016       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8017         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8018           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8019         10.[012]*)
8020           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8021         10.*)
8022           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8023       esac
8024     ;;
8025   esac
8026     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8027       _lt_dar_single_mod='$single_module'
8028     fi
8029     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8030       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8031     else
8032       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8033     fi
8034     if test "$DSYMUTIL" != ":"; then
8035       _lt_dsymutil='~$DSYMUTIL $lib || :'
8036     else
8037       _lt_dsymutil=
8038     fi
8039     ;;
8040   esac
8041
8042 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8044 if test "${ac_cv_header_stdc+set}" = set; then
8045   echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047   cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h.  */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h.  */
8053 #include <stdlib.h>
8054 #include <stdarg.h>
8055 #include <string.h>
8056 #include <float.h>
8057
8058 int
8059 main ()
8060 {
8061
8062   ;
8063   return 0;
8064 }
8065 _ACEOF
8066 rm -f conftest.$ac_objext
8067 if { (ac_try="$ac_compile"
8068 case "(($ac_try" in
8069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070   *) ac_try_echo=$ac_try;;
8071 esac
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073   (eval "$ac_compile") 2>conftest.er1
8074   ac_status=$?
8075   grep -v '^ *+' conftest.er1 >conftest.err
8076   rm -f conftest.er1
8077   cat conftest.err >&5
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } && {
8080          test -z "$ac_c_werror_flag" ||
8081          test ! -s conftest.err
8082        } && test -s conftest.$ac_objext; then
8083   ac_cv_header_stdc=yes
8084 else
8085   echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8087
8088         ac_cv_header_stdc=no
8089 fi
8090
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092
8093 if test $ac_cv_header_stdc = yes; then
8094   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8095   cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h.  */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h.  */
8101 #include <string.h>
8102
8103 _ACEOF
8104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8105   $EGREP "memchr" >/dev/null 2>&1; then
8106   :
8107 else
8108   ac_cv_header_stdc=no
8109 fi
8110 rm -f conftest*
8111
8112 fi
8113
8114 if test $ac_cv_header_stdc = yes; then
8115   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8116   cat >conftest.$ac_ext <<_ACEOF
8117 /* confdefs.h.  */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h.  */
8122 #include <stdlib.h>
8123
8124 _ACEOF
8125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8126   $EGREP "free" >/dev/null 2>&1; then
8127   :
8128 else
8129   ac_cv_header_stdc=no
8130 fi
8131 rm -f conftest*
8132
8133 fi
8134
8135 if test $ac_cv_header_stdc = yes; then
8136   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8137   if test "$cross_compiling" = yes; then
8138   :
8139 else
8140   cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h.  */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h.  */
8146 #include <ctype.h>
8147 #include <stdlib.h>
8148 #if ((' ' & 0x0FF) == 0x020)
8149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8151 #else
8152 # define ISLOWER(c) \
8153                    (('a' <= (c) && (c) <= 'i') \
8154                      || ('j' <= (c) && (c) <= 'r') \
8155                      || ('s' <= (c) && (c) <= 'z'))
8156 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8157 #endif
8158
8159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8160 int
8161 main ()
8162 {
8163   int i;
8164   for (i = 0; i < 256; i++)
8165     if (XOR (islower (i), ISLOWER (i))
8166         || toupper (i) != TOUPPER (i))
8167       return 2;
8168   return 0;
8169 }
8170 _ACEOF
8171 rm -f conftest$ac_exeext
8172 if { (ac_try="$ac_link"
8173 case "(($ac_try" in
8174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175   *) ac_try_echo=$ac_try;;
8176 esac
8177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178   (eval "$ac_link") 2>&5
8179   ac_status=$?
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8182   { (case "(($ac_try" in
8183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184   *) ac_try_echo=$ac_try;;
8185 esac
8186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187   (eval "$ac_try") 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); }; }; then
8191   :
8192 else
8193   echo "$as_me: program exited with status $ac_status" >&5
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197 ( exit $ac_status )
8198 ac_cv_header_stdc=no
8199 fi
8200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8201 fi
8202
8203
8204 fi
8205 fi
8206 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8207 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8208 if test $ac_cv_header_stdc = yes; then
8209
8210 cat >>confdefs.h <<\_ACEOF
8211 #define STDC_HEADERS 1
8212 _ACEOF
8213
8214 fi
8215
8216 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8227                   inttypes.h stdint.h unistd.h
8228 do
8229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8233   echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235   cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h.  */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h.  */
8241 $ac_includes_default
8242
8243 #include <$ac_header>
8244 _ACEOF
8245 rm -f conftest.$ac_objext
8246 if { (ac_try="$ac_compile"
8247 case "(($ac_try" in
8248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249   *) ac_try_echo=$ac_try;;
8250 esac
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252   (eval "$ac_compile") 2>conftest.er1
8253   ac_status=$?
8254   grep -v '^ *+' conftest.er1 >conftest.err
8255   rm -f conftest.er1
8256   cat conftest.err >&5
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); } && {
8259          test -z "$ac_c_werror_flag" ||
8260          test ! -s conftest.err
8261        } && test -s conftest.$ac_objext; then
8262   eval "$as_ac_Header=yes"
8263 else
8264   echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8266
8267         eval "$as_ac_Header=no"
8268 fi
8269
8270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 fi
8272 ac_res=`eval echo '${'$as_ac_Header'}'`
8273                { echo "$as_me:$LINENO: result: $ac_res" >&5
8274 echo "${ECHO_T}$ac_res" >&6; }
8275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8276   cat >>confdefs.h <<_ACEOF
8277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8278 _ACEOF
8279
8280 fi
8281
8282 done
8283
8284
8285
8286 for ac_header in dlfcn.h
8287 do
8288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8292   echo $ECHO_N "(cached) $ECHO_C" >&6
8293 else
8294   cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h.  */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h.  */
8300 $ac_includes_default
8301
8302 #include <$ac_header>
8303 _ACEOF
8304 rm -f conftest.$ac_objext
8305 if { (ac_try="$ac_compile"
8306 case "(($ac_try" in
8307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308   *) ac_try_echo=$ac_try;;
8309 esac
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311   (eval "$ac_compile") 2>conftest.er1
8312   ac_status=$?
8313   grep -v '^ *+' conftest.er1 >conftest.err
8314   rm -f conftest.er1
8315   cat conftest.err >&5
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } && {
8318          test -z "$ac_c_werror_flag" ||
8319          test ! -s conftest.err
8320        } && test -s conftest.$ac_objext; then
8321   eval "$as_ac_Header=yes"
8322 else
8323   echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326         eval "$as_ac_Header=no"
8327 fi
8328
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 fi
8331 ac_res=`eval echo '${'$as_ac_Header'}'`
8332                { echo "$as_me:$LINENO: result: $ac_res" >&5
8333 echo "${ECHO_T}$ac_res" >&6; }
8334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8335   cat >>confdefs.h <<_ACEOF
8336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8337 _ACEOF
8338
8339 fi
8340
8341 done
8342
8343
8344
8345 ac_ext=cpp
8346 ac_cpp='$CXXCPP $CPPFLAGS'
8347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8350 if test -z "$CXX"; then
8351   if test -n "$CCC"; then
8352     CXX=$CCC
8353   else
8354     if test -n "$ac_tool_prefix"; then
8355   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8356   do
8357     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8361 if test "${ac_cv_prog_CXX+set}" = set; then
8362   echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364   if test -n "$CXX"; then
8365   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8366 else
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8369 do
8370   IFS=$as_save_IFS
8371   test -z "$as_dir" && as_dir=.
8372   for ac_exec_ext in '' $ac_executable_extensions; do
8373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376     break 2
8377   fi
8378 done
8379 done
8380 IFS=$as_save_IFS
8381
8382 fi
8383 fi
8384 CXX=$ac_cv_prog_CXX
8385 if test -n "$CXX"; then
8386   { echo "$as_me:$LINENO: result: $CXX" >&5
8387 echo "${ECHO_T}$CXX" >&6; }
8388 else
8389   { echo "$as_me:$LINENO: result: no" >&5
8390 echo "${ECHO_T}no" >&6; }
8391 fi
8392
8393
8394     test -n "$CXX" && break
8395   done
8396 fi
8397 if test -z "$CXX"; then
8398   ac_ct_CXX=$CXX
8399   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8400 do
8401   # Extract the first word of "$ac_prog", so it can be a program name with args.
8402 set dummy $ac_prog; ac_word=$2
8403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8405 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408   if test -n "$ac_ct_CXX"; then
8409   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8413 do
8414   IFS=$as_save_IFS
8415   test -z "$as_dir" && as_dir=.
8416   for ac_exec_ext in '' $ac_executable_extensions; do
8417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418     ac_cv_prog_ac_ct_CXX="$ac_prog"
8419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8420     break 2
8421   fi
8422 done
8423 done
8424 IFS=$as_save_IFS
8425
8426 fi
8427 fi
8428 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8429 if test -n "$ac_ct_CXX"; then
8430   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8431 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8432 else
8433   { echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6; }
8435 fi
8436
8437
8438   test -n "$ac_ct_CXX" && break
8439 done
8440
8441   if test "x$ac_ct_CXX" = x; then
8442     CXX="g++"
8443   else
8444     case $cross_compiling:$ac_tool_warned in
8445 yes:)
8446 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8447 whose name does not start with the host triplet.  If you think this
8448 configuration is useful to you, please write to autoconf@gnu.org." >&5
8449 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8450 whose name does not start with the host triplet.  If you think this
8451 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8452 ac_tool_warned=yes ;;
8453 esac
8454     CXX=$ac_ct_CXX
8455   fi
8456 fi
8457
8458   fi
8459 fi
8460 # Provide some information about the compiler.
8461 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8462 ac_compiler=`set X $ac_compile; echo $2`
8463 { (ac_try="$ac_compiler --version >&5"
8464 case "(($ac_try" in
8465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466   *) ac_try_echo=$ac_try;;
8467 esac
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469   (eval "$ac_compiler --version >&5") 2>&5
8470   ac_status=$?
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); }
8473 { (ac_try="$ac_compiler -v >&5"
8474 case "(($ac_try" in
8475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476   *) ac_try_echo=$ac_try;;
8477 esac
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479   (eval "$ac_compiler -v >&5") 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }
8483 { (ac_try="$ac_compiler -V >&5"
8484 case "(($ac_try" in
8485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486   *) ac_try_echo=$ac_try;;
8487 esac
8488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489   (eval "$ac_compiler -V >&5") 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }
8493
8494 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8495 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8496 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8497   echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499   cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h.  */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h.  */
8505
8506 int
8507 main ()
8508 {
8509 #ifndef __GNUC__
8510        choke me
8511 #endif
8512
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 rm -f conftest.$ac_objext
8518 if { (ac_try="$ac_compile"
8519 case "(($ac_try" in
8520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521   *) ac_try_echo=$ac_try;;
8522 esac
8523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8524   (eval "$ac_compile") 2>conftest.er1
8525   ac_status=$?
8526   grep -v '^ *+' conftest.er1 >conftest.err
8527   rm -f conftest.er1
8528   cat conftest.err >&5
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); } && {
8531          test -z "$ac_cxx_werror_flag" ||
8532          test ! -s conftest.err
8533        } && test -s conftest.$ac_objext; then
8534   ac_compiler_gnu=yes
8535 else
8536   echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8538
8539         ac_compiler_gnu=no
8540 fi
8541
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8544
8545 fi
8546 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8547 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8548 GXX=`test $ac_compiler_gnu = yes && echo yes`
8549 ac_test_CXXFLAGS=${CXXFLAGS+set}
8550 ac_save_CXXFLAGS=$CXXFLAGS
8551 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8552 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8553 if test "${ac_cv_prog_cxx_g+set}" = set; then
8554   echo $ECHO_N "(cached) $ECHO_C" >&6
8555 else
8556   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8557    ac_cxx_werror_flag=yes
8558    ac_cv_prog_cxx_g=no
8559    CXXFLAGS="-g"
8560    cat >conftest.$ac_ext <<_ACEOF
8561 /* confdefs.h.  */
8562 _ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h.  */
8566
8567 int
8568 main ()
8569 {
8570
8571   ;
8572   return 0;
8573 }
8574 _ACEOF
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8577 case "(($ac_try" in
8578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579   *) ac_try_echo=$ac_try;;
8580 esac
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582   (eval "$ac_compile") 2>conftest.er1
8583   ac_status=$?
8584   grep -v '^ *+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } && {
8589          test -z "$ac_cxx_werror_flag" ||
8590          test ! -s conftest.err
8591        } && test -s conftest.$ac_objext; then
8592   ac_cv_prog_cxx_g=yes
8593 else
8594   echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8596
8597         CXXFLAGS=""
8598       cat >conftest.$ac_ext <<_ACEOF
8599 /* confdefs.h.  */
8600 _ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h.  */
8604
8605 int
8606 main ()
8607 {
8608
8609   ;
8610   return 0;
8611 }
8612 _ACEOF
8613 rm -f conftest.$ac_objext
8614 if { (ac_try="$ac_compile"
8615 case "(($ac_try" in
8616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617   *) ac_try_echo=$ac_try;;
8618 esac
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620   (eval "$ac_compile") 2>conftest.er1
8621   ac_status=$?
8622   grep -v '^ *+' conftest.er1 >conftest.err
8623   rm -f conftest.er1
8624   cat conftest.err >&5
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); } && {
8627          test -z "$ac_cxx_werror_flag" ||
8628          test ! -s conftest.err
8629        } && test -s conftest.$ac_objext; then
8630   :
8631 else
8632   echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8636          CXXFLAGS="-g"
8637          cat >conftest.$ac_ext <<_ACEOF
8638 /* confdefs.h.  */
8639 _ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h.  */
8643
8644 int
8645 main ()
8646 {
8647
8648   ;
8649   return 0;
8650 }
8651 _ACEOF
8652 rm -f conftest.$ac_objext
8653 if { (ac_try="$ac_compile"
8654 case "(($ac_try" in
8655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656   *) ac_try_echo=$ac_try;;
8657 esac
8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659   (eval "$ac_compile") 2>conftest.er1
8660   ac_status=$?
8661   grep -v '^ *+' conftest.er1 >conftest.err
8662   rm -f conftest.er1
8663   cat conftest.err >&5
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); } && {
8666          test -z "$ac_cxx_werror_flag" ||
8667          test ! -s conftest.err
8668        } && test -s conftest.$ac_objext; then
8669   ac_cv_prog_cxx_g=yes
8670 else
8671   echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8673
8674
8675 fi
8676
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 fi
8679
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 fi
8682
8683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8685 fi
8686 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8687 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8688 if test "$ac_test_CXXFLAGS" = set; then
8689   CXXFLAGS=$ac_save_CXXFLAGS
8690 elif test $ac_cv_prog_cxx_g = yes; then
8691   if test "$GXX" = yes; then
8692     CXXFLAGS="-g -O2"
8693   else
8694     CXXFLAGS="-g"
8695   fi
8696 else
8697   if test "$GXX" = yes; then
8698     CXXFLAGS="-O2"
8699   else
8700     CXXFLAGS=
8701   fi
8702 fi
8703 ac_ext=c
8704 ac_cpp='$CPP $CPPFLAGS'
8705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8708
8709 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8710     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8711     (test "X$CXX" != "Xg++"))) ; then
8712   ac_ext=cpp
8713 ac_cpp='$CXXCPP $CPPFLAGS'
8714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8717 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8718 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8719 if test -z "$CXXCPP"; then
8720   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8721   echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723       # Double quotes because CXXCPP needs to be expanded
8724     for CXXCPP in "$CXX -E" "/lib/cpp"
8725     do
8726       ac_preproc_ok=false
8727 for ac_cxx_preproc_warn_flag in '' yes
8728 do
8729   # Use a header file that comes with gcc, so configuring glibc
8730   # with a fresh cross-compiler works.
8731   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8732   # <limits.h> exists even on freestanding compilers.
8733   # On the NeXT, cc -E runs the code through the compiler's parser,
8734   # not just through cpp. "Syntax error" is here to catch this case.
8735   cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h.  */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h.  */
8741 #ifdef __STDC__
8742 # include <limits.h>
8743 #else
8744 # include <assert.h>
8745 #endif
8746                      Syntax error
8747 _ACEOF
8748 if { (ac_try="$ac_cpp conftest.$ac_ext"
8749 case "(($ac_try" in
8750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751   *) ac_try_echo=$ac_try;;
8752 esac
8753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8754   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8755   ac_status=$?
8756   grep -v '^ *+' conftest.er1 >conftest.err
8757   rm -f conftest.er1
8758   cat conftest.err >&5
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); } >/dev/null && {
8761          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8762          test ! -s conftest.err
8763        }; then
8764   :
8765 else
8766   echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8768
8769   # Broken: fails on valid input.
8770 continue
8771 fi
8772
8773 rm -f conftest.err conftest.$ac_ext
8774
8775   # OK, works on sane cases.  Now check whether nonexistent headers
8776   # can be detected and how.
8777   cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h.  */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h.  */
8783 #include <ac_nonexistent.h>
8784 _ACEOF
8785 if { (ac_try="$ac_cpp conftest.$ac_ext"
8786 case "(($ac_try" in
8787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788   *) ac_try_echo=$ac_try;;
8789 esac
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8792   ac_status=$?
8793   grep -v '^ *+' conftest.er1 >conftest.err
8794   rm -f conftest.er1
8795   cat conftest.err >&5
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); } >/dev/null && {
8798          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8799          test ! -s conftest.err
8800        }; then
8801   # Broken: success on invalid input.
8802 continue
8803 else
8804   echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8806
8807   # Passes both tests.
8808 ac_preproc_ok=:
8809 break
8810 fi
8811
8812 rm -f conftest.err conftest.$ac_ext
8813
8814 done
8815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8816 rm -f conftest.err conftest.$ac_ext
8817 if $ac_preproc_ok; then
8818   break
8819 fi
8820
8821     done
8822     ac_cv_prog_CXXCPP=$CXXCPP
8823
8824 fi
8825   CXXCPP=$ac_cv_prog_CXXCPP
8826 else
8827   ac_cv_prog_CXXCPP=$CXXCPP
8828 fi
8829 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8830 echo "${ECHO_T}$CXXCPP" >&6; }
8831 ac_preproc_ok=false
8832 for ac_cxx_preproc_warn_flag in '' yes
8833 do
8834   # Use a header file that comes with gcc, so configuring glibc
8835   # with a fresh cross-compiler works.
8836   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8837   # <limits.h> exists even on freestanding compilers.
8838   # On the NeXT, cc -E runs the code through the compiler's parser,
8839   # not just through cpp. "Syntax error" is here to catch this case.
8840   cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h.  */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h.  */
8846 #ifdef __STDC__
8847 # include <limits.h>
8848 #else
8849 # include <assert.h>
8850 #endif
8851                      Syntax error
8852 _ACEOF
8853 if { (ac_try="$ac_cpp conftest.$ac_ext"
8854 case "(($ac_try" in
8855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856   *) ac_try_echo=$ac_try;;
8857 esac
8858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8860   ac_status=$?
8861   grep -v '^ *+' conftest.er1 >conftest.err
8862   rm -f conftest.er1
8863   cat conftest.err >&5
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); } >/dev/null && {
8866          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8867          test ! -s conftest.err
8868        }; then
8869   :
8870 else
8871   echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874   # Broken: fails on valid input.
8875 continue
8876 fi
8877
8878 rm -f conftest.err conftest.$ac_ext
8879
8880   # OK, works on sane cases.  Now check whether nonexistent headers
8881   # can be detected and how.
8882   cat >conftest.$ac_ext <<_ACEOF
8883 /* confdefs.h.  */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h.  */
8888 #include <ac_nonexistent.h>
8889 _ACEOF
8890 if { (ac_try="$ac_cpp conftest.$ac_ext"
8891 case "(($ac_try" in
8892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893   *) ac_try_echo=$ac_try;;
8894 esac
8895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8897   ac_status=$?
8898   grep -v '^ *+' conftest.er1 >conftest.err
8899   rm -f conftest.er1
8900   cat conftest.err >&5
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } >/dev/null && {
8903          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8904          test ! -s conftest.err
8905        }; then
8906   # Broken: success on invalid input.
8907 continue
8908 else
8909   echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8911
8912   # Passes both tests.
8913 ac_preproc_ok=:
8914 break
8915 fi
8916
8917 rm -f conftest.err conftest.$ac_ext
8918
8919 done
8920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8921 rm -f conftest.err conftest.$ac_ext
8922 if $ac_preproc_ok; then
8923   :
8924 else
8925   _lt_caught_CXX_error=yes
8926 fi
8927
8928 ac_ext=c
8929 ac_cpp='$CPP $CPPFLAGS'
8930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8933
8934 else
8935   _lt_caught_CXX_error=yes
8936 fi
8937
8938
8939
8940
8941
8942 # Set options
8943 # Check whether --enable-shared was given.
8944 if test "${enable_shared+set}" = set; then
8945   enableval=$enable_shared; p=${PACKAGE-default}
8946     case $enableval in
8947     yes) enable_shared=yes ;;
8948     no) enable_shared=no ;;
8949     *)
8950       enable_shared=no
8951       # Look at the argument we got.  We use all the common list separators.
8952       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8953       for pkg in $enableval; do
8954         IFS="$lt_save_ifs"
8955         if test "X$pkg" = "X$p"; then
8956           enable_shared=yes
8957         fi
8958       done
8959       IFS="$lt_save_ifs"
8960       ;;
8961     esac
8962 else
8963   enable_shared=yes
8964 fi
8965
8966
8967
8968
8969
8970
8971
8972 # Check whether --enable-static was given.
8973 if test "${enable_static+set}" = set; then
8974   enableval=$enable_static; p=${PACKAGE-default}
8975     case $enableval in
8976     yes) enable_static=yes ;;
8977     no) enable_static=no ;;
8978     *)
8979      enable_static=no
8980       # Look at the argument we got.  We use all the common list separators.
8981       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8982       for pkg in $enableval; do
8983         IFS="$lt_save_ifs"
8984         if test "X$pkg" = "X$p"; then
8985           enable_static=yes
8986         fi
8987       done
8988       IFS="$lt_save_ifs"
8989       ;;
8990     esac
8991 else
8992   enable_static=no
8993 fi
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004         enable_dlopen=no
9005
9006
9007   enable_win32_dll=no
9008
9009
9010
9011
9012
9013 # Check whether --with-pic was given.
9014 if test "${with_pic+set}" = set; then
9015   withval=$with_pic; pic_mode="$withval"
9016 else
9017   pic_mode=default
9018 fi
9019
9020
9021 test -z "$pic_mode" && pic_mode=default
9022
9023
9024
9025
9026
9027
9028
9029   # Check whether --enable-fast-install was given.
9030 if test "${enable_fast_install+set}" = set; then
9031   enableval=$enable_fast_install; p=${PACKAGE-default}
9032     case $enableval in
9033     yes) enable_fast_install=yes ;;
9034     no) enable_fast_install=no ;;
9035     *)
9036       enable_fast_install=no
9037       # Look at the argument we got.  We use all the common list separators.
9038       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9039       for pkg in $enableval; do
9040         IFS="$lt_save_ifs"
9041         if test "X$pkg" = "X$p"; then
9042           enable_fast_install=yes
9043         fi
9044       done
9045       IFS="$lt_save_ifs"
9046       ;;
9047     esac
9048 else
9049   enable_fast_install=yes
9050 fi
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062 # This can be used to rebuild libtool when needed
9063 LIBTOOL_DEPS="$ltmain"
9064
9065 # Always use our own libtool.
9066 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092 test -z "$LN_S" && LN_S="ln -s"
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107 if test -n "${ZSH_VERSION+set}" ; then
9108    setopt NO_GLOB_SUBST
9109 fi
9110
9111 { echo "$as_me:$LINENO: checking for objdir" >&5
9112 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9113 if test "${lt_cv_objdir+set}" = set; then
9114   echo $ECHO_N "(cached) $ECHO_C" >&6
9115 else
9116   rm -f .libs 2>/dev/null
9117 mkdir .libs 2>/dev/null
9118 if test -d .libs; then
9119   lt_cv_objdir=.libs
9120 else
9121   # MS-DOS does not allow filenames that begin with a dot.
9122   lt_cv_objdir=_libs
9123 fi
9124 rmdir .libs 2>/dev/null
9125 fi
9126 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9127 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9128 objdir=$lt_cv_objdir
9129
9130
9131
9132
9133
9134 cat >>confdefs.h <<_ACEOF
9135 #define LT_OBJDIR "$lt_cv_objdir/"
9136 _ACEOF
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154 case $host_os in
9155 aix3*)
9156   # AIX sometimes has problems with the GCC collect2 program.  For some
9157   # reason, if we set the COLLECT_NAMES environment variable, the problems
9158   # vanish in a puff of smoke.
9159   if test "X${COLLECT_NAMES+set}" != Xset; then
9160     COLLECT_NAMES=
9161     export COLLECT_NAMES
9162   fi
9163   ;;
9164 esac
9165
9166 # Sed substitution that helps us do robust quoting.  It backslashifies
9167 # metacharacters that are still active within double-quoted strings.
9168 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9169
9170 # Same as above, but do not quote variable references.
9171 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9172
9173 # Sed substitution to delay expansion of an escaped shell variable in a
9174 # double_quote_subst'ed string.
9175 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9176
9177 # Sed substitution to delay expansion of an escaped single quote.
9178 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9179
9180 # Sed substitution to avoid accidental globbing in evaled expressions
9181 no_glob_subst='s/\*/\\\*/g'
9182
9183 # Global variables:
9184 ofile=libtool
9185 can_build_shared=yes
9186
9187 # All known linkers require a `.a' archive for static linking (except MSVC,
9188 # which needs '.lib').
9189 libext=a
9190
9191 with_gnu_ld="$lt_cv_prog_gnu_ld"
9192
9193 old_CC="$CC"
9194 old_CFLAGS="$CFLAGS"
9195
9196 # Set sane defaults for various variables
9197 test -z "$CC" && CC=cc
9198 test -z "$LTCC" && LTCC=$CC
9199 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9200 test -z "$LD" && LD=ld
9201 test -z "$ac_objext" && ac_objext=o
9202
9203 for cc_temp in $compiler""; do
9204   case $cc_temp in
9205     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9206     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9207     \-*) ;;
9208     *) break;;
9209   esac
9210 done
9211 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9212
9213
9214 # Only perform the check for file, if the check method requires it
9215 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9216 case $deplibs_check_method in
9217 file_magic*)
9218   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9219     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9220 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9221 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9222   echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224   case $MAGIC_CMD in
9225 [\\/*] |  ?:[\\/]*)
9226   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9227   ;;
9228 *)
9229   lt_save_MAGIC_CMD="$MAGIC_CMD"
9230   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9231   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9232   for ac_dir in $ac_dummy; do
9233     IFS="$lt_save_ifs"
9234     test -z "$ac_dir" && ac_dir=.
9235     if test -f $ac_dir/${ac_tool_prefix}file; then
9236       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9237       if test -n "$file_magic_test_file"; then
9238         case $deplibs_check_method in
9239         "file_magic "*)
9240           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9241           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9242           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9243             $EGREP "$file_magic_regex" > /dev/null; then
9244             :
9245           else
9246             cat <<_LT_EOF 1>&2
9247
9248 *** Warning: the command libtool uses to detect shared libraries,
9249 *** $file_magic_cmd, produces output that libtool cannot recognize.
9250 *** The result is that libtool may fail to recognize shared libraries
9251 *** as such.  This will affect the creation of libtool libraries that
9252 *** depend on shared libraries, but programs linked with such libtool
9253 *** libraries will work regardless of this problem.  Nevertheless, you
9254 *** may want to report the problem to your system manager and/or to
9255 *** bug-libtool@gnu.org
9256
9257 _LT_EOF
9258           fi ;;
9259         esac
9260       fi
9261       break
9262     fi
9263   done
9264   IFS="$lt_save_ifs"
9265   MAGIC_CMD="$lt_save_MAGIC_CMD"
9266   ;;
9267 esac
9268 fi
9269
9270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9271 if test -n "$MAGIC_CMD"; then
9272   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9273 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9274 else
9275   { echo "$as_me:$LINENO: result: no" >&5
9276 echo "${ECHO_T}no" >&6; }
9277 fi
9278
9279
9280
9281
9282
9283 if test -z "$lt_cv_path_MAGIC_CMD"; then
9284   if test -n "$ac_tool_prefix"; then
9285     { echo "$as_me:$LINENO: checking for file" >&5
9286 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9287 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9288   echo $ECHO_N "(cached) $ECHO_C" >&6
9289 else
9290   case $MAGIC_CMD in
9291 [\\/*] |  ?:[\\/]*)
9292   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9293   ;;
9294 *)
9295   lt_save_MAGIC_CMD="$MAGIC_CMD"
9296   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9297   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9298   for ac_dir in $ac_dummy; do
9299     IFS="$lt_save_ifs"
9300     test -z "$ac_dir" && ac_dir=.
9301     if test -f $ac_dir/file; then
9302       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9303       if test -n "$file_magic_test_file"; then
9304         case $deplibs_check_method in
9305         "file_magic "*)
9306           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9307           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9308           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9309             $EGREP "$file_magic_regex" > /dev/null; then
9310             :
9311           else
9312             cat <<_LT_EOF 1>&2
9313
9314 *** Warning: the command libtool uses to detect shared libraries,
9315 *** $file_magic_cmd, produces output that libtool cannot recognize.
9316 *** The result is that libtool may fail to recognize shared libraries
9317 *** as such.  This will affect the creation of libtool libraries that
9318 *** depend on shared libraries, but programs linked with such libtool
9319 *** libraries will work regardless of this problem.  Nevertheless, you
9320 *** may want to report the problem to your system manager and/or to
9321 *** bug-libtool@gnu.org
9322
9323 _LT_EOF
9324           fi ;;
9325         esac
9326       fi
9327       break
9328     fi
9329   done
9330   IFS="$lt_save_ifs"
9331   MAGIC_CMD="$lt_save_MAGIC_CMD"
9332   ;;
9333 esac
9334 fi
9335
9336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9337 if test -n "$MAGIC_CMD"; then
9338   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9339 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9340 else
9341   { echo "$as_me:$LINENO: result: no" >&5
9342 echo "${ECHO_T}no" >&6; }
9343 fi
9344
9345
9346   else
9347     MAGIC_CMD=:
9348   fi
9349 fi
9350
9351   fi
9352   ;;
9353 esac
9354
9355 # Use C for the default configuration in the libtool script
9356
9357 lt_save_CC="$CC"
9358 ac_ext=c
9359 ac_cpp='$CPP $CPPFLAGS'
9360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9363
9364
9365 # Source file extension for C test sources.
9366 ac_ext=c
9367
9368 # Object file extension for compiled C test sources.
9369 objext=o
9370 objext=$objext
9371
9372 # Code to be used in simple compile tests
9373 lt_simple_compile_test_code="int some_variable = 0;"
9374
9375 # Code to be used in simple link tests
9376 lt_simple_link_test_code='int main(){return(0);}'
9377
9378
9379
9380
9381
9382
9383
9384 # If no C compiler was specified, use CC.
9385 LTCC=${LTCC-"$CC"}
9386
9387 # If no C compiler flags were specified, use CFLAGS.
9388 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9389
9390 # Allow CC to be a program name with arguments.
9391 compiler=$CC
9392
9393 # Save the default compiler, since it gets overwritten when the other
9394 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9395 compiler_DEFAULT=$CC
9396
9397 # save warnings/boilerplate of simple test code
9398 ac_outfile=conftest.$ac_objext
9399 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9400 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9401 _lt_compiler_boilerplate=`cat conftest.err`
9402 $RM conftest*
9403
9404 ac_outfile=conftest.$ac_objext
9405 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9406 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9407 _lt_linker_boilerplate=`cat conftest.err`
9408 $RM -r conftest*
9409
9410
9411 ## CAVEAT EMPTOR:
9412 ## There is no encapsulation within the following macros, do not change
9413 ## the running order or otherwise move them around unless you know exactly
9414 ## what you are doing...
9415 if test -n "$compiler"; then
9416
9417 lt_prog_compiler_no_builtin_flag=
9418
9419 if test "$GCC" = yes; then
9420   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9421
9422   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9423 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9424 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9425   echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427   lt_cv_prog_compiler_rtti_exceptions=no
9428    ac_outfile=conftest.$ac_objext
9429    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9430    lt_compiler_flag="-fno-rtti -fno-exceptions"
9431    # Insert the option either (1) after the last *FLAGS variable, or
9432    # (2) before a word containing "conftest.", or (3) at the end.
9433    # Note that $ac_compile itself does not contain backslashes and begins
9434    # with a dollar sign (not a hyphen), so the echo should work correctly.
9435    # The option is referenced via a variable to avoid confusing sed.
9436    lt_compile=`echo "$ac_compile" | $SED \
9437    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9438    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9439    -e 's:$: $lt_compiler_flag:'`
9440    (eval echo "\"\$as_me:9440: $lt_compile\"" >&5)
9441    (eval "$lt_compile" 2>conftest.err)
9442    ac_status=$?
9443    cat conftest.err >&5
9444    echo "$as_me:9444: \$? = $ac_status" >&5
9445    if (exit $ac_status) && test -s "$ac_outfile"; then
9446      # The compiler can only warn and ignore the option if not recognized
9447      # So say no if there are warnings other than the usual output.
9448      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9449      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9450      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9451        lt_cv_prog_compiler_rtti_exceptions=yes
9452      fi
9453    fi
9454    $RM conftest*
9455
9456 fi
9457 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9458 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9459
9460 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9461     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9462 else
9463     :
9464 fi
9465
9466 fi
9467
9468
9469
9470
9471
9472
9473   lt_prog_compiler_wl=
9474 lt_prog_compiler_pic=
9475 lt_prog_compiler_static=
9476
9477 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9478 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9479
9480   if test "$GCC" = yes; then
9481     lt_prog_compiler_wl='-Wl,'
9482     lt_prog_compiler_static='-static'
9483
9484     case $host_os in
9485       aix*)
9486       # All AIX code is PIC.
9487       if test "$host_cpu" = ia64; then
9488         # AIX 5 now supports IA64 processor
9489         lt_prog_compiler_static='-Bstatic'
9490       fi
9491       ;;
9492
9493     amigaos*)
9494       case $host_cpu in
9495       powerpc)
9496             # see comment about AmigaOS4 .so support
9497             lt_prog_compiler_pic='-fPIC'
9498         ;;
9499       m68k)
9500             # FIXME: we need at least 68020 code to build shared libraries, but
9501             # adding the `-m68020' flag to GCC prevents building anything better,
9502             # like `-m68040'.
9503             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9504         ;;
9505       esac
9506       ;;
9507
9508     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9509       # PIC is the default for these OSes.
9510       ;;
9511
9512     mingw* | cygwin* | pw32* | os2* | cegcc*)
9513       # This hack is so that the source file can tell whether it is being
9514       # built for inclusion in a dll (and should export symbols for example).
9515       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9516       # (--disable-auto-import) libraries
9517       lt_prog_compiler_pic='-DDLL_EXPORT'
9518       ;;
9519
9520     darwin* | rhapsody*)
9521       # PIC is the default on this platform
9522       # Common symbols not allowed in MH_DYLIB files
9523       lt_prog_compiler_pic='-fno-common'
9524       ;;
9525
9526     hpux*)
9527       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9528       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9529       # sets the default TLS model and affects inlining.
9530       case $host_cpu in
9531       hppa*64*)
9532         # +Z the default
9533         ;;
9534       *)
9535         lt_prog_compiler_pic='-fPIC'
9536         ;;
9537       esac
9538       ;;
9539
9540     interix[3-9]*)
9541       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9542       # Instead, we relocate shared libraries at runtime.
9543       ;;
9544
9545     msdosdjgpp*)
9546       # Just because we use GCC doesn't mean we suddenly get shared libraries
9547       # on systems that don't support them.
9548       lt_prog_compiler_can_build_shared=no
9549       enable_shared=no
9550       ;;
9551
9552     *nto* | *qnx*)
9553       # QNX uses GNU C++, but need to define -shared option too, otherwise
9554       # it will coredump.
9555       lt_prog_compiler_pic='-fPIC -shared'
9556       ;;
9557
9558     sysv4*MP*)
9559       if test -d /usr/nec; then
9560         lt_prog_compiler_pic=-Kconform_pic
9561       fi
9562       ;;
9563
9564     *)
9565       lt_prog_compiler_pic='-fPIC'
9566       ;;
9567     esac
9568   else
9569     # PORTME Check for flag to pass linker flags through the system compiler.
9570     case $host_os in
9571     aix*)
9572       lt_prog_compiler_wl='-Wl,'
9573       if test "$host_cpu" = ia64; then
9574         # AIX 5 now supports IA64 processor
9575         lt_prog_compiler_static='-Bstatic'
9576       else
9577         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9578       fi
9579       ;;
9580
9581     mingw* | cygwin* | pw32* | os2* | cegcc*)
9582       # This hack is so that the source file can tell whether it is being
9583       # built for inclusion in a dll (and should export symbols for example).
9584       lt_prog_compiler_pic='-DDLL_EXPORT'
9585       ;;
9586
9587     hpux9* | hpux10* | hpux11*)
9588       lt_prog_compiler_wl='-Wl,'
9589       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9590       # not for PA HP-UX.
9591       case $host_cpu in
9592       hppa*64*|ia64*)
9593         # +Z the default
9594         ;;
9595       *)
9596         lt_prog_compiler_pic='+Z'
9597         ;;
9598       esac
9599       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9600       lt_prog_compiler_static='${wl}-a ${wl}archive'
9601       ;;
9602
9603     irix5* | irix6* | nonstopux*)
9604       lt_prog_compiler_wl='-Wl,'
9605       # PIC (with -KPIC) is the default.
9606       lt_prog_compiler_static='-non_shared'
9607       ;;
9608
9609     linux* | k*bsd*-gnu)
9610       case $cc_basename in
9611       # old Intel for x86_64 which still supported -KPIC.
9612       ecc*)
9613         lt_prog_compiler_wl='-Wl,'
9614         lt_prog_compiler_pic='-KPIC'
9615         lt_prog_compiler_static='-static'
9616         ;;
9617       # icc used to be incompatible with GCC.
9618       # ICC 10 doesn't accept -KPIC any more.
9619       icc* | ifort*)
9620         lt_prog_compiler_wl='-Wl,'
9621         lt_prog_compiler_pic='-fPIC'
9622         lt_prog_compiler_static='-static'
9623         ;;
9624       # Lahey Fortran 8.1.
9625       lf95*)
9626         lt_prog_compiler_wl='-Wl,'
9627         lt_prog_compiler_pic='--shared'
9628         lt_prog_compiler_static='--static'
9629         ;;
9630       pgcc* | pgf77* | pgf90* | pgf95*)
9631         # Portland Group compilers (*not* the Pentium gcc compiler,
9632         # which looks to be a dead project)
9633         lt_prog_compiler_wl='-Wl,'
9634         lt_prog_compiler_pic='-fpic'
9635         lt_prog_compiler_static='-Bstatic'
9636         ;;
9637       ccc*)
9638         lt_prog_compiler_wl='-Wl,'
9639         # All Alpha code is PIC.
9640         lt_prog_compiler_static='-non_shared'
9641         ;;
9642       xl*)
9643         # IBM XL C 8.0/Fortran 10.1 on PPC
9644         lt_prog_compiler_wl='-Wl,'
9645         lt_prog_compiler_pic='-qpic'
9646         lt_prog_compiler_static='-qstaticlink'
9647         ;;
9648       *)
9649         case `$CC -V 2>&1 | sed 5q` in
9650         *Sun\ C*)
9651           # Sun C 5.9
9652           lt_prog_compiler_pic='-KPIC'
9653           lt_prog_compiler_static='-Bstatic'
9654           lt_prog_compiler_wl='-Wl,'
9655           ;;
9656         *Sun\ F*)
9657           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9658           lt_prog_compiler_pic='-KPIC'
9659           lt_prog_compiler_static='-Bstatic'
9660           lt_prog_compiler_wl=''
9661           ;;
9662         esac
9663         ;;
9664       esac
9665       ;;
9666
9667     newsos6)
9668       lt_prog_compiler_pic='-KPIC'
9669       lt_prog_compiler_static='-Bstatic'
9670       ;;
9671
9672     *nto* | *qnx*)
9673       # QNX uses GNU C++, but need to define -shared option too, otherwise
9674       # it will coredump.
9675       lt_prog_compiler_pic='-fPIC -shared'
9676       ;;
9677
9678     osf3* | osf4* | osf5*)
9679       lt_prog_compiler_wl='-Wl,'
9680       # All OSF/1 code is PIC.
9681       lt_prog_compiler_static='-non_shared'
9682       ;;
9683
9684     rdos*)
9685       lt_prog_compiler_static='-non_shared'
9686       ;;
9687
9688     solaris*)
9689       lt_prog_compiler_pic='-KPIC'
9690       lt_prog_compiler_static='-Bstatic'
9691       case $cc_basename in
9692       f77* | f90* | f95*)
9693         lt_prog_compiler_wl='-Qoption ld ';;
9694       *)
9695         lt_prog_compiler_wl='-Wl,';;
9696       esac
9697       ;;
9698
9699     sunos4*)
9700       lt_prog_compiler_wl='-Qoption ld '
9701       lt_prog_compiler_pic='-PIC'
9702       lt_prog_compiler_static='-Bstatic'
9703       ;;
9704
9705     sysv4 | sysv4.2uw2* | sysv4.3*)
9706       lt_prog_compiler_wl='-Wl,'
9707       lt_prog_compiler_pic='-KPIC'
9708       lt_prog_compiler_static='-Bstatic'
9709       ;;
9710
9711     sysv4*MP*)
9712       if test -d /usr/nec ;then
9713         lt_prog_compiler_pic='-Kconform_pic'
9714         lt_prog_compiler_static='-Bstatic'
9715       fi
9716       ;;
9717
9718     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9719       lt_prog_compiler_wl='-Wl,'
9720       lt_prog_compiler_pic='-KPIC'
9721       lt_prog_compiler_static='-Bstatic'
9722       ;;
9723
9724     unicos*)
9725       lt_prog_compiler_wl='-Wl,'
9726       lt_prog_compiler_can_build_shared=no
9727       ;;
9728
9729     uts4*)
9730       lt_prog_compiler_pic='-pic'
9731       lt_prog_compiler_static='-Bstatic'
9732       ;;
9733
9734     *)
9735       lt_prog_compiler_can_build_shared=no
9736       ;;
9737     esac
9738   fi
9739
9740 case $host_os in
9741   # For platforms which do not support PIC, -DPIC is meaningless:
9742   *djgpp*)
9743     lt_prog_compiler_pic=
9744     ;;
9745   *)
9746     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9747     ;;
9748 esac
9749 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9750 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9751
9752
9753
9754
9755
9756
9757 #
9758 # Check to make sure the PIC flag actually works.
9759 #
9760 if test -n "$lt_prog_compiler_pic"; then
9761   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9762 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9763 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9764   echo $ECHO_N "(cached) $ECHO_C" >&6
9765 else
9766   lt_cv_prog_compiler_pic_works=no
9767    ac_outfile=conftest.$ac_objext
9768    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9769    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9770    # Insert the option either (1) after the last *FLAGS variable, or
9771    # (2) before a word containing "conftest.", or (3) at the end.
9772    # Note that $ac_compile itself does not contain backslashes and begins
9773    # with a dollar sign (not a hyphen), so the echo should work correctly.
9774    # The option is referenced via a variable to avoid confusing sed.
9775    lt_compile=`echo "$ac_compile" | $SED \
9776    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9777    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9778    -e 's:$: $lt_compiler_flag:'`
9779    (eval echo "\"\$as_me:9779: $lt_compile\"" >&5)
9780    (eval "$lt_compile" 2>conftest.err)
9781    ac_status=$?
9782    cat conftest.err >&5
9783    echo "$as_me:9783: \$? = $ac_status" >&5
9784    if (exit $ac_status) && test -s "$ac_outfile"; then
9785      # The compiler can only warn and ignore the option if not recognized
9786      # So say no if there are warnings other than the usual output.
9787      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9788      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9789      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9790        lt_cv_prog_compiler_pic_works=yes
9791      fi
9792    fi
9793    $RM conftest*
9794
9795 fi
9796 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9797 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9798
9799 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9800     case $lt_prog_compiler_pic in
9801      "" | " "*) ;;
9802      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9803      esac
9804 else
9805     lt_prog_compiler_pic=
9806      lt_prog_compiler_can_build_shared=no
9807 fi
9808
9809 fi
9810
9811
9812
9813
9814
9815
9816 #
9817 # Check to make sure the static flag actually works.
9818 #
9819 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9820 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9821 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9822 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9823   echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825   lt_cv_prog_compiler_static_works=no
9826    save_LDFLAGS="$LDFLAGS"
9827    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9828    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9829    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9830      # The linker can only warn and ignore the option if not recognized
9831      # So say no if there are warnings
9832      if test -s conftest.err; then
9833        # Append any errors to the config.log.
9834        cat conftest.err 1>&5
9835        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9836        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9837        if diff conftest.exp conftest.er2 >/dev/null; then
9838          lt_cv_prog_compiler_static_works=yes
9839        fi
9840      else
9841        lt_cv_prog_compiler_static_works=yes
9842      fi
9843    fi
9844    $RM -r conftest*
9845    LDFLAGS="$save_LDFLAGS"
9846
9847 fi
9848 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9849 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9850
9851 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9852     :
9853 else
9854     lt_prog_compiler_static=
9855 fi
9856
9857
9858
9859
9860
9861
9862
9863   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9864 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9865 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868   lt_cv_prog_compiler_c_o=no
9869    $RM -r conftest 2>/dev/null
9870    mkdir conftest
9871    cd conftest
9872    mkdir out
9873    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9874
9875    lt_compiler_flag="-o out/conftest2.$ac_objext"
9876    # Insert the option either (1) after the last *FLAGS variable, or
9877    # (2) before a word containing "conftest.", or (3) at the end.
9878    # Note that $ac_compile itself does not contain backslashes and begins
9879    # with a dollar sign (not a hyphen), so the echo should work correctly.
9880    lt_compile=`echo "$ac_compile" | $SED \
9881    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9882    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9883    -e 's:$: $lt_compiler_flag:'`
9884    (eval echo "\"\$as_me:9884: $lt_compile\"" >&5)
9885    (eval "$lt_compile" 2>out/conftest.err)
9886    ac_status=$?
9887    cat out/conftest.err >&5
9888    echo "$as_me:9888: \$? = $ac_status" >&5
9889    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9890    then
9891      # The compiler can only warn and ignore the option if not recognized
9892      # So say no if there are warnings
9893      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9894      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9895      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9896        lt_cv_prog_compiler_c_o=yes
9897      fi
9898    fi
9899    chmod u+w . 2>&5
9900    $RM conftest*
9901    # SGI C++ compiler will create directory out/ii_files/ for
9902    # template instantiation
9903    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9904    $RM out/* && rmdir out
9905    cd ..
9906    $RM -r conftest
9907    $RM conftest*
9908
9909 fi
9910 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9911 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9912
9913
9914
9915
9916
9917
9918   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9919 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9920 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9921   echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923   lt_cv_prog_compiler_c_o=no
9924    $RM -r conftest 2>/dev/null
9925    mkdir conftest
9926    cd conftest
9927    mkdir out
9928    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9929
9930    lt_compiler_flag="-o out/conftest2.$ac_objext"
9931    # Insert the option either (1) after the last *FLAGS variable, or
9932    # (2) before a word containing "conftest.", or (3) at the end.
9933    # Note that $ac_compile itself does not contain backslashes and begins
9934    # with a dollar sign (not a hyphen), so the echo should work correctly.
9935    lt_compile=`echo "$ac_compile" | $SED \
9936    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9937    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9938    -e 's:$: $lt_compiler_flag:'`
9939    (eval echo "\"\$as_me:9939: $lt_compile\"" >&5)
9940    (eval "$lt_compile" 2>out/conftest.err)
9941    ac_status=$?
9942    cat out/conftest.err >&5
9943    echo "$as_me:9943: \$? = $ac_status" >&5
9944    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9945    then
9946      # The compiler can only warn and ignore the option if not recognized
9947      # So say no if there are warnings
9948      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9949      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9950      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9951        lt_cv_prog_compiler_c_o=yes
9952      fi
9953    fi
9954    chmod u+w . 2>&5
9955    $RM conftest*
9956    # SGI C++ compiler will create directory out/ii_files/ for
9957    # template instantiation
9958    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9959    $RM out/* && rmdir out
9960    cd ..
9961    $RM -r conftest
9962    $RM conftest*
9963
9964 fi
9965 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9966 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9967
9968
9969
9970
9971 hard_links="nottested"
9972 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9973   # do not overwrite the value of need_locks provided by the user
9974   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9975 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9976   hard_links=yes
9977   $RM conftest*
9978   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9979   touch conftest.a
9980   ln conftest.a conftest.b 2>&5 || hard_links=no
9981   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9982   { echo "$as_me:$LINENO: result: $hard_links" >&5
9983 echo "${ECHO_T}$hard_links" >&6; }
9984   if test "$hard_links" = no; then
9985     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9986 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9987     need_locks=warn
9988   fi
9989 else
9990   need_locks=no
9991 fi
9992
9993
9994
9995
9996
9997
9998   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9999 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10000
10001   runpath_var=
10002   allow_undefined_flag=
10003   always_export_symbols=no
10004   archive_cmds=
10005   archive_expsym_cmds=
10006   compiler_needs_object=no
10007   enable_shared_with_static_runtimes=no
10008   export_dynamic_flag_spec=
10009   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10010   hardcode_automatic=no
10011   hardcode_direct=no
10012   hardcode_direct_absolute=no
10013   hardcode_libdir_flag_spec=
10014   hardcode_libdir_flag_spec_ld=
10015   hardcode_libdir_separator=
10016   hardcode_minus_L=no
10017   hardcode_shlibpath_var=unsupported
10018   inherit_rpath=no
10019   link_all_deplibs=unknown
10020   module_cmds=
10021   module_expsym_cmds=
10022   old_archive_from_new_cmds=
10023   old_archive_from_expsyms_cmds=
10024   thread_safe_flag_spec=
10025   whole_archive_flag_spec=
10026   # include_expsyms should be a list of space-separated symbols to be *always*
10027   # included in the symbol list
10028   include_expsyms=
10029   # exclude_expsyms can be an extended regexp of symbols to exclude
10030   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10031   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10032   # as well as any symbol that contains `d'.
10033   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10034   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10035   # platforms (ab)use it in PIC code, but their linkers get confused if
10036   # the symbol is explicitly referenced.  Since portable code cannot
10037   # rely on this symbol name, it's probably fine to never include it in
10038   # preloaded symbol tables.
10039   # Exclude shared library initialization/finalization symbols.
10040   extract_expsyms_cmds=
10041
10042   case $host_os in
10043   cygwin* | mingw* | pw32* | cegcc*)
10044     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10045     # When not using gcc, we currently assume that we are using
10046     # Microsoft Visual C++.
10047     if test "$GCC" != yes; then
10048       with_gnu_ld=no
10049     fi
10050     ;;
10051   interix*)
10052     # we just hope/assume this is gcc and not c89 (= MSVC++)
10053     with_gnu_ld=yes
10054     ;;
10055   openbsd*)
10056     with_gnu_ld=no
10057     ;;
10058   esac
10059
10060   ld_shlibs=yes
10061   if test "$with_gnu_ld" = yes; then
10062     # If archive_cmds runs LD, not CC, wlarc should be empty
10063     wlarc='${wl}'
10064
10065     # Set some defaults for GNU ld with shared library support. These
10066     # are reset later if shared libraries are not supported. Putting them
10067     # here allows them to be overridden if necessary.
10068     runpath_var=LD_RUN_PATH
10069     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10070     export_dynamic_flag_spec='${wl}--export-dynamic'
10071     # ancient GNU ld didn't support --whole-archive et. al.
10072     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10073       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10074     else
10075       whole_archive_flag_spec=
10076     fi
10077     supports_anon_versioning=no
10078     case `$LD -v 2>&1` in
10079       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10080       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10081       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10082       *\ 2.11.*) ;; # other 2.11 versions
10083       *) supports_anon_versioning=yes ;;
10084     esac
10085
10086     # See if GNU ld supports shared libraries.
10087     case $host_os in
10088     aix[3-9]*)
10089       # On AIX/PPC, the GNU linker is very broken
10090       if test "$host_cpu" != ia64; then
10091         ld_shlibs=no
10092         cat <<_LT_EOF 1>&2
10093
10094 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10095 *** to be unable to reliably create shared libraries on AIX.
10096 *** Therefore, libtool is disabling shared libraries support.  If you
10097 *** really care for shared libraries, you may want to modify your PATH
10098 *** so that a non-GNU linker is found, and then restart.
10099
10100 _LT_EOF
10101       fi
10102       ;;
10103
10104     amigaos*)
10105       case $host_cpu in
10106       powerpc)
10107             # see comment about AmigaOS4 .so support
10108             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10109             archive_expsym_cmds=''
10110         ;;
10111       m68k)
10112             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)'
10113             hardcode_libdir_flag_spec='-L$libdir'
10114             hardcode_minus_L=yes
10115         ;;
10116       esac
10117       ;;
10118
10119     beos*)
10120       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10121         allow_undefined_flag=unsupported
10122         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10123         # support --undefined.  This deserves some investigation.  FIXME
10124         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10125       else
10126         ld_shlibs=no
10127       fi
10128       ;;
10129
10130     cygwin* | mingw* | pw32* | cegcc*)
10131       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10132       # as there is no search path for DLLs.
10133       hardcode_libdir_flag_spec='-L$libdir'
10134       allow_undefined_flag=unsupported
10135       always_export_symbols=no
10136       enable_shared_with_static_runtimes=yes
10137       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10138
10139       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10140         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10141         # If the export-symbols file already is a .def file (1st line
10142         # is EXPORTS), use it as is; otherwise, prepend...
10143         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10144           cp $export_symbols $output_objdir/$soname.def;
10145         else
10146           echo EXPORTS > $output_objdir/$soname.def;
10147           cat $export_symbols >> $output_objdir/$soname.def;
10148         fi~
10149         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10150       else
10151         ld_shlibs=no
10152       fi
10153       ;;
10154
10155     interix[3-9]*)
10156       hardcode_direct=no
10157       hardcode_shlibpath_var=no
10158       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10159       export_dynamic_flag_spec='${wl}-E'
10160       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10161       # Instead, shared libraries are loaded at an image base (0x10000000 by
10162       # default) and relocated if they conflict, which is a slow very memory
10163       # consuming and fragmenting process.  To avoid this, we pick a random,
10164       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10165       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10166       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10167       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'
10168       ;;
10169
10170     gnu* | linux* | tpf* | k*bsd*-gnu)
10171       tmp_diet=no
10172       if test "$host_os" = linux-dietlibc; then
10173         case $cc_basename in
10174           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10175         esac
10176       fi
10177       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10178          && test "$tmp_diet" = no
10179       then
10180         tmp_addflag=
10181         tmp_sharedflag='-shared'
10182         case $cc_basename,$host_cpu in
10183         pgcc*)                          # Portland Group C compiler
10184           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'
10185           tmp_addflag=' $pic_flag'
10186           ;;
10187         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10188           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'
10189           tmp_addflag=' $pic_flag -Mnomain' ;;
10190         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10191           tmp_addflag=' -i_dynamic' ;;
10192         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10193           tmp_addflag=' -i_dynamic -nofor_main' ;;
10194         ifc* | ifort*)                  # Intel Fortran compiler
10195           tmp_addflag=' -nofor_main' ;;
10196         lf95*)                          # Lahey Fortran 8.1
10197           whole_archive_flag_spec=
10198           tmp_sharedflag='--shared' ;;
10199         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10200           tmp_sharedflag='-qmkshrobj'
10201           tmp_addflag= ;;
10202         esac
10203         case `$CC -V 2>&1 | sed 5q` in
10204         *Sun\ C*)                       # Sun C 5.9
10205           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'
10206           compiler_needs_object=yes
10207           tmp_sharedflag='-G' ;;
10208         *Sun\ F*)                       # Sun Fortran 8.3
10209           tmp_sharedflag='-G' ;;
10210         esac
10211         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10212
10213         if test "x$supports_anon_versioning" = xyes; then
10214           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10215             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10216             echo "local: *; };" >> $output_objdir/$libname.ver~
10217             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10218         fi
10219
10220         case $cc_basename in
10221         xlf*)
10222           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10223           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10224           hardcode_libdir_flag_spec=
10225           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10226           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10227           if test "x$supports_anon_versioning" = xyes; then
10228             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10229               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10230               echo "local: *; };" >> $output_objdir/$libname.ver~
10231               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10232           fi
10233           ;;
10234         esac
10235       else
10236         ld_shlibs=no
10237       fi
10238       ;;
10239
10240     netbsd*)
10241       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10242         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10243         wlarc=
10244       else
10245         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10246         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10247       fi
10248       ;;
10249
10250     solaris*)
10251       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10252         ld_shlibs=no
10253         cat <<_LT_EOF 1>&2
10254
10255 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10256 *** create shared libraries on Solaris systems.  Therefore, libtool
10257 *** is disabling shared libraries support.  We urge you to upgrade GNU
10258 *** binutils to release 2.9.1 or newer.  Another option is to modify
10259 *** your PATH or compiler configuration so that the native linker is
10260 *** used, and then restart.
10261
10262 _LT_EOF
10263       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10264         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10265         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10266       else
10267         ld_shlibs=no
10268       fi
10269       ;;
10270
10271     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10272       case `$LD -v 2>&1` in
10273         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10274         ld_shlibs=no
10275         cat <<_LT_EOF 1>&2
10276
10277 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10278 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10279 *** is disabling shared libraries support.  We urge you to upgrade GNU
10280 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10281 *** your PATH or compiler configuration so that the native linker is
10282 *** used, and then restart.
10283
10284 _LT_EOF
10285         ;;
10286         *)
10287           # For security reasons, it is highly recommended that you always
10288           # use absolute paths for naming shared libraries, and exclude the
10289           # DT_RUNPATH tag from executables and libraries.  But doing so
10290           # requires that you compile everything twice, which is a pain.
10291           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10292             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10293             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10294             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10295           else
10296             ld_shlibs=no
10297           fi
10298         ;;
10299       esac
10300       ;;
10301
10302     sunos4*)
10303       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10304       wlarc=
10305       hardcode_direct=yes
10306       hardcode_shlibpath_var=no
10307       ;;
10308
10309     *)
10310       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10311         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10312         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10313       else
10314         ld_shlibs=no
10315       fi
10316       ;;
10317     esac
10318
10319     if test "$ld_shlibs" = no; then
10320       runpath_var=
10321       hardcode_libdir_flag_spec=
10322       export_dynamic_flag_spec=
10323       whole_archive_flag_spec=
10324     fi
10325   else
10326     # PORTME fill in a description of your system's linker (not GNU ld)
10327     case $host_os in
10328     aix3*)
10329       allow_undefined_flag=unsupported
10330       always_export_symbols=yes
10331       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'
10332       # Note: this linker hardcodes the directories in LIBPATH if there
10333       # are no directories specified by -L.
10334       hardcode_minus_L=yes
10335       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10336         # Neither direct hardcoding nor static linking is supported with a
10337         # broken collect2.
10338         hardcode_direct=unsupported
10339       fi
10340       ;;
10341
10342     aix[4-9]*)
10343       if test "$host_cpu" = ia64; then
10344         # On IA64, the linker does run time linking by default, so we don't
10345         # have to do anything special.
10346         aix_use_runtimelinking=no
10347         exp_sym_flag='-Bexport'
10348         no_entry_flag=""
10349       else
10350         # If we're using GNU nm, then we don't want the "-C" option.
10351         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10352         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10353           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'
10354         else
10355           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'
10356         fi
10357         aix_use_runtimelinking=no
10358
10359         # Test if we are trying to use run time linking or normal
10360         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10361         # need to do runtime linking.
10362         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10363           for ld_flag in $LDFLAGS; do
10364           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10365             aix_use_runtimelinking=yes
10366             break
10367           fi
10368           done
10369           ;;
10370         esac
10371
10372         exp_sym_flag='-bexport'
10373         no_entry_flag='-bnoentry'
10374       fi
10375
10376       # When large executables or shared objects are built, AIX ld can
10377       # have problems creating the table of contents.  If linking a library
10378       # or program results in "error TOC overflow" add -mminimal-toc to
10379       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10380       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10381
10382       archive_cmds=''
10383       hardcode_direct=yes
10384       hardcode_direct_absolute=yes
10385       hardcode_libdir_separator=':'
10386       link_all_deplibs=yes
10387       file_list_spec='${wl}-f,'
10388
10389       if test "$GCC" = yes; then
10390         case $host_os in aix4.[012]|aix4.[012].*)
10391         # We only want to do this on AIX 4.2 and lower, the check
10392         # below for broken collect2 doesn't work under 4.3+
10393           collect2name=`${CC} -print-prog-name=collect2`
10394           if test -f "$collect2name" &&
10395            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10396           then
10397           # We have reworked collect2
10398           :
10399           else
10400           # We have old collect2
10401           hardcode_direct=unsupported
10402           # It fails to find uninstalled libraries when the uninstalled
10403           # path is not listed in the libpath.  Setting hardcode_minus_L
10404           # to unsupported forces relinking
10405           hardcode_minus_L=yes
10406           hardcode_libdir_flag_spec='-L$libdir'
10407           hardcode_libdir_separator=
10408           fi
10409           ;;
10410         esac
10411         shared_flag='-shared'
10412         if test "$aix_use_runtimelinking" = yes; then
10413           shared_flag="$shared_flag "'${wl}-G'
10414         fi
10415       else
10416         # not using gcc
10417         if test "$host_cpu" = ia64; then
10418         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10419         # chokes on -Wl,-G. The following line is correct:
10420           shared_flag='-G'
10421         else
10422           if test "$aix_use_runtimelinking" = yes; then
10423             shared_flag='${wl}-G'
10424           else
10425             shared_flag='${wl}-bM:SRE'
10426           fi
10427         fi
10428       fi
10429
10430       export_dynamic_flag_spec='${wl}-bexpall'
10431       # It seems that -bexpall does not export symbols beginning with
10432       # underscore (_), so it is better to generate a list of symbols to export.
10433       always_export_symbols=yes
10434       if test "$aix_use_runtimelinking" = yes; then
10435         # Warning - without using the other runtime loading flags (-brtl),
10436         # -berok will link without error, but may produce a broken library.
10437         allow_undefined_flag='-berok'
10438         # Determine the default libpath from the value encoded in an
10439         # empty executable.
10440         cat >conftest.$ac_ext <<_ACEOF
10441 /* confdefs.h.  */
10442 _ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h.  */
10446
10447 int
10448 main ()
10449 {
10450
10451   ;
10452   return 0;
10453 }
10454 _ACEOF
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (ac_try="$ac_link"
10457 case "(($ac_try" in
10458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459   *) ac_try_echo=$ac_try;;
10460 esac
10461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10462   (eval "$ac_link") 2>conftest.er1
10463   ac_status=$?
10464   grep -v '^ *+' conftest.er1 >conftest.err
10465   rm -f conftest.er1
10466   cat conftest.err >&5
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); } && {
10469          test -z "$ac_c_werror_flag" ||
10470          test ! -s conftest.err
10471        } && test -s conftest$ac_exeext &&
10472        $as_test_x conftest$ac_exeext; then
10473
10474 lt_aix_libpath_sed='
10475     /Import File Strings/,/^$/ {
10476         /^0/ {
10477             s/^0  *\(.*\)$/\1/
10478             p
10479         }
10480     }'
10481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10482 # Check for a 64-bit object if we didn't find anything.
10483 if test -z "$aix_libpath"; then
10484   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10485 fi
10486 else
10487   echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10489
10490
10491 fi
10492
10493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10494       conftest$ac_exeext conftest.$ac_ext
10495 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10496
10497         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10498         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"
10499       else
10500         if test "$host_cpu" = ia64; then
10501           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10502           allow_undefined_flag="-z nodefs"
10503           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"
10504         else
10505          # Determine the default libpath from the value encoded in an
10506          # empty executable.
10507          cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h.  */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h.  */
10513
10514 int
10515 main ()
10516 {
10517
10518   ;
10519   return 0;
10520 }
10521 _ACEOF
10522 rm -f conftest.$ac_objext conftest$ac_exeext
10523 if { (ac_try="$ac_link"
10524 case "(($ac_try" in
10525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526   *) ac_try_echo=$ac_try;;
10527 esac
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529   (eval "$ac_link") 2>conftest.er1
10530   ac_status=$?
10531   grep -v '^ *+' conftest.er1 >conftest.err
10532   rm -f conftest.er1
10533   cat conftest.err >&5
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); } && {
10536          test -z "$ac_c_werror_flag" ||
10537          test ! -s conftest.err
10538        } && test -s conftest$ac_exeext &&
10539        $as_test_x conftest$ac_exeext; then
10540
10541 lt_aix_libpath_sed='
10542     /Import File Strings/,/^$/ {
10543         /^0/ {
10544             s/^0  *\(.*\)$/\1/
10545             p
10546         }
10547     }'
10548 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10549 # Check for a 64-bit object if we didn't find anything.
10550 if test -z "$aix_libpath"; then
10551   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10552 fi
10553 else
10554   echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10556
10557
10558 fi
10559
10560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10561       conftest$ac_exeext conftest.$ac_ext
10562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10563
10564          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10565           # Warning - without using the other run time loading flags,
10566           # -berok will link without error, but may produce a broken library.
10567           no_undefined_flag=' ${wl}-bernotok'
10568           allow_undefined_flag=' ${wl}-berok'
10569           # Exported symbols can be pulled into shared objects from archives
10570           whole_archive_flag_spec='$convenience'
10571           archive_cmds_need_lc=yes
10572           # This is similar to how AIX traditionally builds its shared libraries.
10573           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'
10574         fi
10575       fi
10576       ;;
10577
10578     amigaos*)
10579       case $host_cpu in
10580       powerpc)
10581             # see comment about AmigaOS4 .so support
10582             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10583             archive_expsym_cmds=''
10584         ;;
10585       m68k)
10586             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)'
10587             hardcode_libdir_flag_spec='-L$libdir'
10588             hardcode_minus_L=yes
10589         ;;
10590       esac
10591       ;;
10592
10593     bsdi[45]*)
10594       export_dynamic_flag_spec=-rdynamic
10595       ;;
10596
10597     cygwin* | mingw* | pw32* | cegcc*)
10598       # When not using gcc, we currently assume that we are using
10599       # Microsoft Visual C++.
10600       # hardcode_libdir_flag_spec is actually meaningless, as there is
10601       # no search path for DLLs.
10602       hardcode_libdir_flag_spec=' '
10603       allow_undefined_flag=unsupported
10604       # Tell ltmain to make .lib files, not .a files.
10605       libext=lib
10606       # Tell ltmain to make .dll files, not .so files.
10607       shrext_cmds=".dll"
10608       # FIXME: Setting linknames here is a bad hack.
10609       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10610       # The linker will automatically build a .lib file if we build a DLL.
10611       old_archive_from_new_cmds='true'
10612       # FIXME: Should let the user specify the lib program.
10613       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10614       fix_srcfile_path='`cygpath -w "$srcfile"`'
10615       enable_shared_with_static_runtimes=yes
10616       ;;
10617
10618     darwin* | rhapsody*)
10619
10620
10621   archive_cmds_need_lc=no
10622   hardcode_direct=no
10623   hardcode_automatic=yes
10624   hardcode_shlibpath_var=unsupported
10625   whole_archive_flag_spec=''
10626   link_all_deplibs=yes
10627   allow_undefined_flag="$_lt_dar_allow_undefined"
10628   case $cc_basename in
10629      ifort*) _lt_dar_can_shared=yes ;;
10630      *) _lt_dar_can_shared=$GCC ;;
10631   esac
10632   if test "$_lt_dar_can_shared" = "yes"; then
10633     output_verbose_link_cmd=echo
10634     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10635     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10636     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}"
10637     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}"
10638
10639   else
10640   ld_shlibs=no
10641   fi
10642
10643       ;;
10644
10645     dgux*)
10646       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10647       hardcode_libdir_flag_spec='-L$libdir'
10648       hardcode_shlibpath_var=no
10649       ;;
10650
10651     freebsd1*)
10652       ld_shlibs=no
10653       ;;
10654
10655     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10656     # support.  Future versions do this automatically, but an explicit c++rt0.o
10657     # does not break anything, and helps significantly (at the cost of a little
10658     # extra space).
10659     freebsd2.2*)
10660       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10661       hardcode_libdir_flag_spec='-R$libdir'
10662       hardcode_direct=yes
10663       hardcode_shlibpath_var=no
10664       ;;
10665
10666     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10667     freebsd2*)
10668       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10669       hardcode_direct=yes
10670       hardcode_minus_L=yes
10671       hardcode_shlibpath_var=no
10672       ;;
10673
10674     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10675     freebsd* | dragonfly*)
10676       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10677       hardcode_libdir_flag_spec='-R$libdir'
10678       hardcode_direct=yes
10679       hardcode_shlibpath_var=no
10680       ;;
10681
10682     hpux9*)
10683       if test "$GCC" = yes; then
10684         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'
10685       else
10686         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'
10687       fi
10688       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10689       hardcode_libdir_separator=:
10690       hardcode_direct=yes
10691
10692       # hardcode_minus_L: Not really in the search PATH,
10693       # but as the default location of the library.
10694       hardcode_minus_L=yes
10695       export_dynamic_flag_spec='${wl}-E'
10696       ;;
10697
10698     hpux10*)
10699       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10700         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10701       else
10702         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10703       fi
10704       if test "$with_gnu_ld" = no; then
10705         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10706         hardcode_libdir_flag_spec_ld='+b $libdir'
10707         hardcode_libdir_separator=:
10708         hardcode_direct=yes
10709         hardcode_direct_absolute=yes
10710         export_dynamic_flag_spec='${wl}-E'
10711         # hardcode_minus_L: Not really in the search PATH,
10712         # but as the default location of the library.
10713         hardcode_minus_L=yes
10714       fi
10715       ;;
10716
10717     hpux11*)
10718       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10719         case $host_cpu in
10720         hppa*64*)
10721           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10722           ;;
10723         ia64*)
10724           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10725           ;;
10726         *)
10727           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10728           ;;
10729         esac
10730       else
10731         case $host_cpu in
10732         hppa*64*)
10733           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10734           ;;
10735         ia64*)
10736           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10737           ;;
10738         *)
10739           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10740           ;;
10741         esac
10742       fi
10743       if test "$with_gnu_ld" = no; then
10744         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10745         hardcode_libdir_separator=:
10746
10747         case $host_cpu in
10748         hppa*64*|ia64*)
10749           hardcode_direct=no
10750           hardcode_shlibpath_var=no
10751           ;;
10752         *)
10753           hardcode_direct=yes
10754           hardcode_direct_absolute=yes
10755           export_dynamic_flag_spec='${wl}-E'
10756
10757           # hardcode_minus_L: Not really in the search PATH,
10758           # but as the default location of the library.
10759           hardcode_minus_L=yes
10760           ;;
10761         esac
10762       fi
10763       ;;
10764
10765     irix5* | irix6* | nonstopux*)
10766       if test "$GCC" = yes; then
10767         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'
10768         # Try to use the -exported_symbol ld option, if it does not
10769         # work, assume that -exports_file does not work either and
10770         # implicitly export all symbols.
10771         save_LDFLAGS="$LDFLAGS"
10772         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10773         cat >conftest.$ac_ext <<_ACEOF
10774 int foo(void) {}
10775 _ACEOF
10776 rm -f conftest.$ac_objext conftest$ac_exeext
10777 if { (ac_try="$ac_link"
10778 case "(($ac_try" in
10779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780   *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783   (eval "$ac_link") 2>conftest.er1
10784   ac_status=$?
10785   grep -v '^ *+' conftest.er1 >conftest.err
10786   rm -f conftest.er1
10787   cat conftest.err >&5
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } && {
10790          test -z "$ac_c_werror_flag" ||
10791          test ! -s conftest.err
10792        } && test -s conftest$ac_exeext &&
10793        $as_test_x conftest$ac_exeext; then
10794   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'
10795
10796 else
10797   echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10799
10800
10801 fi
10802
10803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10804       conftest$ac_exeext conftest.$ac_ext
10805         LDFLAGS="$save_LDFLAGS"
10806       else
10807         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'
10808         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'
10809       fi
10810       archive_cmds_need_lc='no'
10811       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10812       hardcode_libdir_separator=:
10813       inherit_rpath=yes
10814       link_all_deplibs=yes
10815       ;;
10816
10817     netbsd*)
10818       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10819         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10820       else
10821         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10822       fi
10823       hardcode_libdir_flag_spec='-R$libdir'
10824       hardcode_direct=yes
10825       hardcode_shlibpath_var=no
10826       ;;
10827
10828     newsos6)
10829       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10830       hardcode_direct=yes
10831       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10832       hardcode_libdir_separator=:
10833       hardcode_shlibpath_var=no
10834       ;;
10835
10836     *nto* | *qnx*)
10837       ;;
10838
10839     openbsd*)
10840       if test -f /usr/libexec/ld.so; then
10841         hardcode_direct=yes
10842         hardcode_shlibpath_var=no
10843         hardcode_direct_absolute=yes
10844         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10845           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10846           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10847           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10848           export_dynamic_flag_spec='${wl}-E'
10849         else
10850           case $host_os in
10851            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10852              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10853              hardcode_libdir_flag_spec='-R$libdir'
10854              ;;
10855            *)
10856              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10857              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10858              ;;
10859           esac
10860         fi
10861       else
10862         ld_shlibs=no
10863       fi
10864       ;;
10865
10866     os2*)
10867       hardcode_libdir_flag_spec='-L$libdir'
10868       hardcode_minus_L=yes
10869       allow_undefined_flag=unsupported
10870       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'
10871       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10872       ;;
10873
10874     osf3*)
10875       if test "$GCC" = yes; then
10876         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10877         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'
10878       else
10879         allow_undefined_flag=' -expect_unresolved \*'
10880         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'
10881       fi
10882       archive_cmds_need_lc='no'
10883       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10884       hardcode_libdir_separator=:
10885       ;;
10886
10887     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10888       if test "$GCC" = yes; then
10889         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10890         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'
10891         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10892       else
10893         allow_undefined_flag=' -expect_unresolved \*'
10894         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'
10895         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~
10896         $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'
10897
10898         # Both c and cxx compiler support -rpath directly
10899         hardcode_libdir_flag_spec='-rpath $libdir'
10900       fi
10901       archive_cmds_need_lc='no'
10902       hardcode_libdir_separator=:
10903       ;;
10904
10905     solaris*)
10906       no_undefined_flag=' -z defs'
10907       if test "$GCC" = yes; then
10908         wlarc='${wl}'
10909         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10910         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10911           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10912       else
10913         case `$CC -V 2>&1` in
10914         *"Compilers 5.0"*)
10915           wlarc=''
10916           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10917           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10918           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10919           ;;
10920         *)
10921           wlarc='${wl}'
10922           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10923           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10924           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10925           ;;
10926         esac
10927       fi
10928       hardcode_libdir_flag_spec='-R$libdir'
10929       hardcode_shlibpath_var=no
10930       case $host_os in
10931       solaris2.[0-5] | solaris2.[0-5].*) ;;
10932       *)
10933         # The compiler driver will combine and reorder linker options,
10934         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10935         # but is careful enough not to reorder.
10936         # Supported since Solaris 2.6 (maybe 2.5.1?)
10937         if test "$GCC" = yes; then
10938           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10939         else
10940           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10941         fi
10942         ;;
10943       esac
10944       link_all_deplibs=yes
10945       ;;
10946
10947     sunos4*)
10948       if test "x$host_vendor" = xsequent; then
10949         # Use $CC to link under sequent, because it throws in some extra .o
10950         # files that make .init and .fini sections work.
10951         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10952       else
10953         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10954       fi
10955       hardcode_libdir_flag_spec='-L$libdir'
10956       hardcode_direct=yes
10957       hardcode_minus_L=yes
10958       hardcode_shlibpath_var=no
10959       ;;
10960
10961     sysv4)
10962       case $host_vendor in
10963         sni)
10964           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965           hardcode_direct=yes # is this really true???
10966         ;;
10967         siemens)
10968           ## LD is ld it makes a PLAMLIB
10969           ## CC just makes a GrossModule.
10970           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10971           reload_cmds='$CC -r -o $output$reload_objs'
10972           hardcode_direct=no
10973         ;;
10974         motorola)
10975           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10976           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10977         ;;
10978       esac
10979       runpath_var='LD_RUN_PATH'
10980       hardcode_shlibpath_var=no
10981       ;;
10982
10983     sysv4.3*)
10984       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10985       hardcode_shlibpath_var=no
10986       export_dynamic_flag_spec='-Bexport'
10987       ;;
10988
10989     sysv4*MP*)
10990       if test -d /usr/nec; then
10991         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10992         hardcode_shlibpath_var=no
10993         runpath_var=LD_RUN_PATH
10994         hardcode_runpath_var=yes
10995         ld_shlibs=yes
10996       fi
10997       ;;
10998
10999     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11000       no_undefined_flag='${wl}-z,text'
11001       archive_cmds_need_lc=no
11002       hardcode_shlibpath_var=no
11003       runpath_var='LD_RUN_PATH'
11004
11005       if test "$GCC" = yes; then
11006         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008       else
11009         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11011       fi
11012       ;;
11013
11014     sysv5* | sco3.2v5* | sco5v6*)
11015       # Note: We can NOT use -z defs as we might desire, because we do not
11016       # link with -lc, and that would cause any symbols used from libc to
11017       # always be unresolved, which means just about no library would
11018       # ever link correctly.  If we're not using GNU ld we use -z text
11019       # though, which does catch some bad symbols but isn't as heavy-handed
11020       # as -z defs.
11021       no_undefined_flag='${wl}-z,text'
11022       allow_undefined_flag='${wl}-z,nodefs'
11023       archive_cmds_need_lc=no
11024       hardcode_shlibpath_var=no
11025       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11026       hardcode_libdir_separator=':'
11027       link_all_deplibs=yes
11028       export_dynamic_flag_spec='${wl}-Bexport'
11029       runpath_var='LD_RUN_PATH'
11030
11031       if test "$GCC" = yes; then
11032         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034       else
11035         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037       fi
11038       ;;
11039
11040     uts4*)
11041       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11042       hardcode_libdir_flag_spec='-L$libdir'
11043       hardcode_shlibpath_var=no
11044       ;;
11045
11046     *)
11047       ld_shlibs=no
11048       ;;
11049     esac
11050
11051     if test x$host_vendor = xsni; then
11052       case $host in
11053       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11054         export_dynamic_flag_spec='${wl}-Blargedynsym'
11055         ;;
11056       esac
11057     fi
11058   fi
11059
11060 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11061 echo "${ECHO_T}$ld_shlibs" >&6; }
11062 test "$ld_shlibs" = no && can_build_shared=no
11063
11064 with_gnu_ld=$with_gnu_ld
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080 #
11081 # Do we need to explicitly link libc?
11082 #
11083 case "x$archive_cmds_need_lc" in
11084 x|xyes)
11085   # Assume -lc should be added
11086   archive_cmds_need_lc=yes
11087
11088   if test "$enable_shared" = yes && test "$GCC" = yes; then
11089     case $archive_cmds in
11090     *'~'*)
11091       # FIXME: we may have to deal with multi-command sequences.
11092       ;;
11093     '$CC '*)
11094       # Test whether the compiler implicitly links with -lc since on some
11095       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11096       # to ld, don't add -lc before -lgcc.
11097       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11098 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11099       $RM conftest*
11100       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11101
11102       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11103   (eval $ac_compile) 2>&5
11104   ac_status=$?
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); } 2>conftest.err; then
11107         soname=conftest
11108         lib=conftest
11109         libobjs=conftest.$ac_objext
11110         deplibs=
11111         wl=$lt_prog_compiler_wl
11112         pic_flag=$lt_prog_compiler_pic
11113         compiler_flags=-v
11114         linker_flags=-v
11115         verstring=
11116         output_objdir=.
11117         libname=conftest
11118         lt_save_allow_undefined_flag=$allow_undefined_flag
11119         allow_undefined_flag=
11120         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11121   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11122   ac_status=$?
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); }
11125         then
11126           archive_cmds_need_lc=no
11127         else
11128           archive_cmds_need_lc=yes
11129         fi
11130         allow_undefined_flag=$lt_save_allow_undefined_flag
11131       else
11132         cat conftest.err 1>&5
11133       fi
11134       $RM conftest*
11135       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11136 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11137       ;;
11138     esac
11139   fi
11140   ;;
11141 esac
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11300 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11301
11302 if test "$GCC" = yes; then
11303   case $host_os in
11304     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11305     *) lt_awk_arg="/^libraries:/" ;;
11306   esac
11307   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11308   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11309     # if the path contains ";" then we assume it to be the separator
11310     # otherwise default to the standard path separator (i.e. ":") - it is
11311     # assumed that no part of a normal pathname contains ";" but that should
11312     # okay in the real world where ";" in dirpaths is itself problematic.
11313     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11314   else
11315     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11316   fi
11317   # Ok, now we have the path, separated by spaces, we can step through it
11318   # and add multilib dir if necessary.
11319   lt_tmp_lt_search_path_spec=
11320   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11321   for lt_sys_path in $lt_search_path_spec; do
11322     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11323       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11324     else
11325       test -d "$lt_sys_path" && \
11326         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11327     fi
11328   done
11329   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11330 BEGIN {RS=" "; FS="/|\n";} {
11331   lt_foo="";
11332   lt_count=0;
11333   for (lt_i = NF; lt_i > 0; lt_i--) {
11334     if ($lt_i != "" && $lt_i != ".") {
11335       if ($lt_i == "..") {
11336         lt_count++;
11337       } else {
11338         if (lt_count == 0) {
11339           lt_foo="/" $lt_i lt_foo;
11340         } else {
11341           lt_count--;
11342         }
11343       }
11344     }
11345   }
11346   if (lt_foo != "") { lt_freq[lt_foo]++; }
11347   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11348 }'`
11349   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11350 else
11351   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11352 fi
11353 library_names_spec=
11354 libname_spec='lib$name'
11355 soname_spec=
11356 shrext_cmds=".so"
11357 postinstall_cmds=
11358 postuninstall_cmds=
11359 finish_cmds=
11360 finish_eval=
11361 shlibpath_var=
11362 shlibpath_overrides_runpath=unknown
11363 version_type=none
11364 dynamic_linker="$host_os ld.so"
11365 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11366 need_lib_prefix=unknown
11367 hardcode_into_libs=no
11368
11369 # when you set need_version to no, make sure it does not cause -set_version
11370 # flags to be left without arguments
11371 need_version=unknown
11372
11373 case $host_os in
11374 aix3*)
11375   version_type=linux
11376   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11377   shlibpath_var=LIBPATH
11378
11379   # AIX 3 has no versioning support, so we append a major version to the name.
11380   soname_spec='${libname}${release}${shared_ext}$major'
11381   ;;
11382
11383 aix[4-9]*)
11384   version_type=linux
11385   need_lib_prefix=no
11386   need_version=no
11387   hardcode_into_libs=yes
11388   if test "$host_cpu" = ia64; then
11389     # AIX 5 supports IA64
11390     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11391     shlibpath_var=LD_LIBRARY_PATH
11392   else
11393     # With GCC up to 2.95.x, collect2 would create an import file
11394     # for dependence libraries.  The import file would start with
11395     # the line `#! .'.  This would cause the generated library to
11396     # depend on `.', always an invalid library.  This was fixed in
11397     # development snapshots of GCC prior to 3.0.
11398     case $host_os in
11399       aix4 | aix4.[01] | aix4.[01].*)
11400       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11401            echo ' yes '
11402            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11403         :
11404       else
11405         can_build_shared=no
11406       fi
11407       ;;
11408     esac
11409     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11410     # soname into executable. Probably we can add versioning support to
11411     # collect2, so additional links can be useful in future.
11412     if test "$aix_use_runtimelinking" = yes; then
11413       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11414       # instead of lib<name>.a to let people know that these are not
11415       # typical AIX shared libraries.
11416       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11417     else
11418       # We preserve .a as extension for shared libraries through AIX4.2
11419       # and later when we are not doing run time linking.
11420       library_names_spec='${libname}${release}.a $libname.a'
11421       soname_spec='${libname}${release}${shared_ext}$major'
11422     fi
11423     shlibpath_var=LIBPATH
11424   fi
11425   ;;
11426
11427 amigaos*)
11428   case $host_cpu in
11429   powerpc)
11430     # Since July 2007 AmigaOS4 officially supports .so libraries.
11431     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11432     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433     ;;
11434   m68k)
11435     library_names_spec='$libname.ixlibrary $libname.a'
11436     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11437     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'
11438     ;;
11439   esac
11440   ;;
11441
11442 beos*)
11443   library_names_spec='${libname}${shared_ext}'
11444   dynamic_linker="$host_os ld.so"
11445   shlibpath_var=LIBRARY_PATH
11446   ;;
11447
11448 bsdi[45]*)
11449   version_type=linux
11450   need_version=no
11451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452   soname_spec='${libname}${release}${shared_ext}$major'
11453   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11454   shlibpath_var=LD_LIBRARY_PATH
11455   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11456   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11457   # the default ld.so.conf also contains /usr/contrib/lib and
11458   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11459   # libtool to hard-code these into programs
11460   ;;
11461
11462 cygwin* | mingw* | pw32* | cegcc*)
11463   version_type=windows
11464   shrext_cmds=".dll"
11465   need_version=no
11466   need_lib_prefix=no
11467
11468   case $GCC,$host_os in
11469   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11470     library_names_spec='$libname.dll.a'
11471     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11472     postinstall_cmds='base_file=`basename \${file}`~
11473       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11474       dldir=$destdir/`dirname \$dlpath`~
11475       test -d \$dldir || mkdir -p \$dldir~
11476       $install_prog $dir/$dlname \$dldir/$dlname~
11477       chmod a+x \$dldir/$dlname~
11478       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11479         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11480       fi'
11481     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11482       dlpath=$dir/\$dldll~
11483        $RM \$dlpath'
11484     shlibpath_overrides_runpath=yes
11485
11486     case $host_os in
11487     cygwin*)
11488       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11489       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11490       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11491       ;;
11492     mingw* | cegcc*)
11493       # MinGW DLLs use traditional 'lib' prefix
11494       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11495       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11496       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11497         # It is most probably a Windows format PATH printed by
11498         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11499         # path with ; separators, and with drive letters. We can handle the
11500         # drive letters (cygwin fileutils understands them), so leave them,
11501         # especially as we might pass files found there to a mingw objdump,
11502         # which wouldn't understand a cygwinified path. Ahh.
11503         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11504       else
11505         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11506       fi
11507       ;;
11508     pw32*)
11509       # pw32 DLLs use 'pw' prefix rather than 'lib'
11510       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11511       ;;
11512     esac
11513     ;;
11514
11515   *)
11516     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11517     ;;
11518   esac
11519   dynamic_linker='Win32 ld.exe'
11520   # FIXME: first we should search . and the directory the executable is in
11521   shlibpath_var=PATH
11522   ;;
11523
11524 darwin* | rhapsody*)
11525   dynamic_linker="$host_os dyld"
11526   version_type=darwin
11527   need_lib_prefix=no
11528   need_version=no
11529   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11530   soname_spec='${libname}${release}${major}$shared_ext'
11531   shlibpath_overrides_runpath=yes
11532   shlibpath_var=DYLD_LIBRARY_PATH
11533   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11534
11535   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11536   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11537   ;;
11538
11539 dgux*)
11540   version_type=linux
11541   need_lib_prefix=no
11542   need_version=no
11543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11544   soname_spec='${libname}${release}${shared_ext}$major'
11545   shlibpath_var=LD_LIBRARY_PATH
11546   ;;
11547
11548 freebsd1*)
11549   dynamic_linker=no
11550   ;;
11551
11552 freebsd* | dragonfly*)
11553   # DragonFly does not have aout.  When/if they implement a new
11554   # versioning mechanism, adjust this.
11555   if test -x /usr/bin/objformat; then
11556     objformat=`/usr/bin/objformat`
11557   else
11558     case $host_os in
11559     freebsd[123]*) objformat=aout ;;
11560     *) objformat=elf ;;
11561     esac
11562   fi
11563   version_type=freebsd-$objformat
11564   case $version_type in
11565     freebsd-elf*)
11566       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11567       need_version=no
11568       need_lib_prefix=no
11569       ;;
11570     freebsd-*)
11571       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11572       need_version=yes
11573       ;;
11574   esac
11575   shlibpath_var=LD_LIBRARY_PATH
11576   case $host_os in
11577   freebsd2*)
11578     shlibpath_overrides_runpath=yes
11579     ;;
11580   freebsd3.[01]* | freebsdelf3.[01]*)
11581     shlibpath_overrides_runpath=yes
11582     hardcode_into_libs=yes
11583     ;;
11584   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11585   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11586     shlibpath_overrides_runpath=no
11587     hardcode_into_libs=yes
11588     ;;
11589   *) # from 4.6 on, and DragonFly
11590     shlibpath_overrides_runpath=yes
11591     hardcode_into_libs=yes
11592     ;;
11593   esac
11594   ;;
11595
11596 gnu*)
11597   version_type=linux
11598   need_lib_prefix=no
11599   need_version=no
11600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11601   soname_spec='${libname}${release}${shared_ext}$major'
11602   shlibpath_var=LD_LIBRARY_PATH
11603   hardcode_into_libs=yes
11604   ;;
11605
11606 hpux9* | hpux10* | hpux11*)
11607   # Give a soname corresponding to the major version so that dld.sl refuses to
11608   # link against other versions.
11609   version_type=sunos
11610   need_lib_prefix=no
11611   need_version=no
11612   case $host_cpu in
11613   ia64*)
11614     shrext_cmds='.so'
11615     hardcode_into_libs=yes
11616     dynamic_linker="$host_os dld.so"
11617     shlibpath_var=LD_LIBRARY_PATH
11618     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11619     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620     soname_spec='${libname}${release}${shared_ext}$major'
11621     if test "X$HPUX_IA64_MODE" = X32; then
11622       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11623     else
11624       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11625     fi
11626     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11627     ;;
11628   hppa*64*)
11629     shrext_cmds='.sl'
11630     hardcode_into_libs=yes
11631     dynamic_linker="$host_os dld.sl"
11632     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11633     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11634     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635     soname_spec='${libname}${release}${shared_ext}$major'
11636     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11637     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11638     ;;
11639   *)
11640     shrext_cmds='.sl'
11641     dynamic_linker="$host_os dld.sl"
11642     shlibpath_var=SHLIB_PATH
11643     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645     soname_spec='${libname}${release}${shared_ext}$major'
11646     ;;
11647   esac
11648   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11649   postinstall_cmds='chmod 555 $lib'
11650   ;;
11651
11652 interix[3-9]*)
11653   version_type=linux
11654   need_lib_prefix=no
11655   need_version=no
11656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11657   soname_spec='${libname}${release}${shared_ext}$major'
11658   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11659   shlibpath_var=LD_LIBRARY_PATH
11660   shlibpath_overrides_runpath=no
11661   hardcode_into_libs=yes
11662   ;;
11663
11664 irix5* | irix6* | nonstopux*)
11665   case $host_os in
11666     nonstopux*) version_type=nonstopux ;;
11667     *)
11668         if test "$lt_cv_prog_gnu_ld" = yes; then
11669                 version_type=linux
11670         else
11671                 version_type=irix
11672         fi ;;
11673   esac
11674   need_lib_prefix=no
11675   need_version=no
11676   soname_spec='${libname}${release}${shared_ext}$major'
11677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11678   case $host_os in
11679   irix5* | nonstopux*)
11680     libsuff= shlibsuff=
11681     ;;
11682   *)
11683     case $LD in # libtool.m4 will add one of these switches to LD
11684     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11685       libsuff= shlibsuff= libmagic=32-bit;;
11686     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11687       libsuff=32 shlibsuff=N32 libmagic=N32;;
11688     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11689       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11690     *) libsuff= shlibsuff= libmagic=never-match;;
11691     esac
11692     ;;
11693   esac
11694   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11695   shlibpath_overrides_runpath=no
11696   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11697   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11698   hardcode_into_libs=yes
11699   ;;
11700
11701 # No shared lib support for Linux oldld, aout, or coff.
11702 linux*oldld* | linux*aout* | linux*coff*)
11703   dynamic_linker=no
11704   ;;
11705
11706 # This must be Linux ELF.
11707 linux* | k*bsd*-gnu)
11708   version_type=linux
11709   need_lib_prefix=no
11710   need_version=no
11711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11712   soname_spec='${libname}${release}${shared_ext}$major'
11713   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11714   shlibpath_var=LD_LIBRARY_PATH
11715   shlibpath_overrides_runpath=no
11716   # Some binutils ld are patched to set DT_RUNPATH
11717   save_LDFLAGS=$LDFLAGS
11718   save_libdir=$libdir
11719   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11720        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11721   cat >conftest.$ac_ext <<_ACEOF
11722 /* confdefs.h.  */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h.  */
11727
11728 int
11729 main ()
11730 {
11731
11732   ;
11733   return 0;
11734 }
11735 _ACEOF
11736 rm -f conftest.$ac_objext conftest$ac_exeext
11737 if { (ac_try="$ac_link"
11738 case "(($ac_try" in
11739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740   *) ac_try_echo=$ac_try;;
11741 esac
11742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743   (eval "$ac_link") 2>conftest.er1
11744   ac_status=$?
11745   grep -v '^ *+' conftest.er1 >conftest.err
11746   rm -f conftest.er1
11747   cat conftest.err >&5
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); } && {
11750          test -z "$ac_c_werror_flag" ||
11751          test ! -s conftest.err
11752        } && test -s conftest$ac_exeext &&
11753        $as_test_x conftest$ac_exeext; then
11754   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11755   shlibpath_overrides_runpath=yes
11756 fi
11757
11758 else
11759   echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11761
11762
11763 fi
11764
11765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11766       conftest$ac_exeext conftest.$ac_ext
11767   LDFLAGS=$save_LDFLAGS
11768   libdir=$save_libdir
11769
11770   # This implies no fast_install, which is unacceptable.
11771   # Some rework will be needed to allow for fast_install
11772   # before this can be enabled.
11773   hardcode_into_libs=yes
11774
11775   # Append ld.so.conf contents to the search path
11776   if test -f /etc/ld.so.conf; then
11777     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' ' '`
11778     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11779   fi
11780
11781   # We used to test for /lib/ld.so.1 and disable shared libraries on
11782   # powerpc, because MkLinux only supported shared libraries with the
11783   # GNU dynamic linker.  Since this was broken with cross compilers,
11784   # most powerpc-linux boxes support dynamic linking these days and
11785   # people can always --disable-shared, the test was removed, and we
11786   # assume the GNU/Linux dynamic linker is in use.
11787   dynamic_linker='GNU/Linux ld.so'
11788   ;;
11789
11790 netbsd*)
11791   version_type=sunos
11792   need_lib_prefix=no
11793   need_version=no
11794   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11795     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11796     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11797     dynamic_linker='NetBSD (a.out) ld.so'
11798   else
11799     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11800     soname_spec='${libname}${release}${shared_ext}$major'
11801     dynamic_linker='NetBSD ld.elf_so'
11802   fi
11803   shlibpath_var=LD_LIBRARY_PATH
11804   shlibpath_overrides_runpath=yes
11805   hardcode_into_libs=yes
11806   ;;
11807
11808 newsos6)
11809   version_type=linux
11810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811   shlibpath_var=LD_LIBRARY_PATH
11812   shlibpath_overrides_runpath=yes
11813   ;;
11814
11815 *nto* | *qnx*)
11816   version_type=qnx
11817   need_lib_prefix=no
11818   need_version=no
11819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820   soname_spec='${libname}${release}${shared_ext}$major'
11821   shlibpath_var=LD_LIBRARY_PATH
11822   shlibpath_overrides_runpath=no
11823   hardcode_into_libs=yes
11824   dynamic_linker='ldqnx.so'
11825   ;;
11826
11827 openbsd*)
11828   version_type=sunos
11829   sys_lib_dlsearch_path_spec="/usr/lib"
11830   need_lib_prefix=no
11831   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11832   case $host_os in
11833     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11834     *)                          need_version=no  ;;
11835   esac
11836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11837   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11838   shlibpath_var=LD_LIBRARY_PATH
11839   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11840     case $host_os in
11841       openbsd2.[89] | openbsd2.[89].*)
11842         shlibpath_overrides_runpath=no
11843         ;;
11844       *)
11845         shlibpath_overrides_runpath=yes
11846         ;;
11847       esac
11848   else
11849     shlibpath_overrides_runpath=yes
11850   fi
11851   ;;
11852
11853 os2*)
11854   libname_spec='$name'
11855   shrext_cmds=".dll"
11856   need_lib_prefix=no
11857   library_names_spec='$libname${shared_ext} $libname.a'
11858   dynamic_linker='OS/2 ld.exe'
11859   shlibpath_var=LIBPATH
11860   ;;
11861
11862 osf3* | osf4* | osf5*)
11863   version_type=osf
11864   need_lib_prefix=no
11865   need_version=no
11866   soname_spec='${libname}${release}${shared_ext}$major'
11867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11868   shlibpath_var=LD_LIBRARY_PATH
11869   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11870   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11871   ;;
11872
11873 rdos*)
11874   dynamic_linker=no
11875   ;;
11876
11877 solaris*)
11878   version_type=linux
11879   need_lib_prefix=no
11880   need_version=no
11881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11882   soname_spec='${libname}${release}${shared_ext}$major'
11883   shlibpath_var=LD_LIBRARY_PATH
11884   shlibpath_overrides_runpath=yes
11885   hardcode_into_libs=yes
11886   # ldd complains unless libraries are executable
11887   postinstall_cmds='chmod +x $lib'
11888   ;;
11889
11890 sunos4*)
11891   version_type=sunos
11892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11893   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11894   shlibpath_var=LD_LIBRARY_PATH
11895   shlibpath_overrides_runpath=yes
11896   if test "$with_gnu_ld" = yes; then
11897     need_lib_prefix=no
11898   fi
11899   need_version=yes
11900   ;;
11901
11902 sysv4 | sysv4.3*)
11903   version_type=linux
11904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11905   soname_spec='${libname}${release}${shared_ext}$major'
11906   shlibpath_var=LD_LIBRARY_PATH
11907   case $host_vendor in
11908     sni)
11909       shlibpath_overrides_runpath=no
11910       need_lib_prefix=no
11911       runpath_var=LD_RUN_PATH
11912       ;;
11913     siemens)
11914       need_lib_prefix=no
11915       ;;
11916     motorola)
11917       need_lib_prefix=no
11918       need_version=no
11919       shlibpath_overrides_runpath=no
11920       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11921       ;;
11922   esac
11923   ;;
11924
11925 sysv4*MP*)
11926   if test -d /usr/nec ;then
11927     version_type=linux
11928     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11929     soname_spec='$libname${shared_ext}.$major'
11930     shlibpath_var=LD_LIBRARY_PATH
11931   fi
11932   ;;
11933
11934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11935   version_type=freebsd-elf
11936   need_lib_prefix=no
11937   need_version=no
11938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11939   soname_spec='${libname}${release}${shared_ext}$major'
11940   shlibpath_var=LD_LIBRARY_PATH
11941   shlibpath_overrides_runpath=yes
11942   hardcode_into_libs=yes
11943   if test "$with_gnu_ld" = yes; then
11944     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11945   else
11946     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11947     case $host_os in
11948       sco3.2v5*)
11949         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11950         ;;
11951     esac
11952   fi
11953   sys_lib_dlsearch_path_spec='/usr/lib'
11954   ;;
11955
11956 tpf*)
11957   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11958   version_type=linux
11959   need_lib_prefix=no
11960   need_version=no
11961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11962   shlibpath_var=LD_LIBRARY_PATH
11963   shlibpath_overrides_runpath=no
11964   hardcode_into_libs=yes
11965   ;;
11966
11967 uts4*)
11968   version_type=linux
11969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11970   soname_spec='${libname}${release}${shared_ext}$major'
11971   shlibpath_var=LD_LIBRARY_PATH
11972   ;;
11973
11974 *)
11975   dynamic_linker=no
11976   ;;
11977 esac
11978 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11979 echo "${ECHO_T}$dynamic_linker" >&6; }
11980 test "$dynamic_linker" = no && can_build_shared=no
11981
11982 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11983 if test "$GCC" = yes; then
11984   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11985 fi
11986
11987 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11988   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11989 fi
11990 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11991   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11992 fi
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12081 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12082 hardcode_action=
12083 if test -n "$hardcode_libdir_flag_spec" ||
12084    test -n "$runpath_var" ||
12085    test "X$hardcode_automatic" = "Xyes" ; then
12086
12087   # We can hardcode non-existent directories.
12088   if test "$hardcode_direct" != no &&
12089      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12090      # have to relink, otherwise we might link with an installed library
12091      # when we should be linking with a yet-to-be-installed one
12092      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12093      test "$hardcode_minus_L" != no; then
12094     # Linking always hardcodes the temporary library directory.
12095     hardcode_action=relink
12096   else
12097     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12098     hardcode_action=immediate
12099   fi
12100 else
12101   # We cannot hardcode anything, or else we can only hardcode existing
12102   # directories.
12103   hardcode_action=unsupported
12104 fi
12105 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12106 echo "${ECHO_T}$hardcode_action" >&6; }
12107
12108 if test "$hardcode_action" = relink ||
12109    test "$inherit_rpath" = yes; then
12110   # Fast installation is not supported
12111   enable_fast_install=no
12112 elif test "$shlibpath_overrides_runpath" = yes ||
12113      test "$enable_shared" = no; then
12114   # Fast installation is not necessary
12115   enable_fast_install=needless
12116 fi
12117
12118
12119
12120
12121
12122
12123   if test "x$enable_dlopen" != xyes; then
12124   enable_dlopen=unknown
12125   enable_dlopen_self=unknown
12126   enable_dlopen_self_static=unknown
12127 else
12128   lt_cv_dlopen=no
12129   lt_cv_dlopen_libs=
12130
12131   case $host_os in
12132   beos*)
12133     lt_cv_dlopen="load_add_on"
12134     lt_cv_dlopen_libs=
12135     lt_cv_dlopen_self=yes
12136     ;;
12137
12138   mingw* | pw32* | cegcc*)
12139     lt_cv_dlopen="LoadLibrary"
12140     lt_cv_dlopen_libs=
12141     ;;
12142
12143   cygwin*)
12144     lt_cv_dlopen="dlopen"
12145     lt_cv_dlopen_libs=
12146     ;;
12147
12148   darwin*)
12149   # if libdl is installed we need to link against it
12150     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12151 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12152 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155   ac_check_lib_save_LIBS=$LIBS
12156 LIBS="-ldl  $LIBS"
12157 cat >conftest.$ac_ext <<_ACEOF
12158 /* confdefs.h.  */
12159 _ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h.  */
12163
12164 /* Override any GCC internal prototype to avoid an error.
12165    Use char because int might match the return type of a GCC
12166    builtin and then its argument prototype would still apply.  */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char dlopen ();
12171 int
12172 main ()
12173 {
12174 return dlopen ();
12175   ;
12176   return 0;
12177 }
12178 _ACEOF
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (ac_try="$ac_link"
12181 case "(($ac_try" in
12182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183   *) ac_try_echo=$ac_try;;
12184 esac
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186   (eval "$ac_link") 2>conftest.er1
12187   ac_status=$?
12188   grep -v '^ *+' conftest.er1 >conftest.err
12189   rm -f conftest.er1
12190   cat conftest.err >&5
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); } && {
12193          test -z "$ac_c_werror_flag" ||
12194          test ! -s conftest.err
12195        } && test -s conftest$ac_exeext &&
12196        $as_test_x conftest$ac_exeext; then
12197   ac_cv_lib_dl_dlopen=yes
12198 else
12199   echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12201
12202         ac_cv_lib_dl_dlopen=no
12203 fi
12204
12205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12206       conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12208 fi
12209 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12210 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12211 if test $ac_cv_lib_dl_dlopen = yes; then
12212   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12213 else
12214
12215     lt_cv_dlopen="dyld"
12216     lt_cv_dlopen_libs=
12217     lt_cv_dlopen_self=yes
12218
12219 fi
12220
12221     ;;
12222
12223   *)
12224     { echo "$as_me:$LINENO: checking for shl_load" >&5
12225 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12226 if test "${ac_cv_func_shl_load+set}" = set; then
12227   echo $ECHO_N "(cached) $ECHO_C" >&6
12228 else
12229   cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h.  */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h.  */
12235 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12237 #define shl_load innocuous_shl_load
12238
12239 /* System header to define __stub macros and hopefully few prototypes,
12240     which can conflict with char shl_load (); below.
12241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242     <limits.h> exists even on freestanding compilers.  */
12243
12244 #ifdef __STDC__
12245 # include <limits.h>
12246 #else
12247 # include <assert.h>
12248 #endif
12249
12250 #undef shl_load
12251
12252 /* Override any GCC internal prototype to avoid an error.
12253    Use char because int might match the return type of a GCC
12254    builtin and then its argument prototype would still apply.  */
12255 #ifdef __cplusplus
12256 extern "C"
12257 #endif
12258 char shl_load ();
12259 /* The GNU C library defines this for functions which it implements
12260     to always fail with ENOSYS.  Some functions are actually named
12261     something starting with __ and the normal name is an alias.  */
12262 #if defined __stub_shl_load || defined __stub___shl_load
12263 choke me
12264 #endif
12265
12266 int
12267 main ()
12268 {
12269 return shl_load ();
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278   *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281   (eval "$ac_link") 2>conftest.er1
12282   ac_status=$?
12283   grep -v '^ *+' conftest.er1 >conftest.err
12284   rm -f conftest.er1
12285   cat conftest.err >&5
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); } && {
12288          test -z "$ac_c_werror_flag" ||
12289          test ! -s conftest.err
12290        } && test -s conftest$ac_exeext &&
12291        $as_test_x conftest$ac_exeext; then
12292   ac_cv_func_shl_load=yes
12293 else
12294   echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12296
12297         ac_cv_func_shl_load=no
12298 fi
12299
12300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12301       conftest$ac_exeext conftest.$ac_ext
12302 fi
12303 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12304 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12305 if test $ac_cv_func_shl_load = yes; then
12306   lt_cv_dlopen="shl_load"
12307 else
12308   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12309 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12310 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12311   echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313   ac_check_lib_save_LIBS=$LIBS
12314 LIBS="-ldld  $LIBS"
12315 cat >conftest.$ac_ext <<_ACEOF
12316 /* confdefs.h.  */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h.  */
12321
12322 /* Override any GCC internal prototype to avoid an error.
12323    Use char because int might match the return type of a GCC
12324    builtin and then its argument prototype would still apply.  */
12325 #ifdef __cplusplus
12326 extern "C"
12327 #endif
12328 char shl_load ();
12329 int
12330 main ()
12331 {
12332 return shl_load ();
12333   ;
12334   return 0;
12335 }
12336 _ACEOF
12337 rm -f conftest.$ac_objext conftest$ac_exeext
12338 if { (ac_try="$ac_link"
12339 case "(($ac_try" in
12340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341   *) ac_try_echo=$ac_try;;
12342 esac
12343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344   (eval "$ac_link") 2>conftest.er1
12345   ac_status=$?
12346   grep -v '^ *+' conftest.er1 >conftest.err
12347   rm -f conftest.er1
12348   cat conftest.err >&5
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); } && {
12351          test -z "$ac_c_werror_flag" ||
12352          test ! -s conftest.err
12353        } && test -s conftest$ac_exeext &&
12354        $as_test_x conftest$ac_exeext; then
12355   ac_cv_lib_dld_shl_load=yes
12356 else
12357   echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12359
12360         ac_cv_lib_dld_shl_load=no
12361 fi
12362
12363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12364       conftest$ac_exeext conftest.$ac_ext
12365 LIBS=$ac_check_lib_save_LIBS
12366 fi
12367 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12368 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12369 if test $ac_cv_lib_dld_shl_load = yes; then
12370   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12371 else
12372   { echo "$as_me:$LINENO: checking for dlopen" >&5
12373 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12374 if test "${ac_cv_func_dlopen+set}" = set; then
12375   echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377   cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h.  */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h.  */
12383 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12385 #define dlopen innocuous_dlopen
12386
12387 /* System header to define __stub macros and hopefully few prototypes,
12388     which can conflict with char dlopen (); below.
12389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12390     <limits.h> exists even on freestanding compilers.  */
12391
12392 #ifdef __STDC__
12393 # include <limits.h>
12394 #else
12395 # include <assert.h>
12396 #endif
12397
12398 #undef dlopen
12399
12400 /* Override any GCC internal prototype to avoid an error.
12401    Use char because int might match the return type of a GCC
12402    builtin and then its argument prototype would still apply.  */
12403 #ifdef __cplusplus
12404 extern "C"
12405 #endif
12406 char dlopen ();
12407 /* The GNU C library defines this for functions which it implements
12408     to always fail with ENOSYS.  Some functions are actually named
12409     something starting with __ and the normal name is an alias.  */
12410 #if defined __stub_dlopen || defined __stub___dlopen
12411 choke me
12412 #endif
12413
12414 int
12415 main ()
12416 {
12417 return dlopen ();
12418   ;
12419   return 0;
12420 }
12421 _ACEOF
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (ac_try="$ac_link"
12424 case "(($ac_try" in
12425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426   *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429   (eval "$ac_link") 2>conftest.er1
12430   ac_status=$?
12431   grep -v '^ *+' conftest.er1 >conftest.err
12432   rm -f conftest.er1
12433   cat conftest.err >&5
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); } && {
12436          test -z "$ac_c_werror_flag" ||
12437          test ! -s conftest.err
12438        } && test -s conftest$ac_exeext &&
12439        $as_test_x conftest$ac_exeext; then
12440   ac_cv_func_dlopen=yes
12441 else
12442   echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12444
12445         ac_cv_func_dlopen=no
12446 fi
12447
12448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12449       conftest$ac_exeext conftest.$ac_ext
12450 fi
12451 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12452 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12453 if test $ac_cv_func_dlopen = yes; then
12454   lt_cv_dlopen="dlopen"
12455 else
12456   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12457 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12458 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12459   echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461   ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-ldl  $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_dl_dlopen=yes
12504 else
12505   echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508         ac_cv_lib_dl_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_dl_dlopen" >&5
12516 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12517 if test $ac_cv_lib_dl_dlopen = yes; then
12518   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12519 else
12520   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12521 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525   ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-lsvld  $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 dlopen ();
12541 int
12542 main ()
12543 {
12544 return dlopen ();
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_svld_dlopen=yes
12568 else
12569   echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12571
12572         ac_cv_lib_svld_dlopen=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_svld_dlopen" >&5
12580 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12581 if test $ac_cv_lib_svld_dlopen = yes; then
12582   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12583 else
12584   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12585 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12586 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12587   echo $ECHO_N "(cached) $ECHO_C" >&6
12588 else
12589   ac_check_lib_save_LIBS=$LIBS
12590 LIBS="-ldld  $LIBS"
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h.  */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h.  */
12597
12598 /* Override any GCC internal prototype to avoid an error.
12599    Use char because int might match the return type of a GCC
12600    builtin and then its argument prototype would still apply.  */
12601 #ifdef __cplusplus
12602 extern "C"
12603 #endif
12604 char dld_link ();
12605 int
12606 main ()
12607 {
12608 return dld_link ();
12609   ;
12610   return 0;
12611 }
12612 _ACEOF
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617   *) ac_try_echo=$ac_try;;
12618 esac
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620   (eval "$ac_link") 2>conftest.er1
12621   ac_status=$?
12622   grep -v '^ *+' conftest.er1 >conftest.err
12623   rm -f conftest.er1
12624   cat conftest.err >&5
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); } && {
12627          test -z "$ac_c_werror_flag" ||
12628          test ! -s conftest.err
12629        } && test -s conftest$ac_exeext &&
12630        $as_test_x conftest$ac_exeext; then
12631   ac_cv_lib_dld_dld_link=yes
12632 else
12633   echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12635
12636         ac_cv_lib_dld_dld_link=no
12637 fi
12638
12639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12640       conftest$ac_exeext conftest.$ac_ext
12641 LIBS=$ac_check_lib_save_LIBS
12642 fi
12643 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12644 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12645 if test $ac_cv_lib_dld_dld_link = yes; then
12646   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12647 fi
12648
12649
12650 fi
12651
12652
12653 fi
12654
12655
12656 fi
12657
12658
12659 fi
12660
12661
12662 fi
12663
12664     ;;
12665   esac
12666
12667   if test "x$lt_cv_dlopen" != xno; then
12668     enable_dlopen=yes
12669   else
12670     enable_dlopen=no
12671   fi
12672
12673   case $lt_cv_dlopen in
12674   dlopen)
12675     save_CPPFLAGS="$CPPFLAGS"
12676     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12677
12678     save_LDFLAGS="$LDFLAGS"
12679     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12680
12681     save_LIBS="$LIBS"
12682     LIBS="$lt_cv_dlopen_libs $LIBS"
12683
12684     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12685 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12686 if test "${lt_cv_dlopen_self+set}" = set; then
12687   echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689           if test "$cross_compiling" = yes; then :
12690   lt_cv_dlopen_self=cross
12691 else
12692   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12693   lt_status=$lt_dlunknown
12694   cat > conftest.$ac_ext <<_LT_EOF
12695 #line 12695 "configure"
12696 #include "confdefs.h"
12697
12698 #if HAVE_DLFCN_H
12699 #include <dlfcn.h>
12700 #endif
12701
12702 #include <stdio.h>
12703
12704 #ifdef RTLD_GLOBAL
12705 #  define LT_DLGLOBAL           RTLD_GLOBAL
12706 #else
12707 #  ifdef DL_GLOBAL
12708 #    define LT_DLGLOBAL         DL_GLOBAL
12709 #  else
12710 #    define LT_DLGLOBAL         0
12711 #  endif
12712 #endif
12713
12714 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12715    find out it does not work in some platform. */
12716 #ifndef LT_DLLAZY_OR_NOW
12717 #  ifdef RTLD_LAZY
12718 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12719 #  else
12720 #    ifdef DL_LAZY
12721 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12722 #    else
12723 #      ifdef RTLD_NOW
12724 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12725 #      else
12726 #        ifdef DL_NOW
12727 #          define LT_DLLAZY_OR_NOW      DL_NOW
12728 #        else
12729 #          define LT_DLLAZY_OR_NOW      0
12730 #        endif
12731 #      endif
12732 #    endif
12733 #  endif
12734 #endif
12735
12736 void fnord() { int i=42;}
12737 int main ()
12738 {
12739   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12740   int status = $lt_dlunknown;
12741
12742   if (self)
12743     {
12744       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12745       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12746       /* dlclose (self); */
12747     }
12748   else
12749     puts (dlerror ());
12750
12751   return status;
12752 }
12753 _LT_EOF
12754   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12755   (eval $ac_link) 2>&5
12756   ac_status=$?
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12759     (./conftest; exit; ) >&5 2>/dev/null
12760     lt_status=$?
12761     case x$lt_status in
12762       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12763       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12764       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12765     esac
12766   else :
12767     # compilation failed
12768     lt_cv_dlopen_self=no
12769   fi
12770 fi
12771 rm -fr conftest*
12772
12773
12774 fi
12775 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12776 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12777
12778     if test "x$lt_cv_dlopen_self" = xyes; then
12779       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12780       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12781 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12782 if test "${lt_cv_dlopen_self_static+set}" = set; then
12783   echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785           if test "$cross_compiling" = yes; then :
12786   lt_cv_dlopen_self_static=cross
12787 else
12788   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12789   lt_status=$lt_dlunknown
12790   cat > conftest.$ac_ext <<_LT_EOF
12791 #line 12791 "configure"
12792 #include "confdefs.h"
12793
12794 #if HAVE_DLFCN_H
12795 #include <dlfcn.h>
12796 #endif
12797
12798 #include <stdio.h>
12799
12800 #ifdef RTLD_GLOBAL
12801 #  define LT_DLGLOBAL           RTLD_GLOBAL
12802 #else
12803 #  ifdef DL_GLOBAL
12804 #    define LT_DLGLOBAL         DL_GLOBAL
12805 #  else
12806 #    define LT_DLGLOBAL         0
12807 #  endif
12808 #endif
12809
12810 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12811    find out it does not work in some platform. */
12812 #ifndef LT_DLLAZY_OR_NOW
12813 #  ifdef RTLD_LAZY
12814 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12815 #  else
12816 #    ifdef DL_LAZY
12817 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12818 #    else
12819 #      ifdef RTLD_NOW
12820 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12821 #      else
12822 #        ifdef DL_NOW
12823 #          define LT_DLLAZY_OR_NOW      DL_NOW
12824 #        else
12825 #          define LT_DLLAZY_OR_NOW      0
12826 #        endif
12827 #      endif
12828 #    endif
12829 #  endif
12830 #endif
12831
12832 void fnord() { int i=42;}
12833 int main ()
12834 {
12835   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12836   int status = $lt_dlunknown;
12837
12838   if (self)
12839     {
12840       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12841       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12842       /* dlclose (self); */
12843     }
12844   else
12845     puts (dlerror ());
12846
12847   return status;
12848 }
12849 _LT_EOF
12850   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12851   (eval $ac_link) 2>&5
12852   ac_status=$?
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12855     (./conftest; exit; ) >&5 2>/dev/null
12856     lt_status=$?
12857     case x$lt_status in
12858       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12859       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12860       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12861     esac
12862   else :
12863     # compilation failed
12864     lt_cv_dlopen_self_static=no
12865   fi
12866 fi
12867 rm -fr conftest*
12868
12869
12870 fi
12871 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12872 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12873     fi
12874
12875     CPPFLAGS="$save_CPPFLAGS"
12876     LDFLAGS="$save_LDFLAGS"
12877     LIBS="$save_LIBS"
12878     ;;
12879   esac
12880
12881   case $lt_cv_dlopen_self in
12882   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12883   *) enable_dlopen_self=unknown ;;
12884   esac
12885
12886   case $lt_cv_dlopen_self_static in
12887   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12888   *) enable_dlopen_self_static=unknown ;;
12889   esac
12890 fi
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908 striplib=
12909 old_striplib=
12910 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12911 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12912 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12913   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12914   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12915   { echo "$as_me:$LINENO: result: yes" >&5
12916 echo "${ECHO_T}yes" >&6; }
12917 else
12918 # FIXME - insert some real tests, host_os isn't really good enough
12919   case $host_os in
12920   darwin*)
12921     if test -n "$STRIP" ; then
12922       striplib="$STRIP -x"
12923       old_striplib="$STRIP -S"
12924       { echo "$as_me:$LINENO: result: yes" >&5
12925 echo "${ECHO_T}yes" >&6; }
12926     else
12927       { echo "$as_me:$LINENO: result: no" >&5
12928 echo "${ECHO_T}no" >&6; }
12929     fi
12930     ;;
12931   *)
12932     { echo "$as_me:$LINENO: result: no" >&5
12933 echo "${ECHO_T}no" >&6; }
12934     ;;
12935   esac
12936 fi
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949   # Report which library types will actually be built
12950   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12951 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12952   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12953 echo "${ECHO_T}$can_build_shared" >&6; }
12954
12955   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12956 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12957   test "$can_build_shared" = "no" && enable_shared=no
12958
12959   # On AIX, shared libraries and static libraries use the same namespace, and
12960   # are all built from PIC.
12961   case $host_os in
12962   aix3*)
12963     test "$enable_shared" = yes && enable_static=no
12964     if test -n "$RANLIB"; then
12965       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12966       postinstall_cmds='$RANLIB $lib'
12967     fi
12968     ;;
12969
12970   aix[4-9]*)
12971     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12972       test "$enable_shared" = yes && enable_static=no
12973     fi
12974     ;;
12975   esac
12976   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12977 echo "${ECHO_T}$enable_shared" >&6; }
12978
12979   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12980 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12981   # Make sure either enable_shared or enable_static is yes.
12982   test "$enable_shared" = yes || enable_static=yes
12983   { echo "$as_me:$LINENO: result: $enable_static" >&5
12984 echo "${ECHO_T}$enable_static" >&6; }
12985
12986
12987
12988
12989 fi
12990 ac_ext=c
12991 ac_cpp='$CPP $CPPFLAGS'
12992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12995
12996 CC="$lt_save_CC"
12997
12998
12999 ac_ext=cpp
13000 ac_cpp='$CXXCPP $CPPFLAGS'
13001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13004
13005 archive_cmds_need_lc_CXX=no
13006 allow_undefined_flag_CXX=
13007 always_export_symbols_CXX=no
13008 archive_expsym_cmds_CXX=
13009 compiler_needs_object_CXX=no
13010 export_dynamic_flag_spec_CXX=
13011 hardcode_direct_CXX=no
13012 hardcode_direct_absolute_CXX=no
13013 hardcode_libdir_flag_spec_CXX=
13014 hardcode_libdir_flag_spec_ld_CXX=
13015 hardcode_libdir_separator_CXX=
13016 hardcode_minus_L_CXX=no
13017 hardcode_shlibpath_var_CXX=unsupported
13018 hardcode_automatic_CXX=no
13019 inherit_rpath_CXX=no
13020 module_cmds_CXX=
13021 module_expsym_cmds_CXX=
13022 link_all_deplibs_CXX=unknown
13023 old_archive_cmds_CXX=$old_archive_cmds
13024 no_undefined_flag_CXX=
13025 whole_archive_flag_spec_CXX=
13026 enable_shared_with_static_runtimes_CXX=no
13027
13028 # Source file extension for C++ test sources.
13029 ac_ext=cpp
13030
13031 # Object file extension for compiled C++ test sources.
13032 objext=o
13033 objext_CXX=$objext
13034
13035 # No sense in running all these tests if we already determined that
13036 # the CXX compiler isn't working.  Some variables (like enable_shared)
13037 # are currently assumed to apply to all compilers on this platform,
13038 # and will be corrupted by setting them based on a non-working compiler.
13039 if test "$_lt_caught_CXX_error" != yes; then
13040   # Code to be used in simple compile tests
13041   lt_simple_compile_test_code="int some_variable = 0;"
13042
13043   # Code to be used in simple link tests
13044   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13045
13046   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13047
13048
13049
13050
13051
13052
13053 # If no C compiler was specified, use CC.
13054 LTCC=${LTCC-"$CC"}
13055
13056 # If no C compiler flags were specified, use CFLAGS.
13057 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13058
13059 # Allow CC to be a program name with arguments.
13060 compiler=$CC
13061
13062
13063   # save warnings/boilerplate of simple test code
13064   ac_outfile=conftest.$ac_objext
13065 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13066 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13067 _lt_compiler_boilerplate=`cat conftest.err`
13068 $RM conftest*
13069
13070   ac_outfile=conftest.$ac_objext
13071 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13072 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13073 _lt_linker_boilerplate=`cat conftest.err`
13074 $RM -r conftest*
13075
13076
13077   # Allow CC to be a program name with arguments.
13078   lt_save_CC=$CC
13079   lt_save_LD=$LD
13080   lt_save_GCC=$GCC
13081   GCC=$GXX
13082   lt_save_with_gnu_ld=$with_gnu_ld
13083   lt_save_path_LD=$lt_cv_path_LD
13084   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13085     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13086   else
13087     $as_unset lt_cv_prog_gnu_ld
13088   fi
13089   if test -n "${lt_cv_path_LDCXX+set}"; then
13090     lt_cv_path_LD=$lt_cv_path_LDCXX
13091   else
13092     $as_unset lt_cv_path_LD
13093   fi
13094   test -z "${LDCXX+set}" || LD=$LDCXX
13095   CC=${CXX-"c++"}
13096   compiler=$CC
13097   compiler_CXX=$CC
13098   for cc_temp in $compiler""; do
13099   case $cc_temp in
13100     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13101     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13102     \-*) ;;
13103     *) break;;
13104   esac
13105 done
13106 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13107
13108
13109   if test -n "$compiler"; then
13110     # We don't want -fno-exception when compiling C++ code, so set the
13111     # no_builtin_flag separately
13112     if test "$GXX" = yes; then
13113       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13114     else
13115       lt_prog_compiler_no_builtin_flag_CXX=
13116     fi
13117
13118     if test "$GXX" = yes; then
13119       # Set up default GNU C++ configuration
13120
13121
13122
13123 # Check whether --with-gnu-ld was given.
13124 if test "${with_gnu_ld+set}" = set; then
13125   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13126 else
13127   with_gnu_ld=no
13128 fi
13129
13130 ac_prog=ld
13131 if test "$GCC" = yes; then
13132   # Check if gcc -print-prog-name=ld gives a path.
13133   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13135   case $host in
13136   *-*-mingw*)
13137     # gcc leaves a trailing carriage return which upsets mingw
13138     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13139   *)
13140     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13141   esac
13142   case $ac_prog in
13143     # Accept absolute paths.
13144     [\\/]* | ?:[\\/]*)
13145       re_direlt='/[^/][^/]*/\.\./'
13146       # Canonicalize the pathname of ld
13147       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13148       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13149         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13150       done
13151       test -z "$LD" && LD="$ac_prog"
13152       ;;
13153   "")
13154     # If it fails, then pretend we aren't using GCC.
13155     ac_prog=ld
13156     ;;
13157   *)
13158     # If it is relative, then search for the first ld in PATH.
13159     with_gnu_ld=unknown
13160     ;;
13161   esac
13162 elif test "$with_gnu_ld" = yes; then
13163   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13165 else
13166   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13168 fi
13169 if test "${lt_cv_path_LD+set}" = set; then
13170   echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172   if test -z "$LD"; then
13173   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13174   for ac_dir in $PATH; do
13175     IFS="$lt_save_ifs"
13176     test -z "$ac_dir" && ac_dir=.
13177     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13178       lt_cv_path_LD="$ac_dir/$ac_prog"
13179       # Check to see if the program is GNU ld.  I'd rather use --version,
13180       # but apparently some variants of GNU ld only accept -v.
13181       # Break only if it was the GNU/non-GNU ld that we prefer.
13182       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13183       *GNU* | *'with BFD'*)
13184         test "$with_gnu_ld" != no && break
13185         ;;
13186       *)
13187         test "$with_gnu_ld" != yes && break
13188         ;;
13189       esac
13190     fi
13191   done
13192   IFS="$lt_save_ifs"
13193 else
13194   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13195 fi
13196 fi
13197
13198 LD="$lt_cv_path_LD"
13199 if test -n "$LD"; then
13200   { echo "$as_me:$LINENO: result: $LD" >&5
13201 echo "${ECHO_T}$LD" >&6; }
13202 else
13203   { echo "$as_me:$LINENO: result: no" >&5
13204 echo "${ECHO_T}no" >&6; }
13205 fi
13206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13208    { (exit 1); exit 1; }; }
13209 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13212   echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13215 case `$LD -v 2>&1 </dev/null` in
13216 *GNU* | *'with BFD'*)
13217   lt_cv_prog_gnu_ld=yes
13218   ;;
13219 *)
13220   lt_cv_prog_gnu_ld=no
13221   ;;
13222 esac
13223 fi
13224 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13226 with_gnu_ld=$lt_cv_prog_gnu_ld
13227
13228
13229
13230
13231
13232
13233
13234       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13235       # archiving commands below assume that GNU ld is being used.
13236       if test "$with_gnu_ld" = yes; then
13237         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13238         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'
13239
13240         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13241         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13242
13243         # If archive_cmds runs LD, not CC, wlarc should be empty
13244         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13245         #     investigate it a little bit more. (MM)
13246         wlarc='${wl}'
13247
13248         # ancient GNU ld didn't support --whole-archive et. al.
13249         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13250           $GREP 'no-whole-archive' > /dev/null; then
13251           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13252         else
13253           whole_archive_flag_spec_CXX=
13254         fi
13255       else
13256         with_gnu_ld=no
13257         wlarc=
13258
13259         # A generic and very simple default shared library creation
13260         # command for GNU C++ for the case where it uses the native
13261         # linker, instead of GNU ld.  If possible, this setting should
13262         # overridden to take advantage of the native linker features on
13263         # the platform it is being used on.
13264         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13265       fi
13266
13267       # Commands to make compiler produce verbose output that lists
13268       # what "hidden" libraries, object files and flags are used when
13269       # linking a shared library.
13270       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13271
13272     else
13273       GXX=no
13274       with_gnu_ld=no
13275       wlarc=
13276     fi
13277
13278     # PORTME: fill in a description of your system's C++ link characteristics
13279     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13280 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13281     ld_shlibs_CXX=yes
13282     case $host_os in
13283       aix3*)
13284         # FIXME: insert proper C++ library support
13285         ld_shlibs_CXX=no
13286         ;;
13287       aix[4-9]*)
13288         if test "$host_cpu" = ia64; then
13289           # On IA64, the linker does run time linking by default, so we don't
13290           # have to do anything special.
13291           aix_use_runtimelinking=no
13292           exp_sym_flag='-Bexport'
13293           no_entry_flag=""
13294         else
13295           aix_use_runtimelinking=no
13296
13297           # Test if we are trying to use run time linking or normal
13298           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13299           # need to do runtime linking.
13300           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13301             for ld_flag in $LDFLAGS; do
13302               case $ld_flag in
13303               *-brtl*)
13304                 aix_use_runtimelinking=yes
13305                 break
13306                 ;;
13307               esac
13308             done
13309             ;;
13310           esac
13311
13312           exp_sym_flag='-bexport'
13313           no_entry_flag='-bnoentry'
13314         fi
13315
13316         # When large executables or shared objects are built, AIX ld can
13317         # have problems creating the table of contents.  If linking a library
13318         # or program results in "error TOC overflow" add -mminimal-toc to
13319         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13320         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13321
13322         archive_cmds_CXX=''
13323         hardcode_direct_CXX=yes
13324         hardcode_direct_absolute_CXX=yes
13325         hardcode_libdir_separator_CXX=':'
13326         link_all_deplibs_CXX=yes
13327         file_list_spec_CXX='${wl}-f,'
13328
13329         if test "$GXX" = yes; then
13330           case $host_os in aix4.[012]|aix4.[012].*)
13331           # We only want to do this on AIX 4.2 and lower, the check
13332           # below for broken collect2 doesn't work under 4.3+
13333           collect2name=`${CC} -print-prog-name=collect2`
13334           if test -f "$collect2name" &&
13335              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13336           then
13337             # We have reworked collect2
13338             :
13339           else
13340             # We have old collect2
13341             hardcode_direct_CXX=unsupported
13342             # It fails to find uninstalled libraries when the uninstalled
13343             # path is not listed in the libpath.  Setting hardcode_minus_L
13344             # to unsupported forces relinking
13345             hardcode_minus_L_CXX=yes
13346             hardcode_libdir_flag_spec_CXX='-L$libdir'
13347             hardcode_libdir_separator_CXX=
13348           fi
13349           esac
13350           shared_flag='-shared'
13351           if test "$aix_use_runtimelinking" = yes; then
13352             shared_flag="$shared_flag "'${wl}-G'
13353           fi
13354         else
13355           # not using gcc
13356           if test "$host_cpu" = ia64; then
13357           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13358           # chokes on -Wl,-G. The following line is correct:
13359           shared_flag='-G'
13360           else
13361             if test "$aix_use_runtimelinking" = yes; then
13362               shared_flag='${wl}-G'
13363             else
13364               shared_flag='${wl}-bM:SRE'
13365             fi
13366           fi
13367         fi
13368
13369         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13370         # It seems that -bexpall does not export symbols beginning with
13371         # underscore (_), so it is better to generate a list of symbols to
13372         # export.
13373         always_export_symbols_CXX=yes
13374         if test "$aix_use_runtimelinking" = yes; then
13375           # Warning - without using the other runtime loading flags (-brtl),
13376           # -berok will link without error, but may produce a broken library.
13377           allow_undefined_flag_CXX='-berok'
13378           # Determine the default libpath from the value encoded in an empty
13379           # executable.
13380           cat >conftest.$ac_ext <<_ACEOF
13381 /* confdefs.h.  */
13382 _ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h.  */
13386
13387 int
13388 main ()
13389 {
13390
13391   ;
13392   return 0;
13393 }
13394 _ACEOF
13395 rm -f conftest.$ac_objext conftest$ac_exeext
13396 if { (ac_try="$ac_link"
13397 case "(($ac_try" in
13398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399   *) ac_try_echo=$ac_try;;
13400 esac
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402   (eval "$ac_link") 2>conftest.er1
13403   ac_status=$?
13404   grep -v '^ *+' conftest.er1 >conftest.err
13405   rm -f conftest.er1
13406   cat conftest.err >&5
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); } && {
13409          test -z "$ac_cxx_werror_flag" ||
13410          test ! -s conftest.err
13411        } && test -s conftest$ac_exeext &&
13412        $as_test_x conftest$ac_exeext; then
13413
13414 lt_aix_libpath_sed='
13415     /Import File Strings/,/^$/ {
13416         /^0/ {
13417             s/^0  *\(.*\)$/\1/
13418             p
13419         }
13420     }'
13421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13422 # Check for a 64-bit object if we didn't find anything.
13423 if test -z "$aix_libpath"; then
13424   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13425 fi
13426 else
13427   echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13429
13430
13431 fi
13432
13433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13434       conftest$ac_exeext conftest.$ac_ext
13435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13436
13437           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13438
13439           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"
13440         else
13441           if test "$host_cpu" = ia64; then
13442             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13443             allow_undefined_flag_CXX="-z nodefs"
13444             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"
13445           else
13446             # Determine the default libpath from the value encoded in an
13447             # empty executable.
13448             cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h.  */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h.  */
13454
13455 int
13456 main ()
13457 {
13458
13459   ;
13460   return 0;
13461 }
13462 _ACEOF
13463 rm -f conftest.$ac_objext conftest$ac_exeext
13464 if { (ac_try="$ac_link"
13465 case "(($ac_try" in
13466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467   *) ac_try_echo=$ac_try;;
13468 esac
13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470   (eval "$ac_link") 2>conftest.er1
13471   ac_status=$?
13472   grep -v '^ *+' conftest.er1 >conftest.err
13473   rm -f conftest.er1
13474   cat conftest.err >&5
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); } && {
13477          test -z "$ac_cxx_werror_flag" ||
13478          test ! -s conftest.err
13479        } && test -s conftest$ac_exeext &&
13480        $as_test_x conftest$ac_exeext; then
13481
13482 lt_aix_libpath_sed='
13483     /Import File Strings/,/^$/ {
13484         /^0/ {
13485             s/^0  *\(.*\)$/\1/
13486             p
13487         }
13488     }'
13489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13490 # Check for a 64-bit object if we didn't find anything.
13491 if test -z "$aix_libpath"; then
13492   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13493 fi
13494 else
13495   echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13497
13498
13499 fi
13500
13501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13502       conftest$ac_exeext conftest.$ac_ext
13503 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13504
13505             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13506             # Warning - without using the other run time loading flags,
13507             # -berok will link without error, but may produce a broken library.
13508             no_undefined_flag_CXX=' ${wl}-bernotok'
13509             allow_undefined_flag_CXX=' ${wl}-berok'
13510             # Exported symbols can be pulled into shared objects from archives
13511             whole_archive_flag_spec_CXX='$convenience'
13512             archive_cmds_need_lc_CXX=yes
13513             # This is similar to how AIX traditionally builds its shared
13514             # libraries.
13515             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'
13516           fi
13517         fi
13518         ;;
13519
13520       beos*)
13521         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13522           allow_undefined_flag_CXX=unsupported
13523           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13524           # support --undefined.  This deserves some investigation.  FIXME
13525           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13526         else
13527           ld_shlibs_CXX=no
13528         fi
13529         ;;
13530
13531       chorus*)
13532         case $cc_basename in
13533           *)
13534           # FIXME: insert proper C++ library support
13535           ld_shlibs_CXX=no
13536           ;;
13537         esac
13538         ;;
13539
13540       cygwin* | mingw* | pw32* | cegcc*)
13541         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13542         # as there is no search path for DLLs.
13543         hardcode_libdir_flag_spec_CXX='-L$libdir'
13544         allow_undefined_flag_CXX=unsupported
13545         always_export_symbols_CXX=no
13546         enable_shared_with_static_runtimes_CXX=yes
13547
13548         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13549           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'
13550           # If the export-symbols file already is a .def file (1st line
13551           # is EXPORTS), use it as is; otherwise, prepend...
13552           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13553             cp $export_symbols $output_objdir/$soname.def;
13554           else
13555             echo EXPORTS > $output_objdir/$soname.def;
13556             cat $export_symbols >> $output_objdir/$soname.def;
13557           fi~
13558           $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'
13559         else
13560           ld_shlibs_CXX=no
13561         fi
13562         ;;
13563       darwin* | rhapsody*)
13564
13565
13566   archive_cmds_need_lc_CXX=no
13567   hardcode_direct_CXX=no
13568   hardcode_automatic_CXX=yes
13569   hardcode_shlibpath_var_CXX=unsupported
13570   whole_archive_flag_spec_CXX=''
13571   link_all_deplibs_CXX=yes
13572   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13573   case $cc_basename in
13574      ifort*) _lt_dar_can_shared=yes ;;
13575      *) _lt_dar_can_shared=$GCC ;;
13576   esac
13577   if test "$_lt_dar_can_shared" = "yes"; then
13578     output_verbose_link_cmd=echo
13579     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}"
13580     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13581     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}"
13582     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}"
13583        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13584       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}"
13585       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}"
13586     fi
13587
13588   else
13589   ld_shlibs_CXX=no
13590   fi
13591
13592         ;;
13593
13594       dgux*)
13595         case $cc_basename in
13596           ec++*)
13597             # FIXME: insert proper C++ library support
13598             ld_shlibs_CXX=no
13599             ;;
13600           ghcx*)
13601             # Green Hills C++ Compiler
13602             # FIXME: insert proper C++ library support
13603             ld_shlibs_CXX=no
13604             ;;
13605           *)
13606             # FIXME: insert proper C++ library support
13607             ld_shlibs_CXX=no
13608             ;;
13609         esac
13610         ;;
13611
13612       freebsd[12]*)
13613         # C++ shared libraries reported to be fairly broken before
13614         # switch to ELF
13615         ld_shlibs_CXX=no
13616         ;;
13617
13618       freebsd-elf*)
13619         archive_cmds_need_lc_CXX=no
13620         ;;
13621
13622       freebsd* | dragonfly*)
13623         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13624         # conventions
13625         ld_shlibs_CXX=yes
13626         ;;
13627
13628       gnu*)
13629         ;;
13630
13631       hpux9*)
13632         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13633         hardcode_libdir_separator_CXX=:
13634         export_dynamic_flag_spec_CXX='${wl}-E'
13635         hardcode_direct_CXX=yes
13636         hardcode_minus_L_CXX=yes # Not in the search PATH,
13637                                              # but as the default
13638                                              # location of the library.
13639
13640         case $cc_basename in
13641           CC*)
13642             # FIXME: insert proper C++ library support
13643             ld_shlibs_CXX=no
13644             ;;
13645           aCC*)
13646             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'
13647             # Commands to make compiler produce verbose output that lists
13648             # what "hidden" libraries, object files and flags are used when
13649             # linking a shared library.
13650             #
13651             # There doesn't appear to be a way to prevent this compiler from
13652             # explicitly linking system object files so we need to strip them
13653             # from the output so that they don't get included in the library
13654             # dependencies.
13655             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'
13656             ;;
13657           *)
13658             if test "$GXX" = yes; then
13659               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'
13660             else
13661               # FIXME: insert proper C++ library support
13662               ld_shlibs_CXX=no
13663             fi
13664             ;;
13665         esac
13666         ;;
13667
13668       hpux10*|hpux11*)
13669         if test $with_gnu_ld = no; then
13670           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13671           hardcode_libdir_separator_CXX=:
13672
13673           case $host_cpu in
13674             hppa*64*|ia64*)
13675               ;;
13676             *)
13677               export_dynamic_flag_spec_CXX='${wl}-E'
13678               ;;
13679           esac
13680         fi
13681         case $host_cpu in
13682           hppa*64*|ia64*)
13683             hardcode_direct_CXX=no
13684             hardcode_shlibpath_var_CXX=no
13685             ;;
13686           *)
13687             hardcode_direct_CXX=yes
13688             hardcode_direct_absolute_CXX=yes
13689             hardcode_minus_L_CXX=yes # Not in the search PATH,
13690                                                  # but as the default
13691                                                  # location of the library.
13692             ;;
13693         esac
13694
13695         case $cc_basename in
13696           CC*)
13697             # FIXME: insert proper C++ library support
13698             ld_shlibs_CXX=no
13699             ;;
13700           aCC*)
13701             case $host_cpu in
13702               hppa*64*)
13703                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13704                 ;;
13705               ia64*)
13706                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13707                 ;;
13708               *)
13709                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13710                 ;;
13711             esac
13712             # Commands to make compiler produce verbose output that lists
13713             # what "hidden" libraries, object files and flags are used when
13714             # linking a shared library.
13715             #
13716             # There doesn't appear to be a way to prevent this compiler from
13717             # explicitly linking system object files so we need to strip them
13718             # from the output so that they don't get included in the library
13719             # dependencies.
13720             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'
13721             ;;
13722           *)
13723             if test "$GXX" = yes; then
13724               if test $with_gnu_ld = no; then
13725                 case $host_cpu in
13726                   hppa*64*)
13727                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13728                     ;;
13729                   ia64*)
13730                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13731                     ;;
13732                   *)
13733                     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'
13734                     ;;
13735                 esac
13736               fi
13737             else
13738               # FIXME: insert proper C++ library support
13739               ld_shlibs_CXX=no
13740             fi
13741             ;;
13742         esac
13743         ;;
13744
13745       interix[3-9]*)
13746         hardcode_direct_CXX=no
13747         hardcode_shlibpath_var_CXX=no
13748         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13749         export_dynamic_flag_spec_CXX='${wl}-E'
13750         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13751         # Instead, shared libraries are loaded at an image base (0x10000000 by
13752         # default) and relocated if they conflict, which is a slow very memory
13753         # consuming and fragmenting process.  To avoid this, we pick a random,
13754         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13755         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13756         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'
13757         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'
13758         ;;
13759       irix5* | irix6*)
13760         case $cc_basename in
13761           CC*)
13762             # SGI C++
13763             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'
13764
13765             # Archives containing C++ object files must be created using
13766             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13767             # necessary to make sure instantiated templates are included
13768             # in the archive.
13769             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13770             ;;
13771           *)
13772             if test "$GXX" = yes; then
13773               if test "$with_gnu_ld" = no; then
13774                 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'
13775               else
13776                 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'
13777               fi
13778             fi
13779             link_all_deplibs_CXX=yes
13780             ;;
13781         esac
13782         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13783         hardcode_libdir_separator_CXX=:
13784         inherit_rpath_CXX=yes
13785         ;;
13786
13787       linux* | k*bsd*-gnu)
13788         case $cc_basename in
13789           KCC*)
13790             # Kuck and Associates, Inc. (KAI) C++ Compiler
13791
13792             # KCC will only create a shared library if the output file
13793             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13794             # to its proper name (with version) after linking.
13795             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'
13796             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'
13797             # Commands to make compiler produce verbose output that lists
13798             # what "hidden" libraries, object files and flags are used when
13799             # linking a shared library.
13800             #
13801             # There doesn't appear to be a way to prevent this compiler from
13802             # explicitly linking system object files so we need to strip them
13803             # from the output so that they don't get included in the library
13804             # dependencies.
13805             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'
13806
13807             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13808             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13809
13810             # Archives containing C++ object files must be created using
13811             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13812             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13813             ;;
13814           icpc* | ecpc* )
13815             # Intel C++
13816             with_gnu_ld=yes
13817             # version 8.0 and above of icpc choke on multiply defined symbols
13818             # if we add $predep_objects and $postdep_objects, however 7.1 and
13819             # earlier do not add the objects themselves.
13820             case `$CC -V 2>&1` in
13821               *"Version 7."*)
13822                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13823                 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'
13824                 ;;
13825               *)  # Version 8.0 or newer
13826                 tmp_idyn=
13827                 case $host_cpu in
13828                   ia64*) tmp_idyn=' -i_dynamic';;
13829                 esac
13830                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13831                 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'
13832                 ;;
13833             esac
13834             archive_cmds_need_lc_CXX=no
13835             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13836             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13837             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13838             ;;
13839           pgCC* | pgcpp*)
13840             # Portland Group C++ compiler
13841             case `$CC -V` in
13842             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13843               prelink_cmds_CXX='tpldir=Template.dir~
13844                 rm -rf $tpldir~
13845                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13846                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13847               old_archive_cmds_CXX='tpldir=Template.dir~
13848                 rm -rf $tpldir~
13849                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13850                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13851                 $RANLIB $oldlib'
13852               archive_cmds_CXX='tpldir=Template.dir~
13853                 rm -rf $tpldir~
13854                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13855                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13856               archive_expsym_cmds_CXX='tpldir=Template.dir~
13857                 rm -rf $tpldir~
13858                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13859                 $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'
13860               ;;
13861             *) # Version 6 will use weak symbols
13862               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13863               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'
13864               ;;
13865             esac
13866
13867             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13868             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13869             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'
13870             ;;
13871           cxx*)
13872             # Compaq C++
13873             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13874             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'
13875
13876             runpath_var=LD_RUN_PATH
13877             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13878             hardcode_libdir_separator_CXX=:
13879
13880             # Commands to make compiler produce verbose output that lists
13881             # what "hidden" libraries, object files and flags are used when
13882             # linking a shared library.
13883             #
13884             # There doesn't appear to be a way to prevent this compiler from
13885             # explicitly linking system object files so we need to strip them
13886             # from the output so that they don't get included in the library
13887             # dependencies.
13888             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'
13889             ;;
13890           xl*)
13891             # IBM XL 8.0 on PPC, with GNU ld
13892             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13893             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13894             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13895             if test "x$supports_anon_versioning" = xyes; then
13896               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13897                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13898                 echo "local: *; };" >> $output_objdir/$libname.ver~
13899                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13900             fi
13901             ;;
13902           *)
13903             case `$CC -V 2>&1 | sed 5q` in
13904             *Sun\ C*)
13905               # Sun C++ 5.9
13906               no_undefined_flag_CXX=' -zdefs'
13907               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13908               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'
13909               hardcode_libdir_flag_spec_CXX='-R$libdir'
13910               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'
13911               compiler_needs_object_CXX=yes
13912
13913               # Not sure whether something based on
13914               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13915               # would be better.
13916               output_verbose_link_cmd='echo'
13917
13918               # Archives containing C++ object files must be created using
13919               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13920               # necessary to make sure instantiated templates are included
13921               # in the archive.
13922               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13923               ;;
13924             esac
13925             ;;
13926         esac
13927         ;;
13928
13929       lynxos*)
13930         # FIXME: insert proper C++ library support
13931         ld_shlibs_CXX=no
13932         ;;
13933
13934       m88k*)
13935         # FIXME: insert proper C++ library support
13936         ld_shlibs_CXX=no
13937         ;;
13938
13939       mvs*)
13940         case $cc_basename in
13941           cxx*)
13942             # FIXME: insert proper C++ library support
13943             ld_shlibs_CXX=no
13944             ;;
13945           *)
13946             # FIXME: insert proper C++ library support
13947             ld_shlibs_CXX=no
13948             ;;
13949         esac
13950         ;;
13951
13952       netbsd*)
13953         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13954           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13955           wlarc=
13956           hardcode_libdir_flag_spec_CXX='-R$libdir'
13957           hardcode_direct_CXX=yes
13958           hardcode_shlibpath_var_CXX=no
13959         fi
13960         # Workaround some broken pre-1.5 toolchains
13961         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13962         ;;
13963
13964       *nto* | *qnx*)
13965         ld_shlibs_CXX=yes
13966         ;;
13967
13968       openbsd2*)
13969         # C++ shared libraries are fairly broken
13970         ld_shlibs_CXX=no
13971         ;;
13972
13973       openbsd*)
13974         if test -f /usr/libexec/ld.so; then
13975           hardcode_direct_CXX=yes
13976           hardcode_shlibpath_var_CXX=no
13977           hardcode_direct_absolute_CXX=yes
13978           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13979           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13980           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13981             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13982             export_dynamic_flag_spec_CXX='${wl}-E'
13983             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13984           fi
13985           output_verbose_link_cmd=echo
13986         else
13987           ld_shlibs_CXX=no
13988         fi
13989         ;;
13990
13991       osf3* | osf4* | osf5*)
13992         case $cc_basename in
13993           KCC*)
13994             # Kuck and Associates, Inc. (KAI) C++ Compiler
13995
13996             # KCC will only create a shared library if the output file
13997             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13998             # to its proper name (with version) after linking.
13999             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'
14000
14001             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14002             hardcode_libdir_separator_CXX=:
14003
14004             # Archives containing C++ object files must be created using
14005             # the KAI C++ compiler.
14006             case $host in
14007               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14008               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14009             esac
14010             ;;
14011           RCC*)
14012             # Rational C++ 2.4.1
14013             # FIXME: insert proper C++ library support
14014             ld_shlibs_CXX=no
14015             ;;
14016           cxx*)
14017             case $host in
14018               osf3*)
14019                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14020                 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'
14021                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14022                 ;;
14023               *)
14024                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14025                 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'
14026                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14027                   echo "-hidden">> $lib.exp~
14028                   $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~
14029                   $RM $lib.exp'
14030                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14031                 ;;
14032             esac
14033
14034             hardcode_libdir_separator_CXX=:
14035
14036             # Commands to make compiler produce verbose output that lists
14037             # what "hidden" libraries, object files and flags are used when
14038             # linking a shared library.
14039             #
14040             # There doesn't appear to be a way to prevent this compiler from
14041             # explicitly linking system object files so we need to strip them
14042             # from the output so that they don't get included in the library
14043             # dependencies.
14044             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'
14045             ;;
14046           *)
14047             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14048               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14049               case $host in
14050                 osf3*)
14051                   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'
14052                   ;;
14053                 *)
14054                   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'
14055                   ;;
14056               esac
14057
14058               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14059               hardcode_libdir_separator_CXX=:
14060
14061               # Commands to make compiler produce verbose output that lists
14062               # what "hidden" libraries, object files and flags are used when
14063               # linking a shared library.
14064               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14065
14066             else
14067               # FIXME: insert proper C++ library support
14068               ld_shlibs_CXX=no
14069             fi
14070             ;;
14071         esac
14072         ;;
14073
14074       psos*)
14075         # FIXME: insert proper C++ library support
14076         ld_shlibs_CXX=no
14077         ;;
14078
14079       sunos4*)
14080         case $cc_basename in
14081           CC*)
14082             # Sun C++ 4.x
14083             # FIXME: insert proper C++ library support
14084             ld_shlibs_CXX=no
14085             ;;
14086           lcc*)
14087             # Lucid
14088             # FIXME: insert proper C++ library support
14089             ld_shlibs_CXX=no
14090             ;;
14091           *)
14092             # FIXME: insert proper C++ library support
14093             ld_shlibs_CXX=no
14094             ;;
14095         esac
14096         ;;
14097
14098       solaris*)
14099         case $cc_basename in
14100           CC*)
14101             # Sun C++ 4.2, 5.x and Centerline C++
14102             archive_cmds_need_lc_CXX=yes
14103             no_undefined_flag_CXX=' -zdefs'
14104             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14105             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14106               $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'
14107
14108             hardcode_libdir_flag_spec_CXX='-R$libdir'
14109             hardcode_shlibpath_var_CXX=no
14110             case $host_os in
14111               solaris2.[0-5] | solaris2.[0-5].*) ;;
14112               *)
14113                 # The compiler driver will combine and reorder linker options,
14114                 # but understands `-z linker_flag'.
14115                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14116                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14117                 ;;
14118             esac
14119             link_all_deplibs_CXX=yes
14120
14121             output_verbose_link_cmd='echo'
14122
14123             # Archives containing C++ object files must be created using
14124             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14125             # necessary to make sure instantiated templates are included
14126             # in the archive.
14127             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14128             ;;
14129           gcx*)
14130             # Green Hills C++ Compiler
14131             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14132
14133             # The C++ compiler must be used to create the archive.
14134             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14135             ;;
14136           *)
14137             # GNU C++ compiler with Solaris linker
14138             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14139               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14140               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14141                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14142                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14143                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14144
14145                 # Commands to make compiler produce verbose output that lists
14146                 # what "hidden" libraries, object files and flags are used when
14147                 # linking a shared library.
14148                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14149               else
14150                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14151                 # platform.
14152                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14153                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14154                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14155
14156                 # Commands to make compiler produce verbose output that lists
14157                 # what "hidden" libraries, object files and flags are used when
14158                 # linking a shared library.
14159                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14160               fi
14161
14162               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14163               case $host_os in
14164                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14165                 *)
14166                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14167                   ;;
14168               esac
14169             fi
14170             ;;
14171         esac
14172         ;;
14173
14174     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14175       no_undefined_flag_CXX='${wl}-z,text'
14176       archive_cmds_need_lc_CXX=no
14177       hardcode_shlibpath_var_CXX=no
14178       runpath_var='LD_RUN_PATH'
14179
14180       case $cc_basename in
14181         CC*)
14182           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14184           ;;
14185         *)
14186           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14187           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14188           ;;
14189       esac
14190       ;;
14191
14192       sysv5* | sco3.2v5* | sco5v6*)
14193         # Note: We can NOT use -z defs as we might desire, because we do not
14194         # link with -lc, and that would cause any symbols used from libc to
14195         # always be unresolved, which means just about no library would
14196         # ever link correctly.  If we're not using GNU ld we use -z text
14197         # though, which does catch some bad symbols but isn't as heavy-handed
14198         # as -z defs.
14199         no_undefined_flag_CXX='${wl}-z,text'
14200         allow_undefined_flag_CXX='${wl}-z,nodefs'
14201         archive_cmds_need_lc_CXX=no
14202         hardcode_shlibpath_var_CXX=no
14203         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14204         hardcode_libdir_separator_CXX=':'
14205         link_all_deplibs_CXX=yes
14206         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14207         runpath_var='LD_RUN_PATH'
14208
14209         case $cc_basename in
14210           CC*)
14211             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14212             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14213             ;;
14214           *)
14215             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14216             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14217             ;;
14218         esac
14219       ;;
14220
14221       tandem*)
14222         case $cc_basename in
14223           NCC*)
14224             # NonStop-UX NCC 3.20
14225             # FIXME: insert proper C++ library support
14226             ld_shlibs_CXX=no
14227             ;;
14228           *)
14229             # FIXME: insert proper C++ library support
14230             ld_shlibs_CXX=no
14231             ;;
14232         esac
14233         ;;
14234
14235       vxworks*)
14236         # FIXME: insert proper C++ library support
14237         ld_shlibs_CXX=no
14238         ;;
14239
14240       *)
14241         # FIXME: insert proper C++ library support
14242         ld_shlibs_CXX=no
14243         ;;
14244     esac
14245
14246     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14247 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14248     test "$ld_shlibs_CXX" = no && can_build_shared=no
14249
14250     GCC_CXX="$GXX"
14251     LD_CXX="$LD"
14252
14253     ## CAVEAT EMPTOR:
14254     ## There is no encapsulation within the following macros, do not change
14255     ## the running order or otherwise move them around unless you know exactly
14256     ## what you are doing...
14257     # Dependencies to place before and after the object being linked:
14258 predep_objects_CXX=
14259 postdep_objects_CXX=
14260 predeps_CXX=
14261 postdeps_CXX=
14262 compiler_lib_search_path_CXX=
14263
14264 cat > conftest.$ac_ext <<_LT_EOF
14265 class Foo
14266 {
14267 public:
14268   Foo (void) { a = 0; }
14269 private:
14270   int a;
14271 };
14272 _LT_EOF
14273
14274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14275   (eval $ac_compile) 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); }; then
14279   # Parse the compiler output and extract the necessary
14280   # objects, libraries and library flags.
14281
14282   # Sentinel used to keep track of whether or not we are before
14283   # the conftest object file.
14284   pre_test_object_deps_done=no
14285
14286   for p in `eval "$output_verbose_link_cmd"`; do
14287     case $p in
14288
14289     -L* | -R* | -l*)
14290        # Some compilers place space between "-{L,R}" and the path.
14291        # Remove the space.
14292        if test $p = "-L" ||
14293           test $p = "-R"; then
14294          prev=$p
14295          continue
14296        else
14297          prev=
14298        fi
14299
14300        if test "$pre_test_object_deps_done" = no; then
14301          case $p in
14302          -L* | -R*)
14303            # Internal compiler library paths should come after those
14304            # provided the user.  The postdeps already come after the
14305            # user supplied libs so there is no need to process them.
14306            if test -z "$compiler_lib_search_path_CXX"; then
14307              compiler_lib_search_path_CXX="${prev}${p}"
14308            else
14309              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14310            fi
14311            ;;
14312          # The "-l" case would never come before the object being
14313          # linked, so don't bother handling this case.
14314          esac
14315        else
14316          if test -z "$postdeps_CXX"; then
14317            postdeps_CXX="${prev}${p}"
14318          else
14319            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14320          fi
14321        fi
14322        ;;
14323
14324     *.$objext)
14325        # This assumes that the test object file only shows up
14326        # once in the compiler output.
14327        if test "$p" = "conftest.$objext"; then
14328          pre_test_object_deps_done=yes
14329          continue
14330        fi
14331
14332        if test "$pre_test_object_deps_done" = no; then
14333          if test -z "$predep_objects_CXX"; then
14334            predep_objects_CXX="$p"
14335          else
14336            predep_objects_CXX="$predep_objects_CXX $p"
14337          fi
14338        else
14339          if test -z "$postdep_objects_CXX"; then
14340            postdep_objects_CXX="$p"
14341          else
14342            postdep_objects_CXX="$postdep_objects_CXX $p"
14343          fi
14344        fi
14345        ;;
14346
14347     *) ;; # Ignore the rest.
14348
14349     esac
14350   done
14351
14352   # Clean up.
14353   rm -f a.out a.exe
14354 else
14355   echo "libtool.m4: error: problem compiling CXX test program"
14356 fi
14357
14358 $RM -f confest.$objext
14359
14360 # PORTME: override above test on systems where it is broken
14361 case $host_os in
14362 interix[3-9]*)
14363   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14364   # hack all around it, let's just trust "g++" to DTRT.
14365   predep_objects_CXX=
14366   postdep_objects_CXX=
14367   postdeps_CXX=
14368   ;;
14369
14370 linux*)
14371   case `$CC -V 2>&1 | sed 5q` in
14372   *Sun\ C*)
14373     # Sun C++ 5.9
14374
14375     # The more standards-conforming stlport4 library is
14376     # incompatible with the Cstd library. Avoid specifying
14377     # it if it's in CXXFLAGS. Ignore libCrun as
14378     # -library=stlport4 depends on it.
14379     case " $CXX $CXXFLAGS " in
14380     *" -library=stlport4 "*)
14381       solaris_use_stlport4=yes
14382       ;;
14383     esac
14384
14385     if test "$solaris_use_stlport4" != yes; then
14386       postdeps_CXX='-library=Cstd -library=Crun'
14387     fi
14388     ;;
14389   esac
14390   ;;
14391
14392 solaris*)
14393   case $cc_basename in
14394   CC*)
14395     # The more standards-conforming stlport4 library is
14396     # incompatible with the Cstd library. Avoid specifying
14397     # it if it's in CXXFLAGS. Ignore libCrun as
14398     # -library=stlport4 depends on it.
14399     case " $CXX $CXXFLAGS " in
14400     *" -library=stlport4 "*)
14401       solaris_use_stlport4=yes
14402       ;;
14403     esac
14404
14405     # Adding this requires a known-good setup of shared libraries for
14406     # Sun compiler versions before 5.6, else PIC objects from an old
14407     # archive will be linked into the output, leading to subtle bugs.
14408     if test "$solaris_use_stlport4" != yes; then
14409       postdeps_CXX='-library=Cstd -library=Crun'
14410     fi
14411     ;;
14412   esac
14413   ;;
14414 esac
14415
14416
14417 case " $postdeps_CXX " in
14418 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14419 esac
14420  compiler_lib_search_dirs_CXX=
14421 if test -n "${compiler_lib_search_path_CXX}"; then
14422  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14423 fi
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455     lt_prog_compiler_wl_CXX=
14456 lt_prog_compiler_pic_CXX=
14457 lt_prog_compiler_static_CXX=
14458
14459 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14461
14462   # C++ specific cases for pic, static, wl, etc.
14463   if test "$GXX" = yes; then
14464     lt_prog_compiler_wl_CXX='-Wl,'
14465     lt_prog_compiler_static_CXX='-static'
14466
14467     case $host_os in
14468     aix*)
14469       # All AIX code is PIC.
14470       if test "$host_cpu" = ia64; then
14471         # AIX 5 now supports IA64 processor
14472         lt_prog_compiler_static_CXX='-Bstatic'
14473       fi
14474       ;;
14475
14476     amigaos*)
14477       case $host_cpu in
14478       powerpc)
14479             # see comment about AmigaOS4 .so support
14480             lt_prog_compiler_pic_CXX='-fPIC'
14481         ;;
14482       m68k)
14483             # FIXME: we need at least 68020 code to build shared libraries, but
14484             # adding the `-m68020' flag to GCC prevents building anything better,
14485             # like `-m68040'.
14486             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14487         ;;
14488       esac
14489       ;;
14490
14491     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14492       # PIC is the default for these OSes.
14493       ;;
14494     mingw* | cygwin* | os2* | pw32* | cegcc*)
14495       # This hack is so that the source file can tell whether it is being
14496       # built for inclusion in a dll (and should export symbols for example).
14497       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14498       # (--disable-auto-import) libraries
14499       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14500       ;;
14501     darwin* | rhapsody*)
14502       # PIC is the default on this platform
14503       # Common symbols not allowed in MH_DYLIB files
14504       lt_prog_compiler_pic_CXX='-fno-common'
14505       ;;
14506     *djgpp*)
14507       # DJGPP does not support shared libraries at all
14508       lt_prog_compiler_pic_CXX=
14509       ;;
14510     interix[3-9]*)
14511       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14512       # Instead, we relocate shared libraries at runtime.
14513       ;;
14514     sysv4*MP*)
14515       if test -d /usr/nec; then
14516         lt_prog_compiler_pic_CXX=-Kconform_pic
14517       fi
14518       ;;
14519     hpux*)
14520       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14521       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14522       # sets the default TLS model and affects inlining.
14523       case $host_cpu in
14524       hppa*64*)
14525         ;;
14526       *)
14527         lt_prog_compiler_pic_CXX='-fPIC'
14528         ;;
14529       esac
14530       ;;
14531     *qnx* | *nto*)
14532       # QNX uses GNU C++, but need to define -shared option too, otherwise
14533       # it will coredump.
14534       lt_prog_compiler_pic_CXX='-fPIC -shared'
14535       ;;
14536     *)
14537       lt_prog_compiler_pic_CXX='-fPIC'
14538       ;;
14539     esac
14540   else
14541     case $host_os in
14542       aix[4-9]*)
14543         # All AIX code is PIC.
14544         if test "$host_cpu" = ia64; then
14545           # AIX 5 now supports IA64 processor
14546           lt_prog_compiler_static_CXX='-Bstatic'
14547         else
14548           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14549         fi
14550         ;;
14551       chorus*)
14552         case $cc_basename in
14553         cxch68*)
14554           # Green Hills C++ Compiler
14555           # _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"
14556           ;;
14557         esac
14558         ;;
14559       dgux*)
14560         case $cc_basename in
14561           ec++*)
14562             lt_prog_compiler_pic_CXX='-KPIC'
14563             ;;
14564           ghcx*)
14565             # Green Hills C++ Compiler
14566             lt_prog_compiler_pic_CXX='-pic'
14567             ;;
14568           *)
14569             ;;
14570         esac
14571         ;;
14572       freebsd* | dragonfly*)
14573         # FreeBSD uses GNU C++
14574         ;;
14575       hpux9* | hpux10* | hpux11*)
14576         case $cc_basename in
14577           CC*)
14578             lt_prog_compiler_wl_CXX='-Wl,'
14579             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14580             if test "$host_cpu" != ia64; then
14581               lt_prog_compiler_pic_CXX='+Z'
14582             fi
14583             ;;
14584           aCC*)
14585             lt_prog_compiler_wl_CXX='-Wl,'
14586             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14587             case $host_cpu in
14588             hppa*64*|ia64*)
14589               # +Z the default
14590               ;;
14591             *)
14592               lt_prog_compiler_pic_CXX='+Z'
14593               ;;
14594             esac
14595             ;;
14596           *)
14597             ;;
14598         esac
14599         ;;
14600       interix*)
14601         # This is c89, which is MS Visual C++ (no shared libs)
14602         # Anyone wants to do a port?
14603         ;;
14604       irix5* | irix6* | nonstopux*)
14605         case $cc_basename in
14606           CC*)
14607             lt_prog_compiler_wl_CXX='-Wl,'
14608             lt_prog_compiler_static_CXX='-non_shared'
14609             # CC pic flag -KPIC is the default.
14610             ;;
14611           *)
14612             ;;
14613         esac
14614         ;;
14615       linux* | k*bsd*-gnu)
14616         case $cc_basename in
14617           KCC*)
14618             # KAI C++ Compiler
14619             lt_prog_compiler_wl_CXX='--backend -Wl,'
14620             lt_prog_compiler_pic_CXX='-fPIC'
14621             ;;
14622           ecpc* )
14623             # old Intel C++ for x86_64 which still supported -KPIC.
14624             lt_prog_compiler_wl_CXX='-Wl,'
14625             lt_prog_compiler_pic_CXX='-KPIC'
14626             lt_prog_compiler_static_CXX='-static'
14627             ;;
14628           icpc* )
14629             # Intel C++, used to be incompatible with GCC.
14630             # ICC 10 doesn't accept -KPIC any more.
14631             lt_prog_compiler_wl_CXX='-Wl,'
14632             lt_prog_compiler_pic_CXX='-fPIC'
14633             lt_prog_compiler_static_CXX='-static'
14634             ;;
14635           pgCC* | pgcpp*)
14636             # Portland Group C++ compiler
14637             lt_prog_compiler_wl_CXX='-Wl,'
14638             lt_prog_compiler_pic_CXX='-fpic'
14639             lt_prog_compiler_static_CXX='-Bstatic'
14640             ;;
14641           cxx*)
14642             # Compaq C++
14643             # Make sure the PIC flag is empty.  It appears that all Alpha
14644             # Linux and Compaq Tru64 Unix objects are PIC.
14645             lt_prog_compiler_pic_CXX=
14646             lt_prog_compiler_static_CXX='-non_shared'
14647             ;;
14648           xlc* | xlC*)
14649             # IBM XL 8.0 on PPC
14650             lt_prog_compiler_wl_CXX='-Wl,'
14651             lt_prog_compiler_pic_CXX='-qpic'
14652             lt_prog_compiler_static_CXX='-qstaticlink'
14653             ;;
14654           *)
14655             case `$CC -V 2>&1 | sed 5q` in
14656             *Sun\ C*)
14657               # Sun C++ 5.9
14658               lt_prog_compiler_pic_CXX='-KPIC'
14659               lt_prog_compiler_static_CXX='-Bstatic'
14660               lt_prog_compiler_wl_CXX='-Qoption ld '
14661               ;;
14662             esac
14663             ;;
14664         esac
14665         ;;
14666       lynxos*)
14667         ;;
14668       m88k*)
14669         ;;
14670       mvs*)
14671         case $cc_basename in
14672           cxx*)
14673             lt_prog_compiler_pic_CXX='-W c,exportall'
14674             ;;
14675           *)
14676             ;;
14677         esac
14678         ;;
14679       netbsd*)
14680         ;;
14681       *qnx* | *nto*)
14682         # QNX uses GNU C++, but need to define -shared option too, otherwise
14683         # it will coredump.
14684         lt_prog_compiler_pic_CXX='-fPIC -shared'
14685         ;;
14686       osf3* | osf4* | osf5*)
14687         case $cc_basename in
14688           KCC*)
14689             lt_prog_compiler_wl_CXX='--backend -Wl,'
14690             ;;
14691           RCC*)
14692             # Rational C++ 2.4.1
14693             lt_prog_compiler_pic_CXX='-pic'
14694             ;;
14695           cxx*)
14696             # Digital/Compaq C++
14697             lt_prog_compiler_wl_CXX='-Wl,'
14698             # Make sure the PIC flag is empty.  It appears that all Alpha
14699             # Linux and Compaq Tru64 Unix objects are PIC.
14700             lt_prog_compiler_pic_CXX=
14701             lt_prog_compiler_static_CXX='-non_shared'
14702             ;;
14703           *)
14704             ;;
14705         esac
14706         ;;
14707       psos*)
14708         ;;
14709       solaris*)
14710         case $cc_basename in
14711           CC*)
14712             # Sun C++ 4.2, 5.x and Centerline C++
14713             lt_prog_compiler_pic_CXX='-KPIC'
14714             lt_prog_compiler_static_CXX='-Bstatic'
14715             lt_prog_compiler_wl_CXX='-Qoption ld '
14716             ;;
14717           gcx*)
14718             # Green Hills C++ Compiler
14719             lt_prog_compiler_pic_CXX='-PIC'
14720             ;;
14721           *)
14722             ;;
14723         esac
14724         ;;
14725       sunos4*)
14726         case $cc_basename in
14727           CC*)
14728             # Sun C++ 4.x
14729             lt_prog_compiler_pic_CXX='-pic'
14730             lt_prog_compiler_static_CXX='-Bstatic'
14731             ;;
14732           lcc*)
14733             # Lucid
14734             lt_prog_compiler_pic_CXX='-pic'
14735             ;;
14736           *)
14737             ;;
14738         esac
14739         ;;
14740       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14741         case $cc_basename in
14742           CC*)
14743             lt_prog_compiler_wl_CXX='-Wl,'
14744             lt_prog_compiler_pic_CXX='-KPIC'
14745             lt_prog_compiler_static_CXX='-Bstatic'
14746             ;;
14747         esac
14748         ;;
14749       tandem*)
14750         case $cc_basename in
14751           NCC*)
14752             # NonStop-UX NCC 3.20
14753             lt_prog_compiler_pic_CXX='-KPIC'
14754             ;;
14755           *)
14756             ;;
14757         esac
14758         ;;
14759       vxworks*)
14760         ;;
14761       *)
14762         lt_prog_compiler_can_build_shared_CXX=no
14763         ;;
14764     esac
14765   fi
14766
14767 case $host_os in
14768   # For platforms which do not support PIC, -DPIC is meaningless:
14769   *djgpp*)
14770     lt_prog_compiler_pic_CXX=
14771     ;;
14772   *)
14773     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14774     ;;
14775 esac
14776 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14777 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14778
14779
14780
14781 #
14782 # Check to make sure the PIC flag actually works.
14783 #
14784 if test -n "$lt_prog_compiler_pic_CXX"; then
14785   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14786 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14787 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14788   echo $ECHO_N "(cached) $ECHO_C" >&6
14789 else
14790   lt_cv_prog_compiler_pic_works_CXX=no
14791    ac_outfile=conftest.$ac_objext
14792    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14793    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14794    # Insert the option either (1) after the last *FLAGS variable, or
14795    # (2) before a word containing "conftest.", or (3) at the end.
14796    # Note that $ac_compile itself does not contain backslashes and begins
14797    # with a dollar sign (not a hyphen), so the echo should work correctly.
14798    # The option is referenced via a variable to avoid confusing sed.
14799    lt_compile=`echo "$ac_compile" | $SED \
14800    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14801    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14802    -e 's:$: $lt_compiler_flag:'`
14803    (eval echo "\"\$as_me:14803: $lt_compile\"" >&5)
14804    (eval "$lt_compile" 2>conftest.err)
14805    ac_status=$?
14806    cat conftest.err >&5
14807    echo "$as_me:14807: \$? = $ac_status" >&5
14808    if (exit $ac_status) && test -s "$ac_outfile"; then
14809      # The compiler can only warn and ignore the option if not recognized
14810      # So say no if there are warnings other than the usual output.
14811      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14812      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14813      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14814        lt_cv_prog_compiler_pic_works_CXX=yes
14815      fi
14816    fi
14817    $RM conftest*
14818
14819 fi
14820 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14821 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14822
14823 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14824     case $lt_prog_compiler_pic_CXX in
14825      "" | " "*) ;;
14826      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14827      esac
14828 else
14829     lt_prog_compiler_pic_CXX=
14830      lt_prog_compiler_can_build_shared_CXX=no
14831 fi
14832
14833 fi
14834
14835
14836
14837 #
14838 # Check to make sure the static flag actually works.
14839 #
14840 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14841 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14842 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14843 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14844   echo $ECHO_N "(cached) $ECHO_C" >&6
14845 else
14846   lt_cv_prog_compiler_static_works_CXX=no
14847    save_LDFLAGS="$LDFLAGS"
14848    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14849    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14850    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14851      # The linker can only warn and ignore the option if not recognized
14852      # So say no if there are warnings
14853      if test -s conftest.err; then
14854        # Append any errors to the config.log.
14855        cat conftest.err 1>&5
14856        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14857        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14858        if diff conftest.exp conftest.er2 >/dev/null; then
14859          lt_cv_prog_compiler_static_works_CXX=yes
14860        fi
14861      else
14862        lt_cv_prog_compiler_static_works_CXX=yes
14863      fi
14864    fi
14865    $RM -r conftest*
14866    LDFLAGS="$save_LDFLAGS"
14867
14868 fi
14869 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14870 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14871
14872 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14873     :
14874 else
14875     lt_prog_compiler_static_CXX=
14876 fi
14877
14878
14879
14880
14881     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14882 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14883 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14884   echo $ECHO_N "(cached) $ECHO_C" >&6
14885 else
14886   lt_cv_prog_compiler_c_o_CXX=no
14887    $RM -r conftest 2>/dev/null
14888    mkdir conftest
14889    cd conftest
14890    mkdir out
14891    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14892
14893    lt_compiler_flag="-o out/conftest2.$ac_objext"
14894    # Insert the option either (1) after the last *FLAGS variable, or
14895    # (2) before a word containing "conftest.", or (3) at the end.
14896    # Note that $ac_compile itself does not contain backslashes and begins
14897    # with a dollar sign (not a hyphen), so the echo should work correctly.
14898    lt_compile=`echo "$ac_compile" | $SED \
14899    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14900    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14901    -e 's:$: $lt_compiler_flag:'`
14902    (eval echo "\"\$as_me:14902: $lt_compile\"" >&5)
14903    (eval "$lt_compile" 2>out/conftest.err)
14904    ac_status=$?
14905    cat out/conftest.err >&5
14906    echo "$as_me:14906: \$? = $ac_status" >&5
14907    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14908    then
14909      # The compiler can only warn and ignore the option if not recognized
14910      # So say no if there are warnings
14911      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14912      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14913      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14914        lt_cv_prog_compiler_c_o_CXX=yes
14915      fi
14916    fi
14917    chmod u+w . 2>&5
14918    $RM conftest*
14919    # SGI C++ compiler will create directory out/ii_files/ for
14920    # template instantiation
14921    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14922    $RM out/* && rmdir out
14923    cd ..
14924    $RM -r conftest
14925    $RM conftest*
14926
14927 fi
14928 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14929 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14930
14931
14932
14933     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14934 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14935 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14936   echo $ECHO_N "(cached) $ECHO_C" >&6
14937 else
14938   lt_cv_prog_compiler_c_o_CXX=no
14939    $RM -r conftest 2>/dev/null
14940    mkdir conftest
14941    cd conftest
14942    mkdir out
14943    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14944
14945    lt_compiler_flag="-o out/conftest2.$ac_objext"
14946    # Insert the option either (1) after the last *FLAGS variable, or
14947    # (2) before a word containing "conftest.", or (3) at the end.
14948    # Note that $ac_compile itself does not contain backslashes and begins
14949    # with a dollar sign (not a hyphen), so the echo should work correctly.
14950    lt_compile=`echo "$ac_compile" | $SED \
14951    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14952    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14953    -e 's:$: $lt_compiler_flag:'`
14954    (eval echo "\"\$as_me:14954: $lt_compile\"" >&5)
14955    (eval "$lt_compile" 2>out/conftest.err)
14956    ac_status=$?
14957    cat out/conftest.err >&5
14958    echo "$as_me:14958: \$? = $ac_status" >&5
14959    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14960    then
14961      # The compiler can only warn and ignore the option if not recognized
14962      # So say no if there are warnings
14963      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14964      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14965      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14966        lt_cv_prog_compiler_c_o_CXX=yes
14967      fi
14968    fi
14969    chmod u+w . 2>&5
14970    $RM conftest*
14971    # SGI C++ compiler will create directory out/ii_files/ for
14972    # template instantiation
14973    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14974    $RM out/* && rmdir out
14975    cd ..
14976    $RM -r conftest
14977    $RM conftest*
14978
14979 fi
14980 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14981 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14982
14983
14984
14985
14986 hard_links="nottested"
14987 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14988   # do not overwrite the value of need_locks provided by the user
14989   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14990 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14991   hard_links=yes
14992   $RM conftest*
14993   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14994   touch conftest.a
14995   ln conftest.a conftest.b 2>&5 || hard_links=no
14996   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14997   { echo "$as_me:$LINENO: result: $hard_links" >&5
14998 echo "${ECHO_T}$hard_links" >&6; }
14999   if test "$hard_links" = no; then
15000     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15001 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15002     need_locks=warn
15003   fi
15004 else
15005   need_locks=no
15006 fi
15007
15008
15009
15010     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15011 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15012
15013   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15014   case $host_os in
15015   aix[4-9]*)
15016     # If we're using GNU nm, then we don't want the "-C" option.
15017     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15018     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15019       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'
15020     else
15021       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'
15022     fi
15023     ;;
15024   pw32*)
15025     export_symbols_cmds_CXX="$ltdll_cmds"
15026   ;;
15027   cygwin* | mingw* | cegcc*)
15028     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'
15029   ;;
15030   *)
15031     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15032   ;;
15033   esac
15034   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15035
15036 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15037 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15038 test "$ld_shlibs_CXX" = no && can_build_shared=no
15039
15040 with_gnu_ld_CXX=$with_gnu_ld
15041
15042
15043
15044
15045
15046
15047 #
15048 # Do we need to explicitly link libc?
15049 #
15050 case "x$archive_cmds_need_lc_CXX" in
15051 x|xyes)
15052   # Assume -lc should be added
15053   archive_cmds_need_lc_CXX=yes
15054
15055   if test "$enable_shared" = yes && test "$GCC" = yes; then
15056     case $archive_cmds_CXX in
15057     *'~'*)
15058       # FIXME: we may have to deal with multi-command sequences.
15059       ;;
15060     '$CC '*)
15061       # Test whether the compiler implicitly links with -lc since on some
15062       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15063       # to ld, don't add -lc before -lgcc.
15064       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15065 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15066       $RM conftest*
15067       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15068
15069       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15070   (eval $ac_compile) 2>&5
15071   ac_status=$?
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); } 2>conftest.err; then
15074         soname=conftest
15075         lib=conftest
15076         libobjs=conftest.$ac_objext
15077         deplibs=
15078         wl=$lt_prog_compiler_wl_CXX
15079         pic_flag=$lt_prog_compiler_pic_CXX
15080         compiler_flags=-v
15081         linker_flags=-v
15082         verstring=
15083         output_objdir=.
15084         libname=conftest
15085         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15086         allow_undefined_flag_CXX=
15087         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15088   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); }
15092         then
15093           archive_cmds_need_lc_CXX=no
15094         else
15095           archive_cmds_need_lc_CXX=yes
15096         fi
15097         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15098       else
15099         cat conftest.err 1>&5
15100       fi
15101       $RM conftest*
15102       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15103 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15104       ;;
15105     esac
15106   fi
15107   ;;
15108 esac
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15174 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15175
15176 library_names_spec=
15177 libname_spec='lib$name'
15178 soname_spec=
15179 shrext_cmds=".so"
15180 postinstall_cmds=
15181 postuninstall_cmds=
15182 finish_cmds=
15183 finish_eval=
15184 shlibpath_var=
15185 shlibpath_overrides_runpath=unknown
15186 version_type=none
15187 dynamic_linker="$host_os ld.so"
15188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15189 need_lib_prefix=unknown
15190 hardcode_into_libs=no
15191
15192 # when you set need_version to no, make sure it does not cause -set_version
15193 # flags to be left without arguments
15194 need_version=unknown
15195
15196 case $host_os in
15197 aix3*)
15198   version_type=linux
15199   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15200   shlibpath_var=LIBPATH
15201
15202   # AIX 3 has no versioning support, so we append a major version to the name.
15203   soname_spec='${libname}${release}${shared_ext}$major'
15204   ;;
15205
15206 aix[4-9]*)
15207   version_type=linux
15208   need_lib_prefix=no
15209   need_version=no
15210   hardcode_into_libs=yes
15211   if test "$host_cpu" = ia64; then
15212     # AIX 5 supports IA64
15213     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15214     shlibpath_var=LD_LIBRARY_PATH
15215   else
15216     # With GCC up to 2.95.x, collect2 would create an import file
15217     # for dependence libraries.  The import file would start with
15218     # the line `#! .'.  This would cause the generated library to
15219     # depend on `.', always an invalid library.  This was fixed in
15220     # development snapshots of GCC prior to 3.0.
15221     case $host_os in
15222       aix4 | aix4.[01] | aix4.[01].*)
15223       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15224            echo ' yes '
15225            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15226         :
15227       else
15228         can_build_shared=no
15229       fi
15230       ;;
15231     esac
15232     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15233     # soname into executable. Probably we can add versioning support to
15234     # collect2, so additional links can be useful in future.
15235     if test "$aix_use_runtimelinking" = yes; then
15236       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15237       # instead of lib<name>.a to let people know that these are not
15238       # typical AIX shared libraries.
15239       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15240     else
15241       # We preserve .a as extension for shared libraries through AIX4.2
15242       # and later when we are not doing run time linking.
15243       library_names_spec='${libname}${release}.a $libname.a'
15244       soname_spec='${libname}${release}${shared_ext}$major'
15245     fi
15246     shlibpath_var=LIBPATH
15247   fi
15248   ;;
15249
15250 amigaos*)
15251   case $host_cpu in
15252   powerpc)
15253     # Since July 2007 AmigaOS4 officially supports .so libraries.
15254     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15256     ;;
15257   m68k)
15258     library_names_spec='$libname.ixlibrary $libname.a'
15259     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15260     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'
15261     ;;
15262   esac
15263   ;;
15264
15265 beos*)
15266   library_names_spec='${libname}${shared_ext}'
15267   dynamic_linker="$host_os ld.so"
15268   shlibpath_var=LIBRARY_PATH
15269   ;;
15270
15271 bsdi[45]*)
15272   version_type=linux
15273   need_version=no
15274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15275   soname_spec='${libname}${release}${shared_ext}$major'
15276   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15277   shlibpath_var=LD_LIBRARY_PATH
15278   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15279   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15280   # the default ld.so.conf also contains /usr/contrib/lib and
15281   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15282   # libtool to hard-code these into programs
15283   ;;
15284
15285 cygwin* | mingw* | pw32* | cegcc*)
15286   version_type=windows
15287   shrext_cmds=".dll"
15288   need_version=no
15289   need_lib_prefix=no
15290
15291   case $GCC,$host_os in
15292   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15293     library_names_spec='$libname.dll.a'
15294     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15295     postinstall_cmds='base_file=`basename \${file}`~
15296       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15297       dldir=$destdir/`dirname \$dlpath`~
15298       test -d \$dldir || mkdir -p \$dldir~
15299       $install_prog $dir/$dlname \$dldir/$dlname~
15300       chmod a+x \$dldir/$dlname~
15301       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15302         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15303       fi'
15304     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15305       dlpath=$dir/\$dldll~
15306        $RM \$dlpath'
15307     shlibpath_overrides_runpath=yes
15308
15309     case $host_os in
15310     cygwin*)
15311       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15312       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15313       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15314       ;;
15315     mingw* | cegcc*)
15316       # MinGW DLLs use traditional 'lib' prefix
15317       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15318       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15319       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15320         # It is most probably a Windows format PATH printed by
15321         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15322         # path with ; separators, and with drive letters. We can handle the
15323         # drive letters (cygwin fileutils understands them), so leave them,
15324         # especially as we might pass files found there to a mingw objdump,
15325         # which wouldn't understand a cygwinified path. Ahh.
15326         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15327       else
15328         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15329       fi
15330       ;;
15331     pw32*)
15332       # pw32 DLLs use 'pw' prefix rather than 'lib'
15333       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15334       ;;
15335     esac
15336     ;;
15337
15338   *)
15339     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15340     ;;
15341   esac
15342   dynamic_linker='Win32 ld.exe'
15343   # FIXME: first we should search . and the directory the executable is in
15344   shlibpath_var=PATH
15345   ;;
15346
15347 darwin* | rhapsody*)
15348   dynamic_linker="$host_os dyld"
15349   version_type=darwin
15350   need_lib_prefix=no
15351   need_version=no
15352   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15353   soname_spec='${libname}${release}${major}$shared_ext'
15354   shlibpath_overrides_runpath=yes
15355   shlibpath_var=DYLD_LIBRARY_PATH
15356   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15357
15358   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15359   ;;
15360
15361 dgux*)
15362   version_type=linux
15363   need_lib_prefix=no
15364   need_version=no
15365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15366   soname_spec='${libname}${release}${shared_ext}$major'
15367   shlibpath_var=LD_LIBRARY_PATH
15368   ;;
15369
15370 freebsd1*)
15371   dynamic_linker=no
15372   ;;
15373
15374 freebsd* | dragonfly*)
15375   # DragonFly does not have aout.  When/if they implement a new
15376   # versioning mechanism, adjust this.
15377   if test -x /usr/bin/objformat; then
15378     objformat=`/usr/bin/objformat`
15379   else
15380     case $host_os in
15381     freebsd[123]*) objformat=aout ;;
15382     *) objformat=elf ;;
15383     esac
15384   fi
15385   version_type=freebsd-$objformat
15386   case $version_type in
15387     freebsd-elf*)
15388       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15389       need_version=no
15390       need_lib_prefix=no
15391       ;;
15392     freebsd-*)
15393       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15394       need_version=yes
15395       ;;
15396   esac
15397   shlibpath_var=LD_LIBRARY_PATH
15398   case $host_os in
15399   freebsd2*)
15400     shlibpath_overrides_runpath=yes
15401     ;;
15402   freebsd3.[01]* | freebsdelf3.[01]*)
15403     shlibpath_overrides_runpath=yes
15404     hardcode_into_libs=yes
15405     ;;
15406   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15407   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15408     shlibpath_overrides_runpath=no
15409     hardcode_into_libs=yes
15410     ;;
15411   *) # from 4.6 on, and DragonFly
15412     shlibpath_overrides_runpath=yes
15413     hardcode_into_libs=yes
15414     ;;
15415   esac
15416   ;;
15417
15418 gnu*)
15419   version_type=linux
15420   need_lib_prefix=no
15421   need_version=no
15422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15423   soname_spec='${libname}${release}${shared_ext}$major'
15424   shlibpath_var=LD_LIBRARY_PATH
15425   hardcode_into_libs=yes
15426   ;;
15427
15428 hpux9* | hpux10* | hpux11*)
15429   # Give a soname corresponding to the major version so that dld.sl refuses to
15430   # link against other versions.
15431   version_type=sunos
15432   need_lib_prefix=no
15433   need_version=no
15434   case $host_cpu in
15435   ia64*)
15436     shrext_cmds='.so'
15437     hardcode_into_libs=yes
15438     dynamic_linker="$host_os dld.so"
15439     shlibpath_var=LD_LIBRARY_PATH
15440     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442     soname_spec='${libname}${release}${shared_ext}$major'
15443     if test "X$HPUX_IA64_MODE" = X32; then
15444       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15445     else
15446       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15447     fi
15448     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15449     ;;
15450   hppa*64*)
15451     shrext_cmds='.sl'
15452     hardcode_into_libs=yes
15453     dynamic_linker="$host_os dld.sl"
15454     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15455     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15456     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15457     soname_spec='${libname}${release}${shared_ext}$major'
15458     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15459     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15460     ;;
15461   *)
15462     shrext_cmds='.sl'
15463     dynamic_linker="$host_os dld.sl"
15464     shlibpath_var=SHLIB_PATH
15465     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15466     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467     soname_spec='${libname}${release}${shared_ext}$major'
15468     ;;
15469   esac
15470   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15471   postinstall_cmds='chmod 555 $lib'
15472   ;;
15473
15474 interix[3-9]*)
15475   version_type=linux
15476   need_lib_prefix=no
15477   need_version=no
15478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15479   soname_spec='${libname}${release}${shared_ext}$major'
15480   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15481   shlibpath_var=LD_LIBRARY_PATH
15482   shlibpath_overrides_runpath=no
15483   hardcode_into_libs=yes
15484   ;;
15485
15486 irix5* | irix6* | nonstopux*)
15487   case $host_os in
15488     nonstopux*) version_type=nonstopux ;;
15489     *)
15490         if test "$lt_cv_prog_gnu_ld" = yes; then
15491                 version_type=linux
15492         else
15493                 version_type=irix
15494         fi ;;
15495   esac
15496   need_lib_prefix=no
15497   need_version=no
15498   soname_spec='${libname}${release}${shared_ext}$major'
15499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15500   case $host_os in
15501   irix5* | nonstopux*)
15502     libsuff= shlibsuff=
15503     ;;
15504   *)
15505     case $LD in # libtool.m4 will add one of these switches to LD
15506     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15507       libsuff= shlibsuff= libmagic=32-bit;;
15508     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15509       libsuff=32 shlibsuff=N32 libmagic=N32;;
15510     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15511       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15512     *) libsuff= shlibsuff= libmagic=never-match;;
15513     esac
15514     ;;
15515   esac
15516   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15517   shlibpath_overrides_runpath=no
15518   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15519   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15520   hardcode_into_libs=yes
15521   ;;
15522
15523 # No shared lib support for Linux oldld, aout, or coff.
15524 linux*oldld* | linux*aout* | linux*coff*)
15525   dynamic_linker=no
15526   ;;
15527
15528 # This must be Linux ELF.
15529 linux* | k*bsd*-gnu)
15530   version_type=linux
15531   need_lib_prefix=no
15532   need_version=no
15533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15534   soname_spec='${libname}${release}${shared_ext}$major'
15535   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15536   shlibpath_var=LD_LIBRARY_PATH
15537   shlibpath_overrides_runpath=no
15538   # Some binutils ld are patched to set DT_RUNPATH
15539   save_LDFLAGS=$LDFLAGS
15540   save_libdir=$libdir
15541   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15542        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15543   cat >conftest.$ac_ext <<_ACEOF
15544 /* confdefs.h.  */
15545 _ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h.  */
15549
15550 int
15551 main ()
15552 {
15553
15554   ;
15555   return 0;
15556 }
15557 _ACEOF
15558 rm -f conftest.$ac_objext conftest$ac_exeext
15559 if { (ac_try="$ac_link"
15560 case "(($ac_try" in
15561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562   *) ac_try_echo=$ac_try;;
15563 esac
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565   (eval "$ac_link") 2>conftest.er1
15566   ac_status=$?
15567   grep -v '^ *+' conftest.er1 >conftest.err
15568   rm -f conftest.er1
15569   cat conftest.err >&5
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); } && {
15572          test -z "$ac_cxx_werror_flag" ||
15573          test ! -s conftest.err
15574        } && test -s conftest$ac_exeext &&
15575        $as_test_x conftest$ac_exeext; then
15576   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15577   shlibpath_overrides_runpath=yes
15578 fi
15579
15580 else
15581   echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15583
15584
15585 fi
15586
15587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15588       conftest$ac_exeext conftest.$ac_ext
15589   LDFLAGS=$save_LDFLAGS
15590   libdir=$save_libdir
15591
15592   # This implies no fast_install, which is unacceptable.
15593   # Some rework will be needed to allow for fast_install
15594   # before this can be enabled.
15595   hardcode_into_libs=yes
15596
15597   # Append ld.so.conf contents to the search path
15598   if test -f /etc/ld.so.conf; then
15599     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' ' '`
15600     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15601   fi
15602
15603   # We used to test for /lib/ld.so.1 and disable shared libraries on
15604   # powerpc, because MkLinux only supported shared libraries with the
15605   # GNU dynamic linker.  Since this was broken with cross compilers,
15606   # most powerpc-linux boxes support dynamic linking these days and
15607   # people can always --disable-shared, the test was removed, and we
15608   # assume the GNU/Linux dynamic linker is in use.
15609   dynamic_linker='GNU/Linux ld.so'
15610   ;;
15611
15612 netbsd*)
15613   version_type=sunos
15614   need_lib_prefix=no
15615   need_version=no
15616   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15618     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15619     dynamic_linker='NetBSD (a.out) ld.so'
15620   else
15621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15622     soname_spec='${libname}${release}${shared_ext}$major'
15623     dynamic_linker='NetBSD ld.elf_so'
15624   fi
15625   shlibpath_var=LD_LIBRARY_PATH
15626   shlibpath_overrides_runpath=yes
15627   hardcode_into_libs=yes
15628   ;;
15629
15630 newsos6)
15631   version_type=linux
15632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633   shlibpath_var=LD_LIBRARY_PATH
15634   shlibpath_overrides_runpath=yes
15635   ;;
15636
15637 *nto* | *qnx*)
15638   version_type=qnx
15639   need_lib_prefix=no
15640   need_version=no
15641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642   soname_spec='${libname}${release}${shared_ext}$major'
15643   shlibpath_var=LD_LIBRARY_PATH
15644   shlibpath_overrides_runpath=no
15645   hardcode_into_libs=yes
15646   dynamic_linker='ldqnx.so'
15647   ;;
15648
15649 openbsd*)
15650   version_type=sunos
15651   sys_lib_dlsearch_path_spec="/usr/lib"
15652   need_lib_prefix=no
15653   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15654   case $host_os in
15655     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15656     *)                          need_version=no  ;;
15657   esac
15658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15659   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15660   shlibpath_var=LD_LIBRARY_PATH
15661   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15662     case $host_os in
15663       openbsd2.[89] | openbsd2.[89].*)
15664         shlibpath_overrides_runpath=no
15665         ;;
15666       *)
15667         shlibpath_overrides_runpath=yes
15668         ;;
15669       esac
15670   else
15671     shlibpath_overrides_runpath=yes
15672   fi
15673   ;;
15674
15675 os2*)
15676   libname_spec='$name'
15677   shrext_cmds=".dll"
15678   need_lib_prefix=no
15679   library_names_spec='$libname${shared_ext} $libname.a'
15680   dynamic_linker='OS/2 ld.exe'
15681   shlibpath_var=LIBPATH
15682   ;;
15683
15684 osf3* | osf4* | osf5*)
15685   version_type=osf
15686   need_lib_prefix=no
15687   need_version=no
15688   soname_spec='${libname}${release}${shared_ext}$major'
15689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15690   shlibpath_var=LD_LIBRARY_PATH
15691   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15692   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15693   ;;
15694
15695 rdos*)
15696   dynamic_linker=no
15697   ;;
15698
15699 solaris*)
15700   version_type=linux
15701   need_lib_prefix=no
15702   need_version=no
15703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704   soname_spec='${libname}${release}${shared_ext}$major'
15705   shlibpath_var=LD_LIBRARY_PATH
15706   shlibpath_overrides_runpath=yes
15707   hardcode_into_libs=yes
15708   # ldd complains unless libraries are executable
15709   postinstall_cmds='chmod +x $lib'
15710   ;;
15711
15712 sunos4*)
15713   version_type=sunos
15714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15715   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15716   shlibpath_var=LD_LIBRARY_PATH
15717   shlibpath_overrides_runpath=yes
15718   if test "$with_gnu_ld" = yes; then
15719     need_lib_prefix=no
15720   fi
15721   need_version=yes
15722   ;;
15723
15724 sysv4 | sysv4.3*)
15725   version_type=linux
15726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727   soname_spec='${libname}${release}${shared_ext}$major'
15728   shlibpath_var=LD_LIBRARY_PATH
15729   case $host_vendor in
15730     sni)
15731       shlibpath_overrides_runpath=no
15732       need_lib_prefix=no
15733       runpath_var=LD_RUN_PATH
15734       ;;
15735     siemens)
15736       need_lib_prefix=no
15737       ;;
15738     motorola)
15739       need_lib_prefix=no
15740       need_version=no
15741       shlibpath_overrides_runpath=no
15742       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15743       ;;
15744   esac
15745   ;;
15746
15747 sysv4*MP*)
15748   if test -d /usr/nec ;then
15749     version_type=linux
15750     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15751     soname_spec='$libname${shared_ext}.$major'
15752     shlibpath_var=LD_LIBRARY_PATH
15753   fi
15754   ;;
15755
15756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15757   version_type=freebsd-elf
15758   need_lib_prefix=no
15759   need_version=no
15760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15761   soname_spec='${libname}${release}${shared_ext}$major'
15762   shlibpath_var=LD_LIBRARY_PATH
15763   shlibpath_overrides_runpath=yes
15764   hardcode_into_libs=yes
15765   if test "$with_gnu_ld" = yes; then
15766     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15767   else
15768     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15769     case $host_os in
15770       sco3.2v5*)
15771         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15772         ;;
15773     esac
15774   fi
15775   sys_lib_dlsearch_path_spec='/usr/lib'
15776   ;;
15777
15778 tpf*)
15779   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15780   version_type=linux
15781   need_lib_prefix=no
15782   need_version=no
15783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15784   shlibpath_var=LD_LIBRARY_PATH
15785   shlibpath_overrides_runpath=no
15786   hardcode_into_libs=yes
15787   ;;
15788
15789 uts4*)
15790   version_type=linux
15791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792   soname_spec='${libname}${release}${shared_ext}$major'
15793   shlibpath_var=LD_LIBRARY_PATH
15794   ;;
15795
15796 *)
15797   dynamic_linker=no
15798   ;;
15799 esac
15800 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15801 echo "${ECHO_T}$dynamic_linker" >&6; }
15802 test "$dynamic_linker" = no && can_build_shared=no
15803
15804 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15805 if test "$GCC" = yes; then
15806   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15807 fi
15808
15809 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15810   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15811 fi
15812 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15813   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15814 fi
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15852 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15853 hardcode_action_CXX=
15854 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15855    test -n "$runpath_var_CXX" ||
15856    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15857
15858   # We can hardcode non-existent directories.
15859   if test "$hardcode_direct_CXX" != no &&
15860      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15861      # have to relink, otherwise we might link with an installed library
15862      # when we should be linking with a yet-to-be-installed one
15863      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15864      test "$hardcode_minus_L_CXX" != no; then
15865     # Linking always hardcodes the temporary library directory.
15866     hardcode_action_CXX=relink
15867   else
15868     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15869     hardcode_action_CXX=immediate
15870   fi
15871 else
15872   # We cannot hardcode anything, or else we can only hardcode existing
15873   # directories.
15874   hardcode_action_CXX=unsupported
15875 fi
15876 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15877 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15878
15879 if test "$hardcode_action_CXX" = relink ||
15880    test "$inherit_rpath_CXX" = yes; then
15881   # Fast installation is not supported
15882   enable_fast_install=no
15883 elif test "$shlibpath_overrides_runpath" = yes ||
15884      test "$enable_shared" = no; then
15885   # Fast installation is not necessary
15886   enable_fast_install=needless
15887 fi
15888
15889
15890
15891
15892
15893
15894
15895   fi # test -n "$compiler"
15896
15897   CC=$lt_save_CC
15898   LDCXX=$LD
15899   LD=$lt_save_LD
15900   GCC=$lt_save_GCC
15901   with_gnu_ld=$lt_save_with_gnu_ld
15902   lt_cv_path_LDCXX=$lt_cv_path_LD
15903   lt_cv_path_LD=$lt_save_path_LD
15904   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15905   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15906 fi # test "$_lt_caught_CXX_error" != yes
15907
15908 ac_ext=c
15909 ac_cpp='$CPP $CPPFLAGS'
15910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926         ac_config_commands="$ac_config_commands libtool"
15927
15928
15929
15930
15931 # Only expand once:
15932
15933
15934
15935
15936 if test x$use_libtool != xno; then
15937    DEFAULT_OBJECT_TYPE=".lo"
15938    DEFAULT_ARCHIVE_TYPE=".la"
15939    DEFAULT_SHARED_OBJECT_TYPE=".la"
15940    LIBTOOL="\$(LIBTOOL)"
15941    LIBTOOL_INSTALL_TARGET="libtool-install"
15942    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15943    LIBTOOL_CLEAN_TARGET="libtool-clean"
15944    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15945 else
15946    DEFAULT_OBJECT_TYPE=".o"
15947    DEFAULT_ARCHIVE_TYPE=".a"
15948    DEFAULT_SHARED_OBJECT_TYPE=".so"
15949    LIBTOOL="# \$(LIBTOOL)"
15950    LIBTOOL_INSTALL_TARGET=""
15951    LIBTOOL_UNINSTALL_TARGET=""
15952    LIBTOOL_CLEAN_TARGET=""
15953    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15954 fi
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965 # Check whether --enable-includes was given.
15966 if test "${enable_includes+set}" = set; then
15967   enableval=$enable_includes;
15968        if test x$enableval = xyes; then
15969           install_includes=yes
15970        fi
15971
15972
15973 fi
15974
15975
15976
15977 if test x$use_libtool != xno -a x$install_includes = xyes; then
15978    INCLUDE_INSTALL_TARGET="install-includes"
15979    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15980 else
15981    INCLUDE_INSTALL_TARGET=""
15982    INCLUDE_UNINSTALL_TARGET=""
15983 fi
15984
15985
15986
15987
15988 { echo "$as_me:$LINENO: checking host system type" >&5
15989 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15990 if test "${ac_cv_host+set}" = set; then
15991   echo $ECHO_N "(cached) $ECHO_C" >&6
15992 else
15993   if test "x$host_alias" = x; then
15994   ac_cv_host=$ac_cv_build
15995 else
15996   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15997     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15998 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15999    { (exit 1); exit 1; }; }
16000 fi
16001
16002 fi
16003 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16004 echo "${ECHO_T}$ac_cv_host" >&6; }
16005 case $ac_cv_host in
16006 *-*-*) ;;
16007 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16008 echo "$as_me: error: invalid value of canonical host" >&2;}
16009    { (exit 1); exit 1; }; };;
16010 esac
16011 host=$ac_cv_host
16012 ac_save_IFS=$IFS; IFS='-'
16013 set x $ac_cv_host
16014 shift
16015 host_cpu=$1
16016 host_vendor=$2
16017 shift; shift
16018 # Remember, the first character of IFS is used to create $*,
16019 # except with old shells:
16020 host_os=$*
16021 IFS=$ac_save_IFS
16022 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16023
16024
16025 case $host_os in
16026   *cygwin* ) CYGWIN=yes;;
16027          * ) CYGWIN=no;;
16028 esac
16029
16030 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16031 then
16032
16033
16034 if $TRUEPRG; then
16035   HAVE_SUN_OS_TRUE=
16036   HAVE_SUN_OS_FALSE='#'
16037 else
16038   HAVE_SUN_OS_TRUE='#'
16039   HAVE_SUN_OS_FALSE=
16040 fi
16041         cat >>confdefs.h <<\_ACEOF
16042 #define HAVE_SUN_OS 1
16043 _ACEOF
16044
16045 else
16046
16047
16048 if $FALSEPRG; then
16049   HAVE_SUN_OS_TRUE=
16050   HAVE_SUN_OS_FALSE='#'
16051 else
16052   HAVE_SUN_OS_TRUE='#'
16053   HAVE_SUN_OS_FALSE=
16054 fi
16055 fi
16056
16057 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16058 then
16059
16060
16061 if $TRUEPRG; then
16062   HAVE_OSF1_OS_TRUE=
16063   HAVE_OSF1_OS_FALSE='#'
16064 else
16065   HAVE_OSF1_OS_TRUE='#'
16066   HAVE_OSF1_OS_FALSE=
16067 fi
16068         cat >>confdefs.h <<\_ACEOF
16069 #define HAVE_OSF1_OS 1
16070 _ACEOF
16071
16072 else
16073
16074
16075 if $FALSEPRG; then
16076   HAVE_OSF1_OS_TRUE=
16077   HAVE_OSF1_OS_FALSE='#'
16078 else
16079   HAVE_OSF1_OS_TRUE='#'
16080   HAVE_OSF1_OS_FALSE=
16081 fi
16082 fi
16083
16084 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16085 then
16086
16087
16088 if $TRUEPRG; then
16089   HAVE_AIX_OS_TRUE=
16090   HAVE_AIX_OS_FALSE='#'
16091 else
16092   HAVE_AIX_OS_TRUE='#'
16093   HAVE_AIX_OS_FALSE=
16094 fi
16095         cat >>confdefs.h <<\_ACEOF
16096 #define HAVE_AIX_OS 1
16097 _ACEOF
16098
16099 else
16100
16101
16102 if $FALSEPRG; then
16103   HAVE_AIX_OS_TRUE=
16104   HAVE_AIX_OS_FALSE='#'
16105 else
16106   HAVE_AIX_OS_TRUE='#'
16107   HAVE_AIX_OS_FALSE=
16108 fi
16109 fi
16110
16111 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16112 then
16113
16114
16115 if $TRUEPRG; then
16116   HAVE_HPUX_OS_TRUE=
16117   HAVE_HPUX_OS_FALSE='#'
16118 else
16119   HAVE_HPUX_OS_TRUE='#'
16120   HAVE_HPUX_OS_FALSE=
16121 fi
16122         cat >>confdefs.h <<\_ACEOF
16123 #define HAVE_HPUX_OS 1
16124 _ACEOF
16125
16126 else
16127
16128
16129 if $FALSEPRG; then
16130   HAVE_HPUX_OS_TRUE=
16131   HAVE_HPUX_OS_FALSE='#'
16132 else
16133   HAVE_HPUX_OS_TRUE='#'
16134   HAVE_HPUX_OS_FALSE=
16135 fi
16136 fi
16137
16138 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16139 then
16140
16141
16142 if $TRUEPRG; then
16143   HAVE_LINUX_OS_TRUE=
16144   HAVE_LINUX_OS_FALSE='#'
16145 else
16146   HAVE_LINUX_OS_TRUE='#'
16147   HAVE_LINUX_OS_FALSE=
16148 fi
16149         cat >>confdefs.h <<\_ACEOF
16150 #define HAVE_LINUX_OS 1
16151 _ACEOF
16152
16153 else
16154
16155
16156 if $FALSEPRG; then
16157   HAVE_LINUX_OS_TRUE=
16158   HAVE_LINUX_OS_FALSE='#'
16159 else
16160   HAVE_LINUX_OS_TRUE='#'
16161   HAVE_LINUX_OS_FALSE=
16162 fi
16163 fi
16164
16165 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16166 then
16167
16168
16169 if $TRUEPRG; then
16170   HAVE_FREEBSD_OS_TRUE=
16171   HAVE_FREEBSD_OS_FALSE='#'
16172 else
16173   HAVE_FREEBSD_OS_TRUE='#'
16174   HAVE_FREEBSD_OS_FALSE=
16175 fi
16176         cat >>confdefs.h <<\_ACEOF
16177 #define HAVE_FREEBSD_OS 1
16178 _ACEOF
16179
16180 else
16181
16182
16183 if $FALSEPRG; then
16184   HAVE_FREEBSD_OS_TRUE=
16185   HAVE_FREEBSD_OS_FALSE='#'
16186 else
16187   HAVE_FREEBSD_OS_TRUE='#'
16188   HAVE_FREEBSD_OS_FALSE=
16189 fi
16190 fi
16191
16192 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16193 then
16194
16195
16196 if $TRUEPRG; then
16197   HAVE_NETBSD_OS_TRUE=
16198   HAVE_NETBSD_OS_FALSE='#'
16199 else
16200   HAVE_NETBSD_OS_TRUE='#'
16201   HAVE_NETBSD_OS_FALSE=
16202 fi
16203         cat >>confdefs.h <<\_ACEOF
16204 #define HAVE_NETBSD_OS 1
16205 _ACEOF
16206
16207 else
16208
16209
16210 if $FALSEPRG; then
16211   HAVE_NETBSD_OS_TRUE=
16212   HAVE_NETBSD_OS_FALSE='#'
16213 else
16214   HAVE_NETBSD_OS_TRUE='#'
16215   HAVE_NETBSD_OS_FALSE=
16216 fi
16217 fi
16218
16219 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16220 then
16221
16222
16223 if $TRUEPRG; then
16224   HAVE_OPENBSD_OS_TRUE=
16225   HAVE_OPENBSD_OS_FALSE='#'
16226 else
16227   HAVE_OPENBSD_OS_TRUE='#'
16228   HAVE_OPENBSD_OS_FALSE=
16229 fi
16230         cat >>confdefs.h <<\_ACEOF
16231 #define HAVE_OPENBSD_OS 1
16232 _ACEOF
16233
16234 else
16235
16236
16237 if $FALSEPRG; then
16238   HAVE_OPENBSD_OS_TRUE=
16239   HAVE_OPENBSD_OS_FALSE='#'
16240 else
16241   HAVE_OPENBSD_OS_TRUE='#'
16242   HAVE_OPENBSD_OS_FALSE=
16243 fi
16244 fi
16245
16246 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16247 then
16248
16249
16250 if $TRUEPRG; then
16251   HAVE_BSDI_OS_TRUE=
16252   HAVE_BSDI_OS_FALSE='#'
16253 else
16254   HAVE_BSDI_OS_TRUE='#'
16255   HAVE_BSDI_OS_FALSE=
16256 fi
16257         cat >>confdefs.h <<\_ACEOF
16258 #define HAVE_BSDI_OS 1
16259 _ACEOF
16260
16261 else
16262
16263
16264 if $FALSEPRG; then
16265   HAVE_BSDI_OS_TRUE=
16266   HAVE_BSDI_OS_FALSE='#'
16267 else
16268   HAVE_BSDI_OS_TRUE='#'
16269   HAVE_BSDI_OS_FALSE=
16270 fi
16271 fi
16272
16273 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16274 then
16275
16276
16277 if $TRUEPRG; then
16278   HAVE_SGI_OS_TRUE=
16279   HAVE_SGI_OS_FALSE='#'
16280 else
16281   HAVE_SGI_OS_TRUE='#'
16282   HAVE_SGI_OS_FALSE=
16283 fi
16284         cat >>confdefs.h <<\_ACEOF
16285 #define HAVE_SGI_OS 1
16286 _ACEOF
16287
16288 else
16289
16290
16291 if $FALSEPRG; then
16292   HAVE_SGI_OS_TRUE=
16293   HAVE_SGI_OS_FALSE='#'
16294 else
16295   HAVE_SGI_OS_TRUE='#'
16296   HAVE_SGI_OS_FALSE=
16297 fi
16298 fi
16299
16300 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16301 then
16302
16303
16304 if $TRUEPRG; then
16305   HAVE_IRIX_OS_TRUE=
16306   HAVE_IRIX_OS_FALSE='#'
16307 else
16308   HAVE_IRIX_OS_TRUE='#'
16309   HAVE_IRIX_OS_FALSE=
16310 fi
16311         cat >>confdefs.h <<\_ACEOF
16312 #define HAVE_IRIX_OS 1
16313 _ACEOF
16314
16315 else
16316
16317
16318 if $FALSEPRG; then
16319   HAVE_IRIX_OS_TRUE=
16320   HAVE_IRIX_OS_FALSE='#'
16321 else
16322   HAVE_IRIX_OS_TRUE='#'
16323   HAVE_IRIX_OS_FALSE=
16324 fi
16325 fi
16326
16327 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16328 then
16329
16330
16331 if $TRUEPRG; then
16332   HAVE_DARWIN_OS_TRUE=
16333   HAVE_DARWIN_OS_FALSE='#'
16334 else
16335   HAVE_DARWIN_OS_TRUE='#'
16336   HAVE_DARWIN_OS_FALSE=
16337 fi
16338     cat >>confdefs.h <<\_ACEOF
16339 #define HAVE_DARWIN_OS 1
16340 _ACEOF
16341
16342 else
16343
16344
16345 if $FALSEPRG; then
16346   HAVE_DARWIN_OS_TRUE=
16347   HAVE_DARWIN_OS_FALSE='#'
16348 else
16349   HAVE_DARWIN_OS_TRUE='#'
16350   HAVE_DARWIN_OS_FALSE=
16351 fi
16352 fi
16353
16354
16355 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16356 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16357 if test "x$DISTNAME" != "x"
16358 then
16359         echo "distname set to $DISTNAME"
16360 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16361 then
16362         DISTNAME=alpha
16363 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16364 then
16365         DISTNAME=aix
16366 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16367 then
16368         DISTNAME=hpux
16369 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16370 then
16371         DISTNAME=solaris
16372 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16373 then
16374         DISTNAME=freebsd
16375 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16376 then
16377         DISTNAME=netbsd
16378 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16379 then
16380         DISTNAME=openbsd
16381 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16382 then
16383         DISTNAME=irix
16384 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16385 then
16386         DISTNAME=bsdi
16387 elif test -f /etc/SuSE-release
16388 then
16389         DISTNAME=suse
16390 elif test -d /etc/SuSEconfig
16391 then
16392         DISTNAME=suse5
16393 elif test -f /etc/mandrake-release
16394 then
16395         DISTNAME=mandrake
16396 elif test -f /etc/whitebox-release
16397 then
16398        DISTNAME=redhat
16399 elif test -f /etc/redhat-release
16400 then
16401         DISTNAME=redhat
16402 elif test -f /etc/gentoo-release
16403 then
16404         DISTNAME=gentoo
16405 elif test -f /etc/debian_version
16406 then
16407         DISTNAME=debian
16408 elif test -f /etc/slackware-version
16409 then
16410         DISTNAME=slackware
16411 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16412 then
16413     DISTNAME=darwin
16414 elif test -f /etc/engarde-version
16415 then
16416         DISTNAME=engarde
16417 elif test "$CYGWIN" = yes
16418 then
16419         DISTNAME=cygwin
16420         cat >>confdefs.h <<\_ACEOF
16421 #define HAVE_CYGWIN 1
16422 _ACEOF
16423
16424 else
16425         DISTNAME=unknown
16426 fi
16427 { echo "$as_me:$LINENO: result: done" >&5
16428 echo "${ECHO_T}done" >&6; }
16429
16430
16431 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16432 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16433 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16434 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16435   echo $ECHO_N "(cached) $ECHO_C" >&6
16436 else
16437   cat >conftest.make <<\_ACEOF
16438 SHELL = /bin/sh
16439 all:
16440         @echo '@@@%%%=$(MAKE)=@@@%%%'
16441 _ACEOF
16442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16443 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16444   *@@@%%%=?*=@@@%%%*)
16445     eval ac_cv_prog_make_${ac_make}_set=yes;;
16446   *)
16447     eval ac_cv_prog_make_${ac_make}_set=no;;
16448 esac
16449 rm -f conftest.make
16450 fi
16451 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16452   { echo "$as_me:$LINENO: result: yes" >&5
16453 echo "${ECHO_T}yes" >&6; }
16454   SET_MAKE=
16455 else
16456   { echo "$as_me:$LINENO: result: no" >&5
16457 echo "${ECHO_T}no" >&6; }
16458   SET_MAKE="MAKE=${MAKE-make}"
16459 fi
16460
16461
16462
16463         MKINSTALLDIRS=
16464   if test -n "$ac_aux_dir"; then
16465     case "$ac_aux_dir" in
16466       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16467       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16468     esac
16469   fi
16470   if test -z "$MKINSTALLDIRS"; then
16471     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16472   fi
16473
16474
16475
16476   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16477 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16478     # Check whether --enable-nls was given.
16479 if test "${enable_nls+set}" = set; then
16480   enableval=$enable_nls; USE_NLS=$enableval
16481 else
16482   USE_NLS=yes
16483 fi
16484
16485   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16486 echo "${ECHO_T}$USE_NLS" >&6; }
16487
16488
16489
16490
16491
16492
16493 # Prepare PATH_SEPARATOR.
16494 # The user is always right.
16495 if test "${PATH_SEPARATOR+set}" != set; then
16496   echo "#! /bin/sh" >conf$$.sh
16497   echo  "exit 0"   >>conf$$.sh
16498   chmod +x conf$$.sh
16499   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16500     PATH_SEPARATOR=';'
16501   else
16502     PATH_SEPARATOR=:
16503   fi
16504   rm -f conf$$.sh
16505 fi
16506
16507 # Find out how to test for executable files. Don't use a zero-byte file,
16508 # as systems may use methods other than mode bits to determine executability.
16509 cat >conf$$.file <<_ASEOF
16510 #! /bin/sh
16511 exit 0
16512 _ASEOF
16513 chmod +x conf$$.file
16514 if test -x conf$$.file >/dev/null 2>&1; then
16515   ac_executable_p="test -x"
16516 else
16517   ac_executable_p="test -f"
16518 fi
16519 rm -f conf$$.file
16520
16521 # Extract the first word of "msgfmt", so it can be a program name with args.
16522 set dummy msgfmt; ac_word=$2
16523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16525 if test "${ac_cv_path_MSGFMT+set}" = set; then
16526   echo $ECHO_N "(cached) $ECHO_C" >&6
16527 else
16528   case "$MSGFMT" in
16529   [\\/]* | ?:[\\/]*)
16530     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16531     ;;
16532   *)
16533     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16534     for ac_dir in $PATH; do
16535       IFS="$ac_save_IFS"
16536       test -z "$ac_dir" && ac_dir=.
16537       for ac_exec_ext in '' $ac_executable_extensions; do
16538         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16539           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16540           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16541      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16542             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16543             break 2
16544           fi
16545         fi
16546       done
16547     done
16548     IFS="$ac_save_IFS"
16549   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16550     ;;
16551 esac
16552 fi
16553 MSGFMT="$ac_cv_path_MSGFMT"
16554 if test "$MSGFMT" != ":"; then
16555   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16556 echo "${ECHO_T}$MSGFMT" >&6; }
16557 else
16558   { echo "$as_me:$LINENO: result: no" >&5
16559 echo "${ECHO_T}no" >&6; }
16560 fi
16561
16562   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16563 set dummy gmsgfmt; ac_word=$2
16564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16566 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16567   echo $ECHO_N "(cached) $ECHO_C" >&6
16568 else
16569   case $GMSGFMT in
16570   [\\/]* | ?:[\\/]*)
16571   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16572   ;;
16573   *)
16574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16575 for as_dir in $PATH
16576 do
16577   IFS=$as_save_IFS
16578   test -z "$as_dir" && as_dir=.
16579   for ac_exec_ext in '' $ac_executable_extensions; do
16580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16581     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16583     break 2
16584   fi
16585 done
16586 done
16587 IFS=$as_save_IFS
16588
16589   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16590   ;;
16591 esac
16592 fi
16593 GMSGFMT=$ac_cv_path_GMSGFMT
16594 if test -n "$GMSGFMT"; then
16595   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16596 echo "${ECHO_T}$GMSGFMT" >&6; }
16597 else
16598   { echo "$as_me:$LINENO: result: no" >&5
16599 echo "${ECHO_T}no" >&6; }
16600 fi
16601
16602
16603
16604
16605 # Prepare PATH_SEPARATOR.
16606 # The user is always right.
16607 if test "${PATH_SEPARATOR+set}" != set; then
16608   echo "#! /bin/sh" >conf$$.sh
16609   echo  "exit 0"   >>conf$$.sh
16610   chmod +x conf$$.sh
16611   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16612     PATH_SEPARATOR=';'
16613   else
16614     PATH_SEPARATOR=:
16615   fi
16616   rm -f conf$$.sh
16617 fi
16618
16619 # Find out how to test for executable files. Don't use a zero-byte file,
16620 # as systems may use methods other than mode bits to determine executability.
16621 cat >conf$$.file <<_ASEOF
16622 #! /bin/sh
16623 exit 0
16624 _ASEOF
16625 chmod +x conf$$.file
16626 if test -x conf$$.file >/dev/null 2>&1; then
16627   ac_executable_p="test -x"
16628 else
16629   ac_executable_p="test -f"
16630 fi
16631 rm -f conf$$.file
16632
16633 # Extract the first word of "xgettext", so it can be a program name with args.
16634 set dummy xgettext; ac_word=$2
16635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16637 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16638   echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16640   case "$XGETTEXT" in
16641   [\\/]* | ?:[\\/]*)
16642     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16643     ;;
16644   *)
16645     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16646     for ac_dir in $PATH; do
16647       IFS="$ac_save_IFS"
16648       test -z "$ac_dir" && ac_dir=.
16649       for ac_exec_ext in '' $ac_executable_extensions; do
16650         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16651           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16652           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16653      (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
16654             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16655             break 2
16656           fi
16657         fi
16658       done
16659     done
16660     IFS="$ac_save_IFS"
16661   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16662     ;;
16663 esac
16664 fi
16665 XGETTEXT="$ac_cv_path_XGETTEXT"
16666 if test "$XGETTEXT" != ":"; then
16667   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16668 echo "${ECHO_T}$XGETTEXT" >&6; }
16669 else
16670   { echo "$as_me:$LINENO: result: no" >&5
16671 echo "${ECHO_T}no" >&6; }
16672 fi
16673
16674     rm -f messages.po
16675
16676
16677 # Prepare PATH_SEPARATOR.
16678 # The user is always right.
16679 if test "${PATH_SEPARATOR+set}" != set; then
16680   echo "#! /bin/sh" >conf$$.sh
16681   echo  "exit 0"   >>conf$$.sh
16682   chmod +x conf$$.sh
16683   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16684     PATH_SEPARATOR=';'
16685   else
16686     PATH_SEPARATOR=:
16687   fi
16688   rm -f conf$$.sh
16689 fi
16690
16691 # Find out how to test for executable files. Don't use a zero-byte file,
16692 # as systems may use methods other than mode bits to determine executability.
16693 cat >conf$$.file <<_ASEOF
16694 #! /bin/sh
16695 exit 0
16696 _ASEOF
16697 chmod +x conf$$.file
16698 if test -x conf$$.file >/dev/null 2>&1; then
16699   ac_executable_p="test -x"
16700 else
16701   ac_executable_p="test -f"
16702 fi
16703 rm -f conf$$.file
16704
16705 # Extract the first word of "msgmerge", so it can be a program name with args.
16706 set dummy msgmerge; ac_word=$2
16707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16709 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16710   echo $ECHO_N "(cached) $ECHO_C" >&6
16711 else
16712   case "$MSGMERGE" in
16713   [\\/]* | ?:[\\/]*)
16714     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16715     ;;
16716   *)
16717     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16718     for ac_dir in $PATH; do
16719       IFS="$ac_save_IFS"
16720       test -z "$ac_dir" && ac_dir=.
16721       for ac_exec_ext in '' $ac_executable_extensions; do
16722         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16723           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16724           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16725             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16726             break 2
16727           fi
16728         fi
16729       done
16730     done
16731     IFS="$ac_save_IFS"
16732   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16733     ;;
16734 esac
16735 fi
16736 MSGMERGE="$ac_cv_path_MSGMERGE"
16737 if test "$MSGMERGE" != ":"; then
16738   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16739 echo "${ECHO_T}$MSGMERGE" >&6; }
16740 else
16741   { echo "$as_me:$LINENO: result: no" >&5
16742 echo "${ECHO_T}no" >&6; }
16743 fi
16744
16745
16746       if test "$GMSGFMT" != ":"; then
16747             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16748        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16749       : ;
16750     else
16751       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16752       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16753 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16754       GMSGFMT=":"
16755     fi
16756   fi
16757
16758       if test "$XGETTEXT" != ":"; then
16759             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16760        (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
16761       : ;
16762     else
16763       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16764 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16765       XGETTEXT=":"
16766     fi
16767         rm -f messages.po
16768   fi
16769
16770   ac_config_commands="$ac_config_commands default-1"
16771
16772
16773
16774       if test "X$prefix" = "XNONE"; then
16775     acl_final_prefix="$ac_default_prefix"
16776   else
16777     acl_final_prefix="$prefix"
16778   fi
16779   if test "X$exec_prefix" = "XNONE"; then
16780     acl_final_exec_prefix='${prefix}'
16781   else
16782     acl_final_exec_prefix="$exec_prefix"
16783   fi
16784   acl_save_prefix="$prefix"
16785   prefix="$acl_final_prefix"
16786   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16787   prefix="$acl_save_prefix"
16788
16789
16790 # Check whether --with-gnu-ld was given.
16791 if test "${with_gnu_ld+set}" = set; then
16792   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16793 else
16794   with_gnu_ld=no
16795 fi
16796
16797 # Prepare PATH_SEPARATOR.
16798 # The user is always right.
16799 if test "${PATH_SEPARATOR+set}" != set; then
16800   echo "#! /bin/sh" >conf$$.sh
16801   echo  "exit 0"   >>conf$$.sh
16802   chmod +x conf$$.sh
16803   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16804     PATH_SEPARATOR=';'
16805   else
16806     PATH_SEPARATOR=:
16807   fi
16808   rm -f conf$$.sh
16809 fi
16810 ac_prog=ld
16811 if test "$GCC" = yes; then
16812   # Check if gcc -print-prog-name=ld gives a path.
16813   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16814 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16815   case $host in
16816   *-*-mingw*)
16817     # gcc leaves a trailing carriage return which upsets mingw
16818     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16819   *)
16820     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16821   esac
16822   case $ac_prog in
16823     # Accept absolute paths.
16824     [\\/]* | [A-Za-z]:[\\/]*)
16825       re_direlt='/[^/][^/]*/\.\./'
16826       # Canonicalize the path of ld
16827       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16828       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16829         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16830       done
16831       test -z "$LD" && LD="$ac_prog"
16832       ;;
16833   "")
16834     # If it fails, then pretend we aren't using GCC.
16835     ac_prog=ld
16836     ;;
16837   *)
16838     # If it is relative, then search for the first ld in PATH.
16839     with_gnu_ld=unknown
16840     ;;
16841   esac
16842 elif test "$with_gnu_ld" = yes; then
16843   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16844 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16845 else
16846   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16847 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16848 fi
16849 if test "${acl_cv_path_LD+set}" = set; then
16850   echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852   if test -z "$LD"; then
16853   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16854   for ac_dir in $PATH; do
16855     test -z "$ac_dir" && ac_dir=.
16856     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16857       acl_cv_path_LD="$ac_dir/$ac_prog"
16858       # Check to see if the program is GNU ld.  I'd rather use --version,
16859       # but apparently some GNU ld's only accept -v.
16860       # Break only if it was the GNU/non-GNU ld that we prefer.
16861       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16862       *GNU* | *'with BFD'*)
16863         test "$with_gnu_ld" != no && break ;;
16864       *)
16865         test "$with_gnu_ld" != yes && break ;;
16866       esac
16867     fi
16868   done
16869   IFS="$ac_save_ifs"
16870 else
16871   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16872 fi
16873 fi
16874
16875 LD="$acl_cv_path_LD"
16876 if test -n "$LD"; then
16877   { echo "$as_me:$LINENO: result: $LD" >&5
16878 echo "${ECHO_T}$LD" >&6; }
16879 else
16880   { echo "$as_me:$LINENO: result: no" >&5
16881 echo "${ECHO_T}no" >&6; }
16882 fi
16883 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16884 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16885    { (exit 1); exit 1; }; }
16886 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16887 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16888 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16889   echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16892 case `$LD -v 2>&1 </dev/null` in
16893 *GNU* | *'with BFD'*)
16894   acl_cv_prog_gnu_ld=yes ;;
16895 *)
16896   acl_cv_prog_gnu_ld=no ;;
16897 esac
16898 fi
16899 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16900 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16901 with_gnu_ld=$acl_cv_prog_gnu_ld
16902
16903
16904
16905
16906                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16907 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16908 if test "${acl_cv_rpath+set}" = set; then
16909   echo $ECHO_N "(cached) $ECHO_C" >&6
16910 else
16911
16912     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16913     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16914     . ./conftest.sh
16915     rm -f ./conftest.sh
16916     acl_cv_rpath=done
16917
16918 fi
16919 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16920 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16921   wl="$acl_cv_wl"
16922   libext="$acl_cv_libext"
16923   shlibext="$acl_cv_shlibext"
16924   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16925   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16926   hardcode_direct="$acl_cv_hardcode_direct"
16927   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16928     # Check whether --enable-rpath was given.
16929 if test "${enable_rpath+set}" = set; then
16930   enableval=$enable_rpath; :
16931 else
16932   enable_rpath=yes
16933 fi
16934
16935
16936
16937
16938
16939
16940
16941
16942     use_additional=yes
16943
16944   acl_save_prefix="$prefix"
16945   prefix="$acl_final_prefix"
16946   acl_save_exec_prefix="$exec_prefix"
16947   exec_prefix="$acl_final_exec_prefix"
16948
16949     eval additional_includedir=\"$includedir\"
16950     eval additional_libdir=\"$libdir\"
16951
16952   exec_prefix="$acl_save_exec_prefix"
16953   prefix="$acl_save_prefix"
16954
16955
16956 # Check whether --with-libiconv-prefix was given.
16957 if test "${with_libiconv_prefix+set}" = set; then
16958   withval=$with_libiconv_prefix;
16959     if test "X$withval" = "Xno"; then
16960       use_additional=no
16961     else
16962       if test "X$withval" = "X"; then
16963
16964   acl_save_prefix="$prefix"
16965   prefix="$acl_final_prefix"
16966   acl_save_exec_prefix="$exec_prefix"
16967   exec_prefix="$acl_final_exec_prefix"
16968
16969           eval additional_includedir=\"$includedir\"
16970           eval additional_libdir=\"$libdir\"
16971
16972   exec_prefix="$acl_save_exec_prefix"
16973   prefix="$acl_save_prefix"
16974
16975       else
16976         additional_includedir="$withval/include"
16977         additional_libdir="$withval/lib"
16978       fi
16979     fi
16980
16981 fi
16982
16983       LIBICONV=
16984   LTLIBICONV=
16985   INCICONV=
16986   rpathdirs=
16987   ltrpathdirs=
16988   names_already_handled=
16989   names_next_round='iconv '
16990   while test -n "$names_next_round"; do
16991     names_this_round="$names_next_round"
16992     names_next_round=
16993     for name in $names_this_round; do
16994       already_handled=
16995       for n in $names_already_handled; do
16996         if test "$n" = "$name"; then
16997           already_handled=yes
16998           break
16999         fi
17000       done
17001       if test -z "$already_handled"; then
17002         names_already_handled="$names_already_handled $name"
17003                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17004         eval value=\"\$HAVE_LIB$uppername\"
17005         if test -n "$value"; then
17006           if test "$value" = yes; then
17007             eval value=\"\$LIB$uppername\"
17008             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17009             eval value=\"\$LTLIB$uppername\"
17010             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17011           else
17012                                     :
17013           fi
17014         else
17015                               found_dir=
17016           found_la=
17017           found_so=
17018           found_a=
17019           if test $use_additional = yes; then
17020             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17021               found_dir="$additional_libdir"
17022               found_so="$additional_libdir/lib$name.$shlibext"
17023               if test -f "$additional_libdir/lib$name.la"; then
17024                 found_la="$additional_libdir/lib$name.la"
17025               fi
17026             else
17027               if test -f "$additional_libdir/lib$name.$libext"; then
17028                 found_dir="$additional_libdir"
17029                 found_a="$additional_libdir/lib$name.$libext"
17030                 if test -f "$additional_libdir/lib$name.la"; then
17031                   found_la="$additional_libdir/lib$name.la"
17032                 fi
17033               fi
17034             fi
17035           fi
17036           if test "X$found_dir" = "X"; then
17037             for x in $LDFLAGS $LTLIBICONV; do
17038
17039   acl_save_prefix="$prefix"
17040   prefix="$acl_final_prefix"
17041   acl_save_exec_prefix="$exec_prefix"
17042   exec_prefix="$acl_final_exec_prefix"
17043   eval x=\"$x\"
17044   exec_prefix="$acl_save_exec_prefix"
17045   prefix="$acl_save_prefix"
17046
17047               case "$x" in
17048                 -L*)
17049                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17050                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17051                     found_dir="$dir"
17052                     found_so="$dir/lib$name.$shlibext"
17053                     if test -f "$dir/lib$name.la"; then
17054                       found_la="$dir/lib$name.la"
17055                     fi
17056                   else
17057                     if test -f "$dir/lib$name.$libext"; then
17058                       found_dir="$dir"
17059                       found_a="$dir/lib$name.$libext"
17060                       if test -f "$dir/lib$name.la"; then
17061                         found_la="$dir/lib$name.la"
17062                       fi
17063                     fi
17064                   fi
17065                   ;;
17066               esac
17067               if test "X$found_dir" != "X"; then
17068                 break
17069               fi
17070             done
17071           fi
17072           if test "X$found_dir" != "X"; then
17073                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17074             if test "X$found_so" != "X"; then
17075                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17076                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17077               else
17078                                                                                 haveit=
17079                 for x in $ltrpathdirs; do
17080                   if test "X$x" = "X$found_dir"; then
17081                     haveit=yes
17082                     break
17083                   fi
17084                 done
17085                 if test -z "$haveit"; then
17086                   ltrpathdirs="$ltrpathdirs $found_dir"
17087                 fi
17088                                 if test "$hardcode_direct" = yes; then
17089                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17090                 else
17091                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17092                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17093                                                             haveit=
17094                     for x in $rpathdirs; do
17095                       if test "X$x" = "X$found_dir"; then
17096                         haveit=yes
17097                         break
17098                       fi
17099                     done
17100                     if test -z "$haveit"; then
17101                       rpathdirs="$rpathdirs $found_dir"
17102                     fi
17103                   else
17104                                                                                 haveit=
17105                     for x in $LDFLAGS $LIBICONV; do
17106
17107   acl_save_prefix="$prefix"
17108   prefix="$acl_final_prefix"
17109   acl_save_exec_prefix="$exec_prefix"
17110   exec_prefix="$acl_final_exec_prefix"
17111   eval x=\"$x\"
17112   exec_prefix="$acl_save_exec_prefix"
17113   prefix="$acl_save_prefix"
17114
17115                       if test "X$x" = "X-L$found_dir"; then
17116                         haveit=yes
17117                         break
17118                       fi
17119                     done
17120                     if test -z "$haveit"; then
17121                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17122                     fi
17123                     if test "$hardcode_minus_L" != no; then
17124                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17125                     else
17126                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17127                     fi
17128                   fi
17129                 fi
17130               fi
17131             else
17132               if test "X$found_a" != "X"; then
17133                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17134               else
17135                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17136               fi
17137             fi
17138                         additional_includedir=
17139             case "$found_dir" in
17140               */lib | */lib/)
17141                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17142                 additional_includedir="$basedir/include"
17143                 ;;
17144             esac
17145             if test "X$additional_includedir" != "X"; then
17146                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17147                 haveit=
17148                 if test "X$additional_includedir" = "X/usr/local/include"; then
17149                   if test -n "$GCC"; then
17150                     case $host_os in
17151                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17152                     esac
17153                   fi
17154                 fi
17155                 if test -z "$haveit"; then
17156                   for x in $CPPFLAGS $INCICONV; do
17157
17158   acl_save_prefix="$prefix"
17159   prefix="$acl_final_prefix"
17160   acl_save_exec_prefix="$exec_prefix"
17161   exec_prefix="$acl_final_exec_prefix"
17162   eval x=\"$x\"
17163   exec_prefix="$acl_save_exec_prefix"
17164   prefix="$acl_save_prefix"
17165
17166                     if test "X$x" = "X-I$additional_includedir"; then
17167                       haveit=yes
17168                       break
17169                     fi
17170                   done
17171                   if test -z "$haveit"; then
17172                     if test -d "$additional_includedir"; then
17173                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17174                     fi
17175                   fi
17176                 fi
17177               fi
17178             fi
17179                         if test -n "$found_la"; then
17180                                                         save_libdir="$libdir"
17181               case "$found_la" in
17182                 */* | *\\*) . "$found_la" ;;
17183                 *) . "./$found_la" ;;
17184               esac
17185               libdir="$save_libdir"
17186                             for dep in $dependency_libs; do
17187                 case "$dep" in
17188                   -L*)
17189                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17190                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17191                       haveit=
17192                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17193                         if test -n "$GCC"; then
17194                           case $host_os in
17195                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17196                           esac
17197                         fi
17198                       fi
17199                       if test -z "$haveit"; then
17200                         haveit=
17201                         for x in $LDFLAGS $LIBICONV; do
17202
17203   acl_save_prefix="$prefix"
17204   prefix="$acl_final_prefix"
17205   acl_save_exec_prefix="$exec_prefix"
17206   exec_prefix="$acl_final_exec_prefix"
17207   eval x=\"$x\"
17208   exec_prefix="$acl_save_exec_prefix"
17209   prefix="$acl_save_prefix"
17210
17211                           if test "X$x" = "X-L$additional_libdir"; then
17212                             haveit=yes
17213                             break
17214                           fi
17215                         done
17216                         if test -z "$haveit"; then
17217                           if test -d "$additional_libdir"; then
17218                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17219                           fi
17220                         fi
17221                         haveit=
17222                         for x in $LDFLAGS $LTLIBICONV; do
17223
17224   acl_save_prefix="$prefix"
17225   prefix="$acl_final_prefix"
17226   acl_save_exec_prefix="$exec_prefix"
17227   exec_prefix="$acl_final_exec_prefix"
17228   eval x=\"$x\"
17229   exec_prefix="$acl_save_exec_prefix"
17230   prefix="$acl_save_prefix"
17231
17232                           if test "X$x" = "X-L$additional_libdir"; then
17233                             haveit=yes
17234                             break
17235                           fi
17236                         done
17237                         if test -z "$haveit"; then
17238                           if test -d "$additional_libdir"; then
17239                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17240                           fi
17241                         fi
17242                       fi
17243                     fi
17244                     ;;
17245                   -R*)
17246                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17247                     if test "$enable_rpath" != no; then
17248                                                                   haveit=
17249                       for x in $rpathdirs; do
17250                         if test "X$x" = "X$dir"; then
17251                           haveit=yes
17252                           break
17253                         fi
17254                       done
17255                       if test -z "$haveit"; then
17256                         rpathdirs="$rpathdirs $dir"
17257                       fi
17258                                                                   haveit=
17259                       for x in $ltrpathdirs; do
17260                         if test "X$x" = "X$dir"; then
17261                           haveit=yes
17262                           break
17263                         fi
17264                       done
17265                       if test -z "$haveit"; then
17266                         ltrpathdirs="$ltrpathdirs $dir"
17267                       fi
17268                     fi
17269                     ;;
17270                   -l*)
17271                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17272                     ;;
17273                   *.la)
17274                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17275                     ;;
17276                   *)
17277                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17278                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17279                     ;;
17280                 esac
17281               done
17282             fi
17283           else
17284                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17285             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17286           fi
17287         fi
17288       fi
17289     done
17290   done
17291   if test "X$rpathdirs" != "X"; then
17292     if test -n "$hardcode_libdir_separator"; then
17293                         alldirs=
17294       for found_dir in $rpathdirs; do
17295         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17296       done
17297             acl_save_libdir="$libdir"
17298       libdir="$alldirs"
17299       eval flag=\"$hardcode_libdir_flag_spec\"
17300       libdir="$acl_save_libdir"
17301       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17302     else
17303             for found_dir in $rpathdirs; do
17304         acl_save_libdir="$libdir"
17305         libdir="$found_dir"
17306         eval flag=\"$hardcode_libdir_flag_spec\"
17307         libdir="$acl_save_libdir"
17308         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17309       done
17310     fi
17311   fi
17312   if test "X$ltrpathdirs" != "X"; then
17313             for found_dir in $ltrpathdirs; do
17314       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17315     done
17316   fi
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17336 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17337 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   gt_save_CPPFLAGS="$CPPFLAGS"
17341      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17342      gt_save_LIBS="$LIBS"
17343      LIBS="$LIBS -framework CoreFoundation"
17344      cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h.  */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h.  */
17350 #include <CFPreferences.h>
17351 int
17352 main ()
17353 {
17354 CFPreferencesCopyAppValue(NULL, NULL)
17355   ;
17356   return 0;
17357 }
17358 _ACEOF
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363   *) ac_try_echo=$ac_try;;
17364 esac
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366   (eval "$ac_link") 2>conftest.er1
17367   ac_status=$?
17368   grep -v '^ *+' conftest.er1 >conftest.err
17369   rm -f conftest.er1
17370   cat conftest.err >&5
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); } && {
17373          test -z "$ac_c_werror_flag" ||
17374          test ! -s conftest.err
17375        } && test -s conftest$ac_exeext &&
17376        $as_test_x conftest$ac_exeext; then
17377   gt_cv_func_CFPreferencesCopyAppValue=yes
17378 else
17379   echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382         gt_cv_func_CFPreferencesCopyAppValue=no
17383 fi
17384
17385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386       conftest$ac_exeext conftest.$ac_ext
17387      CPPFLAGS="$gt_save_CPPFLAGS"
17388      LIBS="$gt_save_LIBS"
17389 fi
17390 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17391 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17392   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17393
17394 cat >>confdefs.h <<\_ACEOF
17395 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17396 _ACEOF
17397
17398   fi
17399     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17400 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17401 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17402   echo $ECHO_N "(cached) $ECHO_C" >&6
17403 else
17404   gt_save_CPPFLAGS="$CPPFLAGS"
17405      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17406      gt_save_LIBS="$LIBS"
17407      LIBS="$LIBS -framework CoreFoundation"
17408      cat >conftest.$ac_ext <<_ACEOF
17409 /* confdefs.h.  */
17410 _ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h.  */
17414 #include <CFLocale.h>
17415 int
17416 main ()
17417 {
17418 CFLocaleCopyCurrent();
17419   ;
17420   return 0;
17421 }
17422 _ACEOF
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (ac_try="$ac_link"
17425 case "(($ac_try" in
17426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427   *) ac_try_echo=$ac_try;;
17428 esac
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430   (eval "$ac_link") 2>conftest.er1
17431   ac_status=$?
17432   grep -v '^ *+' conftest.er1 >conftest.err
17433   rm -f conftest.er1
17434   cat conftest.err >&5
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); } && {
17437          test -z "$ac_c_werror_flag" ||
17438          test ! -s conftest.err
17439        } && test -s conftest$ac_exeext &&
17440        $as_test_x conftest$ac_exeext; then
17441   gt_cv_func_CFLocaleCopyCurrent=yes
17442 else
17443   echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17445
17446         gt_cv_func_CFLocaleCopyCurrent=no
17447 fi
17448
17449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17450       conftest$ac_exeext conftest.$ac_ext
17451      CPPFLAGS="$gt_save_CPPFLAGS"
17452      LIBS="$gt_save_LIBS"
17453 fi
17454 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17455 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17456   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17457
17458 cat >>confdefs.h <<\_ACEOF
17459 #define HAVE_CFLOCALECOPYCURRENT 1
17460 _ACEOF
17461
17462   fi
17463   INTL_MACOSX_LIBS=
17464   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17465     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17466   fi
17467
17468
17469
17470
17471   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17472 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17473     # Check whether --enable-nls was given.
17474 if test "${enable_nls+set}" = set; then
17475   enableval=$enable_nls; USE_NLS=$enableval
17476 else
17477   USE_NLS=yes
17478 fi
17479
17480   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17481 echo "${ECHO_T}$USE_NLS" >&6; }
17482
17483
17484
17485
17486   LIBINTL=
17487   LTLIBINTL=
17488   POSUB=
17489
17490     if test "$USE_NLS" = "yes"; then
17491     gt_use_preinstalled_gnugettext=no
17492
17493
17494
17495
17496
17497
17498         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17499 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17500 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17501   echo $ECHO_N "(cached) $ECHO_C" >&6
17502 else
17503   cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h.  */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h.  */
17509 #include <libintl.h>
17510 extern int _nl_msg_cat_cntr;
17511 extern int *_nl_domain_bindings;
17512 int
17513 main ()
17514 {
17515 bindtextdomain ("", "");
17516 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17517   ;
17518   return 0;
17519 }
17520 _ACEOF
17521 rm -f conftest.$ac_objext conftest$ac_exeext
17522 if { (ac_try="$ac_link"
17523 case "(($ac_try" in
17524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525   *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528   (eval "$ac_link") 2>conftest.er1
17529   ac_status=$?
17530   grep -v '^ *+' conftest.er1 >conftest.err
17531   rm -f conftest.er1
17532   cat conftest.err >&5
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); } && {
17535          test -z "$ac_c_werror_flag" ||
17536          test ! -s conftest.err
17537        } && test -s conftest$ac_exeext &&
17538        $as_test_x conftest$ac_exeext; then
17539   gt_cv_func_gnugettext1_libc=yes
17540 else
17541   echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17543
17544         gt_cv_func_gnugettext1_libc=no
17545 fi
17546
17547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17548       conftest$ac_exeext conftest.$ac_ext
17549 fi
17550 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17551 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17552
17553         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17554
17555
17556
17557
17558
17559           am_save_CPPFLAGS="$CPPFLAGS"
17560
17561   for element in $INCICONV; do
17562     haveit=
17563     for x in $CPPFLAGS; do
17564
17565   acl_save_prefix="$prefix"
17566   prefix="$acl_final_prefix"
17567   acl_save_exec_prefix="$exec_prefix"
17568   exec_prefix="$acl_final_exec_prefix"
17569   eval x=\"$x\"
17570   exec_prefix="$acl_save_exec_prefix"
17571   prefix="$acl_save_prefix"
17572
17573       if test "X$x" = "X$element"; then
17574         haveit=yes
17575         break
17576       fi
17577     done
17578     if test -z "$haveit"; then
17579       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17580     fi
17581   done
17582
17583
17584   { echo "$as_me:$LINENO: checking for iconv" >&5
17585 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17586 if test "${am_cv_func_iconv+set}" = set; then
17587   echo $ECHO_N "(cached) $ECHO_C" >&6
17588 else
17589
17590     am_cv_func_iconv="no, consider installing GNU libiconv"
17591     am_cv_lib_iconv=no
17592     cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h.  */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h.  */
17598 #include <stdlib.h>
17599 #include <iconv.h>
17600 int
17601 main ()
17602 {
17603 iconv_t cd = iconv_open("","");
17604        iconv(cd,NULL,NULL,NULL,NULL);
17605        iconv_close(cd);
17606   ;
17607   return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614   *) ac_try_echo=$ac_try;;
17615 esac
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617   (eval "$ac_link") 2>conftest.er1
17618   ac_status=$?
17619   grep -v '^ *+' conftest.er1 >conftest.err
17620   rm -f conftest.er1
17621   cat conftest.err >&5
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); } && {
17624          test -z "$ac_c_werror_flag" ||
17625          test ! -s conftest.err
17626        } && test -s conftest$ac_exeext &&
17627        $as_test_x conftest$ac_exeext; then
17628   am_cv_func_iconv=yes
17629 else
17630   echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17632
17633
17634 fi
17635
17636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17637       conftest$ac_exeext conftest.$ac_ext
17638     if test "$am_cv_func_iconv" != yes; then
17639       am_save_LIBS="$LIBS"
17640       LIBS="$LIBS $LIBICONV"
17641       cat >conftest.$ac_ext <<_ACEOF
17642 /* confdefs.h.  */
17643 _ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h.  */
17647 #include <stdlib.h>
17648 #include <iconv.h>
17649 int
17650 main ()
17651 {
17652 iconv_t cd = iconv_open("","");
17653          iconv(cd,NULL,NULL,NULL,NULL);
17654          iconv_close(cd);
17655   ;
17656   return 0;
17657 }
17658 _ACEOF
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (ac_try="$ac_link"
17661 case "(($ac_try" in
17662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663   *) ac_try_echo=$ac_try;;
17664 esac
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666   (eval "$ac_link") 2>conftest.er1
17667   ac_status=$?
17668   grep -v '^ *+' conftest.er1 >conftest.err
17669   rm -f conftest.er1
17670   cat conftest.err >&5
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); } && {
17673          test -z "$ac_c_werror_flag" ||
17674          test ! -s conftest.err
17675        } && test -s conftest$ac_exeext &&
17676        $as_test_x conftest$ac_exeext; then
17677   am_cv_lib_iconv=yes
17678         am_cv_func_iconv=yes
17679 else
17680   echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17682
17683
17684 fi
17685
17686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17687       conftest$ac_exeext conftest.$ac_ext
17688       LIBS="$am_save_LIBS"
17689     fi
17690
17691 fi
17692 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17693 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17694   if test "$am_cv_func_iconv" = yes; then
17695
17696 cat >>confdefs.h <<\_ACEOF
17697 #define HAVE_ICONV 1
17698 _ACEOF
17699
17700   fi
17701   if test "$am_cv_lib_iconv" = yes; then
17702     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17703 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17704     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17705 echo "${ECHO_T}$LIBICONV" >&6; }
17706   else
17707             CPPFLAGS="$am_save_CPPFLAGS"
17708     LIBICONV=
17709     LTLIBICONV=
17710   fi
17711
17712
17713
17714
17715
17716
17717     use_additional=yes
17718
17719   acl_save_prefix="$prefix"
17720   prefix="$acl_final_prefix"
17721   acl_save_exec_prefix="$exec_prefix"
17722   exec_prefix="$acl_final_exec_prefix"
17723
17724     eval additional_includedir=\"$includedir\"
17725     eval additional_libdir=\"$libdir\"
17726
17727   exec_prefix="$acl_save_exec_prefix"
17728   prefix="$acl_save_prefix"
17729
17730
17731 # Check whether --with-libintl-prefix was given.
17732 if test "${with_libintl_prefix+set}" = set; then
17733   withval=$with_libintl_prefix;
17734     if test "X$withval" = "Xno"; then
17735       use_additional=no
17736     else
17737       if test "X$withval" = "X"; then
17738
17739   acl_save_prefix="$prefix"
17740   prefix="$acl_final_prefix"
17741   acl_save_exec_prefix="$exec_prefix"
17742   exec_prefix="$acl_final_exec_prefix"
17743
17744           eval additional_includedir=\"$includedir\"
17745           eval additional_libdir=\"$libdir\"
17746
17747   exec_prefix="$acl_save_exec_prefix"
17748   prefix="$acl_save_prefix"
17749
17750       else
17751         additional_includedir="$withval/include"
17752         additional_libdir="$withval/lib"
17753       fi
17754     fi
17755
17756 fi
17757
17758       LIBINTL=
17759   LTLIBINTL=
17760   INCINTL=
17761   rpathdirs=
17762   ltrpathdirs=
17763   names_already_handled=
17764   names_next_round='intl '
17765   while test -n "$names_next_round"; do
17766     names_this_round="$names_next_round"
17767     names_next_round=
17768     for name in $names_this_round; do
17769       already_handled=
17770       for n in $names_already_handled; do
17771         if test "$n" = "$name"; then
17772           already_handled=yes
17773           break
17774         fi
17775       done
17776       if test -z "$already_handled"; then
17777         names_already_handled="$names_already_handled $name"
17778                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17779         eval value=\"\$HAVE_LIB$uppername\"
17780         if test -n "$value"; then
17781           if test "$value" = yes; then
17782             eval value=\"\$LIB$uppername\"
17783             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17784             eval value=\"\$LTLIB$uppername\"
17785             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17786           else
17787                                     :
17788           fi
17789         else
17790                               found_dir=
17791           found_la=
17792           found_so=
17793           found_a=
17794           if test $use_additional = yes; then
17795             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17796               found_dir="$additional_libdir"
17797               found_so="$additional_libdir/lib$name.$shlibext"
17798               if test -f "$additional_libdir/lib$name.la"; then
17799                 found_la="$additional_libdir/lib$name.la"
17800               fi
17801             else
17802               if test -f "$additional_libdir/lib$name.$libext"; then
17803                 found_dir="$additional_libdir"
17804                 found_a="$additional_libdir/lib$name.$libext"
17805                 if test -f "$additional_libdir/lib$name.la"; then
17806                   found_la="$additional_libdir/lib$name.la"
17807                 fi
17808               fi
17809             fi
17810           fi
17811           if test "X$found_dir" = "X"; then
17812             for x in $LDFLAGS $LTLIBINTL; do
17813
17814   acl_save_prefix="$prefix"
17815   prefix="$acl_final_prefix"
17816   acl_save_exec_prefix="$exec_prefix"
17817   exec_prefix="$acl_final_exec_prefix"
17818   eval x=\"$x\"
17819   exec_prefix="$acl_save_exec_prefix"
17820   prefix="$acl_save_prefix"
17821
17822               case "$x" in
17823                 -L*)
17824                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17825                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17826                     found_dir="$dir"
17827                     found_so="$dir/lib$name.$shlibext"
17828                     if test -f "$dir/lib$name.la"; then
17829                       found_la="$dir/lib$name.la"
17830                     fi
17831                   else
17832                     if test -f "$dir/lib$name.$libext"; then
17833                       found_dir="$dir"
17834                       found_a="$dir/lib$name.$libext"
17835                       if test -f "$dir/lib$name.la"; then
17836                         found_la="$dir/lib$name.la"
17837                       fi
17838                     fi
17839                   fi
17840                   ;;
17841               esac
17842               if test "X$found_dir" != "X"; then
17843                 break
17844               fi
17845             done
17846           fi
17847           if test "X$found_dir" != "X"; then
17848                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17849             if test "X$found_so" != "X"; then
17850                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17851                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17852               else
17853                                                                                 haveit=
17854                 for x in $ltrpathdirs; do
17855                   if test "X$x" = "X$found_dir"; then
17856                     haveit=yes
17857                     break
17858                   fi
17859                 done
17860                 if test -z "$haveit"; then
17861                   ltrpathdirs="$ltrpathdirs $found_dir"
17862                 fi
17863                                 if test "$hardcode_direct" = yes; then
17864                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17865                 else
17866                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17867                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17868                                                             haveit=
17869                     for x in $rpathdirs; do
17870                       if test "X$x" = "X$found_dir"; then
17871                         haveit=yes
17872                         break
17873                       fi
17874                     done
17875                     if test -z "$haveit"; then
17876                       rpathdirs="$rpathdirs $found_dir"
17877                     fi
17878                   else
17879                                                                                 haveit=
17880                     for x in $LDFLAGS $LIBINTL; do
17881
17882   acl_save_prefix="$prefix"
17883   prefix="$acl_final_prefix"
17884   acl_save_exec_prefix="$exec_prefix"
17885   exec_prefix="$acl_final_exec_prefix"
17886   eval x=\"$x\"
17887   exec_prefix="$acl_save_exec_prefix"
17888   prefix="$acl_save_prefix"
17889
17890                       if test "X$x" = "X-L$found_dir"; then
17891                         haveit=yes
17892                         break
17893                       fi
17894                     done
17895                     if test -z "$haveit"; then
17896                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17897                     fi
17898                     if test "$hardcode_minus_L" != no; then
17899                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17900                     else
17901                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17902                     fi
17903                   fi
17904                 fi
17905               fi
17906             else
17907               if test "X$found_a" != "X"; then
17908                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17909               else
17910                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17911               fi
17912             fi
17913                         additional_includedir=
17914             case "$found_dir" in
17915               */lib | */lib/)
17916                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17917                 additional_includedir="$basedir/include"
17918                 ;;
17919             esac
17920             if test "X$additional_includedir" != "X"; then
17921                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17922                 haveit=
17923                 if test "X$additional_includedir" = "X/usr/local/include"; then
17924                   if test -n "$GCC"; then
17925                     case $host_os in
17926                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17927                     esac
17928                   fi
17929                 fi
17930                 if test -z "$haveit"; then
17931                   for x in $CPPFLAGS $INCINTL; do
17932
17933   acl_save_prefix="$prefix"
17934   prefix="$acl_final_prefix"
17935   acl_save_exec_prefix="$exec_prefix"
17936   exec_prefix="$acl_final_exec_prefix"
17937   eval x=\"$x\"
17938   exec_prefix="$acl_save_exec_prefix"
17939   prefix="$acl_save_prefix"
17940
17941                     if test "X$x" = "X-I$additional_includedir"; then
17942                       haveit=yes
17943                       break
17944                     fi
17945                   done
17946                   if test -z "$haveit"; then
17947                     if test -d "$additional_includedir"; then
17948                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17949                     fi
17950                   fi
17951                 fi
17952               fi
17953             fi
17954                         if test -n "$found_la"; then
17955                                                         save_libdir="$libdir"
17956               case "$found_la" in
17957                 */* | *\\*) . "$found_la" ;;
17958                 *) . "./$found_la" ;;
17959               esac
17960               libdir="$save_libdir"
17961                             for dep in $dependency_libs; do
17962                 case "$dep" in
17963                   -L*)
17964                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17965                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17966                       haveit=
17967                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17968                         if test -n "$GCC"; then
17969                           case $host_os in
17970                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17971                           esac
17972                         fi
17973                       fi
17974                       if test -z "$haveit"; then
17975                         haveit=
17976                         for x in $LDFLAGS $LIBINTL; do
17977
17978   acl_save_prefix="$prefix"
17979   prefix="$acl_final_prefix"
17980   acl_save_exec_prefix="$exec_prefix"
17981   exec_prefix="$acl_final_exec_prefix"
17982   eval x=\"$x\"
17983   exec_prefix="$acl_save_exec_prefix"
17984   prefix="$acl_save_prefix"
17985
17986                           if test "X$x" = "X-L$additional_libdir"; then
17987                             haveit=yes
17988                             break
17989                           fi
17990                         done
17991                         if test -z "$haveit"; then
17992                           if test -d "$additional_libdir"; then
17993                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17994                           fi
17995                         fi
17996                         haveit=
17997                         for x in $LDFLAGS $LTLIBINTL; do
17998
17999   acl_save_prefix="$prefix"
18000   prefix="$acl_final_prefix"
18001   acl_save_exec_prefix="$exec_prefix"
18002   exec_prefix="$acl_final_exec_prefix"
18003   eval x=\"$x\"
18004   exec_prefix="$acl_save_exec_prefix"
18005   prefix="$acl_save_prefix"
18006
18007                           if test "X$x" = "X-L$additional_libdir"; then
18008                             haveit=yes
18009                             break
18010                           fi
18011                         done
18012                         if test -z "$haveit"; then
18013                           if test -d "$additional_libdir"; then
18014                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18015                           fi
18016                         fi
18017                       fi
18018                     fi
18019                     ;;
18020                   -R*)
18021                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18022                     if test "$enable_rpath" != no; then
18023                                                                   haveit=
18024                       for x in $rpathdirs; do
18025                         if test "X$x" = "X$dir"; then
18026                           haveit=yes
18027                           break
18028                         fi
18029                       done
18030                       if test -z "$haveit"; then
18031                         rpathdirs="$rpathdirs $dir"
18032                       fi
18033                                                                   haveit=
18034                       for x in $ltrpathdirs; do
18035                         if test "X$x" = "X$dir"; then
18036                           haveit=yes
18037                           break
18038                         fi
18039                       done
18040                       if test -z "$haveit"; then
18041                         ltrpathdirs="$ltrpathdirs $dir"
18042                       fi
18043                     fi
18044                     ;;
18045                   -l*)
18046                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18047                     ;;
18048                   *.la)
18049                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18050                     ;;
18051                   *)
18052                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18053                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18054                     ;;
18055                 esac
18056               done
18057             fi
18058           else
18059                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18060             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18061           fi
18062         fi
18063       fi
18064     done
18065   done
18066   if test "X$rpathdirs" != "X"; then
18067     if test -n "$hardcode_libdir_separator"; then
18068                         alldirs=
18069       for found_dir in $rpathdirs; do
18070         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18071       done
18072             acl_save_libdir="$libdir"
18073       libdir="$alldirs"
18074       eval flag=\"$hardcode_libdir_flag_spec\"
18075       libdir="$acl_save_libdir"
18076       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18077     else
18078             for found_dir in $rpathdirs; do
18079         acl_save_libdir="$libdir"
18080         libdir="$found_dir"
18081         eval flag=\"$hardcode_libdir_flag_spec\"
18082         libdir="$acl_save_libdir"
18083         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18084       done
18085     fi
18086   fi
18087   if test "X$ltrpathdirs" != "X"; then
18088             for found_dir in $ltrpathdirs; do
18089       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18090     done
18091   fi
18092
18093           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18094 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18095 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18096   echo $ECHO_N "(cached) $ECHO_C" >&6
18097 else
18098   gt_save_CPPFLAGS="$CPPFLAGS"
18099             CPPFLAGS="$CPPFLAGS $INCINTL"
18100             gt_save_LIBS="$LIBS"
18101             LIBS="$LIBS $LIBINTL"
18102                         cat >conftest.$ac_ext <<_ACEOF
18103 /* confdefs.h.  */
18104 _ACEOF
18105 cat confdefs.h >>conftest.$ac_ext
18106 cat >>conftest.$ac_ext <<_ACEOF
18107 /* end confdefs.h.  */
18108 #include <libintl.h>
18109 extern int _nl_msg_cat_cntr;
18110 extern
18111 #ifdef __cplusplus
18112 "C"
18113 #endif
18114 const char *_nl_expand_alias (const char *);
18115 int
18116 main ()
18117 {
18118 bindtextdomain ("", "");
18119 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18120   ;
18121   return 0;
18122 }
18123 _ACEOF
18124 rm -f conftest.$ac_objext conftest$ac_exeext
18125 if { (ac_try="$ac_link"
18126 case "(($ac_try" in
18127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128   *) ac_try_echo=$ac_try;;
18129 esac
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131   (eval "$ac_link") 2>conftest.er1
18132   ac_status=$?
18133   grep -v '^ *+' conftest.er1 >conftest.err
18134   rm -f conftest.er1
18135   cat conftest.err >&5
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); } && {
18138          test -z "$ac_c_werror_flag" ||
18139          test ! -s conftest.err
18140        } && test -s conftest$ac_exeext &&
18141        $as_test_x conftest$ac_exeext; then
18142   gt_cv_func_gnugettext1_libintl=yes
18143 else
18144   echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18146
18147         gt_cv_func_gnugettext1_libintl=no
18148 fi
18149
18150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18151       conftest$ac_exeext conftest.$ac_ext
18152                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18153               LIBS="$LIBS $LIBICONV"
18154               cat >conftest.$ac_ext <<_ACEOF
18155 /* confdefs.h.  */
18156 _ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h.  */
18160 #include <libintl.h>
18161 extern int _nl_msg_cat_cntr;
18162 extern
18163 #ifdef __cplusplus
18164 "C"
18165 #endif
18166 const char *_nl_expand_alias (const char *);
18167 int
18168 main ()
18169 {
18170 bindtextdomain ("", "");
18171 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18172   ;
18173   return 0;
18174 }
18175 _ACEOF
18176 rm -f conftest.$ac_objext conftest$ac_exeext
18177 if { (ac_try="$ac_link"
18178 case "(($ac_try" in
18179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180   *) ac_try_echo=$ac_try;;
18181 esac
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183   (eval "$ac_link") 2>conftest.er1
18184   ac_status=$?
18185   grep -v '^ *+' conftest.er1 >conftest.err
18186   rm -f conftest.er1
18187   cat conftest.err >&5
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); } && {
18190          test -z "$ac_c_werror_flag" ||
18191          test ! -s conftest.err
18192        } && test -s conftest$ac_exeext &&
18193        $as_test_x conftest$ac_exeext; then
18194   LIBINTL="$LIBINTL $LIBICONV"
18195                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18196                 gt_cv_func_gnugettext1_libintl=yes
18197
18198 else
18199   echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18201
18202
18203 fi
18204
18205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18206       conftest$ac_exeext conftest.$ac_ext
18207             fi
18208             CPPFLAGS="$gt_save_CPPFLAGS"
18209             LIBS="$gt_save_LIBS"
18210 fi
18211 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18212 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18213         fi
18214
18215                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18216            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18217                 && test "$PACKAGE" != gettext-runtime \
18218                 && test "$PACKAGE" != gettext-tools; }; then
18219           gt_use_preinstalled_gnugettext=yes
18220         else
18221                     LIBINTL=
18222           LTLIBINTL=
18223           INCINTL=
18224         fi
18225
18226
18227
18228     if test -n "$INTL_MACOSX_LIBS"; then
18229       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18230          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18231                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18232         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18233       fi
18234     fi
18235
18236     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18237        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18238
18239 cat >>confdefs.h <<\_ACEOF
18240 #define ENABLE_NLS 1
18241 _ACEOF
18242
18243     else
18244       USE_NLS=no
18245     fi
18246   fi
18247
18248   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18249 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18250   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18251 echo "${ECHO_T}$USE_NLS" >&6; }
18252   if test "$USE_NLS" = "yes"; then
18253     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18254 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18255     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18256       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18257         gt_source="external libintl"
18258       else
18259         gt_source="libc"
18260       fi
18261     else
18262       gt_source="included intl directory"
18263     fi
18264     { echo "$as_me:$LINENO: result: $gt_source" >&5
18265 echo "${ECHO_T}$gt_source" >&6; }
18266   fi
18267
18268   if test "$USE_NLS" = "yes"; then
18269
18270     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18271       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18272         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18273 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18274         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18275 echo "${ECHO_T}$LIBINTL" >&6; }
18276
18277   for element in $INCINTL; do
18278     haveit=
18279     for x in $CPPFLAGS; do
18280
18281   acl_save_prefix="$prefix"
18282   prefix="$acl_final_prefix"
18283   acl_save_exec_prefix="$exec_prefix"
18284   exec_prefix="$acl_final_exec_prefix"
18285   eval x=\"$x\"
18286   exec_prefix="$acl_save_exec_prefix"
18287   prefix="$acl_save_prefix"
18288
18289       if test "X$x" = "X$element"; then
18290         haveit=yes
18291         break
18292       fi
18293     done
18294     if test -z "$haveit"; then
18295       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18296     fi
18297   done
18298
18299       fi
18300
18301
18302 cat >>confdefs.h <<\_ACEOF
18303 #define HAVE_GETTEXT 1
18304 _ACEOF
18305
18306
18307 cat >>confdefs.h <<\_ACEOF
18308 #define HAVE_DCGETTEXT 1
18309 _ACEOF
18310
18311     fi
18312
18313         POSUB=po
18314   fi
18315
18316
18317
18318     INTLLIBS="$LIBINTL"
18319
18320
18321
18322
18323
18324
18325
18326 if test x${prefix} = xNONE ; then
18327    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18328       sysconfdir=/etc/bacula
18329    fi
18330
18331    if test `eval echo ${libdir}` = NONE/lib ; then
18332       libdir=/usr/lib
18333    fi
18334
18335    if test `eval echo ${includedir}` = NONE/include ; then
18336       includedir=/usr/include
18337    fi
18338
18339    if test `eval echo ${datarootdir}` = NONE/share ; then
18340       datarootdir=/usr/share
18341    fi
18342    prefix=
18343 fi
18344
18345 if test x${exec_prefix} = xNONE ; then
18346    exec_prefix=${prefix}
18347 fi
18348
18349 sysconfdir=`eval echo ${sysconfdir}`
18350 datarootdir=`eval echo ${datarootdir}`
18351 docdir=`eval echo ${docdir}`
18352 htmldir=`eval echo ${htmldir}`
18353 libdir=`eval echo ${libdir}`
18354 includedir=`eval echo ${includedir}`
18355 localedir=`eval echo ${datarootdir}/locale`
18356 cat >>confdefs.h <<_ACEOF
18357 #define SYSCONFDIR "$sysconfdir"
18358 _ACEOF
18359
18360 cat >>confdefs.h <<_ACEOF
18361 #define LOCALEDIR "$localedir"
18362 _ACEOF
18363
18364
18365 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18366    sbindir=${exec_prefix}/sbin
18367 fi
18368 sbindir=`eval echo ${sbindir}`
18369
18370 if test x$mandir = x'${prefix}/man' ; then
18371    mandir=/usr/share/man
18372 fi
18373
18374 if test x$htmldir = x${docdir} ; then
18375    htmldir=`eval echo ${docdir}bacula/html`
18376 fi
18377
18378 if test x$docdir = x'/usr/share/doc/' ; then
18379    docdir=`eval echo ${docdir}bacula`
18380 fi
18381
18382
18383 for ac_prog in msgfmt
18384 do
18385   # Extract the first word of "$ac_prog", so it can be a program name with args.
18386 set dummy $ac_prog; ac_word=$2
18387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18389 if test "${ac_cv_path_MSGFMT+set}" = set; then
18390   echo $ECHO_N "(cached) $ECHO_C" >&6
18391 else
18392   case $MSGFMT in
18393   [\\/]* | ?:[\\/]*)
18394   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18395   ;;
18396   *)
18397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18398 for as_dir in $PATH
18399 do
18400   IFS=$as_save_IFS
18401   test -z "$as_dir" && as_dir=.
18402   for ac_exec_ext in '' $ac_executable_extensions; do
18403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18404     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18406     break 2
18407   fi
18408 done
18409 done
18410 IFS=$as_save_IFS
18411
18412   ;;
18413 esac
18414 fi
18415 MSGFMT=$ac_cv_path_MSGFMT
18416 if test -n "$MSGFMT"; then
18417   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18418 echo "${ECHO_T}$MSGFMT" >&6; }
18419 else
18420   { echo "$as_me:$LINENO: result: no" >&5
18421 echo "${ECHO_T}no" >&6; }
18422 fi
18423
18424
18425   test -n "$MSGFMT" && break
18426 done
18427 test -n "$MSGFMT" || MSGFMT="no"
18428
18429 if test "$MSGFMT" = "no"
18430 then
18431    echo 'msgfmt program not found, disabling NLS !'
18432    USE_NLS=no
18433    USE_INCLUDED_LIBINTL=no
18434 #else
18435
18436     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18437 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18438 if test "${ac_cv_gnu_library_2+set}" = set; then
18439   echo $ECHO_N "(cached) $ECHO_C" >&6
18440 else
18441   cat >conftest.$ac_ext <<_ACEOF
18442 /* confdefs.h.  */
18443 _ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h.  */
18447
18448 #include <features.h>
18449 #ifdef __GNU_LIBRARY__
18450  #if (__GLIBC__ >= 2)
18451   Lucky GNU user
18452  #endif
18453 #endif
18454
18455 _ACEOF
18456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18457   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18458   ac_cv_gnu_library_2=yes
18459 else
18460   ac_cv_gnu_library_2=no
18461 fi
18462 rm -f conftest*
18463
18464
18465
18466 fi
18467 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18468 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18469
18470     GLIBC2="$ac_cv_gnu_library_2"
18471
18472
18473 if test -n "$ac_tool_prefix"; then
18474   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18475 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18478 if test "${ac_cv_prog_RANLIB+set}" = set; then
18479   echo $ECHO_N "(cached) $ECHO_C" >&6
18480 else
18481   if test -n "$RANLIB"; then
18482   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18483 else
18484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18485 for as_dir in $PATH
18486 do
18487   IFS=$as_save_IFS
18488   test -z "$as_dir" && as_dir=.
18489   for ac_exec_ext in '' $ac_executable_extensions; do
18490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18491     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18493     break 2
18494   fi
18495 done
18496 done
18497 IFS=$as_save_IFS
18498
18499 fi
18500 fi
18501 RANLIB=$ac_cv_prog_RANLIB
18502 if test -n "$RANLIB"; then
18503   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18504 echo "${ECHO_T}$RANLIB" >&6; }
18505 else
18506   { echo "$as_me:$LINENO: result: no" >&5
18507 echo "${ECHO_T}no" >&6; }
18508 fi
18509
18510
18511 fi
18512 if test -z "$ac_cv_prog_RANLIB"; then
18513   ac_ct_RANLIB=$RANLIB
18514   # Extract the first word of "ranlib", so it can be a program name with args.
18515 set dummy ranlib; ac_word=$2
18516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18518 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18519   echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521   if test -n "$ac_ct_RANLIB"; then
18522   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18523 else
18524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18525 for as_dir in $PATH
18526 do
18527   IFS=$as_save_IFS
18528   test -z "$as_dir" && as_dir=.
18529   for ac_exec_ext in '' $ac_executable_extensions; do
18530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18531     ac_cv_prog_ac_ct_RANLIB="ranlib"
18532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18533     break 2
18534   fi
18535 done
18536 done
18537 IFS=$as_save_IFS
18538
18539 fi
18540 fi
18541 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18542 if test -n "$ac_ct_RANLIB"; then
18543   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18544 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18545 else
18546   { echo "$as_me:$LINENO: result: no" >&5
18547 echo "${ECHO_T}no" >&6; }
18548 fi
18549
18550   if test "x$ac_ct_RANLIB" = x; then
18551     RANLIB=":"
18552   else
18553     case $cross_compiling:$ac_tool_warned in
18554 yes:)
18555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18556 whose name does not start with the host triplet.  If you think this
18557 configuration is useful to you, please write to autoconf@gnu.org." >&5
18558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18559 whose name does not start with the host triplet.  If you think this
18560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18561 ac_tool_warned=yes ;;
18562 esac
18563     RANLIB=$ac_ct_RANLIB
18564   fi
18565 else
18566   RANLIB="$ac_cv_prog_RANLIB"
18567 fi
18568
18569
18570         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18571 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18572 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18573   echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575   ac_check_lib_save_LIBS=$LIBS
18576 LIBS="-lcposix  $LIBS"
18577 cat >conftest.$ac_ext <<_ACEOF
18578 /* confdefs.h.  */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h.  */
18583
18584 /* Override any GCC internal prototype to avoid an error.
18585    Use char because int might match the return type of a GCC
18586    builtin and then its argument prototype would still apply.  */
18587 #ifdef __cplusplus
18588 extern "C"
18589 #endif
18590 char strerror ();
18591 int
18592 main ()
18593 {
18594 return strerror ();
18595   ;
18596   return 0;
18597 }
18598 _ACEOF
18599 rm -f conftest.$ac_objext conftest$ac_exeext
18600 if { (ac_try="$ac_link"
18601 case "(($ac_try" in
18602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603   *) ac_try_echo=$ac_try;;
18604 esac
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606   (eval "$ac_link") 2>conftest.er1
18607   ac_status=$?
18608   grep -v '^ *+' conftest.er1 >conftest.err
18609   rm -f conftest.er1
18610   cat conftest.err >&5
18611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612   (exit $ac_status); } && {
18613          test -z "$ac_c_werror_flag" ||
18614          test ! -s conftest.err
18615        } && test -s conftest$ac_exeext &&
18616        $as_test_x conftest$ac_exeext; then
18617   ac_cv_lib_cposix_strerror=yes
18618 else
18619   echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18621
18622         ac_cv_lib_cposix_strerror=no
18623 fi
18624
18625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18626       conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18628 fi
18629 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18630 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18631 if test $ac_cv_lib_cposix_strerror = yes; then
18632   LIBS="$LIBS -lcposix"
18633 fi
18634
18635
18636
18637 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18638 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18639 if test "${ac_cv_c_const+set}" = set; then
18640   echo $ECHO_N "(cached) $ECHO_C" >&6
18641 else
18642   cat >conftest.$ac_ext <<_ACEOF
18643 /* confdefs.h.  */
18644 _ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h.  */
18648
18649 int
18650 main ()
18651 {
18652 /* FIXME: Include the comments suggested by Paul. */
18653 #ifndef __cplusplus
18654   /* Ultrix mips cc rejects this.  */
18655   typedef int charset[2];
18656   const charset cs;
18657   /* SunOS 4.1.1 cc rejects this.  */
18658   char const *const *pcpcc;
18659   char **ppc;
18660   /* NEC SVR4.0.2 mips cc rejects this.  */
18661   struct point {int x, y;};
18662   static struct point const zero = {0,0};
18663   /* AIX XL C 1.02.0.0 rejects this.
18664      It does not let you subtract one const X* pointer from another in
18665      an arm of an if-expression whose if-part is not a constant
18666      expression */
18667   const char *g = "string";
18668   pcpcc = &g + (g ? g-g : 0);
18669   /* HPUX 7.0 cc rejects these. */
18670   ++pcpcc;
18671   ppc = (char**) pcpcc;
18672   pcpcc = (char const *const *) ppc;
18673   { /* SCO 3.2v4 cc rejects this.  */
18674     char *t;
18675     char const *s = 0 ? (char *) 0 : (char const *) 0;
18676
18677     *t++ = 0;
18678     if (s) return 0;
18679   }
18680   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18681     int x[] = {25, 17};
18682     const int *foo = &x[0];
18683     ++foo;
18684   }
18685   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18686     typedef const int *iptr;
18687     iptr p = 0;
18688     ++p;
18689   }
18690   { /* AIX XL C 1.02.0.0 rejects this saying
18691        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18692     struct s { int j; const int *ap[3]; };
18693     struct s *b; b->j = 5;
18694   }
18695   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18696     const int foo = 10;
18697     if (!foo) return 0;
18698   }
18699   return !cs[0] && !zero.x;
18700 #endif
18701
18702   ;
18703   return 0;
18704 }
18705 _ACEOF
18706 rm -f conftest.$ac_objext
18707 if { (ac_try="$ac_compile"
18708 case "(($ac_try" in
18709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710   *) ac_try_echo=$ac_try;;
18711 esac
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713   (eval "$ac_compile") 2>conftest.er1
18714   ac_status=$?
18715   grep -v '^ *+' conftest.er1 >conftest.err
18716   rm -f conftest.er1
18717   cat conftest.err >&5
18718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719   (exit $ac_status); } && {
18720          test -z "$ac_c_werror_flag" ||
18721          test ! -s conftest.err
18722        } && test -s conftest.$ac_objext; then
18723   ac_cv_c_const=yes
18724 else
18725   echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18727
18728         ac_cv_c_const=no
18729 fi
18730
18731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18732 fi
18733 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18734 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18735 if test $ac_cv_c_const = no; then
18736
18737 cat >>confdefs.h <<\_ACEOF
18738 #define const
18739 _ACEOF
18740
18741 fi
18742
18743
18744   { echo "$as_me:$LINENO: checking for signed" >&5
18745 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18746 if test "${bh_cv_c_signed+set}" = set; then
18747   echo $ECHO_N "(cached) $ECHO_C" >&6
18748 else
18749   cat >conftest.$ac_ext <<_ACEOF
18750 /* confdefs.h.  */
18751 _ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h.  */
18755
18756 int
18757 main ()
18758 {
18759 signed char x;
18760   ;
18761   return 0;
18762 }
18763 _ACEOF
18764 rm -f conftest.$ac_objext
18765 if { (ac_try="$ac_compile"
18766 case "(($ac_try" in
18767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768   *) ac_try_echo=$ac_try;;
18769 esac
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771   (eval "$ac_compile") 2>conftest.er1
18772   ac_status=$?
18773   grep -v '^ *+' conftest.er1 >conftest.err
18774   rm -f conftest.er1
18775   cat conftest.err >&5
18776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777   (exit $ac_status); } && {
18778          test -z "$ac_c_werror_flag" ||
18779          test ! -s conftest.err
18780        } && test -s conftest.$ac_objext; then
18781   bh_cv_c_signed=yes
18782 else
18783   echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18785
18786         bh_cv_c_signed=no
18787 fi
18788
18789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18790 fi
18791 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18792 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18793   if test $bh_cv_c_signed = no; then
18794
18795 cat >>confdefs.h <<\_ACEOF
18796 #define signed
18797 _ACEOF
18798
18799   fi
18800
18801 { echo "$as_me:$LINENO: checking for inline" >&5
18802 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18803 if test "${ac_cv_c_inline+set}" = set; then
18804   echo $ECHO_N "(cached) $ECHO_C" >&6
18805 else
18806   ac_cv_c_inline=no
18807 for ac_kw in inline __inline__ __inline; do
18808   cat >conftest.$ac_ext <<_ACEOF
18809 /* confdefs.h.  */
18810 _ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h.  */
18814 #ifndef __cplusplus
18815 typedef int foo_t;
18816 static $ac_kw foo_t static_foo () {return 0; }
18817 $ac_kw foo_t foo () {return 0; }
18818 #endif
18819
18820 _ACEOF
18821 rm -f conftest.$ac_objext
18822 if { (ac_try="$ac_compile"
18823 case "(($ac_try" in
18824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825   *) ac_try_echo=$ac_try;;
18826 esac
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828   (eval "$ac_compile") 2>conftest.er1
18829   ac_status=$?
18830   grep -v '^ *+' conftest.er1 >conftest.err
18831   rm -f conftest.er1
18832   cat conftest.err >&5
18833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834   (exit $ac_status); } && {
18835          test -z "$ac_c_werror_flag" ||
18836          test ! -s conftest.err
18837        } && test -s conftest.$ac_objext; then
18838   ac_cv_c_inline=$ac_kw
18839 else
18840   echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18842
18843
18844 fi
18845
18846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18847   test "$ac_cv_c_inline" != no && break
18848 done
18849
18850 fi
18851 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18852 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18853
18854
18855 case $ac_cv_c_inline in
18856   inline | yes) ;;
18857   *)
18858     case $ac_cv_c_inline in
18859       no) ac_val=;;
18860       *) ac_val=$ac_cv_c_inline;;
18861     esac
18862     cat >>confdefs.h <<_ACEOF
18863 #ifndef __cplusplus
18864 #define inline $ac_val
18865 #endif
18866 _ACEOF
18867     ;;
18868 esac
18869
18870 { echo "$as_me:$LINENO: checking for off_t" >&5
18871 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18872 if test "${ac_cv_type_off_t+set}" = set; then
18873   echo $ECHO_N "(cached) $ECHO_C" >&6
18874 else
18875   cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h.  */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h.  */
18881 $ac_includes_default
18882 typedef off_t ac__type_new_;
18883 int
18884 main ()
18885 {
18886 if ((ac__type_new_ *) 0)
18887   return 0;
18888 if (sizeof (ac__type_new_))
18889   return 0;
18890   ;
18891   return 0;
18892 }
18893 _ACEOF
18894 rm -f conftest.$ac_objext
18895 if { (ac_try="$ac_compile"
18896 case "(($ac_try" in
18897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898   *) ac_try_echo=$ac_try;;
18899 esac
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901   (eval "$ac_compile") 2>conftest.er1
18902   ac_status=$?
18903   grep -v '^ *+' conftest.er1 >conftest.err
18904   rm -f conftest.er1
18905   cat conftest.err >&5
18906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907   (exit $ac_status); } && {
18908          test -z "$ac_c_werror_flag" ||
18909          test ! -s conftest.err
18910        } && test -s conftest.$ac_objext; then
18911   ac_cv_type_off_t=yes
18912 else
18913   echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18915
18916         ac_cv_type_off_t=no
18917 fi
18918
18919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18920 fi
18921 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18922 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18923 if test $ac_cv_type_off_t = yes; then
18924   :
18925 else
18926
18927 cat >>confdefs.h <<_ACEOF
18928 #define off_t long int
18929 _ACEOF
18930
18931 fi
18932
18933 { echo "$as_me:$LINENO: checking for size_t" >&5
18934 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18935 if test "${ac_cv_type_size_t+set}" = set; then
18936   echo $ECHO_N "(cached) $ECHO_C" >&6
18937 else
18938   cat >conftest.$ac_ext <<_ACEOF
18939 /* confdefs.h.  */
18940 _ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h.  */
18944 $ac_includes_default
18945 typedef size_t ac__type_new_;
18946 int
18947 main ()
18948 {
18949 if ((ac__type_new_ *) 0)
18950   return 0;
18951 if (sizeof (ac__type_new_))
18952   return 0;
18953   ;
18954   return 0;
18955 }
18956 _ACEOF
18957 rm -f conftest.$ac_objext
18958 if { (ac_try="$ac_compile"
18959 case "(($ac_try" in
18960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961   *) ac_try_echo=$ac_try;;
18962 esac
18963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18964   (eval "$ac_compile") 2>conftest.er1
18965   ac_status=$?
18966   grep -v '^ *+' conftest.er1 >conftest.err
18967   rm -f conftest.er1
18968   cat conftest.err >&5
18969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970   (exit $ac_status); } && {
18971          test -z "$ac_c_werror_flag" ||
18972          test ! -s conftest.err
18973        } && test -s conftest.$ac_objext; then
18974   ac_cv_type_size_t=yes
18975 else
18976   echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18978
18979         ac_cv_type_size_t=no
18980 fi
18981
18982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18983 fi
18984 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18985 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18986 if test $ac_cv_type_size_t = yes; then
18987   :
18988 else
18989
18990 cat >>confdefs.h <<_ACEOF
18991 #define size_t unsigned int
18992 _ACEOF
18993
18994 fi
18995
18996
18997   { echo "$as_me:$LINENO: checking for long long" >&5
18998 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18999 if test "${ac_cv_type_long_long+set}" = set; then
19000   echo $ECHO_N "(cached) $ECHO_C" >&6
19001 else
19002   cat >conftest.$ac_ext <<_ACEOF
19003 /* confdefs.h.  */
19004 _ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h.  */
19008 long long ll = 1LL; int i = 63;
19009 int
19010 main ()
19011 {
19012 long long llmax = (long long) -1;
19013      return ll << i | ll >> i | llmax / ll | llmax % ll;
19014   ;
19015   return 0;
19016 }
19017 _ACEOF
19018 rm -f conftest.$ac_objext conftest$ac_exeext
19019 if { (ac_try="$ac_link"
19020 case "(($ac_try" in
19021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022   *) ac_try_echo=$ac_try;;
19023 esac
19024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025   (eval "$ac_link") 2>conftest.er1
19026   ac_status=$?
19027   grep -v '^ *+' conftest.er1 >conftest.err
19028   rm -f conftest.er1
19029   cat conftest.err >&5
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); } && {
19032          test -z "$ac_c_werror_flag" ||
19033          test ! -s conftest.err
19034        } && test -s conftest$ac_exeext &&
19035        $as_test_x conftest$ac_exeext; then
19036   ac_cv_type_long_long=yes
19037 else
19038   echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19040
19041         ac_cv_type_long_long=no
19042 fi
19043
19044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19045       conftest$ac_exeext conftest.$ac_ext
19046 fi
19047 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19048 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19049   if test $ac_cv_type_long_long = yes; then
19050
19051 cat >>confdefs.h <<\_ACEOF
19052 #define HAVE_LONG_LONG 1
19053 _ACEOF
19054
19055   fi
19056
19057
19058   { echo "$as_me:$LINENO: checking for long double" >&5
19059 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19060 if test "${gt_cv_c_long_double+set}" = set; then
19061   echo $ECHO_N "(cached) $ECHO_C" >&6
19062 else
19063   if test "$GCC" = yes; then
19064        gt_cv_c_long_double=yes
19065      else
19066        cat >conftest.$ac_ext <<_ACEOF
19067 /* confdefs.h.  */
19068 _ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h.  */
19072
19073          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19074          long double foo = 0.0;
19075          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19076          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19077
19078 int
19079 main ()
19080 {
19081
19082   ;
19083   return 0;
19084 }
19085 _ACEOF
19086 rm -f conftest.$ac_objext
19087 if { (ac_try="$ac_compile"
19088 case "(($ac_try" in
19089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090   *) ac_try_echo=$ac_try;;
19091 esac
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093   (eval "$ac_compile") 2>conftest.er1
19094   ac_status=$?
19095   grep -v '^ *+' conftest.er1 >conftest.err
19096   rm -f conftest.er1
19097   cat conftest.err >&5
19098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099   (exit $ac_status); } && {
19100          test -z "$ac_c_werror_flag" ||
19101          test ! -s conftest.err
19102        } && test -s conftest.$ac_objext; then
19103   gt_cv_c_long_double=yes
19104 else
19105   echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19107
19108         gt_cv_c_long_double=no
19109 fi
19110
19111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19112      fi
19113 fi
19114 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19115 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19116   if test $gt_cv_c_long_double = yes; then
19117
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE_LONG_DOUBLE 1
19120 _ACEOF
19121
19122   fi
19123
19124
19125   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19126 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19127 if test "${gt_cv_c_wchar_t+set}" = set; then
19128   echo $ECHO_N "(cached) $ECHO_C" >&6
19129 else
19130   cat >conftest.$ac_ext <<_ACEOF
19131 /* confdefs.h.  */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h.  */
19136 #include <stddef.h>
19137        wchar_t foo = (wchar_t)'\0';
19138 int
19139 main ()
19140 {
19141
19142   ;
19143   return 0;
19144 }
19145 _ACEOF
19146 rm -f conftest.$ac_objext
19147 if { (ac_try="$ac_compile"
19148 case "(($ac_try" in
19149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150   *) ac_try_echo=$ac_try;;
19151 esac
19152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153   (eval "$ac_compile") 2>conftest.er1
19154   ac_status=$?
19155   grep -v '^ *+' conftest.er1 >conftest.err
19156   rm -f conftest.er1
19157   cat conftest.err >&5
19158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159   (exit $ac_status); } && {
19160          test -z "$ac_c_werror_flag" ||
19161          test ! -s conftest.err
19162        } && test -s conftest.$ac_objext; then
19163   gt_cv_c_wchar_t=yes
19164 else
19165   echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19167
19168         gt_cv_c_wchar_t=no
19169 fi
19170
19171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19172 fi
19173 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19174 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19175   if test $gt_cv_c_wchar_t = yes; then
19176
19177 cat >>confdefs.h <<\_ACEOF
19178 #define HAVE_WCHAR_T 1
19179 _ACEOF
19180
19181   fi
19182
19183
19184   { echo "$as_me:$LINENO: checking for wint_t" >&5
19185 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19186 if test "${gt_cv_c_wint_t+set}" = set; then
19187   echo $ECHO_N "(cached) $ECHO_C" >&6
19188 else
19189   cat >conftest.$ac_ext <<_ACEOF
19190 /* confdefs.h.  */
19191 _ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h.  */
19195 #include <wchar.h>
19196        wint_t foo = (wchar_t)'\0';
19197 int
19198 main ()
19199 {
19200
19201   ;
19202   return 0;
19203 }
19204 _ACEOF
19205 rm -f conftest.$ac_objext
19206 if { (ac_try="$ac_compile"
19207 case "(($ac_try" in
19208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209   *) ac_try_echo=$ac_try;;
19210 esac
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212   (eval "$ac_compile") 2>conftest.er1
19213   ac_status=$?
19214   grep -v '^ *+' conftest.er1 >conftest.err
19215   rm -f conftest.er1
19216   cat conftest.err >&5
19217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218   (exit $ac_status); } && {
19219          test -z "$ac_c_werror_flag" ||
19220          test ! -s conftest.err
19221        } && test -s conftest.$ac_objext; then
19222   gt_cv_c_wint_t=yes
19223 else
19224   echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227         gt_cv_c_wint_t=no
19228 fi
19229
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 fi
19232 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19233 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19234   if test $gt_cv_c_wint_t = yes; then
19235
19236 cat >>confdefs.h <<\_ACEOF
19237 #define HAVE_WINT_T 1
19238 _ACEOF
19239
19240   fi
19241
19242
19243   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19244 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19245 if test "${gl_cv_header_inttypes_h+set}" = set; then
19246   echo $ECHO_N "(cached) $ECHO_C" >&6
19247 else
19248   cat >conftest.$ac_ext <<_ACEOF
19249 /* confdefs.h.  */
19250 _ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h.  */
19254 #include <sys/types.h>
19255 #include <inttypes.h>
19256 int
19257 main ()
19258 {
19259 uintmax_t i = (uintmax_t) -1;
19260   ;
19261   return 0;
19262 }
19263 _ACEOF
19264 rm -f conftest.$ac_objext
19265 if { (ac_try="$ac_compile"
19266 case "(($ac_try" in
19267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268   *) ac_try_echo=$ac_try;;
19269 esac
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271   (eval "$ac_compile") 2>conftest.er1
19272   ac_status=$?
19273   grep -v '^ *+' conftest.er1 >conftest.err
19274   rm -f conftest.er1
19275   cat conftest.err >&5
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); } && {
19278          test -z "$ac_c_werror_flag" ||
19279          test ! -s conftest.err
19280        } && test -s conftest.$ac_objext; then
19281   gl_cv_header_inttypes_h=yes
19282 else
19283   echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19285
19286         gl_cv_header_inttypes_h=no
19287 fi
19288
19289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19290 fi
19291 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19292 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19293   if test $gl_cv_header_inttypes_h = yes; then
19294
19295 cat >>confdefs.h <<_ACEOF
19296 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19297 _ACEOF
19298
19299   fi
19300
19301
19302   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19303 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19304 if test "${gl_cv_header_stdint_h+set}" = set; then
19305   echo $ECHO_N "(cached) $ECHO_C" >&6
19306 else
19307   cat >conftest.$ac_ext <<_ACEOF
19308 /* confdefs.h.  */
19309 _ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h.  */
19313 #include <sys/types.h>
19314 #include <stdint.h>
19315 int
19316 main ()
19317 {
19318 uintmax_t i = (uintmax_t) -1;
19319   ;
19320   return 0;
19321 }
19322 _ACEOF
19323 rm -f conftest.$ac_objext
19324 if { (ac_try="$ac_compile"
19325 case "(($ac_try" in
19326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327   *) ac_try_echo=$ac_try;;
19328 esac
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330   (eval "$ac_compile") 2>conftest.er1
19331   ac_status=$?
19332   grep -v '^ *+' conftest.er1 >conftest.err
19333   rm -f conftest.er1
19334   cat conftest.err >&5
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); } && {
19337          test -z "$ac_c_werror_flag" ||
19338          test ! -s conftest.err
19339        } && test -s conftest.$ac_objext; then
19340   gl_cv_header_stdint_h=yes
19341 else
19342   echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19344
19345         gl_cv_header_stdint_h=no
19346 fi
19347
19348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19349 fi
19350 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19351 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19352   if test $gl_cv_header_stdint_h = yes; then
19353
19354 cat >>confdefs.h <<_ACEOF
19355 #define HAVE_STDINT_H_WITH_UINTMAX 1
19356 _ACEOF
19357
19358   fi
19359
19360
19361
19362
19363   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19364 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19365 if test "${gt_cv_c_intmax_t+set}" = set; then
19366   echo $ECHO_N "(cached) $ECHO_C" >&6
19367 else
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 #include <stddef.h>
19376 #include <stdlib.h>
19377 #if HAVE_STDINT_H_WITH_UINTMAX
19378 #include <stdint.h>
19379 #endif
19380 #if HAVE_INTTYPES_H_WITH_UINTMAX
19381 #include <inttypes.h>
19382 #endif
19383
19384 int
19385 main ()
19386 {
19387 intmax_t x = -1;
19388   ;
19389   return 0;
19390 }
19391 _ACEOF
19392 rm -f conftest.$ac_objext
19393 if { (ac_try="$ac_compile"
19394 case "(($ac_try" in
19395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396   *) ac_try_echo=$ac_try;;
19397 esac
19398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19399   (eval "$ac_compile") 2>conftest.er1
19400   ac_status=$?
19401   grep -v '^ *+' conftest.er1 >conftest.err
19402   rm -f conftest.er1
19403   cat conftest.err >&5
19404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405   (exit $ac_status); } && {
19406          test -z "$ac_c_werror_flag" ||
19407          test ! -s conftest.err
19408        } && test -s conftest.$ac_objext; then
19409   gt_cv_c_intmax_t=yes
19410 else
19411   echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19413
19414         gt_cv_c_intmax_t=no
19415 fi
19416
19417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19418 fi
19419 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19420 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19421   if test $gt_cv_c_intmax_t = yes; then
19422
19423 cat >>confdefs.h <<\_ACEOF
19424 #define HAVE_INTMAX_T 1
19425 _ACEOF
19426
19427   fi
19428
19429
19430
19431   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19432 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19433 if test "${gt_cv_func_printf_posix+set}" = set; then
19434   echo $ECHO_N "(cached) $ECHO_C" >&6
19435 else
19436
19437       if test "$cross_compiling" = yes; then
19438
19439         cat >conftest.$ac_ext <<_ACEOF
19440 /* confdefs.h.  */
19441 _ACEOF
19442 cat confdefs.h >>conftest.$ac_ext
19443 cat >>conftest.$ac_ext <<_ACEOF
19444 /* end confdefs.h.  */
19445
19446 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19447   notposix
19448 #endif
19449
19450 _ACEOF
19451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19452   $EGREP "notposix" >/dev/null 2>&1; then
19453   gt_cv_func_printf_posix="guessing no"
19454 else
19455   gt_cv_func_printf_posix="guessing yes"
19456 fi
19457 rm -f conftest*
19458
19459
19460 else
19461   cat >conftest.$ac_ext <<_ACEOF
19462 /* confdefs.h.  */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h.  */
19467
19468 #include <stdio.h>
19469 #include <string.h>
19470 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19471    dollar expansion (possibly an autoconf bug).  */
19472 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19473 static char buf[100];
19474 int main ()
19475 {
19476   sprintf (buf, format, 33, 55);
19477   return (strcmp (buf, "55 33") != 0);
19478 }
19479 _ACEOF
19480 rm -f conftest$ac_exeext
19481 if { (ac_try="$ac_link"
19482 case "(($ac_try" in
19483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484   *) ac_try_echo=$ac_try;;
19485 esac
19486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19487   (eval "$ac_link") 2>&5
19488   ac_status=$?
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19491   { (case "(($ac_try" in
19492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493   *) ac_try_echo=$ac_try;;
19494 esac
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496   (eval "$ac_try") 2>&5
19497   ac_status=$?
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); }; }; then
19500   gt_cv_func_printf_posix=yes
19501 else
19502   echo "$as_me: program exited with status $ac_status" >&5
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19505
19506 ( exit $ac_status )
19507 gt_cv_func_printf_posix=no
19508 fi
19509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19510 fi
19511
19512
19513
19514 fi
19515 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19516 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19517   case $gt_cv_func_printf_posix in
19518     *yes)
19519
19520 cat >>confdefs.h <<\_ACEOF
19521 #define HAVE_POSIX_PRINTF 1
19522 _ACEOF
19523
19524       ;;
19525   esac
19526
19527 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19528 # for constant arguments.  Useless!
19529 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19530 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19531 if test "${ac_cv_working_alloca_h+set}" = set; then
19532   echo $ECHO_N "(cached) $ECHO_C" >&6
19533 else
19534   cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h.  */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h.  */
19540 #include <alloca.h>
19541 int
19542 main ()
19543 {
19544 char *p = (char *) alloca (2 * sizeof (int));
19545                           if (p) return 0;
19546   ;
19547   return 0;
19548 }
19549 _ACEOF
19550 rm -f conftest.$ac_objext conftest$ac_exeext
19551 if { (ac_try="$ac_link"
19552 case "(($ac_try" in
19553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554   *) ac_try_echo=$ac_try;;
19555 esac
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557   (eval "$ac_link") 2>conftest.er1
19558   ac_status=$?
19559   grep -v '^ *+' conftest.er1 >conftest.err
19560   rm -f conftest.er1
19561   cat conftest.err >&5
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); } && {
19564          test -z "$ac_c_werror_flag" ||
19565          test ! -s conftest.err
19566        } && test -s conftest$ac_exeext &&
19567        $as_test_x conftest$ac_exeext; then
19568   ac_cv_working_alloca_h=yes
19569 else
19570   echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19572
19573         ac_cv_working_alloca_h=no
19574 fi
19575
19576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19577       conftest$ac_exeext conftest.$ac_ext
19578 fi
19579 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19580 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19581 if test $ac_cv_working_alloca_h = yes; then
19582
19583 cat >>confdefs.h <<\_ACEOF
19584 #define HAVE_ALLOCA_H 1
19585 _ACEOF
19586
19587 fi
19588
19589 { echo "$as_me:$LINENO: checking for alloca" >&5
19590 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19591 if test "${ac_cv_func_alloca_works+set}" = set; then
19592   echo $ECHO_N "(cached) $ECHO_C" >&6
19593 else
19594   cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h.  */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h.  */
19600 #ifdef __GNUC__
19601 # define alloca __builtin_alloca
19602 #else
19603 # ifdef _MSC_VER
19604 #  include <malloc.h>
19605 #  define alloca _alloca
19606 # else
19607 #  ifdef HAVE_ALLOCA_H
19608 #   include <alloca.h>
19609 #  else
19610 #   ifdef _AIX
19611  #pragma alloca
19612 #   else
19613 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19614 char *alloca ();
19615 #    endif
19616 #   endif
19617 #  endif
19618 # endif
19619 #endif
19620
19621 int
19622 main ()
19623 {
19624 char *p = (char *) alloca (1);
19625                                     if (p) return 0;
19626   ;
19627   return 0;
19628 }
19629 _ACEOF
19630 rm -f conftest.$ac_objext conftest$ac_exeext
19631 if { (ac_try="$ac_link"
19632 case "(($ac_try" in
19633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634   *) ac_try_echo=$ac_try;;
19635 esac
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637   (eval "$ac_link") 2>conftest.er1
19638   ac_status=$?
19639   grep -v '^ *+' conftest.er1 >conftest.err
19640   rm -f conftest.er1
19641   cat conftest.err >&5
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); } && {
19644          test -z "$ac_c_werror_flag" ||
19645          test ! -s conftest.err
19646        } && test -s conftest$ac_exeext &&
19647        $as_test_x conftest$ac_exeext; then
19648   ac_cv_func_alloca_works=yes
19649 else
19650   echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653         ac_cv_func_alloca_works=no
19654 fi
19655
19656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19657       conftest$ac_exeext conftest.$ac_ext
19658 fi
19659 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19660 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19661
19662 if test $ac_cv_func_alloca_works = yes; then
19663
19664 cat >>confdefs.h <<\_ACEOF
19665 #define HAVE_ALLOCA 1
19666 _ACEOF
19667
19668 else
19669   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19670 # that cause trouble.  Some versions do not even contain alloca or
19671 # contain a buggy version.  If you still want to use their alloca,
19672 # use ar to extract alloca.o from them instead of compiling alloca.c.
19673
19674 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19675
19676 cat >>confdefs.h <<\_ACEOF
19677 #define C_ALLOCA 1
19678 _ACEOF
19679
19680
19681 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19682 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19683 if test "${ac_cv_os_cray+set}" = set; then
19684   echo $ECHO_N "(cached) $ECHO_C" >&6
19685 else
19686   cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h.  */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h.  */
19692 #if defined CRAY && ! defined CRAY2
19693 webecray
19694 #else
19695 wenotbecray
19696 #endif
19697
19698 _ACEOF
19699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19700   $EGREP "webecray" >/dev/null 2>&1; then
19701   ac_cv_os_cray=yes
19702 else
19703   ac_cv_os_cray=no
19704 fi
19705 rm -f conftest*
19706
19707 fi
19708 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19709 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19710 if test $ac_cv_os_cray = yes; then
19711   for ac_func in _getb67 GETB67 getb67; do
19712     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19713 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19716   echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19718   cat >conftest.$ac_ext <<_ACEOF
19719 /* confdefs.h.  */
19720 _ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h.  */
19724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19726 #define $ac_func innocuous_$ac_func
19727
19728 /* System header to define __stub macros and hopefully few prototypes,
19729     which can conflict with char $ac_func (); below.
19730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19731     <limits.h> exists even on freestanding compilers.  */
19732
19733 #ifdef __STDC__
19734 # include <limits.h>
19735 #else
19736 # include <assert.h>
19737 #endif
19738
19739 #undef $ac_func
19740
19741 /* Override any GCC internal prototype to avoid an error.
19742    Use char because int might match the return type of a GCC
19743    builtin and then its argument prototype would still apply.  */
19744 #ifdef __cplusplus
19745 extern "C"
19746 #endif
19747 char $ac_func ();
19748 /* The GNU C library defines this for functions which it implements
19749     to always fail with ENOSYS.  Some functions are actually named
19750     something starting with __ and the normal name is an alias.  */
19751 #if defined __stub_$ac_func || defined __stub___$ac_func
19752 choke me
19753 #endif
19754
19755 int
19756 main ()
19757 {
19758 return $ac_func ();
19759   ;
19760   return 0;
19761 }
19762 _ACEOF
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (ac_try="$ac_link"
19765 case "(($ac_try" in
19766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767   *) ac_try_echo=$ac_try;;
19768 esac
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770   (eval "$ac_link") 2>conftest.er1
19771   ac_status=$?
19772   grep -v '^ *+' conftest.er1 >conftest.err
19773   rm -f conftest.er1
19774   cat conftest.err >&5
19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); } && {
19777          test -z "$ac_c_werror_flag" ||
19778          test ! -s conftest.err
19779        } && test -s conftest$ac_exeext &&
19780        $as_test_x conftest$ac_exeext; then
19781   eval "$as_ac_var=yes"
19782 else
19783   echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19785
19786         eval "$as_ac_var=no"
19787 fi
19788
19789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19790       conftest$ac_exeext conftest.$ac_ext
19791 fi
19792 ac_res=`eval echo '${'$as_ac_var'}'`
19793                { echo "$as_me:$LINENO: result: $ac_res" >&5
19794 echo "${ECHO_T}$ac_res" >&6; }
19795 if test `eval echo '${'$as_ac_var'}'` = yes; then
19796
19797 cat >>confdefs.h <<_ACEOF
19798 #define CRAY_STACKSEG_END $ac_func
19799 _ACEOF
19800
19801     break
19802 fi
19803
19804   done
19805 fi
19806
19807 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19808 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19809 if test "${ac_cv_c_stack_direction+set}" = set; then
19810   echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812   if test "$cross_compiling" = yes; then
19813   ac_cv_c_stack_direction=0
19814 else
19815   cat >conftest.$ac_ext <<_ACEOF
19816 /* confdefs.h.  */
19817 _ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h.  */
19821 $ac_includes_default
19822 int
19823 find_stack_direction ()
19824 {
19825   static char *addr = 0;
19826   auto char dummy;
19827   if (addr == 0)
19828     {
19829       addr = &dummy;
19830       return find_stack_direction ();
19831     }
19832   else
19833     return (&dummy > addr) ? 1 : -1;
19834 }
19835
19836 int
19837 main ()
19838 {
19839   return find_stack_direction () < 0;
19840 }
19841 _ACEOF
19842 rm -f conftest$ac_exeext
19843 if { (ac_try="$ac_link"
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_link") 2>&5
19850   ac_status=$?
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19853   { (case "(($ac_try" in
19854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855   *) ac_try_echo=$ac_try;;
19856 esac
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858   (eval "$ac_try") 2>&5
19859   ac_status=$?
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); }; }; then
19862   ac_cv_c_stack_direction=1
19863 else
19864   echo "$as_me: program exited with status $ac_status" >&5
19865 echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19867
19868 ( exit $ac_status )
19869 ac_cv_c_stack_direction=-1
19870 fi
19871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19872 fi
19873
19874
19875 fi
19876 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19877 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19878
19879 cat >>confdefs.h <<_ACEOF
19880 #define STACK_DIRECTION $ac_cv_c_stack_direction
19881 _ACEOF
19882
19883
19884 fi
19885
19886
19887
19888 for ac_header in stdlib.h unistd.h
19889 do
19890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19892   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19895   echo $ECHO_N "(cached) $ECHO_C" >&6
19896 fi
19897 ac_res=`eval echo '${'$as_ac_Header'}'`
19898                { echo "$as_me:$LINENO: result: $ac_res" >&5
19899 echo "${ECHO_T}$ac_res" >&6; }
19900 else
19901   # Is the header compilable?
19902 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19904 cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h.  */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h.  */
19910 $ac_includes_default
19911 #include <$ac_header>
19912 _ACEOF
19913 rm -f conftest.$ac_objext
19914 if { (ac_try="$ac_compile"
19915 case "(($ac_try" in
19916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917   *) ac_try_echo=$ac_try;;
19918 esac
19919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19920   (eval "$ac_compile") 2>conftest.er1
19921   ac_status=$?
19922   grep -v '^ *+' conftest.er1 >conftest.err
19923   rm -f conftest.er1
19924   cat conftest.err >&5
19925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926   (exit $ac_status); } && {
19927          test -z "$ac_c_werror_flag" ||
19928          test ! -s conftest.err
19929        } && test -s conftest.$ac_objext; then
19930   ac_header_compiler=yes
19931 else
19932   echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19934
19935         ac_header_compiler=no
19936 fi
19937
19938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19940 echo "${ECHO_T}$ac_header_compiler" >&6; }
19941
19942 # Is the header present?
19943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19945 cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h.  */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h.  */
19951 #include <$ac_header>
19952 _ACEOF
19953 if { (ac_try="$ac_cpp conftest.$ac_ext"
19954 case "(($ac_try" in
19955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19956   *) ac_try_echo=$ac_try;;
19957 esac
19958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19959   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19960   ac_status=$?
19961   grep -v '^ *+' conftest.er1 >conftest.err
19962   rm -f conftest.er1
19963   cat conftest.err >&5
19964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965   (exit $ac_status); } >/dev/null && {
19966          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19967          test ! -s conftest.err
19968        }; then
19969   ac_header_preproc=yes
19970 else
19971   echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19973
19974   ac_header_preproc=no
19975 fi
19976
19977 rm -f conftest.err conftest.$ac_ext
19978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19979 echo "${ECHO_T}$ac_header_preproc" >&6; }
19980
19981 # So?  What about this header?
19982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19983   yes:no: )
19984     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19988     ac_header_preproc=yes
19989     ;;
19990   no:yes:* )
19991     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19993     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19994 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19995     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19997     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19998 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20001     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20003
20004     ;;
20005 esac
20006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20009   echo $ECHO_N "(cached) $ECHO_C" >&6
20010 else
20011   eval "$as_ac_Header=\$ac_header_preproc"
20012 fi
20013 ac_res=`eval echo '${'$as_ac_Header'}'`
20014                { echo "$as_me:$LINENO: result: $ac_res" >&5
20015 echo "${ECHO_T}$ac_res" >&6; }
20016
20017 fi
20018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20019   cat >>confdefs.h <<_ACEOF
20020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20021 _ACEOF
20022
20023 fi
20024
20025 done
20026
20027
20028 for ac_func in getpagesize
20029 do
20030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20034   echo $ECHO_N "(cached) $ECHO_C" >&6
20035 else
20036   cat >conftest.$ac_ext <<_ACEOF
20037 /* confdefs.h.  */
20038 _ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h.  */
20042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20044 #define $ac_func innocuous_$ac_func
20045
20046 /* System header to define __stub macros and hopefully few prototypes,
20047     which can conflict with char $ac_func (); below.
20048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20049     <limits.h> exists even on freestanding compilers.  */
20050
20051 #ifdef __STDC__
20052 # include <limits.h>
20053 #else
20054 # include <assert.h>
20055 #endif
20056
20057 #undef $ac_func
20058
20059 /* Override any GCC internal prototype to avoid an error.
20060    Use char because int might match the return type of a GCC
20061    builtin and then its argument prototype would still apply.  */
20062 #ifdef __cplusplus
20063 extern "C"
20064 #endif
20065 char $ac_func ();
20066 /* The GNU C library defines this for functions which it implements
20067     to always fail with ENOSYS.  Some functions are actually named
20068     something starting with __ and the normal name is an alias.  */
20069 #if defined __stub_$ac_func || defined __stub___$ac_func
20070 choke me
20071 #endif
20072
20073 int
20074 main ()
20075 {
20076 return $ac_func ();
20077   ;
20078   return 0;
20079 }
20080 _ACEOF
20081 rm -f conftest.$ac_objext conftest$ac_exeext
20082 if { (ac_try="$ac_link"
20083 case "(($ac_try" in
20084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085   *) ac_try_echo=$ac_try;;
20086 esac
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088   (eval "$ac_link") 2>conftest.er1
20089   ac_status=$?
20090   grep -v '^ *+' conftest.er1 >conftest.err
20091   rm -f conftest.er1
20092   cat conftest.err >&5
20093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094   (exit $ac_status); } && {
20095          test -z "$ac_c_werror_flag" ||
20096          test ! -s conftest.err
20097        } && test -s conftest$ac_exeext &&
20098        $as_test_x conftest$ac_exeext; then
20099   eval "$as_ac_var=yes"
20100 else
20101   echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20103
20104         eval "$as_ac_var=no"
20105 fi
20106
20107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20108       conftest$ac_exeext conftest.$ac_ext
20109 fi
20110 ac_res=`eval echo '${'$as_ac_var'}'`
20111                { echo "$as_me:$LINENO: result: $ac_res" >&5
20112 echo "${ECHO_T}$ac_res" >&6; }
20113 if test `eval echo '${'$as_ac_var'}'` = yes; then
20114   cat >>confdefs.h <<_ACEOF
20115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20116 _ACEOF
20117
20118 fi
20119 done
20120
20121 { echo "$as_me:$LINENO: checking for working mmap" >&5
20122 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20123 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20124   echo $ECHO_N "(cached) $ECHO_C" >&6
20125 else
20126   if test "$cross_compiling" = yes; then
20127   ac_cv_func_mmap_fixed_mapped=no
20128 else
20129   cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h.  */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h.  */
20135 $ac_includes_default
20136 /* malloc might have been renamed as rpl_malloc. */
20137 #undef malloc
20138
20139 /* Thanks to Mike Haertel and Jim Avera for this test.
20140    Here is a matrix of mmap possibilities:
20141         mmap private not fixed
20142         mmap private fixed at somewhere currently unmapped
20143         mmap private fixed at somewhere already mapped
20144         mmap shared not fixed
20145         mmap shared fixed at somewhere currently unmapped
20146         mmap shared fixed at somewhere already mapped
20147    For private mappings, we should verify that changes cannot be read()
20148    back from the file, nor mmap's back from the file at a different
20149    address.  (There have been systems where private was not correctly
20150    implemented like the infamous i386 svr4.0, and systems where the
20151    VM page cache was not coherent with the file system buffer cache
20152    like early versions of FreeBSD and possibly contemporary NetBSD.)
20153    For shared mappings, we should conversely verify that changes get
20154    propagated back to all the places they're supposed to be.
20155
20156    Grep wants private fixed already mapped.
20157    The main things grep needs to know about mmap are:
20158    * does it exist and is it safe to write into the mmap'd area
20159    * how to use it (BSD variants)  */
20160
20161 #include <fcntl.h>
20162 #include <sys/mman.h>
20163
20164 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20165 char *malloc ();
20166 #endif
20167
20168 /* This mess was copied from the GNU getpagesize.h.  */
20169 #ifndef HAVE_GETPAGESIZE
20170 /* Assume that all systems that can run configure have sys/param.h.  */
20171 # ifndef HAVE_SYS_PARAM_H
20172 #  define HAVE_SYS_PARAM_H 1
20173 # endif
20174
20175 # ifdef _SC_PAGESIZE
20176 #  define getpagesize() sysconf(_SC_PAGESIZE)
20177 # else /* no _SC_PAGESIZE */
20178 #  ifdef HAVE_SYS_PARAM_H
20179 #   include <sys/param.h>
20180 #   ifdef EXEC_PAGESIZE
20181 #    define getpagesize() EXEC_PAGESIZE
20182 #   else /* no EXEC_PAGESIZE */
20183 #    ifdef NBPG
20184 #     define getpagesize() NBPG * CLSIZE
20185 #     ifndef CLSIZE
20186 #      define CLSIZE 1
20187 #     endif /* no CLSIZE */
20188 #    else /* no NBPG */
20189 #     ifdef NBPC
20190 #      define getpagesize() NBPC
20191 #     else /* no NBPC */
20192 #      ifdef PAGESIZE
20193 #       define getpagesize() PAGESIZE
20194 #      endif /* PAGESIZE */
20195 #     endif /* no NBPC */
20196 #    endif /* no NBPG */
20197 #   endif /* no EXEC_PAGESIZE */
20198 #  else /* no HAVE_SYS_PARAM_H */
20199 #   define getpagesize() 8192   /* punt totally */
20200 #  endif /* no HAVE_SYS_PARAM_H */
20201 # endif /* no _SC_PAGESIZE */
20202
20203 #endif /* no HAVE_GETPAGESIZE */
20204
20205 int
20206 main ()
20207 {
20208   char *data, *data2, *data3;
20209   int i, pagesize;
20210   int fd;
20211
20212   pagesize = getpagesize ();
20213
20214   /* First, make a file with some known garbage in it. */
20215   data = (char *) malloc (pagesize);
20216   if (!data)
20217     return 1;
20218   for (i = 0; i < pagesize; ++i)
20219     *(data + i) = rand ();
20220   umask (0);
20221   fd = creat ("conftest.mmap", 0600);
20222   if (fd < 0)
20223     return 1;
20224   if (write (fd, data, pagesize) != pagesize)
20225     return 1;
20226   close (fd);
20227
20228   /* Next, try to mmap the file at a fixed address which already has
20229      something else allocated at it.  If we can, also make sure that
20230      we see the same garbage.  */
20231   fd = open ("conftest.mmap", O_RDWR);
20232   if (fd < 0)
20233     return 1;
20234   data2 = (char *) malloc (2 * pagesize);
20235   if (!data2)
20236     return 1;
20237   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20238   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20239                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20240     return 1;
20241   for (i = 0; i < pagesize; ++i)
20242     if (*(data + i) != *(data2 + i))
20243       return 1;
20244
20245   /* Finally, make sure that changes to the mapped area do not
20246      percolate back to the file as seen by read().  (This is a bug on
20247      some variants of i386 svr4.0.)  */
20248   for (i = 0; i < pagesize; ++i)
20249     *(data2 + i) = *(data2 + i) + 1;
20250   data3 = (char *) malloc (pagesize);
20251   if (!data3)
20252     return 1;
20253   if (read (fd, data3, pagesize) != pagesize)
20254     return 1;
20255   for (i = 0; i < pagesize; ++i)
20256     if (*(data + i) != *(data3 + i))
20257       return 1;
20258   close (fd);
20259   return 0;
20260 }
20261 _ACEOF
20262 rm -f conftest$ac_exeext
20263 if { (ac_try="$ac_link"
20264 case "(($ac_try" in
20265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266   *) ac_try_echo=$ac_try;;
20267 esac
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269   (eval "$ac_link") 2>&5
20270   ac_status=$?
20271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20273   { (case "(($ac_try" in
20274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275   *) ac_try_echo=$ac_try;;
20276 esac
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278   (eval "$ac_try") 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); }; }; then
20282   ac_cv_func_mmap_fixed_mapped=yes
20283 else
20284   echo "$as_me: program exited with status $ac_status" >&5
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20287
20288 ( exit $ac_status )
20289 ac_cv_func_mmap_fixed_mapped=no
20290 fi
20291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20292 fi
20293
20294
20295 fi
20296 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20297 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20298 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20299
20300 cat >>confdefs.h <<\_ACEOF
20301 #define HAVE_MMAP 1
20302 _ACEOF
20303
20304 fi
20305 rm -f conftest.mmap
20306
20307
20308     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20309 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20310 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20311   echo $ECHO_N "(cached) $ECHO_C" >&6
20312 else
20313   cat >conftest.$ac_ext <<_ACEOF
20314 /* confdefs.h.  */
20315 _ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h.  */
20319
20320 #include <features.h>
20321 #ifdef __GNU_LIBRARY__
20322  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20323   Lucky GNU user
20324  #endif
20325 #endif
20326
20327 _ACEOF
20328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20329   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20330   ac_cv_gnu_library_2_1=yes
20331 else
20332   ac_cv_gnu_library_2_1=no
20333 fi
20334 rm -f conftest*
20335
20336
20337
20338 fi
20339 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20340 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20341
20342     GLIBC21="$ac_cv_gnu_library_2_1"
20343
20344
20345
20346
20347   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20348 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20349 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20350   echo $ECHO_N "(cached) $ECHO_C" >&6
20351 else
20352
20353       if test "$cross_compiling" = yes; then
20354
20355           # Guess based on the CPU.
20356           case "$host_cpu" in
20357             alpha* | i3456786 | m68k | s390*)
20358               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20359             *)
20360               gt_cv_int_divbyzero_sigfpe="guessing no";;
20361           esac
20362
20363 else
20364   cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h.  */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h.  */
20370
20371 #include <stdlib.h>
20372 #include <signal.h>
20373
20374 static void
20375 #ifdef __cplusplus
20376 sigfpe_handler (int sig)
20377 #else
20378 sigfpe_handler (sig) int sig;
20379 #endif
20380 {
20381   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20382   exit (sig != SIGFPE);
20383 }
20384
20385 int x = 1;
20386 int y = 0;
20387 int z;
20388 int nan;
20389
20390 int main ()
20391 {
20392   signal (SIGFPE, sigfpe_handler);
20393 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20394 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20395   signal (SIGTRAP, sigfpe_handler);
20396 #endif
20397 /* Linux/SPARC yields signal SIGILL.  */
20398 #if defined (__sparc__) && defined (__linux__)
20399   signal (SIGILL, sigfpe_handler);
20400 #endif
20401
20402   z = x / y;
20403   nan = y / y;
20404   exit (1);
20405 }
20406
20407 _ACEOF
20408 rm -f conftest$ac_exeext
20409 if { (ac_try="$ac_link"
20410 case "(($ac_try" in
20411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412   *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415   (eval "$ac_link") 2>&5
20416   ac_status=$?
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20419   { (case "(($ac_try" in
20420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421   *) ac_try_echo=$ac_try;;
20422 esac
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424   (eval "$ac_try") 2>&5
20425   ac_status=$?
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); }; }; then
20428   gt_cv_int_divbyzero_sigfpe=yes
20429 else
20430   echo "$as_me: program exited with status $ac_status" >&5
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20433
20434 ( exit $ac_status )
20435 gt_cv_int_divbyzero_sigfpe=no
20436 fi
20437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20438 fi
20439
20440
20441
20442 fi
20443 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20444 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20445   case "$gt_cv_int_divbyzero_sigfpe" in
20446     *yes) value=1;;
20447     *) value=0;;
20448   esac
20449
20450 cat >>confdefs.h <<_ACEOF
20451 #define INTDIV0_RAISES_SIGFPE $value
20452 _ACEOF
20453
20454
20455
20456   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20457 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20458 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20459   echo $ECHO_N "(cached) $ECHO_C" >&6
20460 else
20461   cat >conftest.$ac_ext <<_ACEOF
20462 /* confdefs.h.  */
20463 _ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h.  */
20467 unsigned long long ull = 1ULL; int i = 63;
20468 int
20469 main ()
20470 {
20471 unsigned long long ullmax = (unsigned long long) -1;
20472      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20473   ;
20474   return 0;
20475 }
20476 _ACEOF
20477 rm -f conftest.$ac_objext conftest$ac_exeext
20478 if { (ac_try="$ac_link"
20479 case "(($ac_try" in
20480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481   *) ac_try_echo=$ac_try;;
20482 esac
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484   (eval "$ac_link") 2>conftest.er1
20485   ac_status=$?
20486   grep -v '^ *+' conftest.er1 >conftest.err
20487   rm -f conftest.er1
20488   cat conftest.err >&5
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); } && {
20491          test -z "$ac_c_werror_flag" ||
20492          test ! -s conftest.err
20493        } && test -s conftest$ac_exeext &&
20494        $as_test_x conftest$ac_exeext; then
20495   ac_cv_type_unsigned_long_long=yes
20496 else
20497   echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20499
20500         ac_cv_type_unsigned_long_long=no
20501 fi
20502
20503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20504       conftest$ac_exeext conftest.$ac_ext
20505 fi
20506 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20507 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20508   if test $ac_cv_type_unsigned_long_long = yes; then
20509
20510 cat >>confdefs.h <<\_ACEOF
20511 #define HAVE_UNSIGNED_LONG_LONG 1
20512 _ACEOF
20513
20514   fi
20515
20516
20517
20518
20519   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20520
20521     test $ac_cv_type_unsigned_long_long = yes \
20522       && ac_type='unsigned long long' \
20523       || ac_type='unsigned long'
20524
20525 cat >>confdefs.h <<_ACEOF
20526 #define uintmax_t $ac_type
20527 _ACEOF
20528
20529   else
20530
20531 cat >>confdefs.h <<\_ACEOF
20532 #define HAVE_UINTMAX_T 1
20533 _ACEOF
20534
20535   fi
20536
20537
20538   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20539 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20540 if test "${gt_cv_header_inttypes_h+set}" = set; then
20541   echo $ECHO_N "(cached) $ECHO_C" >&6
20542 else
20543
20544     cat >conftest.$ac_ext <<_ACEOF
20545 /* confdefs.h.  */
20546 _ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h.  */
20550 #include <sys/types.h>
20551 #include <inttypes.h>
20552 int
20553 main ()
20554 {
20555
20556   ;
20557   return 0;
20558 }
20559 _ACEOF
20560 rm -f conftest.$ac_objext
20561 if { (ac_try="$ac_compile"
20562 case "(($ac_try" in
20563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564   *) ac_try_echo=$ac_try;;
20565 esac
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567   (eval "$ac_compile") 2>conftest.er1
20568   ac_status=$?
20569   grep -v '^ *+' conftest.er1 >conftest.err
20570   rm -f conftest.er1
20571   cat conftest.err >&5
20572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573   (exit $ac_status); } && {
20574          test -z "$ac_c_werror_flag" ||
20575          test ! -s conftest.err
20576        } && test -s conftest.$ac_objext; then
20577   gt_cv_header_inttypes_h=yes
20578 else
20579   echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20581
20582         gt_cv_header_inttypes_h=no
20583 fi
20584
20585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20586
20587 fi
20588 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20589 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20590   if test $gt_cv_header_inttypes_h = yes; then
20591
20592 cat >>confdefs.h <<_ACEOF
20593 #define HAVE_INTTYPES_H 1
20594 _ACEOF
20595
20596   fi
20597
20598
20599
20600   if test $gt_cv_header_inttypes_h = yes; then
20601     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20602 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20603 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20604   echo $ECHO_N "(cached) $ECHO_C" >&6
20605 else
20606
20607         cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h.  */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h.  */
20613 #include <inttypes.h>
20614 #ifdef PRId32
20615 char *p = PRId32;
20616 #endif
20617
20618 int
20619 main ()
20620 {
20621
20622   ;
20623   return 0;
20624 }
20625 _ACEOF
20626 rm -f conftest.$ac_objext
20627 if { (ac_try="$ac_compile"
20628 case "(($ac_try" in
20629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630   *) ac_try_echo=$ac_try;;
20631 esac
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633   (eval "$ac_compile") 2>conftest.er1
20634   ac_status=$?
20635   grep -v '^ *+' conftest.er1 >conftest.err
20636   rm -f conftest.er1
20637   cat conftest.err >&5
20638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639   (exit $ac_status); } && {
20640          test -z "$ac_c_werror_flag" ||
20641          test ! -s conftest.err
20642        } && test -s conftest.$ac_objext; then
20643   gt_cv_inttypes_pri_broken=no
20644 else
20645   echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20647
20648         gt_cv_inttypes_pri_broken=yes
20649 fi
20650
20651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20652
20653 fi
20654 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20655 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20656   fi
20657   if test "$gt_cv_inttypes_pri_broken" = yes; then
20658
20659 cat >>confdefs.h <<_ACEOF
20660 #define PRI_MACROS_BROKEN 1
20661 _ACEOF
20662
20663   fi
20664
20665
20666
20667 for ac_header in stdint.h
20668 do
20669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20671   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20674   echo $ECHO_N "(cached) $ECHO_C" >&6
20675 fi
20676 ac_res=`eval echo '${'$as_ac_Header'}'`
20677                { echo "$as_me:$LINENO: result: $ac_res" >&5
20678 echo "${ECHO_T}$ac_res" >&6; }
20679 else
20680   # Is the header compilable?
20681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20683 cat >conftest.$ac_ext <<_ACEOF
20684 /* confdefs.h.  */
20685 _ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h.  */
20689 $ac_includes_default
20690 #include <$ac_header>
20691 _ACEOF
20692 rm -f conftest.$ac_objext
20693 if { (ac_try="$ac_compile"
20694 case "(($ac_try" in
20695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696   *) ac_try_echo=$ac_try;;
20697 esac
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699   (eval "$ac_compile") 2>conftest.er1
20700   ac_status=$?
20701   grep -v '^ *+' conftest.er1 >conftest.err
20702   rm -f conftest.er1
20703   cat conftest.err >&5
20704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705   (exit $ac_status); } && {
20706          test -z "$ac_c_werror_flag" ||
20707          test ! -s conftest.err
20708        } && test -s conftest.$ac_objext; then
20709   ac_header_compiler=yes
20710 else
20711   echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20713
20714         ac_header_compiler=no
20715 fi
20716
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20719 echo "${ECHO_T}$ac_header_compiler" >&6; }
20720
20721 # Is the header present?
20722 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h.  */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h.  */
20730 #include <$ac_header>
20731 _ACEOF
20732 if { (ac_try="$ac_cpp conftest.$ac_ext"
20733 case "(($ac_try" in
20734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735   *) ac_try_echo=$ac_try;;
20736 esac
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20739   ac_status=$?
20740   grep -v '^ *+' conftest.er1 >conftest.err
20741   rm -f conftest.er1
20742   cat conftest.err >&5
20743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744   (exit $ac_status); } >/dev/null && {
20745          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20746          test ! -s conftest.err
20747        }; then
20748   ac_header_preproc=yes
20749 else
20750   echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20752
20753   ac_header_preproc=no
20754 fi
20755
20756 rm -f conftest.err conftest.$ac_ext
20757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20758 echo "${ECHO_T}$ac_header_preproc" >&6; }
20759
20760 # So?  What about this header?
20761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20762   yes:no: )
20763     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20767     ac_header_preproc=yes
20768     ;;
20769   no:yes:* )
20770     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20772     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20773 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20774     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20776     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20777 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20780     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20782
20783     ;;
20784 esac
20785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20788   echo $ECHO_N "(cached) $ECHO_C" >&6
20789 else
20790   eval "$as_ac_Header=\$ac_header_preproc"
20791 fi
20792 ac_res=`eval echo '${'$as_ac_Header'}'`
20793                { echo "$as_me:$LINENO: result: $ac_res" >&5
20794 echo "${ECHO_T}$ac_res" >&6; }
20795
20796 fi
20797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20798   cat >>confdefs.h <<_ACEOF
20799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20800 _ACEOF
20801
20802 fi
20803
20804 done
20805
20806     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20807 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20808   result=
20809   cat >conftest.$ac_ext <<_ACEOF
20810 /* confdefs.h.  */
20811 _ACEOF
20812 cat confdefs.h >>conftest.$ac_ext
20813 cat >>conftest.$ac_ext <<_ACEOF
20814 /* end confdefs.h.  */
20815
20816 #include <limits.h>
20817 #if HAVE_STDINT_H
20818 #include <stdint.h>
20819 #endif
20820 #ifdef SIZE_MAX
20821 Found it
20822 #endif
20823
20824 _ACEOF
20825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20826   $EGREP "Found it" >/dev/null 2>&1; then
20827   result=yes
20828 fi
20829 rm -f conftest*
20830
20831   if test -z "$result"; then
20832                     if test "$cross_compiling" = yes; then
20833   # Depending upon the size, compute the lo and hi bounds.
20834 cat >conftest.$ac_ext <<_ACEOF
20835 /* confdefs.h.  */
20836 _ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h.  */
20840 #include <stddef.h>
20841 int
20842 main ()
20843 {
20844 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20845 test_array [0] = 0
20846
20847   ;
20848   return 0;
20849 }
20850 _ACEOF
20851 rm -f conftest.$ac_objext
20852 if { (ac_try="$ac_compile"
20853 case "(($ac_try" in
20854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855   *) ac_try_echo=$ac_try;;
20856 esac
20857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20858   (eval "$ac_compile") 2>conftest.er1
20859   ac_status=$?
20860   grep -v '^ *+' conftest.er1 >conftest.err
20861   rm -f conftest.er1
20862   cat conftest.err >&5
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); } && {
20865          test -z "$ac_c_werror_flag" ||
20866          test ! -s conftest.err
20867        } && test -s conftest.$ac_objext; then
20868   ac_lo=0 ac_mid=0
20869   while :; do
20870     cat >conftest.$ac_ext <<_ACEOF
20871 /* confdefs.h.  */
20872 _ACEOF
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h.  */
20876 #include <stddef.h>
20877 int
20878 main ()
20879 {
20880 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20881 test_array [0] = 0
20882
20883   ;
20884   return 0;
20885 }
20886 _ACEOF
20887 rm -f conftest.$ac_objext
20888 if { (ac_try="$ac_compile"
20889 case "(($ac_try" in
20890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891   *) ac_try_echo=$ac_try;;
20892 esac
20893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894   (eval "$ac_compile") 2>conftest.er1
20895   ac_status=$?
20896   grep -v '^ *+' conftest.er1 >conftest.err
20897   rm -f conftest.er1
20898   cat conftest.err >&5
20899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900   (exit $ac_status); } && {
20901          test -z "$ac_c_werror_flag" ||
20902          test ! -s conftest.err
20903        } && test -s conftest.$ac_objext; then
20904   ac_hi=$ac_mid; break
20905 else
20906   echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909         ac_lo=`expr $ac_mid + 1`
20910                         if test $ac_lo -le $ac_mid; then
20911                           ac_lo= ac_hi=
20912                           break
20913                         fi
20914                         ac_mid=`expr 2 '*' $ac_mid + 1`
20915 fi
20916
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20918   done
20919 else
20920   echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20922
20923         cat >conftest.$ac_ext <<_ACEOF
20924 /* confdefs.h.  */
20925 _ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h.  */
20929 #include <stddef.h>
20930 int
20931 main ()
20932 {
20933 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20934 test_array [0] = 0
20935
20936   ;
20937   return 0;
20938 }
20939 _ACEOF
20940 rm -f conftest.$ac_objext
20941 if { (ac_try="$ac_compile"
20942 case "(($ac_try" in
20943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944   *) ac_try_echo=$ac_try;;
20945 esac
20946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20947   (eval "$ac_compile") 2>conftest.er1
20948   ac_status=$?
20949   grep -v '^ *+' conftest.er1 >conftest.err
20950   rm -f conftest.er1
20951   cat conftest.err >&5
20952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953   (exit $ac_status); } && {
20954          test -z "$ac_c_werror_flag" ||
20955          test ! -s conftest.err
20956        } && test -s conftest.$ac_objext; then
20957   ac_hi=-1 ac_mid=-1
20958   while :; do
20959     cat >conftest.$ac_ext <<_ACEOF
20960 /* confdefs.h.  */
20961 _ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h.  */
20965 #include <stddef.h>
20966 int
20967 main ()
20968 {
20969 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20970 test_array [0] = 0
20971
20972   ;
20973   return 0;
20974 }
20975 _ACEOF
20976 rm -f conftest.$ac_objext
20977 if { (ac_try="$ac_compile"
20978 case "(($ac_try" in
20979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980   *) ac_try_echo=$ac_try;;
20981 esac
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983   (eval "$ac_compile") 2>conftest.er1
20984   ac_status=$?
20985   grep -v '^ *+' conftest.er1 >conftest.err
20986   rm -f conftest.er1
20987   cat conftest.err >&5
20988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989   (exit $ac_status); } && {
20990          test -z "$ac_c_werror_flag" ||
20991          test ! -s conftest.err
20992        } && test -s conftest.$ac_objext; then
20993   ac_lo=$ac_mid; break
20994 else
20995   echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20997
20998         ac_hi=`expr '(' $ac_mid ')' - 1`
20999                         if test $ac_mid -le $ac_hi; then
21000                           ac_lo= ac_hi=
21001                           break
21002                         fi
21003                         ac_mid=`expr 2 '*' $ac_mid`
21004 fi
21005
21006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007   done
21008 else
21009   echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21011
21012         ac_lo= ac_hi=
21013 fi
21014
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21016 fi
21017
21018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019 # Binary search between lo and hi bounds.
21020 while test "x$ac_lo" != "x$ac_hi"; do
21021   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21022   cat >conftest.$ac_ext <<_ACEOF
21023 /* confdefs.h.  */
21024 _ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h.  */
21028 #include <stddef.h>
21029 int
21030 main ()
21031 {
21032 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21033 test_array [0] = 0
21034
21035   ;
21036   return 0;
21037 }
21038 _ACEOF
21039 rm -f conftest.$ac_objext
21040 if { (ac_try="$ac_compile"
21041 case "(($ac_try" in
21042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21043   *) ac_try_echo=$ac_try;;
21044 esac
21045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21046   (eval "$ac_compile") 2>conftest.er1
21047   ac_status=$?
21048   grep -v '^ *+' conftest.er1 >conftest.err
21049   rm -f conftest.er1
21050   cat conftest.err >&5
21051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052   (exit $ac_status); } && {
21053          test -z "$ac_c_werror_flag" ||
21054          test ! -s conftest.err
21055        } && test -s conftest.$ac_objext; then
21056   ac_hi=$ac_mid
21057 else
21058   echo "$as_me: failed program was:" >&5
21059 sed 's/^/| /' conftest.$ac_ext >&5
21060
21061         ac_lo=`expr '(' $ac_mid ')' + 1`
21062 fi
21063
21064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21065 done
21066 case $ac_lo in
21067 ?*) res_hi=$ac_lo;;
21068 '') result=? ;;
21069 esac
21070 else
21071   cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077 #include <stddef.h>
21078 static long int longval () { return ~(size_t)0 / 10; }
21079 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21080 #include <stdio.h>
21081 #include <stdlib.h>
21082 int
21083 main ()
21084 {
21085
21086   FILE *f = fopen ("conftest.val", "w");
21087   if (! f)
21088     return 1;
21089   if ((~(size_t)0 / 10) < 0)
21090     {
21091       long int i = longval ();
21092       if (i != (~(size_t)0 / 10))
21093         return 1;
21094       fprintf (f, "%ld\n", i);
21095     }
21096   else
21097     {
21098       unsigned long int i = ulongval ();
21099       if (i != (~(size_t)0 / 10))
21100         return 1;
21101       fprintf (f, "%lu\n", i);
21102     }
21103   return ferror (f) || fclose (f) != 0;
21104
21105   ;
21106   return 0;
21107 }
21108 _ACEOF
21109 rm -f conftest$ac_exeext
21110 if { (ac_try="$ac_link"
21111 case "(($ac_try" in
21112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113   *) ac_try_echo=$ac_try;;
21114 esac
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116   (eval "$ac_link") 2>&5
21117   ac_status=$?
21118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21120   { (case "(($ac_try" in
21121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122   *) ac_try_echo=$ac_try;;
21123 esac
21124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125   (eval "$ac_try") 2>&5
21126   ac_status=$?
21127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128   (exit $ac_status); }; }; then
21129   res_hi=`cat conftest.val`
21130 else
21131   echo "$as_me: program exited with status $ac_status" >&5
21132 echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21134
21135 ( exit $ac_status )
21136 result=?
21137 fi
21138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21139 fi
21140 rm -f conftest.val
21141
21142     if test "$cross_compiling" = yes; then
21143   # Depending upon the size, compute the lo and hi bounds.
21144 cat >conftest.$ac_ext <<_ACEOF
21145 /* confdefs.h.  */
21146 _ACEOF
21147 cat confdefs.h >>conftest.$ac_ext
21148 cat >>conftest.$ac_ext <<_ACEOF
21149 /* end confdefs.h.  */
21150 #include <stddef.h>
21151 int
21152 main ()
21153 {
21154 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21155 test_array [0] = 0
21156
21157   ;
21158   return 0;
21159 }
21160 _ACEOF
21161 rm -f conftest.$ac_objext
21162 if { (ac_try="$ac_compile"
21163 case "(($ac_try" in
21164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165   *) ac_try_echo=$ac_try;;
21166 esac
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168   (eval "$ac_compile") 2>conftest.er1
21169   ac_status=$?
21170   grep -v '^ *+' conftest.er1 >conftest.err
21171   rm -f conftest.er1
21172   cat conftest.err >&5
21173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174   (exit $ac_status); } && {
21175          test -z "$ac_c_werror_flag" ||
21176          test ! -s conftest.err
21177        } && test -s conftest.$ac_objext; then
21178   ac_lo=0 ac_mid=0
21179   while :; do
21180     cat >conftest.$ac_ext <<_ACEOF
21181 /* confdefs.h.  */
21182 _ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h.  */
21186 #include <stddef.h>
21187 int
21188 main ()
21189 {
21190 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21191 test_array [0] = 0
21192
21193   ;
21194   return 0;
21195 }
21196 _ACEOF
21197 rm -f conftest.$ac_objext
21198 if { (ac_try="$ac_compile"
21199 case "(($ac_try" in
21200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21201   *) ac_try_echo=$ac_try;;
21202 esac
21203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21204   (eval "$ac_compile") 2>conftest.er1
21205   ac_status=$?
21206   grep -v '^ *+' conftest.er1 >conftest.err
21207   rm -f conftest.er1
21208   cat conftest.err >&5
21209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210   (exit $ac_status); } && {
21211          test -z "$ac_c_werror_flag" ||
21212          test ! -s conftest.err
21213        } && test -s conftest.$ac_objext; then
21214   ac_hi=$ac_mid; break
21215 else
21216   echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21218
21219         ac_lo=`expr $ac_mid + 1`
21220                         if test $ac_lo -le $ac_mid; then
21221                           ac_lo= ac_hi=
21222                           break
21223                         fi
21224                         ac_mid=`expr 2 '*' $ac_mid + 1`
21225 fi
21226
21227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228   done
21229 else
21230   echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.$ac_ext >&5
21232
21233         cat >conftest.$ac_ext <<_ACEOF
21234 /* confdefs.h.  */
21235 _ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h.  */
21239 #include <stddef.h>
21240 int
21241 main ()
21242 {
21243 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21244 test_array [0] = 0
21245
21246   ;
21247   return 0;
21248 }
21249 _ACEOF
21250 rm -f conftest.$ac_objext
21251 if { (ac_try="$ac_compile"
21252 case "(($ac_try" in
21253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254   *) ac_try_echo=$ac_try;;
21255 esac
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257   (eval "$ac_compile") 2>conftest.er1
21258   ac_status=$?
21259   grep -v '^ *+' conftest.er1 >conftest.err
21260   rm -f conftest.er1
21261   cat conftest.err >&5
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); } && {
21264          test -z "$ac_c_werror_flag" ||
21265          test ! -s conftest.err
21266        } && test -s conftest.$ac_objext; then
21267   ac_hi=-1 ac_mid=-1
21268   while :; do
21269     cat >conftest.$ac_ext <<_ACEOF
21270 /* confdefs.h.  */
21271 _ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h.  */
21275 #include <stddef.h>
21276 int
21277 main ()
21278 {
21279 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21280 test_array [0] = 0
21281
21282   ;
21283   return 0;
21284 }
21285 _ACEOF
21286 rm -f conftest.$ac_objext
21287 if { (ac_try="$ac_compile"
21288 case "(($ac_try" in
21289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290   *) ac_try_echo=$ac_try;;
21291 esac
21292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293   (eval "$ac_compile") 2>conftest.er1
21294   ac_status=$?
21295   grep -v '^ *+' conftest.er1 >conftest.err
21296   rm -f conftest.er1
21297   cat conftest.err >&5
21298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299   (exit $ac_status); } && {
21300          test -z "$ac_c_werror_flag" ||
21301          test ! -s conftest.err
21302        } && test -s conftest.$ac_objext; then
21303   ac_lo=$ac_mid; break
21304 else
21305   echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21307
21308         ac_hi=`expr '(' $ac_mid ')' - 1`
21309                         if test $ac_mid -le $ac_hi; then
21310                           ac_lo= ac_hi=
21311                           break
21312                         fi
21313                         ac_mid=`expr 2 '*' $ac_mid`
21314 fi
21315
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317   done
21318 else
21319   echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.$ac_ext >&5
21321
21322         ac_lo= ac_hi=
21323 fi
21324
21325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21326 fi
21327
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21329 # Binary search between lo and hi bounds.
21330 while test "x$ac_lo" != "x$ac_hi"; do
21331   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21332   cat >conftest.$ac_ext <<_ACEOF
21333 /* confdefs.h.  */
21334 _ACEOF
21335 cat confdefs.h >>conftest.$ac_ext
21336 cat >>conftest.$ac_ext <<_ACEOF
21337 /* end confdefs.h.  */
21338 #include <stddef.h>
21339 int
21340 main ()
21341 {
21342 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21343 test_array [0] = 0
21344
21345   ;
21346   return 0;
21347 }
21348 _ACEOF
21349 rm -f conftest.$ac_objext
21350 if { (ac_try="$ac_compile"
21351 case "(($ac_try" in
21352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353   *) ac_try_echo=$ac_try;;
21354 esac
21355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21356   (eval "$ac_compile") 2>conftest.er1
21357   ac_status=$?
21358   grep -v '^ *+' conftest.er1 >conftest.err
21359   rm -f conftest.er1
21360   cat conftest.err >&5
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); } && {
21363          test -z "$ac_c_werror_flag" ||
21364          test ! -s conftest.err
21365        } && test -s conftest.$ac_objext; then
21366   ac_hi=$ac_mid
21367 else
21368   echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21370
21371         ac_lo=`expr '(' $ac_mid ')' + 1`
21372 fi
21373
21374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21375 done
21376 case $ac_lo in
21377 ?*) res_lo=$ac_lo;;
21378 '') result=? ;;
21379 esac
21380 else
21381   cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h.  */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h.  */
21387 #include <stddef.h>
21388 static long int longval () { return ~(size_t)0 % 10; }
21389 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21390 #include <stdio.h>
21391 #include <stdlib.h>
21392 int
21393 main ()
21394 {
21395
21396   FILE *f = fopen ("conftest.val", "w");
21397   if (! f)
21398     return 1;
21399   if ((~(size_t)0 % 10) < 0)
21400     {
21401       long int i = longval ();
21402       if (i != (~(size_t)0 % 10))
21403         return 1;
21404       fprintf (f, "%ld\n", i);
21405     }
21406   else
21407     {
21408       unsigned long int i = ulongval ();
21409       if (i != (~(size_t)0 % 10))
21410         return 1;
21411       fprintf (f, "%lu\n", i);
21412     }
21413   return ferror (f) || fclose (f) != 0;
21414
21415   ;
21416   return 0;
21417 }
21418 _ACEOF
21419 rm -f conftest$ac_exeext
21420 if { (ac_try="$ac_link"
21421 case "(($ac_try" in
21422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423   *) ac_try_echo=$ac_try;;
21424 esac
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426   (eval "$ac_link") 2>&5
21427   ac_status=$?
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21430   { (case "(($ac_try" in
21431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432   *) ac_try_echo=$ac_try;;
21433 esac
21434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21435   (eval "$ac_try") 2>&5
21436   ac_status=$?
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); }; }; then
21439   res_lo=`cat conftest.val`
21440 else
21441   echo "$as_me: program exited with status $ac_status" >&5
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445 ( exit $ac_status )
21446 result=?
21447 fi
21448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21449 fi
21450 rm -f conftest.val
21451
21452     if test "$cross_compiling" = yes; then
21453   # Depending upon the size, compute the lo and hi bounds.
21454 cat >conftest.$ac_ext <<_ACEOF
21455 /* confdefs.h.  */
21456 _ACEOF
21457 cat confdefs.h >>conftest.$ac_ext
21458 cat >>conftest.$ac_ext <<_ACEOF
21459 /* end confdefs.h.  */
21460 #include <stddef.h>
21461 int
21462 main ()
21463 {
21464 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21465 test_array [0] = 0
21466
21467   ;
21468   return 0;
21469 }
21470 _ACEOF
21471 rm -f conftest.$ac_objext
21472 if { (ac_try="$ac_compile"
21473 case "(($ac_try" in
21474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475   *) ac_try_echo=$ac_try;;
21476 esac
21477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478   (eval "$ac_compile") 2>conftest.er1
21479   ac_status=$?
21480   grep -v '^ *+' conftest.er1 >conftest.err
21481   rm -f conftest.er1
21482   cat conftest.err >&5
21483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484   (exit $ac_status); } && {
21485          test -z "$ac_c_werror_flag" ||
21486          test ! -s conftest.err
21487        } && test -s conftest.$ac_objext; then
21488   ac_lo=0 ac_mid=0
21489   while :; do
21490     cat >conftest.$ac_ext <<_ACEOF
21491 /* confdefs.h.  */
21492 _ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h.  */
21496 #include <stddef.h>
21497 int
21498 main ()
21499 {
21500 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21501 test_array [0] = 0
21502
21503   ;
21504   return 0;
21505 }
21506 _ACEOF
21507 rm -f conftest.$ac_objext
21508 if { (ac_try="$ac_compile"
21509 case "(($ac_try" in
21510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511   *) ac_try_echo=$ac_try;;
21512 esac
21513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514   (eval "$ac_compile") 2>conftest.er1
21515   ac_status=$?
21516   grep -v '^ *+' conftest.er1 >conftest.err
21517   rm -f conftest.er1
21518   cat conftest.err >&5
21519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520   (exit $ac_status); } && {
21521          test -z "$ac_c_werror_flag" ||
21522          test ! -s conftest.err
21523        } && test -s conftest.$ac_objext; then
21524   ac_hi=$ac_mid; break
21525 else
21526   echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21528
21529         ac_lo=`expr $ac_mid + 1`
21530                         if test $ac_lo -le $ac_mid; then
21531                           ac_lo= ac_hi=
21532                           break
21533                         fi
21534                         ac_mid=`expr 2 '*' $ac_mid + 1`
21535 fi
21536
21537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21538   done
21539 else
21540   echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21542
21543         cat >conftest.$ac_ext <<_ACEOF
21544 /* confdefs.h.  */
21545 _ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h.  */
21549 #include <stddef.h>
21550 int
21551 main ()
21552 {
21553 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21554 test_array [0] = 0
21555
21556   ;
21557   return 0;
21558 }
21559 _ACEOF
21560 rm -f conftest.$ac_objext
21561 if { (ac_try="$ac_compile"
21562 case "(($ac_try" in
21563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564   *) ac_try_echo=$ac_try;;
21565 esac
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567   (eval "$ac_compile") 2>conftest.er1
21568   ac_status=$?
21569   grep -v '^ *+' conftest.er1 >conftest.err
21570   rm -f conftest.er1
21571   cat conftest.err >&5
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); } && {
21574          test -z "$ac_c_werror_flag" ||
21575          test ! -s conftest.err
21576        } && test -s conftest.$ac_objext; then
21577   ac_hi=-1 ac_mid=-1
21578   while :; do
21579     cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h.  */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h.  */
21585 #include <stddef.h>
21586 int
21587 main ()
21588 {
21589 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21590 test_array [0] = 0
21591
21592   ;
21593   return 0;
21594 }
21595 _ACEOF
21596 rm -f conftest.$ac_objext
21597 if { (ac_try="$ac_compile"
21598 case "(($ac_try" in
21599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600   *) ac_try_echo=$ac_try;;
21601 esac
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603   (eval "$ac_compile") 2>conftest.er1
21604   ac_status=$?
21605   grep -v '^ *+' conftest.er1 >conftest.err
21606   rm -f conftest.er1
21607   cat conftest.err >&5
21608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609   (exit $ac_status); } && {
21610          test -z "$ac_c_werror_flag" ||
21611          test ! -s conftest.err
21612        } && test -s conftest.$ac_objext; then
21613   ac_lo=$ac_mid; break
21614 else
21615   echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21617
21618         ac_hi=`expr '(' $ac_mid ')' - 1`
21619                         if test $ac_mid -le $ac_hi; then
21620                           ac_lo= ac_hi=
21621                           break
21622                         fi
21623                         ac_mid=`expr 2 '*' $ac_mid`
21624 fi
21625
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21627   done
21628 else
21629   echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21631
21632         ac_lo= ac_hi=
21633 fi
21634
21635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21636 fi
21637
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639 # Binary search between lo and hi bounds.
21640 while test "x$ac_lo" != "x$ac_hi"; do
21641   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21642   cat >conftest.$ac_ext <<_ACEOF
21643 /* confdefs.h.  */
21644 _ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h.  */
21648 #include <stddef.h>
21649 int
21650 main ()
21651 {
21652 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21653 test_array [0] = 0
21654
21655   ;
21656   return 0;
21657 }
21658 _ACEOF
21659 rm -f conftest.$ac_objext
21660 if { (ac_try="$ac_compile"
21661 case "(($ac_try" in
21662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663   *) ac_try_echo=$ac_try;;
21664 esac
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666   (eval "$ac_compile") 2>conftest.er1
21667   ac_status=$?
21668   grep -v '^ *+' conftest.er1 >conftest.err
21669   rm -f conftest.er1
21670   cat conftest.err >&5
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); } && {
21673          test -z "$ac_c_werror_flag" ||
21674          test ! -s conftest.err
21675        } && test -s conftest.$ac_objext; then
21676   ac_hi=$ac_mid
21677 else
21678   echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21680
21681         ac_lo=`expr '(' $ac_mid ')' + 1`
21682 fi
21683
21684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21685 done
21686 case $ac_lo in
21687 ?*) fits_in_uint=$ac_lo;;
21688 '') result=? ;;
21689 esac
21690 else
21691   cat >conftest.$ac_ext <<_ACEOF
21692 /* confdefs.h.  */
21693 _ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h.  */
21697 #include <stddef.h>
21698 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21699 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21700 #include <stdio.h>
21701 #include <stdlib.h>
21702 int
21703 main ()
21704 {
21705
21706   FILE *f = fopen ("conftest.val", "w");
21707   if (! f)
21708     return 1;
21709   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21710     {
21711       long int i = longval ();
21712       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21713         return 1;
21714       fprintf (f, "%ld\n", i);
21715     }
21716   else
21717     {
21718       unsigned long int i = ulongval ();
21719       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21720         return 1;
21721       fprintf (f, "%lu\n", i);
21722     }
21723   return ferror (f) || fclose (f) != 0;
21724
21725   ;
21726   return 0;
21727 }
21728 _ACEOF
21729 rm -f conftest$ac_exeext
21730 if { (ac_try="$ac_link"
21731 case "(($ac_try" in
21732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733   *) ac_try_echo=$ac_try;;
21734 esac
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736   (eval "$ac_link") 2>&5
21737   ac_status=$?
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21740   { (case "(($ac_try" in
21741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742   *) ac_try_echo=$ac_try;;
21743 esac
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745   (eval "$ac_try") 2>&5
21746   ac_status=$?
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); }; }; then
21749   fits_in_uint=`cat conftest.val`
21750 else
21751   echo "$as_me: program exited with status $ac_status" >&5
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21754
21755 ( exit $ac_status )
21756 result=?
21757 fi
21758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21759 fi
21760 rm -f conftest.val
21761
21762     if test "$fits_in_uint" = 1; then
21763                   cat >conftest.$ac_ext <<_ACEOF
21764 /* confdefs.h.  */
21765 _ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h.  */
21769 #include <stddef.h>
21770         extern size_t foo;
21771         extern unsigned long foo;
21772
21773 int
21774 main ()
21775 {
21776
21777   ;
21778   return 0;
21779 }
21780 _ACEOF
21781 rm -f conftest.$ac_objext
21782 if { (ac_try="$ac_compile"
21783 case "(($ac_try" in
21784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785   *) ac_try_echo=$ac_try;;
21786 esac
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788   (eval "$ac_compile") 2>conftest.er1
21789   ac_status=$?
21790   grep -v '^ *+' conftest.er1 >conftest.err
21791   rm -f conftest.er1
21792   cat conftest.err >&5
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); } && {
21795          test -z "$ac_c_werror_flag" ||
21796          test ! -s conftest.err
21797        } && test -s conftest.$ac_objext; then
21798   fits_in_uint=0
21799 else
21800   echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21802
21803
21804 fi
21805
21806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21807     fi
21808     if test -z "$result"; then
21809       if test "$fits_in_uint" = 1; then
21810         result="$res_hi$res_lo"U
21811       else
21812         result="$res_hi$res_lo"UL
21813       fi
21814     else
21815             result='~(size_t)0'
21816     fi
21817   fi
21818   { echo "$as_me:$LINENO: result: $result" >&5
21819 echo "${ECHO_T}$result" >&6; }
21820   if test "$result" != yes; then
21821
21822 cat >>confdefs.h <<_ACEOF
21823 #define SIZE_MAX $result
21824 _ACEOF
21825
21826   fi
21827
21828
21829
21830
21831
21832 for ac_header in stdint.h
21833 do
21834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21836   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21839   echo $ECHO_N "(cached) $ECHO_C" >&6
21840 fi
21841 ac_res=`eval echo '${'$as_ac_Header'}'`
21842                { echo "$as_me:$LINENO: result: $ac_res" >&5
21843 echo "${ECHO_T}$ac_res" >&6; }
21844 else
21845   # Is the header compilable?
21846 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21848 cat >conftest.$ac_ext <<_ACEOF
21849 /* confdefs.h.  */
21850 _ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h.  */
21854 $ac_includes_default
21855 #include <$ac_header>
21856 _ACEOF
21857 rm -f conftest.$ac_objext
21858 if { (ac_try="$ac_compile"
21859 case "(($ac_try" in
21860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861   *) ac_try_echo=$ac_try;;
21862 esac
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864   (eval "$ac_compile") 2>conftest.er1
21865   ac_status=$?
21866   grep -v '^ *+' conftest.er1 >conftest.err
21867   rm -f conftest.er1
21868   cat conftest.err >&5
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); } && {
21871          test -z "$ac_c_werror_flag" ||
21872          test ! -s conftest.err
21873        } && test -s conftest.$ac_objext; then
21874   ac_header_compiler=yes
21875 else
21876   echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21878
21879         ac_header_compiler=no
21880 fi
21881
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21884 echo "${ECHO_T}$ac_header_compiler" >&6; }
21885
21886 # Is the header present?
21887 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21889 cat >conftest.$ac_ext <<_ACEOF
21890 /* confdefs.h.  */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h.  */
21895 #include <$ac_header>
21896 _ACEOF
21897 if { (ac_try="$ac_cpp conftest.$ac_ext"
21898 case "(($ac_try" in
21899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900   *) ac_try_echo=$ac_try;;
21901 esac
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21904   ac_status=$?
21905   grep -v '^ *+' conftest.er1 >conftest.err
21906   rm -f conftest.er1
21907   cat conftest.err >&5
21908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909   (exit $ac_status); } >/dev/null && {
21910          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21911          test ! -s conftest.err
21912        }; then
21913   ac_header_preproc=yes
21914 else
21915   echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21917
21918   ac_header_preproc=no
21919 fi
21920
21921 rm -f conftest.err conftest.$ac_ext
21922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21923 echo "${ECHO_T}$ac_header_preproc" >&6; }
21924
21925 # So?  What about this header?
21926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21927   yes:no: )
21928     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21932     ac_header_preproc=yes
21933     ;;
21934   no:yes:* )
21935     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21937     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21938 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21939     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21941     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21942 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21943     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21945     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21947
21948     ;;
21949 esac
21950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21953   echo $ECHO_N "(cached) $ECHO_C" >&6
21954 else
21955   eval "$as_ac_Header=\$ac_header_preproc"
21956 fi
21957 ac_res=`eval echo '${'$as_ac_Header'}'`
21958                { echo "$as_me:$LINENO: result: $ac_res" >&5
21959 echo "${ECHO_T}$ac_res" >&6; }
21960
21961 fi
21962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21963   cat >>confdefs.h <<_ACEOF
21964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21965 _ACEOF
21966
21967 fi
21968
21969 done
21970
21971
21972
21973
21974
21975
21976
21977
21978   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21979 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21980 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21981   echo $ECHO_N "(cached) $ECHO_C" >&6
21982 else
21983   cat >conftest.$ac_ext <<_ACEOF
21984 /* confdefs.h.  */
21985 _ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h.  */
21989 $ac_includes_default
21990 typedef ptrdiff_t ac__type_new_;
21991 int
21992 main ()
21993 {
21994 if ((ac__type_new_ *) 0)
21995   return 0;
21996 if (sizeof (ac__type_new_))
21997   return 0;
21998   ;
21999   return 0;
22000 }
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006   *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009   (eval "$ac_compile") 2>conftest.er1
22010   ac_status=$?
22011   grep -v '^ *+' conftest.er1 >conftest.err
22012   rm -f conftest.er1
22013   cat conftest.err >&5
22014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015   (exit $ac_status); } && {
22016          test -z "$ac_c_werror_flag" ||
22017          test ! -s conftest.err
22018        } && test -s conftest.$ac_objext; then
22019   ac_cv_type_ptrdiff_t=yes
22020 else
22021   echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22023
22024         ac_cv_type_ptrdiff_t=no
22025 fi
22026
22027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22028 fi
22029 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22030 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22031 if test $ac_cv_type_ptrdiff_t = yes; then
22032   :
22033 else
22034
22035 cat >>confdefs.h <<\_ACEOF
22036 #define ptrdiff_t long
22037 _ACEOF
22038
22039
22040 fi
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22053 stdlib.h string.h unistd.h sys/param.h
22054 do
22055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22057   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22060   echo $ECHO_N "(cached) $ECHO_C" >&6
22061 fi
22062 ac_res=`eval echo '${'$as_ac_Header'}'`
22063                { echo "$as_me:$LINENO: result: $ac_res" >&5
22064 echo "${ECHO_T}$ac_res" >&6; }
22065 else
22066   # Is the header compilable?
22067 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22069 cat >conftest.$ac_ext <<_ACEOF
22070 /* confdefs.h.  */
22071 _ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h.  */
22075 $ac_includes_default
22076 #include <$ac_header>
22077 _ACEOF
22078 rm -f conftest.$ac_objext
22079 if { (ac_try="$ac_compile"
22080 case "(($ac_try" in
22081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082   *) ac_try_echo=$ac_try;;
22083 esac
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085   (eval "$ac_compile") 2>conftest.er1
22086   ac_status=$?
22087   grep -v '^ *+' conftest.er1 >conftest.err
22088   rm -f conftest.er1
22089   cat conftest.err >&5
22090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091   (exit $ac_status); } && {
22092          test -z "$ac_c_werror_flag" ||
22093          test ! -s conftest.err
22094        } && test -s conftest.$ac_objext; then
22095   ac_header_compiler=yes
22096 else
22097   echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22099
22100         ac_header_compiler=no
22101 fi
22102
22103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22105 echo "${ECHO_T}$ac_header_compiler" >&6; }
22106
22107 # Is the header present?
22108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22110 cat >conftest.$ac_ext <<_ACEOF
22111 /* confdefs.h.  */
22112 _ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h.  */
22116 #include <$ac_header>
22117 _ACEOF
22118 if { (ac_try="$ac_cpp conftest.$ac_ext"
22119 case "(($ac_try" in
22120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121   *) ac_try_echo=$ac_try;;
22122 esac
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22125   ac_status=$?
22126   grep -v '^ *+' conftest.er1 >conftest.err
22127   rm -f conftest.er1
22128   cat conftest.err >&5
22129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130   (exit $ac_status); } >/dev/null && {
22131          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22132          test ! -s conftest.err
22133        }; then
22134   ac_header_preproc=yes
22135 else
22136   echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22138
22139   ac_header_preproc=no
22140 fi
22141
22142 rm -f conftest.err conftest.$ac_ext
22143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22144 echo "${ECHO_T}$ac_header_preproc" >&6; }
22145
22146 # So?  What about this header?
22147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22148   yes:no: )
22149     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22153     ac_header_preproc=yes
22154     ;;
22155   no:yes:* )
22156     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22158     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22159 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22160     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22162     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22163 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22166     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22168
22169     ;;
22170 esac
22171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22174   echo $ECHO_N "(cached) $ECHO_C" >&6
22175 else
22176   eval "$as_ac_Header=\$ac_header_preproc"
22177 fi
22178 ac_res=`eval echo '${'$as_ac_Header'}'`
22179                { echo "$as_me:$LINENO: result: $ac_res" >&5
22180 echo "${ECHO_T}$ac_res" >&6; }
22181
22182 fi
22183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22184   cat >>confdefs.h <<_ACEOF
22185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22186 _ACEOF
22187
22188 fi
22189
22190 done
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22216 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22217 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22218 __fsetlocking
22219 do
22220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22224   echo $ECHO_N "(cached) $ECHO_C" >&6
22225 else
22226   cat >conftest.$ac_ext <<_ACEOF
22227 /* confdefs.h.  */
22228 _ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h.  */
22232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22234 #define $ac_func innocuous_$ac_func
22235
22236 /* System header to define __stub macros and hopefully few prototypes,
22237     which can conflict with char $ac_func (); below.
22238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22239     <limits.h> exists even on freestanding compilers.  */
22240
22241 #ifdef __STDC__
22242 # include <limits.h>
22243 #else
22244 # include <assert.h>
22245 #endif
22246
22247 #undef $ac_func
22248
22249 /* Override any GCC internal prototype to avoid an error.
22250    Use char because int might match the return type of a GCC
22251    builtin and then its argument prototype would still apply.  */
22252 #ifdef __cplusplus
22253 extern "C"
22254 #endif
22255 char $ac_func ();
22256 /* The GNU C library defines this for functions which it implements
22257     to always fail with ENOSYS.  Some functions are actually named
22258     something starting with __ and the normal name is an alias.  */
22259 #if defined __stub_$ac_func || defined __stub___$ac_func
22260 choke me
22261 #endif
22262
22263 int
22264 main ()
22265 {
22266 return $ac_func ();
22267   ;
22268   return 0;
22269 }
22270 _ACEOF
22271 rm -f conftest.$ac_objext conftest$ac_exeext
22272 if { (ac_try="$ac_link"
22273 case "(($ac_try" in
22274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275   *) ac_try_echo=$ac_try;;
22276 esac
22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278   (eval "$ac_link") 2>conftest.er1
22279   ac_status=$?
22280   grep -v '^ *+' conftest.er1 >conftest.err
22281   rm -f conftest.er1
22282   cat conftest.err >&5
22283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284   (exit $ac_status); } && {
22285          test -z "$ac_c_werror_flag" ||
22286          test ! -s conftest.err
22287        } && test -s conftest$ac_exeext &&
22288        $as_test_x conftest$ac_exeext; then
22289   eval "$as_ac_var=yes"
22290 else
22291   echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22293
22294         eval "$as_ac_var=no"
22295 fi
22296
22297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22298       conftest$ac_exeext conftest.$ac_ext
22299 fi
22300 ac_res=`eval echo '${'$as_ac_var'}'`
22301                { echo "$as_me:$LINENO: result: $ac_res" >&5
22302 echo "${ECHO_T}$ac_res" >&6; }
22303 if test `eval echo '${'$as_ac_var'}'` = yes; then
22304   cat >>confdefs.h <<_ACEOF
22305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22306 _ACEOF
22307
22308 fi
22309 done
22310
22311
22312
22313   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22314 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22315 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22316   echo $ECHO_N "(cached) $ECHO_C" >&6
22317 else
22318   cat >conftest.$ac_ext <<_ACEOF
22319 /* confdefs.h.  */
22320 _ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h.  */
22324 #include <stdio.h>
22325 int
22326 main ()
22327 {
22328
22329 #ifndef _snprintf
22330   char *p = (char *) _snprintf;
22331 #endif
22332
22333   ;
22334   return 0;
22335 }
22336 _ACEOF
22337 rm -f conftest.$ac_objext
22338 if { (ac_try="$ac_compile"
22339 case "(($ac_try" in
22340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22341   *) ac_try_echo=$ac_try;;
22342 esac
22343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22344   (eval "$ac_compile") 2>conftest.er1
22345   ac_status=$?
22346   grep -v '^ *+' conftest.er1 >conftest.err
22347   rm -f conftest.er1
22348   cat conftest.err >&5
22349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350   (exit $ac_status); } && {
22351          test -z "$ac_c_werror_flag" ||
22352          test ! -s conftest.err
22353        } && test -s conftest.$ac_objext; then
22354   ac_cv_have_decl__snprintf=yes
22355 else
22356   echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22358
22359         ac_cv_have_decl__snprintf=no
22360 fi
22361
22362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22363 fi
22364 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22365 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22366   if test $ac_cv_have_decl__snprintf = yes; then
22367     gt_value=1
22368   else
22369     gt_value=0
22370   fi
22371
22372 cat >>confdefs.h <<_ACEOF
22373 #define HAVE_DECL__SNPRINTF $gt_value
22374 _ACEOF
22375
22376
22377
22378   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22379 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22380 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22381   echo $ECHO_N "(cached) $ECHO_C" >&6
22382 else
22383   cat >conftest.$ac_ext <<_ACEOF
22384 /* confdefs.h.  */
22385 _ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h.  */
22389 #include <stdio.h>
22390 int
22391 main ()
22392 {
22393
22394 #ifndef _snwprintf
22395   char *p = (char *) _snwprintf;
22396 #endif
22397
22398   ;
22399   return 0;
22400 }
22401 _ACEOF
22402 rm -f conftest.$ac_objext
22403 if { (ac_try="$ac_compile"
22404 case "(($ac_try" in
22405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406   *) ac_try_echo=$ac_try;;
22407 esac
22408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22409   (eval "$ac_compile") 2>conftest.er1
22410   ac_status=$?
22411   grep -v '^ *+' conftest.er1 >conftest.err
22412   rm -f conftest.er1
22413   cat conftest.err >&5
22414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415   (exit $ac_status); } && {
22416          test -z "$ac_c_werror_flag" ||
22417          test ! -s conftest.err
22418        } && test -s conftest.$ac_objext; then
22419   ac_cv_have_decl__snwprintf=yes
22420 else
22421   echo "$as_me: failed program was:" >&5
22422 sed 's/^/| /' conftest.$ac_ext >&5
22423
22424         ac_cv_have_decl__snwprintf=no
22425 fi
22426
22427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22428 fi
22429 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22430 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22431   if test $ac_cv_have_decl__snwprintf = yes; then
22432     gt_value=1
22433   else
22434     gt_value=0
22435   fi
22436
22437 cat >>confdefs.h <<_ACEOF
22438 #define HAVE_DECL__SNWPRINTF $gt_value
22439 _ACEOF
22440
22441
22442
22443
22444   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22445 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22446 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22447   echo $ECHO_N "(cached) $ECHO_C" >&6
22448 else
22449   cat >conftest.$ac_ext <<_ACEOF
22450 /* confdefs.h.  */
22451 _ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h.  */
22455 #include <stdio.h>
22456 int
22457 main ()
22458 {
22459
22460 #ifndef feof_unlocked
22461   char *p = (char *) feof_unlocked;
22462 #endif
22463
22464   ;
22465   return 0;
22466 }
22467 _ACEOF
22468 rm -f conftest.$ac_objext
22469 if { (ac_try="$ac_compile"
22470 case "(($ac_try" in
22471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472   *) ac_try_echo=$ac_try;;
22473 esac
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475   (eval "$ac_compile") 2>conftest.er1
22476   ac_status=$?
22477   grep -v '^ *+' conftest.er1 >conftest.err
22478   rm -f conftest.er1
22479   cat conftest.err >&5
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); } && {
22482          test -z "$ac_c_werror_flag" ||
22483          test ! -s conftest.err
22484        } && test -s conftest.$ac_objext; then
22485   ac_cv_have_decl_feof_unlocked=yes
22486 else
22487   echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22489
22490         ac_cv_have_decl_feof_unlocked=no
22491 fi
22492
22493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494 fi
22495 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22496 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22497   if test $ac_cv_have_decl_feof_unlocked = yes; then
22498     gt_value=1
22499   else
22500     gt_value=0
22501   fi
22502
22503 cat >>confdefs.h <<_ACEOF
22504 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22505 _ACEOF
22506
22507
22508
22509   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22510 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22511 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22512   echo $ECHO_N "(cached) $ECHO_C" >&6
22513 else
22514   cat >conftest.$ac_ext <<_ACEOF
22515 /* confdefs.h.  */
22516 _ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h.  */
22520 #include <stdio.h>
22521 int
22522 main ()
22523 {
22524
22525 #ifndef fgets_unlocked
22526   char *p = (char *) fgets_unlocked;
22527 #endif
22528
22529   ;
22530   return 0;
22531 }
22532 _ACEOF
22533 rm -f conftest.$ac_objext
22534 if { (ac_try="$ac_compile"
22535 case "(($ac_try" in
22536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537   *) ac_try_echo=$ac_try;;
22538 esac
22539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540   (eval "$ac_compile") 2>conftest.er1
22541   ac_status=$?
22542   grep -v '^ *+' conftest.er1 >conftest.err
22543   rm -f conftest.er1
22544   cat conftest.err >&5
22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); } && {
22547          test -z "$ac_c_werror_flag" ||
22548          test ! -s conftest.err
22549        } && test -s conftest.$ac_objext; then
22550   ac_cv_have_decl_fgets_unlocked=yes
22551 else
22552   echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22554
22555         ac_cv_have_decl_fgets_unlocked=no
22556 fi
22557
22558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 fi
22560 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22561 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22562   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22563     gt_value=1
22564   else
22565     gt_value=0
22566   fi
22567
22568 cat >>confdefs.h <<_ACEOF
22569 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22570 _ACEOF
22571
22572
22573
22574   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22575 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22576 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22577   echo $ECHO_N "(cached) $ECHO_C" >&6
22578 else
22579   cat >conftest.$ac_ext <<_ACEOF
22580 /* confdefs.h.  */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h.  */
22585 #include <stdio.h>
22586 int
22587 main ()
22588 {
22589
22590 #ifndef getc_unlocked
22591   char *p = (char *) getc_unlocked;
22592 #endif
22593
22594   ;
22595   return 0;
22596 }
22597 _ACEOF
22598 rm -f conftest.$ac_objext
22599 if { (ac_try="$ac_compile"
22600 case "(($ac_try" in
22601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602   *) ac_try_echo=$ac_try;;
22603 esac
22604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22605   (eval "$ac_compile") 2>conftest.er1
22606   ac_status=$?
22607   grep -v '^ *+' conftest.er1 >conftest.err
22608   rm -f conftest.er1
22609   cat conftest.err >&5
22610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611   (exit $ac_status); } && {
22612          test -z "$ac_c_werror_flag" ||
22613          test ! -s conftest.err
22614        } && test -s conftest.$ac_objext; then
22615   ac_cv_have_decl_getc_unlocked=yes
22616 else
22617   echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22619
22620         ac_cv_have_decl_getc_unlocked=no
22621 fi
22622
22623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624 fi
22625 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22626 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22627   if test $ac_cv_have_decl_getc_unlocked = yes; then
22628     gt_value=1
22629   else
22630     gt_value=0
22631   fi
22632
22633 cat >>confdefs.h <<_ACEOF
22634 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22635 _ACEOF
22636
22637
22638
22639   case $gt_cv_func_printf_posix in
22640     *yes) HAVE_POSIX_PRINTF=1 ;;
22641     *) HAVE_POSIX_PRINTF=0 ;;
22642   esac
22643
22644   if test "$ac_cv_func_asprintf" = yes; then
22645     HAVE_ASPRINTF=1
22646   else
22647     HAVE_ASPRINTF=0
22648   fi
22649
22650   if test "$ac_cv_func_snprintf" = yes; then
22651     HAVE_SNPRINTF=1
22652   else
22653     HAVE_SNPRINTF=0
22654   fi
22655
22656   if test "$ac_cv_func_wprintf" = yes; then
22657     HAVE_WPRINTF=1
22658   else
22659     HAVE_WPRINTF=0
22660   fi
22661
22662
22663
22664
22665
22666
22667
22668           am_save_CPPFLAGS="$CPPFLAGS"
22669
22670   for element in $INCICONV; do
22671     haveit=
22672     for x in $CPPFLAGS; do
22673
22674   acl_save_prefix="$prefix"
22675   prefix="$acl_final_prefix"
22676   acl_save_exec_prefix="$exec_prefix"
22677   exec_prefix="$acl_final_exec_prefix"
22678   eval x=\"$x\"
22679   exec_prefix="$acl_save_exec_prefix"
22680   prefix="$acl_save_prefix"
22681
22682       if test "X$x" = "X$element"; then
22683         haveit=yes
22684         break
22685       fi
22686     done
22687     if test -z "$haveit"; then
22688       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22689     fi
22690   done
22691
22692
22693   { echo "$as_me:$LINENO: checking for iconv" >&5
22694 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22695 if test "${am_cv_func_iconv+set}" = set; then
22696   echo $ECHO_N "(cached) $ECHO_C" >&6
22697 else
22698
22699     am_cv_func_iconv="no, consider installing GNU libiconv"
22700     am_cv_lib_iconv=no
22701     cat >conftest.$ac_ext <<_ACEOF
22702 /* confdefs.h.  */
22703 _ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h.  */
22707 #include <stdlib.h>
22708 #include <iconv.h>
22709 int
22710 main ()
22711 {
22712 iconv_t cd = iconv_open("","");
22713        iconv(cd,NULL,NULL,NULL,NULL);
22714        iconv_close(cd);
22715   ;
22716   return 0;
22717 }
22718 _ACEOF
22719 rm -f conftest.$ac_objext conftest$ac_exeext
22720 if { (ac_try="$ac_link"
22721 case "(($ac_try" in
22722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22723   *) ac_try_echo=$ac_try;;
22724 esac
22725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22726   (eval "$ac_link") 2>conftest.er1
22727   ac_status=$?
22728   grep -v '^ *+' conftest.er1 >conftest.err
22729   rm -f conftest.er1
22730   cat conftest.err >&5
22731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732   (exit $ac_status); } && {
22733          test -z "$ac_c_werror_flag" ||
22734          test ! -s conftest.err
22735        } && test -s conftest$ac_exeext &&
22736        $as_test_x conftest$ac_exeext; then
22737   am_cv_func_iconv=yes
22738 else
22739   echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22741
22742
22743 fi
22744
22745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22746       conftest$ac_exeext conftest.$ac_ext
22747     if test "$am_cv_func_iconv" != yes; then
22748       am_save_LIBS="$LIBS"
22749       LIBS="$LIBS $LIBICONV"
22750       cat >conftest.$ac_ext <<_ACEOF
22751 /* confdefs.h.  */
22752 _ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h.  */
22756 #include <stdlib.h>
22757 #include <iconv.h>
22758 int
22759 main ()
22760 {
22761 iconv_t cd = iconv_open("","");
22762          iconv(cd,NULL,NULL,NULL,NULL);
22763          iconv_close(cd);
22764   ;
22765   return 0;
22766 }
22767 _ACEOF
22768 rm -f conftest.$ac_objext conftest$ac_exeext
22769 if { (ac_try="$ac_link"
22770 case "(($ac_try" in
22771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772   *) ac_try_echo=$ac_try;;
22773 esac
22774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775   (eval "$ac_link") 2>conftest.er1
22776   ac_status=$?
22777   grep -v '^ *+' conftest.er1 >conftest.err
22778   rm -f conftest.er1
22779   cat conftest.err >&5
22780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781   (exit $ac_status); } && {
22782          test -z "$ac_c_werror_flag" ||
22783          test ! -s conftest.err
22784        } && test -s conftest$ac_exeext &&
22785        $as_test_x conftest$ac_exeext; then
22786   am_cv_lib_iconv=yes
22787         am_cv_func_iconv=yes
22788 else
22789   echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22791
22792
22793 fi
22794
22795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22796       conftest$ac_exeext conftest.$ac_ext
22797       LIBS="$am_save_LIBS"
22798     fi
22799
22800 fi
22801 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22802 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22803   if test "$am_cv_func_iconv" = yes; then
22804
22805 cat >>confdefs.h <<\_ACEOF
22806 #define HAVE_ICONV 1
22807 _ACEOF
22808
22809   fi
22810   if test "$am_cv_lib_iconv" = yes; then
22811     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22812 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22813     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22814 echo "${ECHO_T}$LIBICONV" >&6; }
22815   else
22816             CPPFLAGS="$am_save_CPPFLAGS"
22817     LIBICONV=
22818     LTLIBICONV=
22819   fi
22820
22821
22822
22823   if test "$am_cv_func_iconv" = yes; then
22824     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22825 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22826     if test "${am_cv_proto_iconv+set}" = set; then
22827   echo $ECHO_N "(cached) $ECHO_C" >&6
22828 else
22829
22830       cat >conftest.$ac_ext <<_ACEOF
22831 /* confdefs.h.  */
22832 _ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h.  */
22836
22837 #include <stdlib.h>
22838 #include <iconv.h>
22839 extern
22840 #ifdef __cplusplus
22841 "C"
22842 #endif
22843 #if defined(__STDC__) || defined(__cplusplus)
22844 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22845 #else
22846 size_t iconv();
22847 #endif
22848
22849 int
22850 main ()
22851 {
22852
22853   ;
22854   return 0;
22855 }
22856 _ACEOF
22857 rm -f conftest.$ac_objext
22858 if { (ac_try="$ac_compile"
22859 case "(($ac_try" in
22860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22861   *) ac_try_echo=$ac_try;;
22862 esac
22863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22864   (eval "$ac_compile") 2>conftest.er1
22865   ac_status=$?
22866   grep -v '^ *+' conftest.er1 >conftest.err
22867   rm -f conftest.er1
22868   cat conftest.err >&5
22869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870   (exit $ac_status); } && {
22871          test -z "$ac_c_werror_flag" ||
22872          test ! -s conftest.err
22873        } && test -s conftest.$ac_objext; then
22874   am_cv_proto_iconv_arg1=""
22875 else
22876   echo "$as_me: failed program was:" >&5
22877 sed 's/^/| /' conftest.$ac_ext >&5
22878
22879         am_cv_proto_iconv_arg1="const"
22880 fi
22881
22882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22883       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);"
22884 fi
22885
22886     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22887     { echo "$as_me:$LINENO: result: ${ac_t:-
22888          }$am_cv_proto_iconv" >&5
22889 echo "${ECHO_T}${ac_t:-
22890          }$am_cv_proto_iconv" >&6; }
22891
22892 cat >>confdefs.h <<_ACEOF
22893 #define ICONV_CONST $am_cv_proto_iconv_arg1
22894 _ACEOF
22895
22896   fi
22897
22898
22899   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22900 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22901 if test "${am_cv_langinfo_codeset+set}" = set; then
22902   echo $ECHO_N "(cached) $ECHO_C" >&6
22903 else
22904   cat >conftest.$ac_ext <<_ACEOF
22905 /* confdefs.h.  */
22906 _ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h.  */
22910 #include <langinfo.h>
22911 int
22912 main ()
22913 {
22914 char* cs = nl_langinfo(CODESET);
22915   ;
22916   return 0;
22917 }
22918 _ACEOF
22919 rm -f conftest.$ac_objext conftest$ac_exeext
22920 if { (ac_try="$ac_link"
22921 case "(($ac_try" in
22922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923   *) ac_try_echo=$ac_try;;
22924 esac
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926   (eval "$ac_link") 2>conftest.er1
22927   ac_status=$?
22928   grep -v '^ *+' conftest.er1 >conftest.err
22929   rm -f conftest.er1
22930   cat conftest.err >&5
22931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932   (exit $ac_status); } && {
22933          test -z "$ac_c_werror_flag" ||
22934          test ! -s conftest.err
22935        } && test -s conftest$ac_exeext &&
22936        $as_test_x conftest$ac_exeext; then
22937   am_cv_langinfo_codeset=yes
22938 else
22939   echo "$as_me: failed program was:" >&5
22940 sed 's/^/| /' conftest.$ac_ext >&5
22941
22942         am_cv_langinfo_codeset=no
22943 fi
22944
22945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22946       conftest$ac_exeext conftest.$ac_ext
22947
22948 fi
22949 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22950 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22951   if test $am_cv_langinfo_codeset = yes; then
22952
22953 cat >>confdefs.h <<\_ACEOF
22954 #define HAVE_LANGINFO_CODESET 1
22955 _ACEOF
22956
22957   fi
22958
22959   if test $ac_cv_header_locale_h = yes; then
22960
22961   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22962 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22963 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22964   echo $ECHO_N "(cached) $ECHO_C" >&6
22965 else
22966   cat >conftest.$ac_ext <<_ACEOF
22967 /* confdefs.h.  */
22968 _ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h.  */
22972 #include <locale.h>
22973 int
22974 main ()
22975 {
22976 return LC_MESSAGES
22977   ;
22978   return 0;
22979 }
22980 _ACEOF
22981 rm -f conftest.$ac_objext conftest$ac_exeext
22982 if { (ac_try="$ac_link"
22983 case "(($ac_try" in
22984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985   *) ac_try_echo=$ac_try;;
22986 esac
22987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22988   (eval "$ac_link") 2>conftest.er1
22989   ac_status=$?
22990   grep -v '^ *+' conftest.er1 >conftest.err
22991   rm -f conftest.er1
22992   cat conftest.err >&5
22993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994   (exit $ac_status); } && {
22995          test -z "$ac_c_werror_flag" ||
22996          test ! -s conftest.err
22997        } && test -s conftest$ac_exeext &&
22998        $as_test_x conftest$ac_exeext; then
22999   gt_cv_val_LC_MESSAGES=yes
23000 else
23001   echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23003
23004         gt_cv_val_LC_MESSAGES=no
23005 fi
23006
23007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23008       conftest$ac_exeext conftest.$ac_ext
23009 fi
23010 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23011 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23012   if test $gt_cv_val_LC_MESSAGES = yes; then
23013
23014 cat >>confdefs.h <<\_ACEOF
23015 #define HAVE_LC_MESSAGES 1
23016 _ACEOF
23017
23018   fi
23019
23020   fi
23021
23022   if test -n "$INTL_MACOSX_LIBS"; then
23023     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23024   fi
23025
23026                       for ac_prog in bison
23027 do
23028   # Extract the first word of "$ac_prog", so it can be a program name with args.
23029 set dummy $ac_prog; ac_word=$2
23030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23032 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23033   echo $ECHO_N "(cached) $ECHO_C" >&6
23034 else
23035   if test -n "$INTLBISON"; then
23036   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23037 else
23038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23039 for as_dir in $PATH
23040 do
23041   IFS=$as_save_IFS
23042   test -z "$as_dir" && as_dir=.
23043   for ac_exec_ext in '' $ac_executable_extensions; do
23044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23045     ac_cv_prog_INTLBISON="$ac_prog"
23046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23047     break 2
23048   fi
23049 done
23050 done
23051 IFS=$as_save_IFS
23052
23053 fi
23054 fi
23055 INTLBISON=$ac_cv_prog_INTLBISON
23056 if test -n "$INTLBISON"; then
23057   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23058 echo "${ECHO_T}$INTLBISON" >&6; }
23059 else
23060   { echo "$as_me:$LINENO: result: no" >&5
23061 echo "${ECHO_T}no" >&6; }
23062 fi
23063
23064
23065   test -n "$INTLBISON" && break
23066 done
23067
23068   if test -z "$INTLBISON"; then
23069     ac_verc_fail=yes
23070   else
23071         { echo "$as_me:$LINENO: checking version of bison" >&5
23072 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23073     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23074     case $ac_prog_version in
23075       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23076       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23077          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23078       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23079     esac
23080     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23081 echo "${ECHO_T}$ac_prog_version" >&6; }
23082   fi
23083   if test $ac_verc_fail = yes; then
23084     INTLBISON=:
23085   fi
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23103 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23104 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23105   echo $ECHO_N "(cached) $ECHO_C" >&6
23106 else
23107   gt_save_CPPFLAGS="$CPPFLAGS"
23108      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23109      gt_save_LIBS="$LIBS"
23110      LIBS="$LIBS -framework CoreFoundation"
23111      cat >conftest.$ac_ext <<_ACEOF
23112 /* confdefs.h.  */
23113 _ACEOF
23114 cat confdefs.h >>conftest.$ac_ext
23115 cat >>conftest.$ac_ext <<_ACEOF
23116 /* end confdefs.h.  */
23117 #include <CFPreferences.h>
23118 int
23119 main ()
23120 {
23121 CFPreferencesCopyAppValue(NULL, NULL)
23122   ;
23123   return 0;
23124 }
23125 _ACEOF
23126 rm -f conftest.$ac_objext conftest$ac_exeext
23127 if { (ac_try="$ac_link"
23128 case "(($ac_try" in
23129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130   *) ac_try_echo=$ac_try;;
23131 esac
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133   (eval "$ac_link") 2>conftest.er1
23134   ac_status=$?
23135   grep -v '^ *+' conftest.er1 >conftest.err
23136   rm -f conftest.er1
23137   cat conftest.err >&5
23138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139   (exit $ac_status); } && {
23140          test -z "$ac_c_werror_flag" ||
23141          test ! -s conftest.err
23142        } && test -s conftest$ac_exeext &&
23143        $as_test_x conftest$ac_exeext; then
23144   gt_cv_func_CFPreferencesCopyAppValue=yes
23145 else
23146   echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23148
23149         gt_cv_func_CFPreferencesCopyAppValue=no
23150 fi
23151
23152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23153       conftest$ac_exeext conftest.$ac_ext
23154      CPPFLAGS="$gt_save_CPPFLAGS"
23155      LIBS="$gt_save_LIBS"
23156 fi
23157 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23158 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23159   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23160
23161 cat >>confdefs.h <<\_ACEOF
23162 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23163 _ACEOF
23164
23165   fi
23166     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23167 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23168 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23169   echo $ECHO_N "(cached) $ECHO_C" >&6
23170 else
23171   gt_save_CPPFLAGS="$CPPFLAGS"
23172      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23173      gt_save_LIBS="$LIBS"
23174      LIBS="$LIBS -framework CoreFoundation"
23175      cat >conftest.$ac_ext <<_ACEOF
23176 /* confdefs.h.  */
23177 _ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h.  */
23181 #include <CFLocale.h>
23182 int
23183 main ()
23184 {
23185 CFLocaleCopyCurrent();
23186   ;
23187   return 0;
23188 }
23189 _ACEOF
23190 rm -f conftest.$ac_objext conftest$ac_exeext
23191 if { (ac_try="$ac_link"
23192 case "(($ac_try" in
23193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23194   *) ac_try_echo=$ac_try;;
23195 esac
23196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23197   (eval "$ac_link") 2>conftest.er1
23198   ac_status=$?
23199   grep -v '^ *+' conftest.er1 >conftest.err
23200   rm -f conftest.er1
23201   cat conftest.err >&5
23202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203   (exit $ac_status); } && {
23204          test -z "$ac_c_werror_flag" ||
23205          test ! -s conftest.err
23206        } && test -s conftest$ac_exeext &&
23207        $as_test_x conftest$ac_exeext; then
23208   gt_cv_func_CFLocaleCopyCurrent=yes
23209 else
23210   echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23212
23213         gt_cv_func_CFLocaleCopyCurrent=no
23214 fi
23215
23216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23217       conftest$ac_exeext conftest.$ac_ext
23218      CPPFLAGS="$gt_save_CPPFLAGS"
23219      LIBS="$gt_save_LIBS"
23220 fi
23221 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23222 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23223   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23224
23225 cat >>confdefs.h <<\_ACEOF
23226 #define HAVE_CFLOCALECOPYCURRENT 1
23227 _ACEOF
23228
23229   fi
23230   INTL_MACOSX_LIBS=
23231   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23232     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23233   fi
23234
23235
23236
23237
23238   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23239 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23240     # Check whether --enable-nls was given.
23241 if test "${enable_nls+set}" = set; then
23242   enableval=$enable_nls; USE_NLS=$enableval
23243 else
23244   USE_NLS=yes
23245 fi
23246
23247   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23248 echo "${ECHO_T}$USE_NLS" >&6; }
23249
23250
23251
23252
23253     BUILD_INCLUDED_LIBINTL=no
23254     USE_INCLUDED_LIBINTL=no
23255
23256   LIBINTL=
23257   LTLIBINTL=
23258   POSUB=
23259
23260     if test "$USE_NLS" = "yes"; then
23261     gt_use_preinstalled_gnugettext=no
23262
23263       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23264 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23265
23266 # Check whether --with-included-gettext was given.
23267 if test "${with_included_gettext+set}" = set; then
23268   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23269 else
23270   nls_cv_force_use_gnu_gettext=no
23271 fi
23272
23273       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23274 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23275
23276       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23277       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23278
23279
23280
23281
23282
23283
23284         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23285 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23286 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23287   echo $ECHO_N "(cached) $ECHO_C" >&6
23288 else
23289   cat >conftest.$ac_ext <<_ACEOF
23290 /* confdefs.h.  */
23291 _ACEOF
23292 cat confdefs.h >>conftest.$ac_ext
23293 cat >>conftest.$ac_ext <<_ACEOF
23294 /* end confdefs.h.  */
23295 #include <libintl.h>
23296 extern int _nl_msg_cat_cntr;
23297 extern int *_nl_domain_bindings;
23298 int
23299 main ()
23300 {
23301 bindtextdomain ("", "");
23302 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23303   ;
23304   return 0;
23305 }
23306 _ACEOF
23307 rm -f conftest.$ac_objext conftest$ac_exeext
23308 if { (ac_try="$ac_link"
23309 case "(($ac_try" in
23310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311   *) ac_try_echo=$ac_try;;
23312 esac
23313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23314   (eval "$ac_link") 2>conftest.er1
23315   ac_status=$?
23316   grep -v '^ *+' conftest.er1 >conftest.err
23317   rm -f conftest.er1
23318   cat conftest.err >&5
23319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320   (exit $ac_status); } && {
23321          test -z "$ac_c_werror_flag" ||
23322          test ! -s conftest.err
23323        } && test -s conftest$ac_exeext &&
23324        $as_test_x conftest$ac_exeext; then
23325   gt_cv_func_gnugettext1_libc=yes
23326 else
23327   echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23329
23330         gt_cv_func_gnugettext1_libc=no
23331 fi
23332
23333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23334       conftest$ac_exeext conftest.$ac_ext
23335 fi
23336 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23337 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23338
23339         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23340
23341
23342
23343     use_additional=yes
23344
23345   acl_save_prefix="$prefix"
23346   prefix="$acl_final_prefix"
23347   acl_save_exec_prefix="$exec_prefix"
23348   exec_prefix="$acl_final_exec_prefix"
23349
23350     eval additional_includedir=\"$includedir\"
23351     eval additional_libdir=\"$libdir\"
23352
23353   exec_prefix="$acl_save_exec_prefix"
23354   prefix="$acl_save_prefix"
23355
23356
23357 # Check whether --with-libintl-prefix was given.
23358 if test "${with_libintl_prefix+set}" = set; then
23359   withval=$with_libintl_prefix;
23360     if test "X$withval" = "Xno"; then
23361       use_additional=no
23362     else
23363       if test "X$withval" = "X"; then
23364
23365   acl_save_prefix="$prefix"
23366   prefix="$acl_final_prefix"
23367   acl_save_exec_prefix="$exec_prefix"
23368   exec_prefix="$acl_final_exec_prefix"
23369
23370           eval additional_includedir=\"$includedir\"
23371           eval additional_libdir=\"$libdir\"
23372
23373   exec_prefix="$acl_save_exec_prefix"
23374   prefix="$acl_save_prefix"
23375
23376       else
23377         additional_includedir="$withval/include"
23378         additional_libdir="$withval/lib"
23379       fi
23380     fi
23381
23382 fi
23383
23384       LIBINTL=
23385   LTLIBINTL=
23386   INCINTL=
23387   rpathdirs=
23388   ltrpathdirs=
23389   names_already_handled=
23390   names_next_round='intl '
23391   while test -n "$names_next_round"; do
23392     names_this_round="$names_next_round"
23393     names_next_round=
23394     for name in $names_this_round; do
23395       already_handled=
23396       for n in $names_already_handled; do
23397         if test "$n" = "$name"; then
23398           already_handled=yes
23399           break
23400         fi
23401       done
23402       if test -z "$already_handled"; then
23403         names_already_handled="$names_already_handled $name"
23404                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23405         eval value=\"\$HAVE_LIB$uppername\"
23406         if test -n "$value"; then
23407           if test "$value" = yes; then
23408             eval value=\"\$LIB$uppername\"
23409             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23410             eval value=\"\$LTLIB$uppername\"
23411             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23412           else
23413                                     :
23414           fi
23415         else
23416                               found_dir=
23417           found_la=
23418           found_so=
23419           found_a=
23420           if test $use_additional = yes; then
23421             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23422               found_dir="$additional_libdir"
23423               found_so="$additional_libdir/lib$name.$shlibext"
23424               if test -f "$additional_libdir/lib$name.la"; then
23425                 found_la="$additional_libdir/lib$name.la"
23426               fi
23427             else
23428               if test -f "$additional_libdir/lib$name.$libext"; then
23429                 found_dir="$additional_libdir"
23430                 found_a="$additional_libdir/lib$name.$libext"
23431                 if test -f "$additional_libdir/lib$name.la"; then
23432                   found_la="$additional_libdir/lib$name.la"
23433                 fi
23434               fi
23435             fi
23436           fi
23437           if test "X$found_dir" = "X"; then
23438             for x in $LDFLAGS $LTLIBINTL; do
23439
23440   acl_save_prefix="$prefix"
23441   prefix="$acl_final_prefix"
23442   acl_save_exec_prefix="$exec_prefix"
23443   exec_prefix="$acl_final_exec_prefix"
23444   eval x=\"$x\"
23445   exec_prefix="$acl_save_exec_prefix"
23446   prefix="$acl_save_prefix"
23447
23448               case "$x" in
23449                 -L*)
23450                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23451                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23452                     found_dir="$dir"
23453                     found_so="$dir/lib$name.$shlibext"
23454                     if test -f "$dir/lib$name.la"; then
23455                       found_la="$dir/lib$name.la"
23456                     fi
23457                   else
23458                     if test -f "$dir/lib$name.$libext"; then
23459                       found_dir="$dir"
23460                       found_a="$dir/lib$name.$libext"
23461                       if test -f "$dir/lib$name.la"; then
23462                         found_la="$dir/lib$name.la"
23463                       fi
23464                     fi
23465                   fi
23466                   ;;
23467               esac
23468               if test "X$found_dir" != "X"; then
23469                 break
23470               fi
23471             done
23472           fi
23473           if test "X$found_dir" != "X"; then
23474                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23475             if test "X$found_so" != "X"; then
23476                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23477                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23478               else
23479                                                                                 haveit=
23480                 for x in $ltrpathdirs; do
23481                   if test "X$x" = "X$found_dir"; then
23482                     haveit=yes
23483                     break
23484                   fi
23485                 done
23486                 if test -z "$haveit"; then
23487                   ltrpathdirs="$ltrpathdirs $found_dir"
23488                 fi
23489                                 if test "$hardcode_direct" = yes; then
23490                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23491                 else
23492                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23493                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23494                                                             haveit=
23495                     for x in $rpathdirs; do
23496                       if test "X$x" = "X$found_dir"; then
23497                         haveit=yes
23498                         break
23499                       fi
23500                     done
23501                     if test -z "$haveit"; then
23502                       rpathdirs="$rpathdirs $found_dir"
23503                     fi
23504                   else
23505                                                                                 haveit=
23506                     for x in $LDFLAGS $LIBINTL; do
23507
23508   acl_save_prefix="$prefix"
23509   prefix="$acl_final_prefix"
23510   acl_save_exec_prefix="$exec_prefix"
23511   exec_prefix="$acl_final_exec_prefix"
23512   eval x=\"$x\"
23513   exec_prefix="$acl_save_exec_prefix"
23514   prefix="$acl_save_prefix"
23515
23516                       if test "X$x" = "X-L$found_dir"; then
23517                         haveit=yes
23518                         break
23519                       fi
23520                     done
23521                     if test -z "$haveit"; then
23522                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23523                     fi
23524                     if test "$hardcode_minus_L" != no; then
23525                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23526                     else
23527                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23528                     fi
23529                   fi
23530                 fi
23531               fi
23532             else
23533               if test "X$found_a" != "X"; then
23534                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23535               else
23536                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23537               fi
23538             fi
23539                         additional_includedir=
23540             case "$found_dir" in
23541               */lib | */lib/)
23542                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23543                 additional_includedir="$basedir/include"
23544                 ;;
23545             esac
23546             if test "X$additional_includedir" != "X"; then
23547                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23548                 haveit=
23549                 if test "X$additional_includedir" = "X/usr/local/include"; then
23550                   if test -n "$GCC"; then
23551                     case $host_os in
23552                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23553                     esac
23554                   fi
23555                 fi
23556                 if test -z "$haveit"; then
23557                   for x in $CPPFLAGS $INCINTL; do
23558
23559   acl_save_prefix="$prefix"
23560   prefix="$acl_final_prefix"
23561   acl_save_exec_prefix="$exec_prefix"
23562   exec_prefix="$acl_final_exec_prefix"
23563   eval x=\"$x\"
23564   exec_prefix="$acl_save_exec_prefix"
23565   prefix="$acl_save_prefix"
23566
23567                     if test "X$x" = "X-I$additional_includedir"; then
23568                       haveit=yes
23569                       break
23570                     fi
23571                   done
23572                   if test -z "$haveit"; then
23573                     if test -d "$additional_includedir"; then
23574                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23575                     fi
23576                   fi
23577                 fi
23578               fi
23579             fi
23580                         if test -n "$found_la"; then
23581                                                         save_libdir="$libdir"
23582               case "$found_la" in
23583                 */* | *\\*) . "$found_la" ;;
23584                 *) . "./$found_la" ;;
23585               esac
23586               libdir="$save_libdir"
23587                             for dep in $dependency_libs; do
23588                 case "$dep" in
23589                   -L*)
23590                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23591                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23592                       haveit=
23593                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23594                         if test -n "$GCC"; then
23595                           case $host_os in
23596                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23597                           esac
23598                         fi
23599                       fi
23600                       if test -z "$haveit"; then
23601                         haveit=
23602                         for x in $LDFLAGS $LIBINTL; do
23603
23604   acl_save_prefix="$prefix"
23605   prefix="$acl_final_prefix"
23606   acl_save_exec_prefix="$exec_prefix"
23607   exec_prefix="$acl_final_exec_prefix"
23608   eval x=\"$x\"
23609   exec_prefix="$acl_save_exec_prefix"
23610   prefix="$acl_save_prefix"
23611
23612                           if test "X$x" = "X-L$additional_libdir"; then
23613                             haveit=yes
23614                             break
23615                           fi
23616                         done
23617                         if test -z "$haveit"; then
23618                           if test -d "$additional_libdir"; then
23619                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23620                           fi
23621                         fi
23622                         haveit=
23623                         for x in $LDFLAGS $LTLIBINTL; do
23624
23625   acl_save_prefix="$prefix"
23626   prefix="$acl_final_prefix"
23627   acl_save_exec_prefix="$exec_prefix"
23628   exec_prefix="$acl_final_exec_prefix"
23629   eval x=\"$x\"
23630   exec_prefix="$acl_save_exec_prefix"
23631   prefix="$acl_save_prefix"
23632
23633                           if test "X$x" = "X-L$additional_libdir"; then
23634                             haveit=yes
23635                             break
23636                           fi
23637                         done
23638                         if test -z "$haveit"; then
23639                           if test -d "$additional_libdir"; then
23640                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23641                           fi
23642                         fi
23643                       fi
23644                     fi
23645                     ;;
23646                   -R*)
23647                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23648                     if test "$enable_rpath" != no; then
23649                                                                   haveit=
23650                       for x in $rpathdirs; do
23651                         if test "X$x" = "X$dir"; then
23652                           haveit=yes
23653                           break
23654                         fi
23655                       done
23656                       if test -z "$haveit"; then
23657                         rpathdirs="$rpathdirs $dir"
23658                       fi
23659                                                                   haveit=
23660                       for x in $ltrpathdirs; do
23661                         if test "X$x" = "X$dir"; then
23662                           haveit=yes
23663                           break
23664                         fi
23665                       done
23666                       if test -z "$haveit"; then
23667                         ltrpathdirs="$ltrpathdirs $dir"
23668                       fi
23669                     fi
23670                     ;;
23671                   -l*)
23672                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23673                     ;;
23674                   *.la)
23675                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23676                     ;;
23677                   *)
23678                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23679                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23680                     ;;
23681                 esac
23682               done
23683             fi
23684           else
23685                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23686             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23687           fi
23688         fi
23689       fi
23690     done
23691   done
23692   if test "X$rpathdirs" != "X"; then
23693     if test -n "$hardcode_libdir_separator"; then
23694                         alldirs=
23695       for found_dir in $rpathdirs; do
23696         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23697       done
23698             acl_save_libdir="$libdir"
23699       libdir="$alldirs"
23700       eval flag=\"$hardcode_libdir_flag_spec\"
23701       libdir="$acl_save_libdir"
23702       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23703     else
23704             for found_dir in $rpathdirs; do
23705         acl_save_libdir="$libdir"
23706         libdir="$found_dir"
23707         eval flag=\"$hardcode_libdir_flag_spec\"
23708         libdir="$acl_save_libdir"
23709         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23710       done
23711     fi
23712   fi
23713   if test "X$ltrpathdirs" != "X"; then
23714             for found_dir in $ltrpathdirs; do
23715       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23716     done
23717   fi
23718
23719           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23720 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23721 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23722   echo $ECHO_N "(cached) $ECHO_C" >&6
23723 else
23724   gt_save_CPPFLAGS="$CPPFLAGS"
23725             CPPFLAGS="$CPPFLAGS $INCINTL"
23726             gt_save_LIBS="$LIBS"
23727             LIBS="$LIBS $LIBINTL"
23728                         cat >conftest.$ac_ext <<_ACEOF
23729 /* confdefs.h.  */
23730 _ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h.  */
23734 #include <libintl.h>
23735 extern int _nl_msg_cat_cntr;
23736 extern
23737 #ifdef __cplusplus
23738 "C"
23739 #endif
23740 const char *_nl_expand_alias (const char *);
23741 int
23742 main ()
23743 {
23744 bindtextdomain ("", "");
23745 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23746   ;
23747   return 0;
23748 }
23749 _ACEOF
23750 rm -f conftest.$ac_objext conftest$ac_exeext
23751 if { (ac_try="$ac_link"
23752 case "(($ac_try" in
23753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23754   *) ac_try_echo=$ac_try;;
23755 esac
23756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23757   (eval "$ac_link") 2>conftest.er1
23758   ac_status=$?
23759   grep -v '^ *+' conftest.er1 >conftest.err
23760   rm -f conftest.er1
23761   cat conftest.err >&5
23762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763   (exit $ac_status); } && {
23764          test -z "$ac_c_werror_flag" ||
23765          test ! -s conftest.err
23766        } && test -s conftest$ac_exeext &&
23767        $as_test_x conftest$ac_exeext; then
23768   gt_cv_func_gnugettext1_libintl=yes
23769 else
23770   echo "$as_me: failed program was:" >&5
23771 sed 's/^/| /' conftest.$ac_ext >&5
23772
23773         gt_cv_func_gnugettext1_libintl=no
23774 fi
23775
23776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23777       conftest$ac_exeext conftest.$ac_ext
23778                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23779               LIBS="$LIBS $LIBICONV"
23780               cat >conftest.$ac_ext <<_ACEOF
23781 /* confdefs.h.  */
23782 _ACEOF
23783 cat confdefs.h >>conftest.$ac_ext
23784 cat >>conftest.$ac_ext <<_ACEOF
23785 /* end confdefs.h.  */
23786 #include <libintl.h>
23787 extern int _nl_msg_cat_cntr;
23788 extern
23789 #ifdef __cplusplus
23790 "C"
23791 #endif
23792 const char *_nl_expand_alias (const char *);
23793 int
23794 main ()
23795 {
23796 bindtextdomain ("", "");
23797 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23798   ;
23799   return 0;
23800 }
23801 _ACEOF
23802 rm -f conftest.$ac_objext conftest$ac_exeext
23803 if { (ac_try="$ac_link"
23804 case "(($ac_try" in
23805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806   *) ac_try_echo=$ac_try;;
23807 esac
23808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23809   (eval "$ac_link") 2>conftest.er1
23810   ac_status=$?
23811   grep -v '^ *+' conftest.er1 >conftest.err
23812   rm -f conftest.er1
23813   cat conftest.err >&5
23814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815   (exit $ac_status); } && {
23816          test -z "$ac_c_werror_flag" ||
23817          test ! -s conftest.err
23818        } && test -s conftest$ac_exeext &&
23819        $as_test_x conftest$ac_exeext; then
23820   LIBINTL="$LIBINTL $LIBICONV"
23821                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23822                 gt_cv_func_gnugettext1_libintl=yes
23823
23824 else
23825   echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23827
23828
23829 fi
23830
23831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23832       conftest$ac_exeext conftest.$ac_ext
23833             fi
23834             CPPFLAGS="$gt_save_CPPFLAGS"
23835             LIBS="$gt_save_LIBS"
23836 fi
23837 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23838 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23839         fi
23840
23841                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23842            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23843                 && test "$PACKAGE" != gettext-runtime \
23844                 && test "$PACKAGE" != gettext-tools; }; then
23845           gt_use_preinstalled_gnugettext=yes
23846         else
23847                     LIBINTL=
23848           LTLIBINTL=
23849           INCINTL=
23850         fi
23851
23852
23853         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23854                               nls_cv_use_gnu_gettext=yes
23855         fi
23856       fi
23857
23858       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23859                 BUILD_INCLUDED_LIBINTL=yes
23860         USE_INCLUDED_LIBINTL=yes
23861         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23862         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23863         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23864       fi
23865
23866       CATOBJEXT=
23867       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23868          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23869                 CATOBJEXT=.gmo
23870       fi
23871
23872
23873     if test -n "$INTL_MACOSX_LIBS"; then
23874       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23875          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23876                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23877         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23878       fi
23879     fi
23880
23881     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23882        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23883
23884 cat >>confdefs.h <<\_ACEOF
23885 #define ENABLE_NLS 1
23886 _ACEOF
23887
23888     else
23889       USE_NLS=no
23890     fi
23891   fi
23892
23893   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23894 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23895   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23896 echo "${ECHO_T}$USE_NLS" >&6; }
23897   if test "$USE_NLS" = "yes"; then
23898     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23899 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23900     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23901       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23902         gt_source="external libintl"
23903       else
23904         gt_source="libc"
23905       fi
23906     else
23907       gt_source="included intl directory"
23908     fi
23909     { echo "$as_me:$LINENO: result: $gt_source" >&5
23910 echo "${ECHO_T}$gt_source" >&6; }
23911   fi
23912
23913   if test "$USE_NLS" = "yes"; then
23914
23915     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23916       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23917         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23918 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23919         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23920 echo "${ECHO_T}$LIBINTL" >&6; }
23921
23922   for element in $INCINTL; do
23923     haveit=
23924     for x in $CPPFLAGS; do
23925
23926   acl_save_prefix="$prefix"
23927   prefix="$acl_final_prefix"
23928   acl_save_exec_prefix="$exec_prefix"
23929   exec_prefix="$acl_final_exec_prefix"
23930   eval x=\"$x\"
23931   exec_prefix="$acl_save_exec_prefix"
23932   prefix="$acl_save_prefix"
23933
23934       if test "X$x" = "X$element"; then
23935         haveit=yes
23936         break
23937       fi
23938     done
23939     if test -z "$haveit"; then
23940       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23941     fi
23942   done
23943
23944       fi
23945
23946
23947 cat >>confdefs.h <<\_ACEOF
23948 #define HAVE_GETTEXT 1
23949 _ACEOF
23950
23951
23952 cat >>confdefs.h <<\_ACEOF
23953 #define HAVE_DCGETTEXT 1
23954 _ACEOF
23955
23956     fi
23957
23958         POSUB=po
23959   fi
23960
23961
23962             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23963       BUILD_INCLUDED_LIBINTL=yes
23964     fi
23965
23966
23967
23968
23969
23970         nls_cv_header_intl=
23971     nls_cv_header_libgt=
23972
23973         DATADIRNAME=share
23974
23975
23976         INSTOBJEXT=.mo
23977
23978
23979         GENCAT=gencat
23980
23981
23982         INTLOBJS=
23983     if test "$USE_INCLUDED_LIBINTL" = yes; then
23984       INTLOBJS="\$(GETTOBJS)"
23985     fi
23986
23987
23988         INTL_LIBTOOL_SUFFIX_PREFIX=
23989
23990
23991
23992     INTLLIBS="$LIBINTL"
23993
23994
23995
23996
23997
23998
23999 fi
24000
24001 support_mysql=no
24002 support_sqlite=no
24003 support_sqlite3=no
24004 support_postgresql=no
24005 support_dbi=no
24006 support_smartalloc=yes
24007 support_readline=yes
24008 support_conio=yes
24009 support_gnome=no
24010 support_bat=no
24011 support_wx_console=no
24012 support_tray_monitor=no
24013 support_tls=no
24014 support_crypto=no
24015 gnome_version=
24016 wx_version=
24017 support_static_tools=no
24018 support_static_fd=no
24019 support_static_sd=no
24020 support_static_dir=no
24021 support_static_cons=no
24022 support_python=no
24023 build_client_only=no
24024 build_dird=yes
24025 build_stored=yes
24026 cats=
24027 db_type=Internal
24028 support_lockmgr=no
24029 DB_TYPE=bdb
24030
24031
24032 # Check whether --enable-gnome was given.
24033 if test "${enable_gnome+set}" = set; then
24034   enableval=$enable_gnome;
24035        if test x$enableval = xyes; then
24036           support_gnome=yes
24037        fi
24038
24039
24040 fi
24041
24042
24043 GNOME_DIR=
24044 if test x$support_gnome = xyes; then
24045    abc=`$PKGCONFIG --exists libgnomeui-2.0`
24046    pkg=$?
24047    if test $pkg = 0; then
24048       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
24049       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24050       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
24051       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24052
24053
24054
24055
24056       GNOME_DIR=src/gnome2-console
24057       gnome_version="Version 2.x"
24058    else
24059       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24060 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24061    { (exit 1); exit 1; }; }
24062    fi
24063 fi
24064
24065
24066 # Check whether --enable-bat was given.
24067 if test "${enable_bat+set}" = set; then
24068   enableval=$enable_bat;
24069        if test x$enableval = xyes; then
24070
24071 cat >>confdefs.h <<\_ACEOF
24072 #define HAVE_BAT 1
24073 _ACEOF
24074
24075           support_bat=yes
24076        fi
24077
24078
24079 fi
24080
24081
24082 BAT_DIR=
24083 if test x$support_bat = xyes; then
24084    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24085    pkg=$?
24086    if test $pkg = 0; then
24087       BAT_DIR=src/qt-console
24088    else
24089       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24090 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24091    { (exit 1); exit 1; }; }
24092    fi
24093 fi
24094
24095 got_qwt=no
24096 QWT_INC=
24097 QWT_LDFLAGS=
24098 QWT_LIB=
24099 QWT=
24100 no_qwt=no
24101 if test x$support_bat = xyes; then
24102    { echo "$as_me:$LINENO: checking for qwt support" >&5
24103 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24104
24105 # Check whether --with-qwt was given.
24106 if test "${with_qwt+set}" = set; then
24107   withval=$with_qwt;
24108           case "$with_qwt" in
24109           no)
24110              no_qwt=yes
24111              ;;
24112           yes|*)
24113              if test -f ${with_qwt}/include/qwt.h; then
24114                 QWT_INC="${with_qwt}/include"
24115                 QWT_LDFLAGS="-L${with_qwt}/lib"
24116                 QWT_LIB="-lqwt"
24117                 QWT="qwt"
24118              fi
24119              ;;
24120           esac
24121
24122
24123 fi
24124
24125
24126             if test $no_qwt = no; then
24127       if test x$QWT_INC = x; then
24128          for root in /usr /usr/local; do
24129             for ver in qwt qwt5 qwt-qt4; do
24130                if test -f ${root}/include/${ver}/qwt.h; then
24131                   QWT_INC="${root}/include/${ver}"
24132                   if test -d ${root}/lib64/; then
24133                      QWT_LDFLAGS="-L${root}/lib64"
24134                   elif test -d ${root}/lib/64/; then
24135                      QWT_LDFLAGS="-L${root}/64"
24136                   else
24137                      QWT_LDFLAGS="-L${root}/lib"
24138                   fi
24139                   QWT_LIB="-lqwt"
24140                   QWT="qwt"
24141                   got_qwt=yes
24142                   break;
24143                fi
24144             done
24145          done
24146       fi
24147    fi
24148    if test x$QWT_INC = x; then
24149       { echo "$as_me:$LINENO: result: no" >&5
24150 echo "${ECHO_T}no" >&6; }
24151    else
24152
24153 cat >>confdefs.h <<\_ACEOF
24154 #define HAVE_QWT 1
24155 _ACEOF
24156
24157       { echo "$as_me:$LINENO: result: yes" >&5
24158 echo "${ECHO_T}yes" >&6; }
24159    fi
24160 fi
24161
24162
24163
24164
24165
24166
24167
24168 # Check whether --enable-bwx-console was given.
24169 if test "${enable_bwx_console+set}" = set; then
24170   enableval=$enable_bwx_console;
24171        if test x$enableval = xyes; then
24172           support_wx_console=yes
24173        fi
24174
24175
24176 fi
24177
24178
24179 WX_DIR=
24180 if test x$support_wx_console = xyes; then
24181    abc=`$WXCONFIG $WXFLAGS --cppflags`
24182    pkg=$?
24183    if test $pkg = 0; then
24184       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24185       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24186       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24187
24188
24189
24190       WX_DIR="src/wx-console"
24191    else
24192       echo " "
24193       echo "wx-config program not found. bwx-console disabled."
24194       echo " "
24195       support_wx_console=no
24196    fi
24197 fi
24198
24199
24200 # Check whether --enable-tray-monitor was given.
24201 if test "${enable_tray_monitor+set}" = set; then
24202   enableval=$enable_tray_monitor;
24203        if test x$enableval = xyes; then
24204           support_tray_monitor=yes
24205        fi
24206
24207
24208 fi
24209
24210
24211 TRAY_MONITOR_DIR=
24212 if test x$support_tray_monitor = xyes; then
24213    abc=`$PKGCONFIG --exists gtk+-2.0`
24214    pkg=$?
24215    if test $pkg = 0; then
24216       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24217       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24218
24219
24220       TRAY_MONITOR_DIR=src/tray-monitor
24221       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24222       pkg=$?
24223       if test $pkg = 0; then
24224
24225 cat >>confdefs.h <<\_ACEOF
24226 #define HAVE_GTK_2_4 1
24227 _ACEOF
24228
24229       fi
24230    fi
24231 fi
24232
24233
24234 # Check whether --enable-smartalloc was given.
24235 if test "${enable_smartalloc+set}" = set; then
24236   enableval=$enable_smartalloc;
24237        if test x$enableval = xno; then
24238           support_smartalloc=no
24239        fi
24240
24241
24242 fi
24243
24244
24245 if test x$support_smartalloc = xyes; then
24246
24247 cat >>confdefs.h <<\_ACEOF
24248 #define SMARTALLOC 1
24249 _ACEOF
24250
24251 fi
24252
24253 # Check whether --enable-lockmgr was given.
24254 if test "${enable_lockmgr+set}" = set; then
24255   enableval=$enable_lockmgr;
24256        if test x$enableval = xyes; then
24257           support_lockmgr=yes
24258        fi
24259
24260
24261 fi
24262
24263
24264 if test x$support_lockmgr = xyes; then
24265
24266 cat >>confdefs.h <<\_ACEOF
24267 #define _USE_LOCKMGR 1
24268 _ACEOF
24269
24270 fi
24271
24272
24273 # Check whether --enable-static-tools was given.
24274 if test "${enable_static_tools+set}" = set; then
24275   enableval=$enable_static_tools;
24276        if test x$enableval = xyes; then
24277           if test x$use_libtool = xyes; then
24278              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24279   please rerun configure with --disable-libtool" >&5
24280 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24281   please rerun configure with --disable-libtool" >&2;}
24282    { (exit 1); exit 1; }; }
24283           fi
24284           support_static_tools=yes
24285        fi
24286
24287
24288 fi
24289
24290
24291 TTOOL_LDFLAGS=
24292 if test x$support_static_tools = xyes; then
24293    TTOOL_LDFLAGS="-static"
24294 fi
24295
24296
24297 # Check whether --enable-static-fd was given.
24298 if test "${enable_static_fd+set}" = set; then
24299   enableval=$enable_static_fd;
24300        if test x$enableval = xyes; then
24301           if test x$use_libtool = xyes; then
24302              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24303   please rerun configure with --disable-libtool" >&5
24304 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24305   please rerun configure with --disable-libtool" >&2;}
24306    { (exit 1); exit 1; }; }
24307           fi
24308           support_static_fd=yes
24309        fi
24310
24311
24312 fi
24313
24314
24315 STATIC_FD=
24316 if test x$support_static_fd = xyes; then
24317    STATIC_FD="static-bacula-fd"
24318 fi
24319
24320
24321 # Check whether --enable-static-sd was given.
24322 if test "${enable_static_sd+set}" = set; then
24323   enableval=$enable_static_sd;
24324        if test x$enableval = xyes; then
24325           if test x$use_libtool = xyes; then
24326              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24327   please rerun configure with --disable-libtool" >&5
24328 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24329   please rerun configure with --disable-libtool" >&2;}
24330    { (exit 1); exit 1; }; }
24331           fi
24332           support_static_sd=yes
24333        fi
24334
24335
24336 fi
24337
24338
24339 STATIC_SD=
24340 if test x$support_static_sd = xyes; then
24341    STATIC_SD="static-bacula-sd"
24342 fi
24343
24344
24345 # Check whether --enable-static-dir was given.
24346 if test "${enable_static_dir+set}" = set; then
24347   enableval=$enable_static_dir;
24348        if test x$enableval = xyes; then
24349           if test x$use_libtool = xyes; then
24350              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24351   please rerun configure with --disable-libtool" >&5
24352 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24353   please rerun configure with --disable-libtool" >&2;}
24354    { (exit 1); exit 1; }; }
24355           fi
24356           support_static_dir=yes
24357        fi
24358
24359
24360 fi
24361
24362
24363 STATIC_DIR=
24364 if test x$support_static_dir = xyes; then
24365    STATIC_DIR="static-bacula-dir"
24366 fi
24367
24368
24369 # Check whether --enable-static-cons was given.
24370 if test "${enable_static_cons+set}" = set; then
24371   enableval=$enable_static_cons;
24372        if test x$enableval = xyes; then
24373           if test x$use_libtool = xyes; then
24374              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24375   please rerun configure with --disable-libtool" >&5
24376 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24377   please rerun configure with --disable-libtool" >&2;}
24378    { (exit 1); exit 1; }; }
24379           fi
24380           support_static_cons=yes
24381        fi
24382
24383
24384 fi
24385
24386
24387 STATIC_CONS=
24388 STATIC_GNOME_CONS=
24389 STATIC_WX_CONS=
24390 if test x$support_static_cons = xyes; then
24391    STATIC_CONS="static-bconsole"
24392    STATIC_GNOME_CONS="static-bgnome-console"
24393    STATIC_WX_CONS="static-bwx-console"
24394 fi
24395
24396
24397
24398
24399 # Check whether --enable-client-only was given.
24400 if test "${enable_client_only+set}" = set; then
24401   enableval=$enable_client_only;
24402        if test x$enableval = xyes; then
24403           build_client_only=yes
24404           db_type=None
24405           DB_TYPE=none
24406        fi
24407
24408
24409 fi
24410
24411 if test x$build_client_only = xno; then
24412    ALL_DIRS="subdirs"
24413 else
24414    ALL_DIRS=""
24415 fi
24416
24417
24418 # Check whether --enable-build-dird was given.
24419 if test "${enable_build_dird+set}" = set; then
24420   enableval=$enable_build_dird;
24421        if test x$enableval = xno; then
24422           build_dird=no
24423        fi
24424
24425
24426 fi
24427
24428 if test x$build_dird = xyes; then
24429    DIRD_DIR="src/dird"
24430    DIR_TOOLS="DIRTOOLS"
24431 else
24432    DIRD_DIR=""
24433    DIR_TOOLS="NODIRTOOLS"
24434 fi
24435
24436
24437
24438 # Check whether --enable-build-stored was given.
24439 if test "${enable_build_stored+set}" = set; then
24440   enableval=$enable_build_stored;
24441       if test x$enableval = xno; then
24442          build_stored=no
24443       fi
24444
24445
24446 fi
24447
24448 if test x$build_stored = xyes; then
24449    STORED_DIR="src/stored"
24450 else
24451    STORED_DIR=""
24452 fi
24453
24454
24455 # Check whether --enable-conio was given.
24456 if test "${enable_conio+set}" = set; then
24457   enableval=$enable_conio;
24458        if test x$enableval = xno; then
24459           support_conio=no
24460        fi
24461
24462
24463 fi
24464
24465
24466
24467 support_ipv6=yes
24468 # Check whether --enable-ipv6 was given.
24469 if test "${enable_ipv6+set}" = set; then
24470   enableval=$enable_ipv6;
24471        if test x$enableval = xno; then
24472           support_ipv6=no
24473        fi
24474
24475
24476 fi
24477
24478
24479 if test x$support_ipv6 = xyes; then
24480     cat >conftest.$ac_ext <<_ACEOF
24481 /* confdefs.h.  */
24482 _ACEOF
24483 cat confdefs.h >>conftest.$ac_ext
24484 cat >>conftest.$ac_ext <<_ACEOF
24485 /* end confdefs.h.  */
24486  #include <sys/types.h>
24487 #include <sys/socket.h>
24488 #include <netinet/in.h>
24489 int
24490 main ()
24491 {
24492 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24493   ;
24494   return 0;
24495 }
24496 _ACEOF
24497 rm -f conftest.$ac_objext conftest$ac_exeext
24498 if { (ac_try="$ac_link"
24499 case "(($ac_try" in
24500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24501   *) ac_try_echo=$ac_try;;
24502 esac
24503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24504   (eval "$ac_link") 2>conftest.er1
24505   ac_status=$?
24506   grep -v '^ *+' conftest.er1 >conftest.err
24507   rm -f conftest.er1
24508   cat conftest.err >&5
24509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510   (exit $ac_status); } && {
24511          test -z "$ac_c_werror_flag" ||
24512          test ! -s conftest.err
24513        } && test -s conftest$ac_exeext &&
24514        $as_test_x conftest$ac_exeext; then
24515   support_ipv6=yes
24516 else
24517   echo "$as_me: failed program was:" >&5
24518 sed 's/^/| /' conftest.$ac_ext >&5
24519
24520         support_ipv6=no
24521 fi
24522
24523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24524       conftest$ac_exeext conftest.$ac_ext
24525 fi
24526
24527 if test x$support_ipv6 = xyes; then
24528
24529 cat >>confdefs.h <<\_ACEOF
24530 #define HAVE_IPV6 1
24531 _ACEOF
24532
24533 fi
24534
24535 got_conio="no"
24536 if test x$support_conio = xyes; then
24537    if test "${ac_cv_header_termcap_h+set}" = set; then
24538   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24539 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24540 if test "${ac_cv_header_termcap_h+set}" = set; then
24541   echo $ECHO_N "(cached) $ECHO_C" >&6
24542 fi
24543 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24544 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24545 else
24546   # Is the header compilable?
24547 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24548 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24549 cat >conftest.$ac_ext <<_ACEOF
24550 /* confdefs.h.  */
24551 _ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h.  */
24555 $ac_includes_default
24556 #include <termcap.h>
24557 _ACEOF
24558 rm -f conftest.$ac_objext
24559 if { (ac_try="$ac_compile"
24560 case "(($ac_try" in
24561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24562   *) ac_try_echo=$ac_try;;
24563 esac
24564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24565   (eval "$ac_compile") 2>conftest.er1
24566   ac_status=$?
24567   grep -v '^ *+' conftest.er1 >conftest.err
24568   rm -f conftest.er1
24569   cat conftest.err >&5
24570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571   (exit $ac_status); } && {
24572          test -z "$ac_c_werror_flag" ||
24573          test ! -s conftest.err
24574        } && test -s conftest.$ac_objext; then
24575   ac_header_compiler=yes
24576 else
24577   echo "$as_me: failed program was:" >&5
24578 sed 's/^/| /' conftest.$ac_ext >&5
24579
24580         ac_header_compiler=no
24581 fi
24582
24583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24585 echo "${ECHO_T}$ac_header_compiler" >&6; }
24586
24587 # Is the header present?
24588 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24589 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24590 cat >conftest.$ac_ext <<_ACEOF
24591 /* confdefs.h.  */
24592 _ACEOF
24593 cat confdefs.h >>conftest.$ac_ext
24594 cat >>conftest.$ac_ext <<_ACEOF
24595 /* end confdefs.h.  */
24596 #include <termcap.h>
24597 _ACEOF
24598 if { (ac_try="$ac_cpp conftest.$ac_ext"
24599 case "(($ac_try" in
24600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24601   *) ac_try_echo=$ac_try;;
24602 esac
24603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24605   ac_status=$?
24606   grep -v '^ *+' conftest.er1 >conftest.err
24607   rm -f conftest.er1
24608   cat conftest.err >&5
24609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610   (exit $ac_status); } >/dev/null && {
24611          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24612          test ! -s conftest.err
24613        }; then
24614   ac_header_preproc=yes
24615 else
24616   echo "$as_me: failed program was:" >&5
24617 sed 's/^/| /' conftest.$ac_ext >&5
24618
24619   ac_header_preproc=no
24620 fi
24621
24622 rm -f conftest.err conftest.$ac_ext
24623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24624 echo "${ECHO_T}$ac_header_preproc" >&6; }
24625
24626 # So?  What about this header?
24627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24628   yes:no: )
24629     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24630 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24631     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24632 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24633     ac_header_preproc=yes
24634     ;;
24635   no:yes:* )
24636     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24637 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24638     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24639 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24640     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24641 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24642     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24643 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24644     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24645 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24646     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24647 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24648
24649     ;;
24650 esac
24651 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24652 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24653 if test "${ac_cv_header_termcap_h+set}" = set; then
24654   echo $ECHO_N "(cached) $ECHO_C" >&6
24655 else
24656   ac_cv_header_termcap_h=$ac_header_preproc
24657 fi
24658 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24659 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24660
24661 fi
24662 if test $ac_cv_header_termcap_h = yes; then
24663    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24664 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24665 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24666   echo $ECHO_N "(cached) $ECHO_C" >&6
24667 else
24668   ac_check_lib_save_LIBS=$LIBS
24669 LIBS="-ltermcap  $LIBS"
24670 cat >conftest.$ac_ext <<_ACEOF
24671 /* confdefs.h.  */
24672 _ACEOF
24673 cat confdefs.h >>conftest.$ac_ext
24674 cat >>conftest.$ac_ext <<_ACEOF
24675 /* end confdefs.h.  */
24676
24677 /* Override any GCC internal prototype to avoid an error.
24678    Use char because int might match the return type of a GCC
24679    builtin and then its argument prototype would still apply.  */
24680 #ifdef __cplusplus
24681 extern "C"
24682 #endif
24683 char tgetent ();
24684 int
24685 main ()
24686 {
24687 return tgetent ();
24688   ;
24689   return 0;
24690 }
24691 _ACEOF
24692 rm -f conftest.$ac_objext conftest$ac_exeext
24693 if { (ac_try="$ac_link"
24694 case "(($ac_try" in
24695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24696   *) ac_try_echo=$ac_try;;
24697 esac
24698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24699   (eval "$ac_link") 2>conftest.er1
24700   ac_status=$?
24701   grep -v '^ *+' conftest.er1 >conftest.err
24702   rm -f conftest.er1
24703   cat conftest.err >&5
24704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705   (exit $ac_status); } && {
24706          test -z "$ac_c_werror_flag" ||
24707          test ! -s conftest.err
24708        } && test -s conftest$ac_exeext &&
24709        $as_test_x conftest$ac_exeext; then
24710   ac_cv_lib_termcap_tgetent=yes
24711 else
24712   echo "$as_me: failed program was:" >&5
24713 sed 's/^/| /' conftest.$ac_ext >&5
24714
24715         ac_cv_lib_termcap_tgetent=no
24716 fi
24717
24718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24719       conftest$ac_exeext conftest.$ac_ext
24720 LIBS=$ac_check_lib_save_LIBS
24721 fi
24722 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24723 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24724 if test $ac_cv_lib_termcap_tgetent = yes; then
24725    CONS_LIBS="-ltermcap"
24726     CONS_OBJ="conio.o"
24727     CONS_SRC="conio.c"
24728     got_conio="yes"
24729     support_readline=no
24730
24731 cat >>confdefs.h <<\_ACEOF
24732 #define HAVE_CONIO 1
24733 _ACEOF
24734
24735
24736 else
24737    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24738 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24739 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24740   echo $ECHO_N "(cached) $ECHO_C" >&6
24741 else
24742   ac_check_lib_save_LIBS=$LIBS
24743 LIBS="-lncurses  $LIBS"
24744 cat >conftest.$ac_ext <<_ACEOF
24745 /* confdefs.h.  */
24746 _ACEOF
24747 cat confdefs.h >>conftest.$ac_ext
24748 cat >>conftest.$ac_ext <<_ACEOF
24749 /* end confdefs.h.  */
24750
24751 /* Override any GCC internal prototype to avoid an error.
24752    Use char because int might match the return type of a GCC
24753    builtin and then its argument prototype would still apply.  */
24754 #ifdef __cplusplus
24755 extern "C"
24756 #endif
24757 char tgetent ();
24758 int
24759 main ()
24760 {
24761 return tgetent ();
24762   ;
24763   return 0;
24764 }
24765 _ACEOF
24766 rm -f conftest.$ac_objext conftest$ac_exeext
24767 if { (ac_try="$ac_link"
24768 case "(($ac_try" in
24769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24770   *) ac_try_echo=$ac_try;;
24771 esac
24772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24773   (eval "$ac_link") 2>conftest.er1
24774   ac_status=$?
24775   grep -v '^ *+' conftest.er1 >conftest.err
24776   rm -f conftest.er1
24777   cat conftest.err >&5
24778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779   (exit $ac_status); } && {
24780          test -z "$ac_c_werror_flag" ||
24781          test ! -s conftest.err
24782        } && test -s conftest$ac_exeext &&
24783        $as_test_x conftest$ac_exeext; then
24784   ac_cv_lib_ncurses_tgetent=yes
24785 else
24786   echo "$as_me: failed program was:" >&5
24787 sed 's/^/| /' conftest.$ac_ext >&5
24788
24789         ac_cv_lib_ncurses_tgetent=no
24790 fi
24791
24792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24793       conftest$ac_exeext conftest.$ac_ext
24794 LIBS=$ac_check_lib_save_LIBS
24795 fi
24796 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24797 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24798 if test $ac_cv_lib_ncurses_tgetent = yes; then
24799    CONS_LIBS="-lncurses"
24800       CONS_OBJ="conio.o"
24801       CONS_SRC="conio.c"
24802       got_conio="yes"
24803       support_readline=no
24804
24805 cat >>confdefs.h <<\_ACEOF
24806 #define HAVE_CONIO 1
24807 _ACEOF
24808
24809
24810 fi
24811
24812
24813 fi
24814
24815
24816 else
24817
24818
24819 for ac_header in curses.h
24820 do
24821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24823   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24826   echo $ECHO_N "(cached) $ECHO_C" >&6
24827 fi
24828 ac_res=`eval echo '${'$as_ac_Header'}'`
24829                { echo "$as_me:$LINENO: result: $ac_res" >&5
24830 echo "${ECHO_T}$ac_res" >&6; }
24831 else
24832   # Is the header compilable?
24833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
24842 #include <$ac_header>
24843 _ACEOF
24844 rm -f conftest.$ac_objext
24845 if { (ac_try="$ac_compile"
24846 case "(($ac_try" in
24847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24848   *) ac_try_echo=$ac_try;;
24849 esac
24850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24851   (eval "$ac_compile") 2>conftest.er1
24852   ac_status=$?
24853   grep -v '^ *+' conftest.er1 >conftest.err
24854   rm -f conftest.er1
24855   cat conftest.err >&5
24856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857   (exit $ac_status); } && {
24858          test -z "$ac_c_werror_flag" ||
24859          test ! -s conftest.err
24860        } && test -s conftest.$ac_objext; then
24861   ac_header_compiler=yes
24862 else
24863   echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24865
24866         ac_header_compiler=no
24867 fi
24868
24869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24871 echo "${ECHO_T}$ac_header_compiler" >&6; }
24872
24873 # Is the header present?
24874 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24876 cat >conftest.$ac_ext <<_ACEOF
24877 /* confdefs.h.  */
24878 _ACEOF
24879 cat confdefs.h >>conftest.$ac_ext
24880 cat >>conftest.$ac_ext <<_ACEOF
24881 /* end confdefs.h.  */
24882 #include <$ac_header>
24883 _ACEOF
24884 if { (ac_try="$ac_cpp conftest.$ac_ext"
24885 case "(($ac_try" in
24886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887   *) ac_try_echo=$ac_try;;
24888 esac
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24891   ac_status=$?
24892   grep -v '^ *+' conftest.er1 >conftest.err
24893   rm -f conftest.er1
24894   cat conftest.err >&5
24895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896   (exit $ac_status); } >/dev/null && {
24897          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24898          test ! -s conftest.err
24899        }; then
24900   ac_header_preproc=yes
24901 else
24902   echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24904
24905   ac_header_preproc=no
24906 fi
24907
24908 rm -f conftest.err conftest.$ac_ext
24909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24910 echo "${ECHO_T}$ac_header_preproc" >&6; }
24911
24912 # So?  What about this header?
24913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24914   yes:no: )
24915     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24917     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24919     ac_header_preproc=yes
24920     ;;
24921   no:yes:* )
24922     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24924     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24925 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24926     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24928     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24929 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24932     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24934
24935     ;;
24936 esac
24937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24940   echo $ECHO_N "(cached) $ECHO_C" >&6
24941 else
24942   eval "$as_ac_Header=\$ac_header_preproc"
24943 fi
24944 ac_res=`eval echo '${'$as_ac_Header'}'`
24945                { echo "$as_me:$LINENO: result: $ac_res" >&5
24946 echo "${ECHO_T}$ac_res" >&6; }
24947
24948 fi
24949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24950   cat >>confdefs.h <<_ACEOF
24951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24952 _ACEOF
24953
24954 fi
24955
24956 done
24957
24958     { echo "$as_me:$LINENO: checking for term.h" >&5
24959 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24960 if test "${ac_cv_header_term_h+set}" = set; then
24961   echo $ECHO_N "(cached) $ECHO_C" >&6
24962 else
24963   cat >conftest.$ac_ext <<_ACEOF
24964 /* confdefs.h.  */
24965 _ACEOF
24966 cat confdefs.h >>conftest.$ac_ext
24967 cat >>conftest.$ac_ext <<_ACEOF
24968 /* end confdefs.h.  */
24969 #if HAVE_CURSES_H
24970 #include <curses.h>
24971 #endif
24972
24973
24974 #include <term.h>
24975 _ACEOF
24976 rm -f conftest.$ac_objext
24977 if { (ac_try="$ac_compile"
24978 case "(($ac_try" in
24979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24980   *) ac_try_echo=$ac_try;;
24981 esac
24982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24983   (eval "$ac_compile") 2>conftest.er1
24984   ac_status=$?
24985   grep -v '^ *+' conftest.er1 >conftest.err
24986   rm -f conftest.er1
24987   cat conftest.err >&5
24988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989   (exit $ac_status); } && {
24990          test -z "$ac_c_werror_flag" ||
24991          test ! -s conftest.err
24992        } && test -s conftest.$ac_objext; then
24993   ac_cv_header_term_h=yes
24994 else
24995   echo "$as_me: failed program was:" >&5
24996 sed 's/^/| /' conftest.$ac_ext >&5
24997
24998         ac_cv_header_term_h=no
24999 fi
25000
25001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25002 fi
25003 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25004 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25005 if test $ac_cv_header_term_h = yes; then
25006    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25007 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25008 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25009   echo $ECHO_N "(cached) $ECHO_C" >&6
25010 else
25011   ac_check_lib_save_LIBS=$LIBS
25012 LIBS="-lcurses  $LIBS"
25013 cat >conftest.$ac_ext <<_ACEOF
25014 /* confdefs.h.  */
25015 _ACEOF
25016 cat confdefs.h >>conftest.$ac_ext
25017 cat >>conftest.$ac_ext <<_ACEOF
25018 /* end confdefs.h.  */
25019
25020 /* Override any GCC internal prototype to avoid an error.
25021    Use char because int might match the return type of a GCC
25022    builtin and then its argument prototype would still apply.  */
25023 #ifdef __cplusplus
25024 extern "C"
25025 #endif
25026 char tgetent ();
25027 int
25028 main ()
25029 {
25030 return tgetent ();
25031   ;
25032   return 0;
25033 }
25034 _ACEOF
25035 rm -f conftest.$ac_objext conftest$ac_exeext
25036 if { (ac_try="$ac_link"
25037 case "(($ac_try" in
25038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039   *) ac_try_echo=$ac_try;;
25040 esac
25041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25042   (eval "$ac_link") 2>conftest.er1
25043   ac_status=$?
25044   grep -v '^ *+' conftest.er1 >conftest.err
25045   rm -f conftest.er1
25046   cat conftest.err >&5
25047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048   (exit $ac_status); } && {
25049          test -z "$ac_c_werror_flag" ||
25050          test ! -s conftest.err
25051        } && test -s conftest$ac_exeext &&
25052        $as_test_x conftest$ac_exeext; then
25053   ac_cv_lib_curses_tgetent=yes
25054 else
25055   echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.$ac_ext >&5
25057
25058         ac_cv_lib_curses_tgetent=no
25059 fi
25060
25061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25062       conftest$ac_exeext conftest.$ac_ext
25063 LIBS=$ac_check_lib_save_LIBS
25064 fi
25065 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25066 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25067 if test $ac_cv_lib_curses_tgetent = yes; then
25068    CONS_LIBS="-lcurses"
25069          CONS_OBJ="conio.o"
25070          CONS_SRC="conio.c"
25071          got_conio="yes"
25072          support_readline=no
25073
25074 cat >>confdefs.h <<\_ACEOF
25075 #define HAVE_CONIO 1
25076 _ACEOF
25077
25078
25079 fi
25080
25081
25082 else
25083    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25084 fi
25085
25086
25087
25088 fi
25089
25090
25091 fi
25092
25093
25094 # Check whether --enable-readline was given.
25095 if test "${enable_readline+set}" = set; then
25096   enableval=$enable_readline;
25097        if test x$enableval = xno; then
25098           support_readline=no
25099        fi
25100
25101
25102 fi
25103
25104
25105 got_readline="no"
25106 READLINE_SRC=
25107 if test x$support_readline = xyes; then
25108
25109 # Check whether --with-readline was given.
25110 if test "${with_readline+set}" = set; then
25111   withval=$with_readline;
25112           case "$with_readline" in
25113           no)
25114              :
25115              ;;
25116           yes|*)
25117              if test -f ${with_readline}/readline.h; then
25118                 CONS_INC="-I${with_readline}"
25119                 CONS_LDFLAGS="-L$with_readline"
25120              elif test -f ${with_readline}/include/readline/readline.h; then
25121                 CONS_INC="-I${with_readline}/include/readline"
25122                 CONS_LDFLAGS="-L${with_readline}/lib"
25123                 with_readline="${with_readline}/include/readline"
25124              else
25125                 with_readline="/usr/include/readline"
25126              fi
25127
25128              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25130   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25131 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25133   echo $ECHO_N "(cached) $ECHO_C" >&6
25134 fi
25135 ac_res=`eval echo '${'$as_ac_Header'}'`
25136                { echo "$as_me:$LINENO: result: $ac_res" >&5
25137 echo "${ECHO_T}$ac_res" >&6; }
25138 else
25139   # Is the header compilable?
25140 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25141 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25142 cat >conftest.$ac_ext <<_ACEOF
25143 /* confdefs.h.  */
25144 _ACEOF
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h.  */
25148 $ac_includes_default
25149 #include <${with_readline}/readline.h>
25150 _ACEOF
25151 rm -f conftest.$ac_objext
25152 if { (ac_try="$ac_compile"
25153 case "(($ac_try" in
25154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25155   *) ac_try_echo=$ac_try;;
25156 esac
25157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25158   (eval "$ac_compile") 2>conftest.er1
25159   ac_status=$?
25160   grep -v '^ *+' conftest.er1 >conftest.err
25161   rm -f conftest.er1
25162   cat conftest.err >&5
25163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164   (exit $ac_status); } && {
25165          test -z "$ac_c_werror_flag" ||
25166          test ! -s conftest.err
25167        } && test -s conftest.$ac_objext; then
25168   ac_header_compiler=yes
25169 else
25170   echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25172
25173         ac_header_compiler=no
25174 fi
25175
25176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25178 echo "${ECHO_T}$ac_header_compiler" >&6; }
25179
25180 # Is the header present?
25181 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25182 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25183 cat >conftest.$ac_ext <<_ACEOF
25184 /* confdefs.h.  */
25185 _ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h.  */
25189 #include <${with_readline}/readline.h>
25190 _ACEOF
25191 if { (ac_try="$ac_cpp conftest.$ac_ext"
25192 case "(($ac_try" in
25193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194   *) ac_try_echo=$ac_try;;
25195 esac
25196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25198   ac_status=$?
25199   grep -v '^ *+' conftest.er1 >conftest.err
25200   rm -f conftest.er1
25201   cat conftest.err >&5
25202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203   (exit $ac_status); } >/dev/null && {
25204          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25205          test ! -s conftest.err
25206        }; then
25207   ac_header_preproc=yes
25208 else
25209   echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25211
25212   ac_header_preproc=no
25213 fi
25214
25215 rm -f conftest.err conftest.$ac_ext
25216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25217 echo "${ECHO_T}$ac_header_preproc" >&6; }
25218
25219 # So?  What about this header?
25220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25221   yes:no: )
25222     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25223 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25224     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25225 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25226     ac_header_preproc=yes
25227     ;;
25228   no:yes:* )
25229     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25230 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25231     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25232 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25233     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25234 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25235     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25236 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25237     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25238 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25239     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25240 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25241
25242     ;;
25243 esac
25244 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25245 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25247   echo $ECHO_N "(cached) $ECHO_C" >&6
25248 else
25249   eval "$as_ac_Header=\$ac_header_preproc"
25250 fi
25251 ac_res=`eval echo '${'$as_ac_Header'}'`
25252                { echo "$as_me:$LINENO: result: $ac_res" >&5
25253 echo "${ECHO_T}$ac_res" >&6; }
25254
25255 fi
25256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25257
25258
25259 cat >>confdefs.h <<\_ACEOF
25260 #define HAVE_READLINE 1
25261 _ACEOF
25262
25263                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25264                     got_readline="yes"
25265
25266 else
25267
25268                     echo " "
25269                     echo "readline.h not found. readline turned off ..."
25270                     echo " "
25271
25272
25273 fi
25274
25275
25276              ;;
25277           esac
25278
25279 else
25280
25281                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25282   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25283 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25284 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25285   echo $ECHO_N "(cached) $ECHO_C" >&6
25286 fi
25287 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25288 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25289 else
25290   # Is the header compilable?
25291 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25292 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25293 cat >conftest.$ac_ext <<_ACEOF
25294 /* confdefs.h.  */
25295 _ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h.  */
25299 $ac_includes_default
25300 #include </usr/include/readline/readline.h>
25301 _ACEOF
25302 rm -f conftest.$ac_objext
25303 if { (ac_try="$ac_compile"
25304 case "(($ac_try" in
25305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306   *) ac_try_echo=$ac_try;;
25307 esac
25308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25309   (eval "$ac_compile") 2>conftest.er1
25310   ac_status=$?
25311   grep -v '^ *+' conftest.er1 >conftest.err
25312   rm -f conftest.er1
25313   cat conftest.err >&5
25314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315   (exit $ac_status); } && {
25316          test -z "$ac_c_werror_flag" ||
25317          test ! -s conftest.err
25318        } && test -s conftest.$ac_objext; then
25319   ac_header_compiler=yes
25320 else
25321   echo "$as_me: failed program was:" >&5
25322 sed 's/^/| /' conftest.$ac_ext >&5
25323
25324         ac_header_compiler=no
25325 fi
25326
25327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25329 echo "${ECHO_T}$ac_header_compiler" >&6; }
25330
25331 # Is the header present?
25332 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25333 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25334 cat >conftest.$ac_ext <<_ACEOF
25335 /* confdefs.h.  */
25336 _ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h.  */
25340 #include </usr/include/readline/readline.h>
25341 _ACEOF
25342 if { (ac_try="$ac_cpp conftest.$ac_ext"
25343 case "(($ac_try" in
25344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25345   *) ac_try_echo=$ac_try;;
25346 esac
25347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25349   ac_status=$?
25350   grep -v '^ *+' conftest.er1 >conftest.err
25351   rm -f conftest.er1
25352   cat conftest.err >&5
25353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354   (exit $ac_status); } >/dev/null && {
25355          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25356          test ! -s conftest.err
25357        }; then
25358   ac_header_preproc=yes
25359 else
25360   echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25362
25363   ac_header_preproc=no
25364 fi
25365
25366 rm -f conftest.err conftest.$ac_ext
25367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25368 echo "${ECHO_T}$ac_header_preproc" >&6; }
25369
25370 # So?  What about this header?
25371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25372   yes:no: )
25373     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25374 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25375     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25376 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25377     ac_header_preproc=yes
25378     ;;
25379   no:yes:* )
25380     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25381 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25382     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25383 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25384     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25385 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25386     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25387 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25388     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25389 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25390     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25391 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25392
25393     ;;
25394 esac
25395 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25396 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25397 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25398   echo $ECHO_N "(cached) $ECHO_C" >&6
25399 else
25400   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25401 fi
25402 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25403 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25404
25405 fi
25406 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25407
25408
25409 cat >>confdefs.h <<\_ACEOF
25410 #define HAVE_READLINE 1
25411 _ACEOF
25412
25413                 got_readline="yes"
25414                 CONS_INC="-I/usr/include/readline"
25415                 CONS_LIBS="-lreadline -ltermcap"
25416
25417 else
25418
25419                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25421   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25422 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25424   echo $ECHO_N "(cached) $ECHO_C" >&6
25425 fi
25426 ac_res=`eval echo '${'$as_ac_Header'}'`
25427                { echo "$as_me:$LINENO: result: $ac_res" >&5
25428 echo "${ECHO_T}$ac_res" >&6; }
25429 else
25430   # Is the header compilable?
25431 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25432 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25433 cat >conftest.$ac_ext <<_ACEOF
25434 /* confdefs.h.  */
25435 _ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h.  */
25439 $ac_includes_default
25440 #include <${TOP_DIR}/depkgs/readline/readline.h>
25441 _ACEOF
25442 rm -f conftest.$ac_objext
25443 if { (ac_try="$ac_compile"
25444 case "(($ac_try" in
25445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25446   *) ac_try_echo=$ac_try;;
25447 esac
25448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25449   (eval "$ac_compile") 2>conftest.er1
25450   ac_status=$?
25451   grep -v '^ *+' conftest.er1 >conftest.err
25452   rm -f conftest.er1
25453   cat conftest.err >&5
25454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455   (exit $ac_status); } && {
25456          test -z "$ac_c_werror_flag" ||
25457          test ! -s conftest.err
25458        } && test -s conftest.$ac_objext; then
25459   ac_header_compiler=yes
25460 else
25461   echo "$as_me: failed program was:" >&5
25462 sed 's/^/| /' conftest.$ac_ext >&5
25463
25464         ac_header_compiler=no
25465 fi
25466
25467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25469 echo "${ECHO_T}$ac_header_compiler" >&6; }
25470
25471 # Is the header present?
25472 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25473 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25474 cat >conftest.$ac_ext <<_ACEOF
25475 /* confdefs.h.  */
25476 _ACEOF
25477 cat confdefs.h >>conftest.$ac_ext
25478 cat >>conftest.$ac_ext <<_ACEOF
25479 /* end confdefs.h.  */
25480 #include <${TOP_DIR}/depkgs/readline/readline.h>
25481 _ACEOF
25482 if { (ac_try="$ac_cpp conftest.$ac_ext"
25483 case "(($ac_try" in
25484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25485   *) ac_try_echo=$ac_try;;
25486 esac
25487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25489   ac_status=$?
25490   grep -v '^ *+' conftest.er1 >conftest.err
25491   rm -f conftest.er1
25492   cat conftest.err >&5
25493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494   (exit $ac_status); } >/dev/null && {
25495          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25496          test ! -s conftest.err
25497        }; then
25498   ac_header_preproc=yes
25499 else
25500   echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25502
25503   ac_header_preproc=no
25504 fi
25505
25506 rm -f conftest.err conftest.$ac_ext
25507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25508 echo "${ECHO_T}$ac_header_preproc" >&6; }
25509
25510 # So?  What about this header?
25511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25512   yes:no: )
25513     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25514 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25515     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25516 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25517     ac_header_preproc=yes
25518     ;;
25519   no:yes:* )
25520     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25521 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25522     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25523 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25524     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25525 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25526     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25527 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25528     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25529 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25530     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25531 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25532
25533     ;;
25534 esac
25535 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25536 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25538   echo $ECHO_N "(cached) $ECHO_C" >&6
25539 else
25540   eval "$as_ac_Header=\$ac_header_preproc"
25541 fi
25542 ac_res=`eval echo '${'$as_ac_Header'}'`
25543                { echo "$as_me:$LINENO: result: $ac_res" >&5
25544 echo "${ECHO_T}$ac_res" >&6; }
25545
25546 fi
25547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25548
25549
25550 cat >>confdefs.h <<\_ACEOF
25551 #define HAVE_READLINE 1
25552 _ACEOF
25553
25554                         got_readline="yes"
25555                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25556                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25557                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25558                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25559
25560 else
25561
25562                         echo " "
25563                         echo "readline.h not found. readline turned off ..."
25564                         echo " "
25565
25566
25567 fi
25568
25569
25570
25571
25572 fi
25573
25574
25575
25576
25577 fi
25578
25579 fi
25580
25581
25582
25583
25584
25585
25586
25587
25588 MAKE_SHELL=/bin/sh
25589
25590 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25591 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25592 if test "${ac_cv_header_stat_broken+set}" = set; then
25593   echo $ECHO_N "(cached) $ECHO_C" >&6
25594 else
25595   cat >conftest.$ac_ext <<_ACEOF
25596 /* confdefs.h.  */
25597 _ACEOF
25598 cat confdefs.h >>conftest.$ac_ext
25599 cat >>conftest.$ac_ext <<_ACEOF
25600 /* end confdefs.h.  */
25601 #include <sys/types.h>
25602 #include <sys/stat.h>
25603
25604 #if defined S_ISBLK && defined S_IFDIR
25605 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25606 #endif
25607
25608 #if defined S_ISBLK && defined S_IFCHR
25609 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25610 #endif
25611
25612 #if defined S_ISLNK && defined S_IFREG
25613 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25614 #endif
25615
25616 #if defined S_ISSOCK && defined S_IFREG
25617 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25618 #endif
25619
25620 _ACEOF
25621 rm -f conftest.$ac_objext
25622 if { (ac_try="$ac_compile"
25623 case "(($ac_try" in
25624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625   *) ac_try_echo=$ac_try;;
25626 esac
25627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25628   (eval "$ac_compile") 2>conftest.er1
25629   ac_status=$?
25630   grep -v '^ *+' conftest.er1 >conftest.err
25631   rm -f conftest.er1
25632   cat conftest.err >&5
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); } && {
25635          test -z "$ac_c_werror_flag" ||
25636          test ! -s conftest.err
25637        } && test -s conftest.$ac_objext; then
25638   ac_cv_header_stat_broken=no
25639 else
25640   echo "$as_me: failed program was:" >&5
25641 sed 's/^/| /' conftest.$ac_ext >&5
25642
25643         ac_cv_header_stat_broken=yes
25644 fi
25645
25646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25647 fi
25648 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25649 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25650 if test $ac_cv_header_stat_broken = yes; then
25651
25652 cat >>confdefs.h <<\_ACEOF
25653 #define STAT_MACROS_BROKEN 1
25654 _ACEOF
25655
25656 fi
25657
25658
25659
25660
25661
25662
25663 ac_header_dirent=no
25664 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25665   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25666 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25667 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25669   echo $ECHO_N "(cached) $ECHO_C" >&6
25670 else
25671   cat >conftest.$ac_ext <<_ACEOF
25672 /* confdefs.h.  */
25673 _ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h.  */
25677 #include <sys/types.h>
25678 #include <$ac_hdr>
25679
25680 int
25681 main ()
25682 {
25683 if ((DIR *) 0)
25684 return 0;
25685   ;
25686   return 0;
25687 }
25688 _ACEOF
25689 rm -f conftest.$ac_objext
25690 if { (ac_try="$ac_compile"
25691 case "(($ac_try" in
25692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25693   *) ac_try_echo=$ac_try;;
25694 esac
25695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25696   (eval "$ac_compile") 2>conftest.er1
25697   ac_status=$?
25698   grep -v '^ *+' conftest.er1 >conftest.err
25699   rm -f conftest.er1
25700   cat conftest.err >&5
25701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702   (exit $ac_status); } && {
25703          test -z "$ac_c_werror_flag" ||
25704          test ! -s conftest.err
25705        } && test -s conftest.$ac_objext; then
25706   eval "$as_ac_Header=yes"
25707 else
25708   echo "$as_me: failed program was:" >&5
25709 sed 's/^/| /' conftest.$ac_ext >&5
25710
25711         eval "$as_ac_Header=no"
25712 fi
25713
25714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25715 fi
25716 ac_res=`eval echo '${'$as_ac_Header'}'`
25717                { echo "$as_me:$LINENO: result: $ac_res" >&5
25718 echo "${ECHO_T}$ac_res" >&6; }
25719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25720   cat >>confdefs.h <<_ACEOF
25721 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25722 _ACEOF
25723
25724 ac_header_dirent=$ac_hdr; break
25725 fi
25726
25727 done
25728 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25729 if test $ac_header_dirent = dirent.h; then
25730   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25731 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25732 if test "${ac_cv_search_opendir+set}" = set; then
25733   echo $ECHO_N "(cached) $ECHO_C" >&6
25734 else
25735   ac_func_search_save_LIBS=$LIBS
25736 cat >conftest.$ac_ext <<_ACEOF
25737 /* confdefs.h.  */
25738 _ACEOF
25739 cat confdefs.h >>conftest.$ac_ext
25740 cat >>conftest.$ac_ext <<_ACEOF
25741 /* end confdefs.h.  */
25742
25743 /* Override any GCC internal prototype to avoid an error.
25744    Use char because int might match the return type of a GCC
25745    builtin and then its argument prototype would still apply.  */
25746 #ifdef __cplusplus
25747 extern "C"
25748 #endif
25749 char opendir ();
25750 int
25751 main ()
25752 {
25753 return opendir ();
25754   ;
25755   return 0;
25756 }
25757 _ACEOF
25758 for ac_lib in '' dir; do
25759   if test -z "$ac_lib"; then
25760     ac_res="none required"
25761   else
25762     ac_res=-l$ac_lib
25763     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25764   fi
25765   rm -f conftest.$ac_objext conftest$ac_exeext
25766 if { (ac_try="$ac_link"
25767 case "(($ac_try" in
25768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25769   *) ac_try_echo=$ac_try;;
25770 esac
25771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25772   (eval "$ac_link") 2>conftest.er1
25773   ac_status=$?
25774   grep -v '^ *+' conftest.er1 >conftest.err
25775   rm -f conftest.er1
25776   cat conftest.err >&5
25777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778   (exit $ac_status); } && {
25779          test -z "$ac_c_werror_flag" ||
25780          test ! -s conftest.err
25781        } && test -s conftest$ac_exeext &&
25782        $as_test_x conftest$ac_exeext; then
25783   ac_cv_search_opendir=$ac_res
25784 else
25785   echo "$as_me: failed program was:" >&5
25786 sed 's/^/| /' conftest.$ac_ext >&5
25787
25788
25789 fi
25790
25791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25792       conftest$ac_exeext
25793   if test "${ac_cv_search_opendir+set}" = set; then
25794   break
25795 fi
25796 done
25797 if test "${ac_cv_search_opendir+set}" = set; then
25798   :
25799 else
25800   ac_cv_search_opendir=no
25801 fi
25802 rm conftest.$ac_ext
25803 LIBS=$ac_func_search_save_LIBS
25804 fi
25805 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25806 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25807 ac_res=$ac_cv_search_opendir
25808 if test "$ac_res" != no; then
25809   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25810
25811 fi
25812
25813 else
25814   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25815 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25816 if test "${ac_cv_search_opendir+set}" = set; then
25817   echo $ECHO_N "(cached) $ECHO_C" >&6
25818 else
25819   ac_func_search_save_LIBS=$LIBS
25820 cat >conftest.$ac_ext <<_ACEOF
25821 /* confdefs.h.  */
25822 _ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h.  */
25826
25827 /* Override any GCC internal prototype to avoid an error.
25828    Use char because int might match the return type of a GCC
25829    builtin and then its argument prototype would still apply.  */
25830 #ifdef __cplusplus
25831 extern "C"
25832 #endif
25833 char opendir ();
25834 int
25835 main ()
25836 {
25837 return opendir ();
25838   ;
25839   return 0;
25840 }
25841 _ACEOF
25842 for ac_lib in '' x; do
25843   if test -z "$ac_lib"; then
25844     ac_res="none required"
25845   else
25846     ac_res=-l$ac_lib
25847     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25848   fi
25849   rm -f conftest.$ac_objext conftest$ac_exeext
25850 if { (ac_try="$ac_link"
25851 case "(($ac_try" in
25852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25853   *) ac_try_echo=$ac_try;;
25854 esac
25855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25856   (eval "$ac_link") 2>conftest.er1
25857   ac_status=$?
25858   grep -v '^ *+' conftest.er1 >conftest.err
25859   rm -f conftest.er1
25860   cat conftest.err >&5
25861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862   (exit $ac_status); } && {
25863          test -z "$ac_c_werror_flag" ||
25864          test ! -s conftest.err
25865        } && test -s conftest$ac_exeext &&
25866        $as_test_x conftest$ac_exeext; then
25867   ac_cv_search_opendir=$ac_res
25868 else
25869   echo "$as_me: failed program was:" >&5
25870 sed 's/^/| /' conftest.$ac_ext >&5
25871
25872
25873 fi
25874
25875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25876       conftest$ac_exeext
25877   if test "${ac_cv_search_opendir+set}" = set; then
25878   break
25879 fi
25880 done
25881 if test "${ac_cv_search_opendir+set}" = set; then
25882   :
25883 else
25884   ac_cv_search_opendir=no
25885 fi
25886 rm conftest.$ac_ext
25887 LIBS=$ac_func_search_save_LIBS
25888 fi
25889 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25890 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25891 ac_res=$ac_cv_search_opendir
25892 if test "$ac_res" != no; then
25893   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25894
25895 fi
25896
25897 fi
25898
25899
25900
25901
25902
25903
25904
25905
25906 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25907 do
25908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25912   echo $ECHO_N "(cached) $ECHO_C" >&6
25913 else
25914   cat >conftest.$ac_ext <<_ACEOF
25915 /* confdefs.h.  */
25916 _ACEOF
25917 cat confdefs.h >>conftest.$ac_ext
25918 cat >>conftest.$ac_ext <<_ACEOF
25919 /* end confdefs.h.  */
25920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25922 #define $ac_func innocuous_$ac_func
25923
25924 /* System header to define __stub macros and hopefully few prototypes,
25925     which can conflict with char $ac_func (); below.
25926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25927     <limits.h> exists even on freestanding compilers.  */
25928
25929 #ifdef __STDC__
25930 # include <limits.h>
25931 #else
25932 # include <assert.h>
25933 #endif
25934
25935 #undef $ac_func
25936
25937 /* Override any GCC internal prototype to avoid an error.
25938    Use char because int might match the return type of a GCC
25939    builtin and then its argument prototype would still apply.  */
25940 #ifdef __cplusplus
25941 extern "C"
25942 #endif
25943 char $ac_func ();
25944 /* The GNU C library defines this for functions which it implements
25945     to always fail with ENOSYS.  Some functions are actually named
25946     something starting with __ and the normal name is an alias.  */
25947 #if defined __stub_$ac_func || defined __stub___$ac_func
25948 choke me
25949 #endif
25950
25951 int
25952 main ()
25953 {
25954 return $ac_func ();
25955   ;
25956   return 0;
25957 }
25958 _ACEOF
25959 rm -f conftest.$ac_objext conftest$ac_exeext
25960 if { (ac_try="$ac_link"
25961 case "(($ac_try" in
25962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25963   *) ac_try_echo=$ac_try;;
25964 esac
25965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25966   (eval "$ac_link") 2>conftest.er1
25967   ac_status=$?
25968   grep -v '^ *+' conftest.er1 >conftest.err
25969   rm -f conftest.er1
25970   cat conftest.err >&5
25971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972   (exit $ac_status); } && {
25973          test -z "$ac_c_werror_flag" ||
25974          test ! -s conftest.err
25975        } && test -s conftest$ac_exeext &&
25976        $as_test_x conftest$ac_exeext; then
25977   eval "$as_ac_var=yes"
25978 else
25979   echo "$as_me: failed program was:" >&5
25980 sed 's/^/| /' conftest.$ac_ext >&5
25981
25982         eval "$as_ac_var=no"
25983 fi
25984
25985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25986       conftest$ac_exeext conftest.$ac_ext
25987 fi
25988 ac_res=`eval echo '${'$as_ac_var'}'`
25989                { echo "$as_me:$LINENO: result: $ac_res" >&5
25990 echo "${ECHO_T}$ac_res" >&6; }
25991 if test `eval echo '${'$as_ac_var'}'` = yes; then
25992   cat >>confdefs.h <<_ACEOF
25993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25994 _ACEOF
25995
25996 fi
25997 done
25998
25999
26000
26001 for ac_func in nanosleep nl_langinfo
26002 do
26003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26007   echo $ECHO_N "(cached) $ECHO_C" >&6
26008 else
26009   cat >conftest.$ac_ext <<_ACEOF
26010 /* confdefs.h.  */
26011 _ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h.  */
26015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26017 #define $ac_func innocuous_$ac_func
26018
26019 /* System header to define __stub macros and hopefully few prototypes,
26020     which can conflict with char $ac_func (); below.
26021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26022     <limits.h> exists even on freestanding compilers.  */
26023
26024 #ifdef __STDC__
26025 # include <limits.h>
26026 #else
26027 # include <assert.h>
26028 #endif
26029
26030 #undef $ac_func
26031
26032 /* Override any GCC internal prototype to avoid an error.
26033    Use char because int might match the return type of a GCC
26034    builtin and then its argument prototype would still apply.  */
26035 #ifdef __cplusplus
26036 extern "C"
26037 #endif
26038 char $ac_func ();
26039 /* The GNU C library defines this for functions which it implements
26040     to always fail with ENOSYS.  Some functions are actually named
26041     something starting with __ and the normal name is an alias.  */
26042 #if defined __stub_$ac_func || defined __stub___$ac_func
26043 choke me
26044 #endif
26045
26046 int
26047 main ()
26048 {
26049 return $ac_func ();
26050   ;
26051   return 0;
26052 }
26053 _ACEOF
26054 rm -f conftest.$ac_objext conftest$ac_exeext
26055 if { (ac_try="$ac_link"
26056 case "(($ac_try" in
26057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26058   *) ac_try_echo=$ac_try;;
26059 esac
26060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26061   (eval "$ac_link") 2>conftest.er1
26062   ac_status=$?
26063   grep -v '^ *+' conftest.er1 >conftest.err
26064   rm -f conftest.er1
26065   cat conftest.err >&5
26066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067   (exit $ac_status); } && {
26068          test -z "$ac_c_werror_flag" ||
26069          test ! -s conftest.err
26070        } && test -s conftest$ac_exeext &&
26071        $as_test_x conftest$ac_exeext; then
26072   eval "$as_ac_var=yes"
26073 else
26074   echo "$as_me: failed program was:" >&5
26075 sed 's/^/| /' conftest.$ac_ext >&5
26076
26077         eval "$as_ac_var=no"
26078 fi
26079
26080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26081       conftest$ac_exeext conftest.$ac_ext
26082 fi
26083 ac_res=`eval echo '${'$as_ac_var'}'`
26084                { echo "$as_me:$LINENO: result: $ac_res" >&5
26085 echo "${ECHO_T}$ac_res" >&6; }
26086 if test `eval echo '${'$as_ac_var'}'` = yes; then
26087   cat >>confdefs.h <<_ACEOF
26088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26089 _ACEOF
26090
26091 fi
26092 done
26093
26094
26095 for ac_header in varargs.h
26096 do
26097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26099   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26102   echo $ECHO_N "(cached) $ECHO_C" >&6
26103 fi
26104 ac_res=`eval echo '${'$as_ac_Header'}'`
26105                { echo "$as_me:$LINENO: result: $ac_res" >&5
26106 echo "${ECHO_T}$ac_res" >&6; }
26107 else
26108   # Is the header compilable?
26109 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26111 cat >conftest.$ac_ext <<_ACEOF
26112 /* confdefs.h.  */
26113 _ACEOF
26114 cat confdefs.h >>conftest.$ac_ext
26115 cat >>conftest.$ac_ext <<_ACEOF
26116 /* end confdefs.h.  */
26117 $ac_includes_default
26118 #include <$ac_header>
26119 _ACEOF
26120 rm -f conftest.$ac_objext
26121 if { (ac_try="$ac_compile"
26122 case "(($ac_try" in
26123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26124   *) ac_try_echo=$ac_try;;
26125 esac
26126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26127   (eval "$ac_compile") 2>conftest.er1
26128   ac_status=$?
26129   grep -v '^ *+' conftest.er1 >conftest.err
26130   rm -f conftest.er1
26131   cat conftest.err >&5
26132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133   (exit $ac_status); } && {
26134          test -z "$ac_c_werror_flag" ||
26135          test ! -s conftest.err
26136        } && test -s conftest.$ac_objext; then
26137   ac_header_compiler=yes
26138 else
26139   echo "$as_me: failed program was:" >&5
26140 sed 's/^/| /' conftest.$ac_ext >&5
26141
26142         ac_header_compiler=no
26143 fi
26144
26145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26147 echo "${ECHO_T}$ac_header_compiler" >&6; }
26148
26149 # Is the header present?
26150 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26152 cat >conftest.$ac_ext <<_ACEOF
26153 /* confdefs.h.  */
26154 _ACEOF
26155 cat confdefs.h >>conftest.$ac_ext
26156 cat >>conftest.$ac_ext <<_ACEOF
26157 /* end confdefs.h.  */
26158 #include <$ac_header>
26159 _ACEOF
26160 if { (ac_try="$ac_cpp conftest.$ac_ext"
26161 case "(($ac_try" in
26162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26163   *) ac_try_echo=$ac_try;;
26164 esac
26165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26166   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26167   ac_status=$?
26168   grep -v '^ *+' conftest.er1 >conftest.err
26169   rm -f conftest.er1
26170   cat conftest.err >&5
26171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172   (exit $ac_status); } >/dev/null && {
26173          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26174          test ! -s conftest.err
26175        }; then
26176   ac_header_preproc=yes
26177 else
26178   echo "$as_me: failed program was:" >&5
26179 sed 's/^/| /' conftest.$ac_ext >&5
26180
26181   ac_header_preproc=no
26182 fi
26183
26184 rm -f conftest.err conftest.$ac_ext
26185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26186 echo "${ECHO_T}$ac_header_preproc" >&6; }
26187
26188 # So?  What about this header?
26189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26190   yes:no: )
26191     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26195     ac_header_preproc=yes
26196     ;;
26197   no:yes:* )
26198     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26200     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26201 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26202     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26204     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26205 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26208     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26210
26211     ;;
26212 esac
26213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26216   echo $ECHO_N "(cached) $ECHO_C" >&6
26217 else
26218   eval "$as_ac_Header=\$ac_header_preproc"
26219 fi
26220 ac_res=`eval echo '${'$as_ac_Header'}'`
26221                { echo "$as_me:$LINENO: result: $ac_res" >&5
26222 echo "${ECHO_T}$ac_res" >&6; }
26223
26224 fi
26225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26226   cat >>confdefs.h <<_ACEOF
26227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26228 _ACEOF
26229
26230 fi
26231
26232 done
26233
26234
26235
26236 { echo "$as_me:$LINENO: checking for Python support" >&5
26237 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26238
26239 # Check whether --with-python was given.
26240 if test "${with_python+set}" = set; then
26241   withval=$with_python;
26242        PYTHON_INCDIR=
26243        PYTHON_LIBS=
26244        if test "$withval" != "no"; then
26245           if test "$withval" = "yes"; then
26246              if test -e /usr/bin/python-config ; then
26247                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26248                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26249              else
26250                 for python_root in /usr /usr/local /usr/sfw; do
26251                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26252                       if test -f $python_root/include/${ver}/Python.h; then
26253                          PYTHON_INCDIR=-I$python_root/include/${ver}
26254                          if test -d $python_root/lib64/${ver}/config; then
26255                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26256                          else
26257                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26258                          fi
26259                          break
26260                       fi
26261                    done
26262                 done
26263
26264                 if test x$PYTHON_INCDIR = x; then
26265                    if test -f $prefix/include/Python.h; then
26266                       PYTHON_INCDIR=-I$prefix/include
26267                       if test -d $prefix/lib64/config; then
26268                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26269                       else
26270                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26271                       fi
26272                    else
26273                       { echo "$as_me:$LINENO: result: no" >&5
26274 echo "${ECHO_T}no" >&6; }
26275                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26276 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26277    { (exit 1); exit 1; }; }
26278                    fi
26279                 fi
26280              fi
26281           else
26282              if test -e $withval/bin/python-config ; then
26283                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26284                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26285              elif test -f $withval/Python.h; then
26286                 PYTHON_INCDIR=-I$withval
26287                 PYTHON_LIBS="-L$withval/config -lpython"
26288              elif test -f $withval/include/Python.h; then
26289                 PYTHON_INCDIR=-I$withval/include
26290                 if test -d $withval/lib64/config; then
26291                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26292                 else
26293                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26294                 fi
26295              elif test -f $withval/include/python/Python.h; then
26296                 PYTHON_INCDIR=-I$withval/include/python
26297                 if test -d $withval/lib64/python/config; then
26298                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26299                 else
26300                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26301                 fi
26302              else
26303                 { echo "$as_me:$LINENO: result: no" >&5
26304 echo "${ECHO_T}no" >&6; }
26305                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26306 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26307    { (exit 1); exit 1; }; }
26308              fi
26309           fi
26310
26311           cat >>confdefs.h <<\_ACEOF
26312 #define HAVE_PYTHON 1
26313 _ACEOF
26314
26315           { echo "$as_me:$LINENO: result: yes" >&5
26316 echo "${ECHO_T}yes" >&6; }
26317           support_python=yes
26318           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26319 echo "$as_me: checking for more Python libs" >&6;}
26320           saved_LIBS="$LIBS"; LIBS=
26321           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26322 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26323 if test "${ac_cv_search_shm_open+set}" = set; then
26324   echo $ECHO_N "(cached) $ECHO_C" >&6
26325 else
26326   ac_func_search_save_LIBS=$LIBS
26327 cat >conftest.$ac_ext <<_ACEOF
26328 /* confdefs.h.  */
26329 _ACEOF
26330 cat confdefs.h >>conftest.$ac_ext
26331 cat >>conftest.$ac_ext <<_ACEOF
26332 /* end confdefs.h.  */
26333
26334 /* Override any GCC internal prototype to avoid an error.
26335    Use char because int might match the return type of a GCC
26336    builtin and then its argument prototype would still apply.  */
26337 #ifdef __cplusplus
26338 extern "C"
26339 #endif
26340 char shm_open ();
26341 int
26342 main ()
26343 {
26344 return shm_open ();
26345   ;
26346   return 0;
26347 }
26348 _ACEOF
26349 for ac_lib in '' rt; do
26350   if test -z "$ac_lib"; then
26351     ac_res="none required"
26352   else
26353     ac_res=-l$ac_lib
26354     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26355   fi
26356   rm -f conftest.$ac_objext conftest$ac_exeext
26357 if { (ac_try="$ac_link"
26358 case "(($ac_try" in
26359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360   *) ac_try_echo=$ac_try;;
26361 esac
26362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26363   (eval "$ac_link") 2>conftest.er1
26364   ac_status=$?
26365   grep -v '^ *+' conftest.er1 >conftest.err
26366   rm -f conftest.er1
26367   cat conftest.err >&5
26368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369   (exit $ac_status); } && {
26370          test -z "$ac_c_werror_flag" ||
26371          test ! -s conftest.err
26372        } && test -s conftest$ac_exeext &&
26373        $as_test_x conftest$ac_exeext; then
26374   ac_cv_search_shm_open=$ac_res
26375 else
26376   echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26378
26379
26380 fi
26381
26382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26383       conftest$ac_exeext
26384   if test "${ac_cv_search_shm_open+set}" = set; then
26385   break
26386 fi
26387 done
26388 if test "${ac_cv_search_shm_open+set}" = set; then
26389   :
26390 else
26391   ac_cv_search_shm_open=no
26392 fi
26393 rm conftest.$ac_ext
26394 LIBS=$ac_func_search_save_LIBS
26395 fi
26396 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26397 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26398 ac_res=$ac_cv_search_shm_open
26399 if test "$ac_res" != no; then
26400   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26401
26402 fi
26403
26404
26405 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26406 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26407 if test "${ac_cv_lib_util_openpty+set}" = set; then
26408   echo $ECHO_N "(cached) $ECHO_C" >&6
26409 else
26410   ac_check_lib_save_LIBS=$LIBS
26411 LIBS="-lutil  $LIBS"
26412 cat >conftest.$ac_ext <<_ACEOF
26413 /* confdefs.h.  */
26414 _ACEOF
26415 cat confdefs.h >>conftest.$ac_ext
26416 cat >>conftest.$ac_ext <<_ACEOF
26417 /* end confdefs.h.  */
26418
26419 /* Override any GCC internal prototype to avoid an error.
26420    Use char because int might match the return type of a GCC
26421    builtin and then its argument prototype would still apply.  */
26422 #ifdef __cplusplus
26423 extern "C"
26424 #endif
26425 char openpty ();
26426 int
26427 main ()
26428 {
26429 return openpty ();
26430   ;
26431   return 0;
26432 }
26433 _ACEOF
26434 rm -f conftest.$ac_objext conftest$ac_exeext
26435 if { (ac_try="$ac_link"
26436 case "(($ac_try" in
26437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26438   *) ac_try_echo=$ac_try;;
26439 esac
26440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26441   (eval "$ac_link") 2>conftest.er1
26442   ac_status=$?
26443   grep -v '^ *+' conftest.er1 >conftest.err
26444   rm -f conftest.er1
26445   cat conftest.err >&5
26446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447   (exit $ac_status); } && {
26448          test -z "$ac_c_werror_flag" ||
26449          test ! -s conftest.err
26450        } && test -s conftest$ac_exeext &&
26451        $as_test_x conftest$ac_exeext; then
26452   ac_cv_lib_util_openpty=yes
26453 else
26454   echo "$as_me: failed program was:" >&5
26455 sed 's/^/| /' conftest.$ac_ext >&5
26456
26457         ac_cv_lib_util_openpty=no
26458 fi
26459
26460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26461       conftest$ac_exeext conftest.$ac_ext
26462 LIBS=$ac_check_lib_save_LIBS
26463 fi
26464 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26465 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26466 if test $ac_cv_lib_util_openpty = yes; then
26467   cat >>confdefs.h <<_ACEOF
26468 #define HAVE_LIBUTIL 1
26469 _ACEOF
26470
26471   LIBS="-lutil $LIBS"
26472
26473 fi
26474
26475           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26476           LIBS="$saved_LIBS"
26477        else
26478           { echo "$as_me:$LINENO: result: no" >&5
26479 echo "${ECHO_T}no" >&6; }
26480        fi
26481
26482 else
26483
26484        { echo "$as_me:$LINENO: result: no" >&5
26485 echo "${ECHO_T}no" >&6; }
26486
26487
26488 fi
26489
26490
26491
26492
26493 { echo "$as_me:$LINENO: checking for socket" >&5
26494 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26495 if test "${ac_cv_func_socket+set}" = set; then
26496   echo $ECHO_N "(cached) $ECHO_C" >&6
26497 else
26498   cat >conftest.$ac_ext <<_ACEOF
26499 /* confdefs.h.  */
26500 _ACEOF
26501 cat confdefs.h >>conftest.$ac_ext
26502 cat >>conftest.$ac_ext <<_ACEOF
26503 /* end confdefs.h.  */
26504 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26506 #define socket innocuous_socket
26507
26508 /* System header to define __stub macros and hopefully few prototypes,
26509     which can conflict with char socket (); below.
26510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26511     <limits.h> exists even on freestanding compilers.  */
26512
26513 #ifdef __STDC__
26514 # include <limits.h>
26515 #else
26516 # include <assert.h>
26517 #endif
26518
26519 #undef socket
26520
26521 /* Override any GCC internal prototype to avoid an error.
26522    Use char because int might match the return type of a GCC
26523    builtin and then its argument prototype would still apply.  */
26524 #ifdef __cplusplus
26525 extern "C"
26526 #endif
26527 char socket ();
26528 /* The GNU C library defines this for functions which it implements
26529     to always fail with ENOSYS.  Some functions are actually named
26530     something starting with __ and the normal name is an alias.  */
26531 #if defined __stub_socket || defined __stub___socket
26532 choke me
26533 #endif
26534
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_func_socket=yes
26562 else
26563   echo "$as_me: failed program was:" >&5
26564 sed 's/^/| /' conftest.$ac_ext >&5
26565
26566         ac_cv_func_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 fi
26572 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26573 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26574 if test $ac_cv_func_socket = yes; then
26575   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26576 echo "${ECHO_T}using libc's socket" >&6; }
26577 else
26578
26579 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26580 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26581 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26582   echo $ECHO_N "(cached) $ECHO_C" >&6
26583 else
26584   ac_check_lib_save_LIBS=$LIBS
26585 LIBS="-lxnet  $LIBS"
26586 cat >conftest.$ac_ext <<_ACEOF
26587 /* confdefs.h.  */
26588 _ACEOF
26589 cat confdefs.h >>conftest.$ac_ext
26590 cat >>conftest.$ac_ext <<_ACEOF
26591 /* end confdefs.h.  */
26592
26593 /* Override any GCC internal prototype to avoid an error.
26594    Use char because int might match the return type of a GCC
26595    builtin and then its argument prototype would still apply.  */
26596 #ifdef __cplusplus
26597 extern "C"
26598 #endif
26599 char socket ();
26600 int
26601 main ()
26602 {
26603 return socket ();
26604   ;
26605   return 0;
26606 }
26607 _ACEOF
26608 rm -f conftest.$ac_objext conftest$ac_exeext
26609 if { (ac_try="$ac_link"
26610 case "(($ac_try" in
26611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26612   *) ac_try_echo=$ac_try;;
26613 esac
26614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26615   (eval "$ac_link") 2>conftest.er1
26616   ac_status=$?
26617   grep -v '^ *+' conftest.er1 >conftest.err
26618   rm -f conftest.er1
26619   cat conftest.err >&5
26620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621   (exit $ac_status); } && {
26622          test -z "$ac_c_werror_flag" ||
26623          test ! -s conftest.err
26624        } && test -s conftest$ac_exeext &&
26625        $as_test_x conftest$ac_exeext; then
26626   ac_cv_lib_xnet_socket=yes
26627 else
26628   echo "$as_me: failed program was:" >&5
26629 sed 's/^/| /' conftest.$ac_ext >&5
26630
26631         ac_cv_lib_xnet_socket=no
26632 fi
26633
26634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26635       conftest$ac_exeext conftest.$ac_ext
26636 LIBS=$ac_check_lib_save_LIBS
26637 fi
26638 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26639 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26640 if test $ac_cv_lib_xnet_socket = yes; then
26641   cat >>confdefs.h <<_ACEOF
26642 #define HAVE_LIBXNET 1
26643 _ACEOF
26644
26645   LIBS="-lxnet $LIBS"
26646
26647 fi
26648
26649
26650 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26651 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26652 if test "${ac_cv_lib_socket_socket+set}" = set; then
26653   echo $ECHO_N "(cached) $ECHO_C" >&6
26654 else
26655   ac_check_lib_save_LIBS=$LIBS
26656 LIBS="-lsocket  $LIBS"
26657 cat >conftest.$ac_ext <<_ACEOF
26658 /* confdefs.h.  */
26659 _ACEOF
26660 cat confdefs.h >>conftest.$ac_ext
26661 cat >>conftest.$ac_ext <<_ACEOF
26662 /* end confdefs.h.  */
26663
26664 /* Override any GCC internal prototype to avoid an error.
26665    Use char because int might match the return type of a GCC
26666    builtin and then its argument prototype would still apply.  */
26667 #ifdef __cplusplus
26668 extern "C"
26669 #endif
26670 char socket ();
26671 int
26672 main ()
26673 {
26674 return socket ();
26675   ;
26676   return 0;
26677 }
26678 _ACEOF
26679 rm -f conftest.$ac_objext conftest$ac_exeext
26680 if { (ac_try="$ac_link"
26681 case "(($ac_try" in
26682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26683   *) ac_try_echo=$ac_try;;
26684 esac
26685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26686   (eval "$ac_link") 2>conftest.er1
26687   ac_status=$?
26688   grep -v '^ *+' conftest.er1 >conftest.err
26689   rm -f conftest.er1
26690   cat conftest.err >&5
26691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692   (exit $ac_status); } && {
26693          test -z "$ac_c_werror_flag" ||
26694          test ! -s conftest.err
26695        } && test -s conftest$ac_exeext &&
26696        $as_test_x conftest$ac_exeext; then
26697   ac_cv_lib_socket_socket=yes
26698 else
26699   echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26701
26702         ac_cv_lib_socket_socket=no
26703 fi
26704
26705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26706       conftest$ac_exeext conftest.$ac_ext
26707 LIBS=$ac_check_lib_save_LIBS
26708 fi
26709 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26710 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26711 if test $ac_cv_lib_socket_socket = yes; then
26712   cat >>confdefs.h <<_ACEOF
26713 #define HAVE_LIBSOCKET 1
26714 _ACEOF
26715
26716   LIBS="-lsocket $LIBS"
26717
26718 fi
26719
26720
26721 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26722 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26723 if test "${ac_cv_lib_inet_socket+set}" = set; then
26724   echo $ECHO_N "(cached) $ECHO_C" >&6
26725 else
26726   ac_check_lib_save_LIBS=$LIBS
26727 LIBS="-linet  $LIBS"
26728 cat >conftest.$ac_ext <<_ACEOF
26729 /* confdefs.h.  */
26730 _ACEOF
26731 cat confdefs.h >>conftest.$ac_ext
26732 cat >>conftest.$ac_ext <<_ACEOF
26733 /* end confdefs.h.  */
26734
26735 /* Override any GCC internal prototype to avoid an error.
26736    Use char because int might match the return type of a GCC
26737    builtin and then its argument prototype would still apply.  */
26738 #ifdef __cplusplus
26739 extern "C"
26740 #endif
26741 char socket ();
26742 int
26743 main ()
26744 {
26745 return socket ();
26746   ;
26747   return 0;
26748 }
26749 _ACEOF
26750 rm -f conftest.$ac_objext conftest$ac_exeext
26751 if { (ac_try="$ac_link"
26752 case "(($ac_try" in
26753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26754   *) ac_try_echo=$ac_try;;
26755 esac
26756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26757   (eval "$ac_link") 2>conftest.er1
26758   ac_status=$?
26759   grep -v '^ *+' conftest.er1 >conftest.err
26760   rm -f conftest.er1
26761   cat conftest.err >&5
26762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763   (exit $ac_status); } && {
26764          test -z "$ac_c_werror_flag" ||
26765          test ! -s conftest.err
26766        } && test -s conftest$ac_exeext &&
26767        $as_test_x conftest$ac_exeext; then
26768   ac_cv_lib_inet_socket=yes
26769 else
26770   echo "$as_me: failed program was:" >&5
26771 sed 's/^/| /' conftest.$ac_ext >&5
26772
26773         ac_cv_lib_inet_socket=no
26774 fi
26775
26776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26777       conftest$ac_exeext conftest.$ac_ext
26778 LIBS=$ac_check_lib_save_LIBS
26779 fi
26780 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26781 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26782 if test $ac_cv_lib_inet_socket = yes; then
26783   cat >>confdefs.h <<_ACEOF
26784 #define HAVE_LIBINET 1
26785 _ACEOF
26786
26787   LIBS="-linet $LIBS"
26788
26789 fi
26790
26791 fi
26792
26793
26794 TCPW_MSG="no"
26795 WRAPLIBS=""
26796
26797 # Check whether --with-tcp-wrappers was given.
26798 if test "${with_tcp_wrappers+set}" = set; then
26799   withval=$with_tcp_wrappers;
26800        if test "x$withval" != "xno" ; then
26801           saved_LIBS="$LIBS"
26802           LIBS="$saved_LIBS -lwrap"
26803           { echo "$as_me:$LINENO: checking for libwrap" >&5
26804 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26805           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26806 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26807 if test "${ac_cv_search_nanosleep+set}" = set; then
26808   echo $ECHO_N "(cached) $ECHO_C" >&6
26809 else
26810   ac_func_search_save_LIBS=$LIBS
26811 cat >conftest.$ac_ext <<_ACEOF
26812 /* confdefs.h.  */
26813 _ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h.  */
26817
26818 /* Override any GCC internal prototype to avoid an error.
26819    Use char because int might match the return type of a GCC
26820    builtin and then its argument prototype would still apply.  */
26821 #ifdef __cplusplus
26822 extern "C"
26823 #endif
26824 char nanosleep ();
26825 int
26826 main ()
26827 {
26828 return nanosleep ();
26829   ;
26830   return 0;
26831 }
26832 _ACEOF
26833 for ac_lib in '' rt; do
26834   if test -z "$ac_lib"; then
26835     ac_res="none required"
26836   else
26837     ac_res=-l$ac_lib
26838     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26839   fi
26840   rm -f conftest.$ac_objext conftest$ac_exeext
26841 if { (ac_try="$ac_link"
26842 case "(($ac_try" in
26843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26844   *) ac_try_echo=$ac_try;;
26845 esac
26846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26847   (eval "$ac_link") 2>conftest.er1
26848   ac_status=$?
26849   grep -v '^ *+' conftest.er1 >conftest.err
26850   rm -f conftest.er1
26851   cat conftest.err >&5
26852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853   (exit $ac_status); } && {
26854          test -z "$ac_c_werror_flag" ||
26855          test ! -s conftest.err
26856        } && test -s conftest$ac_exeext &&
26857        $as_test_x conftest$ac_exeext; then
26858   ac_cv_search_nanosleep=$ac_res
26859 else
26860   echo "$as_me: failed program was:" >&5
26861 sed 's/^/| /' conftest.$ac_ext >&5
26862
26863
26864 fi
26865
26866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26867       conftest$ac_exeext
26868   if test "${ac_cv_search_nanosleep+set}" = set; then
26869   break
26870 fi
26871 done
26872 if test "${ac_cv_search_nanosleep+set}" = set; then
26873   :
26874 else
26875   ac_cv_search_nanosleep=no
26876 fi
26877 rm conftest.$ac_ext
26878 LIBS=$ac_func_search_save_LIBS
26879 fi
26880 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26881 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26882 ac_res=$ac_cv_search_nanosleep
26883 if test "$ac_res" != no; then
26884   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26885
26886 fi
26887
26888           cat >conftest.$ac_ext <<_ACEOF
26889 /* confdefs.h.  */
26890 _ACEOF
26891 cat confdefs.h >>conftest.$ac_ext
26892 cat >>conftest.$ac_ext <<_ACEOF
26893 /* end confdefs.h.  */
26894
26895                #include <sys/types.h>
26896                #include <tcpd.h>
26897                int deny_severity = 0;
26898                int allow_severity = 0;
26899                struct request_info *req;
26900
26901 int
26902 main ()
26903 {
26904
26905                 hosts_access(req);
26906
26907   ;
26908   return 0;
26909 }
26910 _ACEOF
26911 rm -f conftest.$ac_objext conftest$ac_exeext
26912 if { (ac_try="$ac_link"
26913 case "(($ac_try" in
26914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915   *) ac_try_echo=$ac_try;;
26916 esac
26917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26918   (eval "$ac_link") 2>conftest.er1
26919   ac_status=$?
26920   grep -v '^ *+' conftest.er1 >conftest.err
26921   rm -f conftest.er1
26922   cat conftest.err >&5
26923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924   (exit $ac_status); } && {
26925          test -z "$ac_c_werror_flag" ||
26926          test ! -s conftest.err
26927        } && test -s conftest$ac_exeext &&
26928        $as_test_x conftest$ac_exeext; then
26929
26930                  { echo "$as_me:$LINENO: result: yes" >&5
26931 echo "${ECHO_T}yes" >&6; }
26932
26933 cat >>confdefs.h <<\_ACEOF
26934 #define HAVE_LIBWRAP 1
26935 _ACEOF
26936
26937                  TCPW_MSG="yes"
26938                  LIBS="$saved_LIBS"
26939                  WRAPLIBS="-lwrap"
26940
26941 else
26942   echo "$as_me: failed program was:" >&5
26943 sed 's/^/| /' conftest.$ac_ext >&5
26944
26945
26946                  LIBS="$saved_LIBS -lwrap -lnsl"
26947                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26948                  cat >conftest.$ac_ext <<_ACEOF
26949 /* confdefs.h.  */
26950 _ACEOF
26951 cat confdefs.h >>conftest.$ac_ext
26952 cat >>conftest.$ac_ext <<_ACEOF
26953 /* end confdefs.h.  */
26954
26955                        #include <sys/types.h>
26956                        #include <tcpd.h>
26957                        int deny_severity = 0;
26958                        int allow_severity = 0;
26959                        struct request_info *req;
26960
26961 int
26962 main ()
26963 {
26964
26965                        hosts_access(req);
26966
26967   ;
26968   return 0;
26969 }
26970 _ACEOF
26971 rm -f conftest.$ac_objext conftest$ac_exeext
26972 if { (ac_try="$ac_link"
26973 case "(($ac_try" in
26974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26975   *) ac_try_echo=$ac_try;;
26976 esac
26977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26978   (eval "$ac_link") 2>conftest.er1
26979   ac_status=$?
26980   grep -v '^ *+' conftest.er1 >conftest.err
26981   rm -f conftest.er1
26982   cat conftest.err >&5
26983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984   (exit $ac_status); } && {
26985          test -z "$ac_c_werror_flag" ||
26986          test ! -s conftest.err
26987        } && test -s conftest$ac_exeext &&
26988        $as_test_x conftest$ac_exeext; then
26989
26990                       { echo "$as_me:$LINENO: result: yes" >&5
26991 echo "${ECHO_T}yes" >&6; }
26992
26993 cat >>confdefs.h <<\_ACEOF
26994 #define HAVE_LIBWRAP 1
26995 _ACEOF
26996
26997                       TCPW_MSG="yes"
26998                       LIBS="$saved_LIBS"
26999                       WRAPLIBS="-lwrap"
27000
27001 else
27002   echo "$as_me: failed program was:" >&5
27003 sed 's/^/| /' conftest.$ac_ext >&5
27004
27005
27006                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27007 echo "$as_me: error: *** libwrap missing" >&2;}
27008    { (exit 1); exit 1; }; }
27009
27010
27011 fi
27012
27013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27014       conftest$ac_exeext conftest.$ac_ext
27015
27016
27017 fi
27018
27019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27020       conftest$ac_exeext conftest.$ac_ext
27021        fi
27022
27023
27024 fi
27025
27026
27027 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27028 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27029
27030 # Check whether --with-openssl was given.
27031 if test "${with_openssl+set}" = set; then
27032   withval=$with_openssl;
27033         with_openssl_directory=${withval}
27034
27035
27036 fi
27037
27038
27039 if test "x$with_openssl_directory" != "xno"; then
27040    OPENSSL_LIBS="-lssl -lcrypto"
27041    OPENSSL_INC=""
27042
27043    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27044       #
27045       # Make sure the $with_openssl_directory also makes sense
27046       #
27047       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27048          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27049          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27050       fi
27051    fi
27052
27053    saved_LIBS="${LIBS}"
27054    saved_CFLAGS="${CFLAGS}"
27055    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27056    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27057
27058    cat >conftest.$ac_ext <<_ACEOF
27059 /* confdefs.h.  */
27060 _ACEOF
27061 cat confdefs.h >>conftest.$ac_ext
27062 cat >>conftest.$ac_ext <<_ACEOF
27063 /* end confdefs.h.  */
27064
27065           #include <openssl/ssl.h>
27066
27067 int
27068 main ()
27069 {
27070
27071            CRYPTO_set_id_callback(NULL);
27072
27073   ;
27074   return 0;
27075 }
27076 _ACEOF
27077 rm -f conftest.$ac_objext conftest$ac_exeext
27078 if { (ac_try="$ac_link"
27079 case "(($ac_try" in
27080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27081   *) ac_try_echo=$ac_try;;
27082 esac
27083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27084   (eval "$ac_link") 2>conftest.er1
27085   ac_status=$?
27086   grep -v '^ *+' conftest.er1 >conftest.err
27087   rm -f conftest.er1
27088   cat conftest.err >&5
27089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090   (exit $ac_status); } && {
27091          test -z "$ac_c_werror_flag" ||
27092          test ! -s conftest.err
27093        } && test -s conftest$ac_exeext &&
27094        $as_test_x conftest$ac_exeext; then
27095
27096           support_tls="yes"
27097           support_crypto="yes"
27098
27099 else
27100   echo "$as_me: failed program was:" >&5
27101 sed 's/^/| /' conftest.$ac_ext >&5
27102
27103
27104           support_tls="no"
27105
27106
27107 fi
27108
27109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27110       conftest$ac_exeext conftest.$ac_ext
27111
27112    cat >conftest.$ac_ext <<_ACEOF
27113 /* confdefs.h.  */
27114 _ACEOF
27115 cat confdefs.h >>conftest.$ac_ext
27116 cat >>conftest.$ac_ext <<_ACEOF
27117 /* end confdefs.h.  */
27118
27119           #include <openssl/evp.h>
27120
27121 int
27122 main ()
27123 {
27124
27125           EVP_sha512();
27126
27127   ;
27128   return 0;
27129 }
27130 _ACEOF
27131 rm -f conftest.$ac_objext conftest$ac_exeext
27132 if { (ac_try="$ac_link"
27133 case "(($ac_try" in
27134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27135   *) ac_try_echo=$ac_try;;
27136 esac
27137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27138   (eval "$ac_link") 2>conftest.er1
27139   ac_status=$?
27140   grep -v '^ *+' conftest.er1 >conftest.err
27141   rm -f conftest.er1
27142   cat conftest.err >&5
27143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144   (exit $ac_status); } && {
27145          test -z "$ac_c_werror_flag" ||
27146          test ! -s conftest.err
27147        } && test -s conftest$ac_exeext &&
27148        $as_test_x conftest$ac_exeext; then
27149
27150           ac_cv_openssl_sha2="yes"
27151
27152 else
27153   echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27155
27156
27157           ac_cv_openssl_sha2="no"
27158
27159
27160 fi
27161
27162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27163       conftest$ac_exeext conftest.$ac_ext
27164
27165                cat >conftest.$ac_ext <<_ACEOF
27166 /* confdefs.h.  */
27167 _ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h.  */
27171
27172           #include <openssl/evp.h>
27173
27174 int
27175 main ()
27176 {
27177
27178           EVP_aes_192_cbc();
27179
27180   ;
27181   return 0;
27182 }
27183 _ACEOF
27184 rm -f conftest.$ac_objext conftest$ac_exeext
27185 if { (ac_try="$ac_link"
27186 case "(($ac_try" in
27187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188   *) ac_try_echo=$ac_try;;
27189 esac
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191   (eval "$ac_link") 2>conftest.er1
27192   ac_status=$?
27193   grep -v '^ *+' conftest.er1 >conftest.err
27194   rm -f conftest.er1
27195   cat conftest.err >&5
27196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197   (exit $ac_status); } && {
27198          test -z "$ac_c_werror_flag" ||
27199          test ! -s conftest.err
27200        } && test -s conftest$ac_exeext &&
27201        $as_test_x conftest$ac_exeext; then
27202
27203           ac_cv_openssl_export="no"
27204
27205 else
27206   echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27208
27209
27210           ac_cv_openssl_export="yes"
27211
27212
27213 fi
27214
27215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27216       conftest$ac_exeext conftest.$ac_ext
27217
27218    LIBS="${saved_LIBS}"
27219    CFLAGS="${saved_CFLAGS}"
27220
27221    if test "$support_tls" = "yes"; then
27222
27223 cat >>confdefs.h <<\_ACEOF
27224 #define HAVE_OPENSSL 1
27225 _ACEOF
27226
27227
27228 cat >>confdefs.h <<\_ACEOF
27229 #define HAVE_TLS 1
27230 _ACEOF
27231
27232
27233 cat >>confdefs.h <<\_ACEOF
27234 #define HAVE_CRYPTO 1
27235 _ACEOF
27236
27237    fi
27238
27239    if test "$ac_cv_openssl_sha2" = "yes"; then
27240
27241 cat >>confdefs.h <<\_ACEOF
27242 #define HAVE_SHA2 1
27243 _ACEOF
27244
27245    fi
27246
27247    if test "$ac_cv_openssl_export" = "yes"; then
27248
27249 cat >>confdefs.h <<\_ACEOF
27250 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27251 _ACEOF
27252
27253    fi
27254 else
27255    support_tls="no"
27256    support_crypto="no"
27257    OPENSSL_LIBS=""
27258    OPENSSL_INC=""
27259 fi
27260
27261 { echo "$as_me:$LINENO: result: $support_tls" >&5
27262 echo "${ECHO_T}$support_tls" >&6; }
27263
27264
27265
27266 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27267 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27268 if test "${ac_cv_search_dlopen+set}" = set; then
27269   echo $ECHO_N "(cached) $ECHO_C" >&6
27270 else
27271   ac_func_search_save_LIBS=$LIBS
27272 cat >conftest.$ac_ext <<_ACEOF
27273 /* confdefs.h.  */
27274 _ACEOF
27275 cat confdefs.h >>conftest.$ac_ext
27276 cat >>conftest.$ac_ext <<_ACEOF
27277 /* end confdefs.h.  */
27278
27279 /* Override any GCC internal prototype to avoid an error.
27280    Use char because int might match the return type of a GCC
27281    builtin and then its argument prototype would still apply.  */
27282 #ifdef __cplusplus
27283 extern "C"
27284 #endif
27285 char dlopen ();
27286 int
27287 main ()
27288 {
27289 return dlopen ();
27290   ;
27291   return 0;
27292 }
27293 _ACEOF
27294 for ac_lib in '' dl; do
27295   if test -z "$ac_lib"; then
27296     ac_res="none required"
27297   else
27298     ac_res=-l$ac_lib
27299     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27300   fi
27301   rm -f conftest.$ac_objext conftest$ac_exeext
27302 if { (ac_try="$ac_link"
27303 case "(($ac_try" in
27304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27305   *) ac_try_echo=$ac_try;;
27306 esac
27307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27308   (eval "$ac_link") 2>conftest.er1
27309   ac_status=$?
27310   grep -v '^ *+' conftest.er1 >conftest.err
27311   rm -f conftest.er1
27312   cat conftest.err >&5
27313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27314   (exit $ac_status); } && {
27315          test -z "$ac_c_werror_flag" ||
27316          test ! -s conftest.err
27317        } && test -s conftest$ac_exeext &&
27318        $as_test_x conftest$ac_exeext; then
27319   ac_cv_search_dlopen=$ac_res
27320 else
27321   echo "$as_me: failed program was:" >&5
27322 sed 's/^/| /' conftest.$ac_ext >&5
27323
27324
27325 fi
27326
27327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27328       conftest$ac_exeext
27329   if test "${ac_cv_search_dlopen+set}" = set; then
27330   break
27331 fi
27332 done
27333 if test "${ac_cv_search_dlopen+set}" = set; then
27334   :
27335 else
27336   ac_cv_search_dlopen=no
27337 fi
27338 rm conftest.$ac_ext
27339 LIBS=$ac_func_search_save_LIBS
27340 fi
27341 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27342 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27343 ac_res=$ac_cv_search_dlopen
27344 if test "$ac_res" != no; then
27345   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27346
27347 fi
27348
27349
27350 working_dir=`eval echo ${prefix}/var/bacula/working`
27351
27352 # Check whether --with-working-dir was given.
27353 if test "${with_working_dir+set}" = set; then
27354   withval=$with_working_dir;
27355        if test "x$withval" != "xno" ; then
27356          working_dir=$withval
27357        fi
27358
27359
27360 fi
27361
27362
27363
27364
27365 archivedir=/tmp
27366
27367 # Check whether --with-archivedir was given.
27368 if test "${with_archivedir+set}" = set; then
27369   withval=$with_archivedir;
27370        if test "x$withval" != "xno" ; then
27371           archivedir=$withval
27372        fi
27373
27374
27375 fi
27376
27377
27378
27379
27380 basename=`hostname`
27381
27382 # Check whether --with-basename was given.
27383 if test "${with_basename+set}" = set; then
27384   withval=$with_basename;
27385        if test "x$withval" != "xno" ; then
27386           basename=$withval
27387        fi
27388
27389
27390 fi
27391
27392
27393
27394
27395 hostname=`uname -n | cut -d '.' -f 1`
27396 if test x${hostname} = x ; then
27397   hostname="localhost"
27398 fi
27399
27400 # Check whether --with-hostname was given.
27401 if test "${with_hostname+set}" = set; then
27402   withval=$with_hostname;
27403        if test "x$withval" != "xno" ; then
27404          hostname=$withval
27405        fi
27406
27407
27408 fi
27409
27410
27411
27412
27413
27414 scriptdir=`eval echo ${sysconfdir}`
27415
27416 # Check whether --with-scriptdir was given.
27417 if test "${with_scriptdir+set}" = set; then
27418   withval=$with_scriptdir;
27419        if test "x$withval" != "xno" ; then
27420           scriptdir=$withval
27421        fi
27422
27423
27424 fi
27425
27426
27427
27428
27429
27430 bsrdir=/tmp
27431
27432 # Check whether --with-bsrdir was given.
27433 if test "${with_bsrdir+set}" = set; then
27434   withval=$with_bsrdir;
27435        if test "x$withval" != "xno" ; then
27436           bsrdir=$withval
27437        fi
27438
27439
27440 fi
27441
27442
27443
27444
27445 logdir=/tmp
27446
27447 # Check whether --with-logdir was given.
27448 if test "${with_logdir+set}" = set; then
27449   withval=$with_logdir;
27450        if test "x$withval" != "xno" ; then
27451           logdir=$withval
27452        fi
27453
27454
27455 fi
27456
27457
27458
27459
27460
27461 # ------------------------------------------
27462 # Where to place plugindir (plugin files)
27463 # ------------------------------------------
27464 plugindir=`eval echo ${libdir}`
27465
27466 # Check whether --with-plugindir was given.
27467 if test "${with_plugindir+set}" = set; then
27468   withval=$with_plugindir;
27469        if test "x$withval" != "xno" ; then
27470           plugindir=$withval
27471        fi
27472
27473
27474 fi
27475
27476
27477
27478
27479 dump_email=root@localhost
27480
27481 # Check whether --with-dump-email was given.
27482 if test "${with_dump_email+set}" = set; then
27483   withval=$with_dump_email;
27484        if test "x$withval" != "xno" ; then
27485           dump_email=$withval
27486        fi
27487
27488
27489 fi
27490
27491
27492
27493
27494 job_email=root@localhost
27495
27496 # Check whether --with-job-email was given.
27497 if test "${with_job_email+set}" = set; then
27498   withval=$with_job_email;
27499        if test "x$withval" != "xno" ; then
27500           job_email=$withval
27501        fi
27502
27503
27504 fi
27505
27506
27507
27508
27509 smtp_host=localhost
27510
27511 # Check whether --with-smtp_host was given.
27512 if test "${with_smtp_host+set}" = set; then
27513   withval=$with_smtp_host;
27514        if test "x$withval" != "xno" ; then
27515           smtp_host=$withval
27516        fi
27517
27518
27519 fi
27520
27521
27522
27523
27524 piddir=/var/run
27525
27526 # Check whether --with-pid-dir was given.
27527 if test "${with_pid_dir+set}" = set; then
27528   withval=$with_pid_dir;
27529        if test "x$withval" != "xno" ; then
27530           piddir=$withval
27531        fi
27532
27533
27534 fi
27535
27536
27537 cat >>confdefs.h <<_ACEOF
27538 #define _PATH_BACULA_PIDDIR "$piddir"
27539 _ACEOF
27540
27541
27542
27543 subsysdir=/var/run/subsys
27544 if test -d /var/run/subsys; then
27545    subsysdir=/var/run/subsys
27546 elif test -d /var/lock/subsys; then
27547    subsysdir=/var/lock/subsys
27548 else
27549    subsysdir=/var/run/subsys
27550 fi
27551
27552 # Check whether --with-subsys-dir was given.
27553 if test "${with_subsys_dir+set}" = set; then
27554   withval=$with_subsys_dir;
27555        if test "x$withval" != "xno" ; then
27556           subsysdir=$withval
27557        fi
27558
27559
27560 fi
27561
27562
27563
27564
27565 baseport=9101
27566
27567 # Check whether --with-baseport was given.
27568 if test "${with_baseport+set}" = set; then
27569   withval=$with_baseport;
27570        if test "x$withval" != "xno" ; then
27571           baseport=$withval
27572        fi
27573
27574
27575 fi
27576
27577
27578
27579 dir_port=`expr $baseport`
27580 fd_port=`expr $baseport + 1`
27581 sd_port=`expr $fd_port + 1`
27582
27583
27584
27585
27586
27587 dir_password=
27588
27589 # Check whether --with-dir-password was given.
27590 if test "${with_dir_password+set}" = set; then
27591   withval=$with_dir_password;
27592        if test "x$withval" != "xno" ; then
27593           dir_password=$withval
27594        fi
27595
27596
27597 fi
27598
27599
27600 if test "x$dir_password" = "x" ; then
27601    if test "x$OPENSSL" = "xnone" ; then
27602       key=`autoconf/randpass 33`
27603    else
27604       key=`openssl rand -base64 33`
27605    fi
27606    dir_password=$key
27607 fi
27608
27609 fd_password=
27610
27611 # Check whether --with-fd-password was given.
27612 if test "${with_fd_password+set}" = set; then
27613   withval=$with_fd_password;
27614        if test "x$withval" != "xno" ; then
27615           fd_password=$withval
27616        fi
27617
27618
27619 fi
27620
27621
27622 if test "x$fd_password" = "x" ; then
27623    if test "x$OPENSSL" = "xnone" ; then
27624       key=`autoconf/randpass 37`
27625    else
27626       key=`openssl rand -base64 33`
27627    fi
27628    fd_password=$key
27629 fi
27630
27631 sd_password=
27632
27633 # Check whether --with-sd-password was given.
27634 if test "${with_sd_password+set}" = set; then
27635   withval=$with_sd_password;
27636        if test "x$withval" != "xno" ; then
27637           sd_password=$withval
27638        fi
27639
27640
27641 fi
27642
27643
27644 if test "x$sd_password" = "x" ; then
27645    if test "x$OPENSSL" = "xnone" ; then
27646       key=`autoconf/randpass 41`
27647    else
27648       key=`openssl rand -base64 33`
27649    fi
27650    sd_password=$key
27651 fi
27652
27653 mon_dir_password=
27654
27655 # Check whether --with-mon-dir-password was given.
27656 if test "${with_mon_dir_password+set}" = set; then
27657   withval=$with_mon_dir_password;
27658        if test "x$withval" != "xno" ; then
27659           mon_dir_password=$withval
27660        fi
27661
27662
27663 fi
27664
27665
27666 if test "x$mon_dir_password" = "x" ; then
27667    if test "x$OPENSSL" = "xnone" ; then
27668       key=`autoconf/randpass 33`
27669    else
27670       key=`openssl rand -base64 33`
27671    fi
27672    mon_dir_password=$key
27673 fi
27674
27675 mon_fd_password=
27676
27677 # Check whether --with-mon-fd-password was given.
27678 if test "${with_mon_fd_password+set}" = set; then
27679   withval=$with_mon_fd_password;
27680        if test "x$withval" != "xno" ; then
27681           mon_fd_password=$withval
27682        fi
27683
27684
27685 fi
27686
27687
27688 if test "x$mon_fd_password" = "x" ; then
27689    if test "x$OPENSSL" = "xnone" ; then
27690       key=`autoconf/randpass 37`
27691    else
27692       key=`openssl rand -base64 33`
27693    fi
27694    mon_fd_password=$key
27695 fi
27696
27697 mon_sd_password=
27698
27699 # Check whether --with-mon-sd-password was given.
27700 if test "${with_mon_sd_password+set}" = set; then
27701   withval=$with_mon_sd_password;
27702        if test "x$withval" != "xno" ; then
27703           mon_sd_password=$withval
27704        fi
27705
27706
27707 fi
27708
27709
27710 if test "x$mon_sd_password" = "x" ; then
27711    if test "x$OPENSSL" = "xnone" ; then
27712       key=`autoconf/randpass 41`
27713    else
27714       key=`openssl rand -base64 33`
27715    fi
27716    mon_sd_password=$key
27717 fi
27718
27719
27720
27721
27722
27723
27724
27725
27726 db_name=bacula
27727
27728 # Check whether --with-db_name was given.
27729 if test "${with_db_name+set}" = set; then
27730   withval=$with_db_name;
27731        if test "x$withval" != "x" ; then
27732           db_name=$withval
27733        fi
27734
27735
27736 fi
27737
27738
27739
27740 db_user=bacula
27741
27742 # Check whether --with-db_user was given.
27743 if test "${with_db_user+set}" = set; then
27744   withval=$with_db_user;
27745        if test "x$withval" != "x" ; then
27746           db_user=$withval
27747        fi
27748
27749
27750 fi
27751
27752
27753
27754 db_password=
27755
27756 # Check whether --with-db_password was given.
27757 if test "${with_db_password+set}" = set; then
27758   withval=$with_db_password;
27759        if test "x$withval" != "x" ; then
27760           db_password=$withval
27761        fi
27762
27763
27764 fi
27765
27766
27767
27768 db_port=" "
27769
27770 # Check whether --with-db_port was given.
27771 if test "${with_db_port+set}" = set; then
27772   withval=$with_db_port;
27773        if test "x$withval" != "x" ; then
27774           db_port=$withval
27775        fi
27776
27777
27778 fi
27779
27780
27781
27782 #
27783 # Handle users and groups for each daemon
27784 #
27785 dir_user=
27786
27787 # Check whether --with-dir_user was given.
27788 if test "${with_dir_user+set}" = set; then
27789   withval=$with_dir_user;
27790        if test "x$withval" != "x" ; then
27791            dir_user=$withval
27792        fi
27793
27794
27795 fi
27796
27797
27798 dir_group=
27799
27800 # Check whether --with-dir_group was given.
27801 if test "${with_dir_group+set}" = set; then
27802   withval=$with_dir_group;
27803        if test "x$withval" != "x" ; then
27804           dir_group=$withval
27805        fi
27806
27807
27808 fi
27809
27810
27811 sd_user=
27812
27813 # Check whether --with-sd_user was given.
27814 if test "${with_sd_user+set}" = set; then
27815   withval=$with_sd_user;
27816        if test "x$withval" != "x" ; then
27817           sd_user=$withval
27818        fi
27819
27820
27821 fi
27822
27823
27824 sd_group=
27825
27826 # Check whether --with-sd_group was given.
27827 if test "${with_sd_group+set}" = set; then
27828   withval=$with_sd_group;
27829        if test "x$withval" != "x" ; then
27830           sd_group=$withval
27831        fi
27832
27833
27834 fi
27835
27836
27837 fd_user=
27838
27839 # Check whether --with-fd_user was given.
27840 if test "${with_fd_user+set}" = set; then
27841   withval=$with_fd_user;
27842        if test "x$withval" != "x" ; then
27843           fd_user=$withval
27844        fi
27845
27846
27847 fi
27848
27849
27850 fd_group=
27851
27852 # Check whether --with-fd_group was given.
27853 if test "${with_fd_group+set}" = set; then
27854   withval=$with_fd_group;
27855        if test "x$withval" != "x" ; then
27856           fd_group=$withval
27857        fi
27858
27859
27860 fi
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870 SBINPERM=0754
27871
27872 # Check whether --with-sbin-perm was given.
27873 if test "${with_sbin_perm+set}" = set; then
27874   withval=$with_sbin_perm;
27875        if test "x$withval" != "x" ; then
27876           SBINPERM=$withval
27877        fi
27878
27879
27880 fi
27881
27882
27883
27884
27885 SQL_LIB=
27886
27887 db_found=no
27888 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27889 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27890
27891 # Check whether --with-postgresql was given.
27892 if test "${with_postgresql+set}" = set; then
27893   withval=$with_postgresql;
27894   if test "$withval" != "no"; then
27895       if test "$db_found" = "yes"; then
27896           { echo "$as_me:$LINENO: result: error" >&5
27897 echo "${ECHO_T}error" >&6; }
27898           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27899 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27900    { (exit 1); exit 1; }; };
27901       fi
27902       if test "$withval" = "yes"; then
27903           PG_CONFIG=`which pg_config`
27904           if test -n "$PG_CONFIG";then
27905               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27906               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27907               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27908           elif test -f /usr/local/include/libpq-fe.h; then
27909               POSTGRESQL_INCDIR=/usr/local/include
27910               if test -d /usr/local/lib64; then
27911                  POSTGRESQL_LIBDIR=/usr/local/lib64
27912               else
27913                  POSTGRESQL_LIBDIR=/usr/local/lib
27914               fi
27915               POSTGRESQL_BINDIR=/usr/local/bin
27916           elif test -f /usr/include/libpq-fe.h; then
27917               POSTGRESQL_INCDIR=/usr/include
27918               if test -d /usr/lib64; then
27919                  POSTGRESQL_LIBDIR=/usr/lib64
27920               else
27921                  POSTGRESQL_LIBDIR=/usr/lib
27922               fi
27923               POSTGRESQL_BINDIR=/usr/bin
27924           elif test -f /usr/include/pgsql/libpq-fe.h; then
27925               POSTGRESQL_INCDIR=/usr/include/pgsql
27926               if test -d /usr/lib64/pgsql; then
27927                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27928               else
27929                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27930               fi
27931               POSTGRESQL_BINDIR=/usr/bin
27932           elif test -f /usr/include/postgresql/libpq-fe.h; then
27933               POSTGRESQL_INCDIR=/usr/include/postgresql
27934               if test -d /usr/lib64/postgresql; then
27935                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27936               else
27937                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27938               fi
27939               POSTGRESQL_BINDIR=/usr/bin
27940           else
27941               { echo "$as_me:$LINENO: result: no" >&5
27942 echo "${ECHO_T}no" >&6; }
27943               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27944 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27945    { (exit 1); exit 1; }; }
27946           fi
27947       elif test -f $withval/include/libpq-fe.h; then
27948           POSTGRESQL_INCDIR=$withval/include
27949           POSTGRESQL_LIBDIR=$withval/lib
27950           POSTGRESQL_BINDIR=$withval/bin
27951       elif test -f $withval/include/postgresql/libpq-fe.h; then
27952           POSTGRESQL_INCDIR=$withval/include/postgresql
27953      if test -d $withval/lib64; then
27954          POSTGRESQL_LIBDIR=$withval/lib64
27955      else
27956          POSTGRESQL_LIBDIR=$withval/lib
27957      fi
27958           POSTGRESQL_BINDIR=$withval/bin
27959       else
27960           { echo "$as_me:$LINENO: result: no" >&5
27961 echo "${ECHO_T}no" >&6; }
27962           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27963 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27964    { (exit 1); exit 1; }; }
27965       fi
27966       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27967       { echo "$as_me:$LINENO: checking for crypt" >&5
27968 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27969 if test "${ac_cv_func_crypt+set}" = set; then
27970   echo $ECHO_N "(cached) $ECHO_C" >&6
27971 else
27972   cat >conftest.$ac_ext <<_ACEOF
27973 /* confdefs.h.  */
27974 _ACEOF
27975 cat confdefs.h >>conftest.$ac_ext
27976 cat >>conftest.$ac_ext <<_ACEOF
27977 /* end confdefs.h.  */
27978 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27980 #define crypt innocuous_crypt
27981
27982 /* System header to define __stub macros and hopefully few prototypes,
27983     which can conflict with char crypt (); below.
27984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27985     <limits.h> exists even on freestanding compilers.  */
27986
27987 #ifdef __STDC__
27988 # include <limits.h>
27989 #else
27990 # include <assert.h>
27991 #endif
27992
27993 #undef crypt
27994
27995 /* Override any GCC internal prototype to avoid an error.
27996    Use char because int might match the return type of a GCC
27997    builtin and then its argument prototype would still apply.  */
27998 #ifdef __cplusplus
27999 extern "C"
28000 #endif
28001 char crypt ();
28002 /* The GNU C library defines this for functions which it implements
28003     to always fail with ENOSYS.  Some functions are actually named
28004     something starting with __ and the normal name is an alias.  */
28005 #if defined __stub_crypt || defined __stub___crypt
28006 choke me
28007 #endif
28008
28009 int
28010 main ()
28011 {
28012 return crypt ();
28013   ;
28014   return 0;
28015 }
28016 _ACEOF
28017 rm -f conftest.$ac_objext conftest$ac_exeext
28018 if { (ac_try="$ac_link"
28019 case "(($ac_try" in
28020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28021   *) ac_try_echo=$ac_try;;
28022 esac
28023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28024   (eval "$ac_link") 2>conftest.er1
28025   ac_status=$?
28026   grep -v '^ *+' conftest.er1 >conftest.err
28027   rm -f conftest.er1
28028   cat conftest.err >&5
28029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030   (exit $ac_status); } && {
28031          test -z "$ac_c_werror_flag" ||
28032          test ! -s conftest.err
28033        } && test -s conftest$ac_exeext &&
28034        $as_test_x conftest$ac_exeext; then
28035   ac_cv_func_crypt=yes
28036 else
28037   echo "$as_me: failed program was:" >&5
28038 sed 's/^/| /' conftest.$ac_ext >&5
28039
28040         ac_cv_func_crypt=no
28041 fi
28042
28043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28044       conftest$ac_exeext conftest.$ac_ext
28045 fi
28046 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28047 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28048 if test $ac_cv_func_crypt = yes; then
28049   :
28050 else
28051   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28052 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28053 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28054   echo $ECHO_N "(cached) $ECHO_C" >&6
28055 else
28056   ac_check_lib_save_LIBS=$LIBS
28057 LIBS="-lcrypt  $LIBS"
28058 cat >conftest.$ac_ext <<_ACEOF
28059 /* confdefs.h.  */
28060 _ACEOF
28061 cat confdefs.h >>conftest.$ac_ext
28062 cat >>conftest.$ac_ext <<_ACEOF
28063 /* end confdefs.h.  */
28064
28065 /* Override any GCC internal prototype to avoid an error.
28066    Use char because int might match the return type of a GCC
28067    builtin and then its argument prototype would still apply.  */
28068 #ifdef __cplusplus
28069 extern "C"
28070 #endif
28071 char crypt ();
28072 int
28073 main ()
28074 {
28075 return crypt ();
28076   ;
28077   return 0;
28078 }
28079 _ACEOF
28080 rm -f conftest.$ac_objext conftest$ac_exeext
28081 if { (ac_try="$ac_link"
28082 case "(($ac_try" in
28083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28084   *) ac_try_echo=$ac_try;;
28085 esac
28086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28087   (eval "$ac_link") 2>conftest.er1
28088   ac_status=$?
28089   grep -v '^ *+' conftest.er1 >conftest.err
28090   rm -f conftest.er1
28091   cat conftest.err >&5
28092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093   (exit $ac_status); } && {
28094          test -z "$ac_c_werror_flag" ||
28095          test ! -s conftest.err
28096        } && test -s conftest$ac_exeext &&
28097        $as_test_x conftest$ac_exeext; then
28098   ac_cv_lib_crypt_crypt=yes
28099 else
28100   echo "$as_me: failed program was:" >&5
28101 sed 's/^/| /' conftest.$ac_ext >&5
28102
28103         ac_cv_lib_crypt_crypt=no
28104 fi
28105
28106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28107       conftest$ac_exeext conftest.$ac_ext
28108 LIBS=$ac_check_lib_save_LIBS
28109 fi
28110 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28111 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28112 if test $ac_cv_lib_crypt_crypt = yes; then
28113   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28114 fi
28115
28116 fi
28117
28118       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28119       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28120       SQL_BINDIR=$POSTGRESQL_BINDIR
28121       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28122
28123       cat >>confdefs.h <<\_ACEOF
28124 #define HAVE_POSTGRESQL 1
28125 _ACEOF
28126
28127       { echo "$as_me:$LINENO: result: yes" >&5
28128 echo "${ECHO_T}yes" >&6; }
28129       db_found=yes
28130       support_postgresql=yes
28131       db_type=PostgreSQL
28132       DB_TYPE=postgresql
28133   else
28134       { echo "$as_me:$LINENO: result: no" >&5
28135 echo "${ECHO_T}no" >&6; }
28136   fi
28137
28138 else
28139
28140   { echo "$as_me:$LINENO: result: no" >&5
28141 echo "${ECHO_T}no" >&6; }
28142
28143 fi
28144
28145
28146
28147
28148
28149
28150
28151
28152 db_found=no
28153 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28154 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28155
28156 # Check whether --with-mysql was given.
28157 if test "${with_mysql+set}" = set; then
28158   withval=$with_mysql;
28159   if test "$withval" != "no"; then
28160         if test "$withval" = "yes"; then
28161            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28162                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28163                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28164                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28165                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28166                    else
28167                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28168                    fi
28169                    MYSQL_BINDIR=/usr/local/mysql/bin
28170            elif test -f /usr/include/mysql/mysql.h; then
28171                    MYSQL_INCDIR=/usr/include/mysql
28172                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28173                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28174                            MYSQL_LIBDIR=/usr/lib64/mysql
28175                    elif test -f /usr/lib64/libmysqlclient_r.a \
28176                         -o -f /usr/lib64/libmysqlclient_r.so; then
28177                            MYSQL_LIBDIR=/usr/lib64
28178                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28179                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28180                            MYSQL_LIBDIR=/usr/lib/mysql
28181                    else
28182                            MYSQL_LIBDIR=/usr/lib
28183                    fi
28184                    MYSQL_BINDIR=/usr/bin
28185            elif test -f /usr/include/mysql.h; then
28186                    MYSQL_INCDIR=/usr/include
28187                    if test -f /usr/lib64/libmysqlclient_r.a \
28188                         -o -f /usr/lib64/libmysqlclient_r.so; then
28189                            MYSQL_LIBDIR=/usr/lib64
28190                    else
28191                            MYSQL_LIBDIR=/usr/lib
28192                    fi
28193                    MYSQL_BINDIR=/usr/bin
28194            elif test -f /usr/local/include/mysql/mysql.h; then
28195                    MYSQL_INCDIR=/usr/local/include/mysql
28196                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28197                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28198                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28199                    else
28200                            MYSQL_LIBDIR=/usr/local/lib/mysql
28201                    fi
28202                    MYSQL_BINDIR=/usr/local/bin
28203            elif test -f /usr/local/include/mysql.h; then
28204                    MYSQL_INCDIR=/usr/local/include
28205                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28206                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28207                            MYSQL_LIBDIR=/usr/local/lib64
28208                    else
28209                            MYSQL_LIBDIR=/usr/local/lib
28210                    fi
28211                    MYSQL_BINDIR=/usr/local/bin
28212            else
28213               { echo "$as_me:$LINENO: result: no" >&5
28214 echo "${ECHO_T}no" >&6; }
28215               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28216 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28217    { (exit 1); exit 1; }; }
28218            fi
28219         else
28220            if test -f $withval/include/mysql/mysql.h; then
28221               MYSQL_INCDIR=$withval/include/mysql
28222               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28223                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28224                  MYSQL_LIBDIR=$withval/lib64/mysql
28225               elif test -f $withval/lib64/libmysqlclient_r.a \
28226                    -o -f $withval/lib64/libmysqlclient_r.so; then
28227                  MYSQL_LIBDIR=$withval/lib64
28228               elif test -f $withval/lib/libmysqlclient_r.a \
28229                    -o -f $withval/lib/libmysqlclient_r.so; then
28230                  MYSQL_LIBDIR=$withval/lib
28231               else
28232                  MYSQL_LIBDIR=$withval/lib/mysql
28233               fi
28234               MYSQL_BINDIR=$withval/bin
28235            elif test -f $withval/include/mysql.h; then
28236               MYSQL_INCDIR=$withval/include
28237               if test -f $withval/lib64/libmysqlclient_r.a \
28238                    -o -f $withval/lib64/libmysqlclient_r.so; then
28239                  MYSQL_LIBDIR=$withval/lib64
28240               else
28241                  MYSQL_LIBDIR=$withval/lib
28242               fi
28243               MYSQL_BINDIR=$withval/bin
28244            else
28245               { echo "$as_me:$LINENO: result: no" >&5
28246 echo "${ECHO_T}no" >&6; }
28247               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28248 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28249    { (exit 1); exit 1; }; }
28250            fi
28251         fi
28252     SQL_INCLUDE=-I$MYSQL_INCDIR
28253     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28254          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28255        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28256        cat >>confdefs.h <<\_ACEOF
28257 #define HAVE_THREAD_SAFE_MYSQL 1
28258 _ACEOF
28259
28260     fi
28261     SQL_BINDIR=$MYSQL_BINDIR
28262     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28263
28264     cat >>confdefs.h <<\_ACEOF
28265 #define HAVE_MYSQL 1
28266 _ACEOF
28267
28268     { echo "$as_me:$LINENO: result: yes" >&5
28269 echo "${ECHO_T}yes" >&6; }
28270     db_found=yes
28271     support_mysql=yes
28272     db_type=MySQL
28273     DB_TYPE=mysql
28274
28275   else
28276         { echo "$as_me:$LINENO: result: no" >&5
28277 echo "${ECHO_T}no" >&6; }
28278   fi
28279
28280
28281 fi
28282
28283
28284
28285 # Check whether --with-embedded-mysql was given.
28286 if test "${with_embedded_mysql+set}" = set; then
28287   withval=$with_embedded_mysql;
28288   if test "$withval" != "no"; then
28289         if test "$withval" = "yes"; then
28290                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28291                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28292                         if test -d /usr/local/mysql/lib64/mysql; then
28293                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28294                         else
28295                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28296                         fi
28297                         MYSQL_BINDIR=/usr/local/mysql/bin
28298                 elif test -f /usr/include/mysql/mysql.h; then
28299                         MYSQL_INCDIR=/usr/include/mysql
28300                         if test -d /usr/lib64/mysql; then
28301                                 MYSQL_LIBDIR=/usr/lib64/mysql
28302                         else
28303                                 MYSQL_LIBDIR=/usr/lib/mysql
28304                         fi
28305                         MYSQL_BINDIR=/usr/bin
28306                 elif test -f /usr/include/mysql.h; then
28307                         MYSQL_INCDIR=/usr/include
28308                         if test -d /usr/lib64; then
28309                                 MYSQL_LIBDIR=/usr/lib64
28310                         else
28311                                 MYSQL_LIBDIR=/usr/lib
28312                         fi
28313                         MYSQL_BINDIR=/usr/bin
28314                 elif test -f /usr/local/include/mysql/mysql.h; then
28315                         MYSQL_INCDIR=/usr/local/include/mysql
28316                         if test -d /usr/local/lib64/mysql; then
28317                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28318                         else
28319                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28320                         fi
28321                         MYSQL_BINDIR=/usr/local/bin
28322                 elif test -f /usr/local/include/mysql.h; then
28323                         MYSQL_INCDIR=/usr/local/include
28324                         if test -d /usr/local/lib64; then
28325                                 MYSQL_LIBDIR=/usr/local/lib64
28326                         else
28327                                 MYSQL_LIBDIR=/usr/local/lib
28328                         fi
28329                         MYSQL_BINDIR=/usr/local/bin
28330                 else
28331                    { echo "$as_me:$LINENO: result: no" >&5
28332 echo "${ECHO_T}no" >&6; }
28333                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28334 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28335    { (exit 1); exit 1; }; }
28336                 fi
28337         else
28338                 if test -f $withval/include/mysql/mysql.h; then
28339                         MYSQL_INCDIR=$withval/include/mysql
28340                         if test -d $withval/lib64/mysql; then
28341                                 MYSQL_LIBDIR=$withval/lib64/mysql
28342                         else
28343                                 MYSQL_LIBDIR=$withval/lib/mysql
28344                         fi
28345                         MYSQL_BINDIR=$withval/bin
28346                 elif test -f $withval/include/mysql.h; then
28347                         MYSQL_INCDIR=$withval/include
28348                         if test -d $withval/lib64; then
28349                                 MYSQL_LIBDIR=$withval/lib64
28350                         else
28351                                 MYSQL_LIBDIR=$withval/lib
28352                         fi
28353                         MYSQL_BINDIR=$withval/bin
28354                 else
28355                    { echo "$as_me:$LINENO: result: no" >&5
28356 echo "${ECHO_T}no" >&6; }
28357                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28358 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28359    { (exit 1); exit 1; }; }
28360                 fi
28361         fi
28362     SQL_INCLUDE=-I$MYSQL_INCDIR
28363     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28364     SQL_BINDIR=$MYSQL_BINDIR
28365     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28366
28367     cat >>confdefs.h <<\_ACEOF
28368 #define HAVE_MYSQL 1
28369 _ACEOF
28370
28371     cat >>confdefs.h <<\_ACEOF
28372 #define HAVE_EMBEDDED_MYSQL 1
28373 _ACEOF
28374
28375     { echo "$as_me:$LINENO: result: yes" >&5
28376 echo "${ECHO_T}yes" >&6; }
28377     db_found=yes
28378     support_mysql=yes
28379     db_type=MySQL
28380     DB_TYPE=mysql
28381
28382   else
28383         { echo "$as_me:$LINENO: result: no" >&5
28384 echo "${ECHO_T}no" >&6; }
28385   fi
28386
28387
28388 fi
28389
28390
28391
28392
28393
28394
28395
28396
28397
28398
28399 db_found=no
28400 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28401 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28402
28403 # Check whether --with-sqlite3 was given.
28404 if test "${with_sqlite3+set}" = set; then
28405   withval=$with_sqlite3;
28406   if test "$withval" != "no"; then
28407      if test "$withval" = "yes"; then
28408         if test -f /usr/local/include/sqlite3.h; then
28409            SQLITE_INCDIR=/usr/local/include
28410            if test -d /usr/local/lib64; then
28411               SQLITE_LIBDIR=/usr/local/lib64
28412            else
28413               SQLITE_LIBDIR=/usr/local/lib
28414            fi
28415            SQLITE_BINDIR=/usr/local/bin
28416         elif test -f /usr/include/sqlite3.h; then
28417            SQLITE_INCDIR=/usr/include
28418            if test -d /usr/lib64; then
28419               SQLITE_LIBDIR=/usr/lib64
28420            else
28421               SQLITE_LIBDIR=/usr/lib
28422            fi
28423            SQLITE_BINDIR=/usr/bin
28424         elif test -f $prefix/include/sqlite3.h; then
28425            SQLITE_INCDIR=$prefix/include
28426            if test -d $prefix/lib64; then
28427               SQLITE_LIBDIR=$prefix/lib64
28428            else
28429               SQLITE_LIBDIR=$prefix/lib
28430            fi
28431            SQLITE_BINDIR=$prefix/bin
28432         else
28433            { echo "$as_me:$LINENO: result: no" >&5
28434 echo "${ECHO_T}no" >&6; }
28435            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28436 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28437    { (exit 1); exit 1; }; }
28438         fi
28439      else
28440         if test -f $withval/sqlite3.h; then
28441            SQLITE_INCDIR=$withval
28442            SQLITE_LIBDIR=$withval
28443            SQLITE_BINDIR=$withval
28444         elif test -f $withval/include/sqlite3.h; then
28445            SQLITE_INCDIR=$withval/include
28446            if test -d $withval/lib64; then
28447               SQLITE_LIBDIR=$withval/lib64
28448            else
28449               SQLITE_LIBDIR=$withval/lib
28450            fi
28451            SQLITE_BINDIR=$withval/bin
28452         else
28453            { echo "$as_me:$LINENO: result: no" >&5
28454 echo "${ECHO_T}no" >&6; }
28455            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28456 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28457    { (exit 1); exit 1; }; }
28458         fi
28459      fi
28460      SQL_INCLUDE=-I$SQLITE_INCDIR
28461      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28462      SQL_BINDIR=$SQLITE_BINDIR
28463      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28464
28465      cat >>confdefs.h <<\_ACEOF
28466 #define HAVE_SQLITE3 1
28467 _ACEOF
28468
28469      { echo "$as_me:$LINENO: result: yes" >&5
28470 echo "${ECHO_T}yes" >&6; }
28471      db_found=yes
28472      support_sqlite3=yes
28473      db_type=SQLite3
28474      DB_TYPE=sqlite3
28475
28476   else
28477      { echo "$as_me:$LINENO: result: no" >&5
28478 echo "${ECHO_T}no" >&6; }
28479   fi
28480
28481 else
28482
28483   { echo "$as_me:$LINENO: result: no" >&5
28484 echo "${ECHO_T}no" >&6; }
28485
28486 fi
28487
28488
28489
28490
28491
28492
28493
28494
28495 db_found=no
28496 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28497 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28498
28499 # Check whether --with-sqlite was given.
28500 if test "${with_sqlite+set}" = set; then
28501   withval=$with_sqlite;
28502   if test "$withval" != "no"; then
28503      if test "$withval" = "yes"; then
28504         if test -f /usr/local/include/sqlite.h; then
28505            SQLITE_INCDIR=/usr/local/include
28506            if test -d /usr/local/lib64; then
28507               SQLITE_LIBDIR=/usr/local/lib64
28508            else
28509               SQLITE_LIBDIR=/usr/local/lib
28510            fi
28511            SQLITE_BINDIR=/usr/local/bin
28512         elif test -f /usr/include/sqlite.h; then
28513            SQLITE_INCDIR=/usr/include
28514            if test -d /usr/lib64; then
28515               SQLITE_LIBDIR=/usr/lib64
28516            else
28517               SQLITE_LIBDIR=/usr/lib
28518            fi
28519            SQLITE_BINDIR=/usr/bin
28520         elif test -f $prefix/include/sqlite.h; then
28521            SQLITE_INCDIR=$prefix/include
28522            if test -d $prefix/lib64; then
28523               SQLITE_LIBDIR=$prefix/lib64
28524            else
28525               SQLITE_LIBDIR=$prefix/lib
28526            fi
28527            SQLITE_BINDIR=$prefix/bin
28528         else
28529            { echo "$as_me:$LINENO: result: no" >&5
28530 echo "${ECHO_T}no" >&6; }
28531            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28532 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28533    { (exit 1); exit 1; }; }
28534         fi
28535      else
28536         if test -f $withval/sqlite.h; then
28537            SQLITE_INCDIR=$withval
28538            SQLITE_LIBDIR=$withval
28539            SQLITE_BINDIR=$withval
28540         elif test -f $withval/include/sqlite.h; then
28541            SQLITE_INCDIR=$withval/include
28542            if test -d $withval/lib64; then
28543               SQLITE_LIBDIR=$withval/lib64
28544            else
28545               SQLITE_LIBDIR=$withval/lib
28546            fi
28547            SQLITE_BINDIR=$withval/bin
28548         else
28549            { echo "$as_me:$LINENO: result: no" >&5
28550 echo "${ECHO_T}no" >&6; }
28551            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28552 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28553    { (exit 1); exit 1; }; }
28554         fi
28555      fi
28556      SQL_INCLUDE=-I$SQLITE_INCDIR
28557      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28558      SQL_BINDIR=$SQLITE_BINDIR
28559      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28560
28561      cat >>confdefs.h <<\_ACEOF
28562 #define HAVE_SQLITE 1
28563 _ACEOF
28564
28565      { echo "$as_me:$LINENO: result: yes" >&5
28566 echo "${ECHO_T}yes" >&6; }
28567      db_found=yes
28568      support_sqlite=yes
28569      db_type=SQLite
28570      DB_TYPE=sqlite
28571
28572   else
28573      { echo "$as_me:$LINENO: result: no" >&5
28574 echo "${ECHO_T}no" >&6; }
28575   fi
28576
28577 else
28578
28579   { echo "$as_me:$LINENO: result: no" >&5
28580 echo "${ECHO_T}no" >&6; }
28581
28582 fi
28583
28584
28585
28586
28587
28588
28589
28590
28591 db_found=no
28592 { echo "$as_me:$LINENO: checking for DBI support" >&5
28593 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28594
28595 # Check whether --with-dbi was given.
28596 if test "${with_dbi+set}" = set; then
28597   withval=$with_dbi;
28598   if test "$withval" != "no"; then
28599      if test "$withval" = "yes"; then
28600         if test -f /usr/local/include/dbi/dbi.h; then
28601            DBI_INCDIR=/usr/local/dbi/include
28602            if test -d /usr/local/lib64; then
28603               DBI_LIBDIR=/usr/local/lib64
28604            else
28605               DBI_LIBDIR=/usr/local/lib
28606            fi
28607            DBI_BINDIR=/usr/local/bin
28608         elif test -f /usr/include/dbi/dbi.h; then
28609            DBI_INCDIR=/usr/include
28610            if test -d /usr/lib64; then
28611               DBI_LIBDIR=/usr/lib64
28612            else
28613               DBI_LIBDIR=/usr/lib
28614            fi
28615            DBI_BINDIR=/usr/bin
28616         elif test -f $prefix/include/dbi/dbi.h; then
28617            DBI_INCDIR=$prefix/include
28618            if test -d $prefix/lib64; then
28619               DBI_LIBDIR=$prefix/lib64
28620            else
28621               DBI_LIBDIR=$prefix/lib
28622            fi
28623            DBI_BINDIR=$prefix/bin
28624         else
28625            { echo "$as_me:$LINENO: result: no" >&5
28626 echo "${ECHO_T}no" >&6; }
28627            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28628 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28629    { (exit 1); exit 1; }; }
28630         fi
28631         if test -d /usr/local/lib/dbd; then
28632            DRIVERDIR=/usr/local/lib/dbd
28633            if test -d /usr/local/lib64/dbd; then
28634               DRIVERDIR=/usr/local/lib64/dbd
28635            else
28636               DRIVERDIR=/usr/local/lib/dbd
28637            fi
28638         elif test -d /usr/lib/dbd; then
28639            DRIVERDIR=/usr/lib/dbd
28640            if test -d /usr/lib64/dbd; then
28641               DRIVERDIR=/usr/lib64/dbd
28642            else
28643               DRIVERDIR=/usr/lib/dbd
28644            fi
28645         elif test -d $prefix/lib/dbd; then
28646            if test -d $prefix/lib64/dbd; then
28647               DRIVERDIR=$prefix/lib64/dbd
28648            else
28649               DRIVERDIR=$prefix/lib/dbd
28650            fi
28651         else
28652            { echo "$as_me:$LINENO: result: no" >&5
28653 echo "${ECHO_T}no" >&6; }
28654            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28655 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28656    { (exit 1); exit 1; }; }
28657         fi
28658      else
28659         if test -f $withval/dbi.h; then
28660            DBI_INCDIR=$withval
28661            DBI_LIBDIR=$withval
28662            DBI_BINDIR=$withval
28663         elif test -f $withval/include/dbi/dbi.h; then
28664            DBI_INCDIR=$withval/include
28665            if test -d $withval/lib64; then
28666               DBI_LIBDIR=$withval/lib64
28667            else
28668               DBI_LIBDIR=$withval/lib
28669            fi
28670            DBI_BINDIR=$withval/bin
28671         else
28672            { echo "$as_me:$LINENO: result: no" >&5
28673 echo "${ECHO_T}no" >&6; }
28674            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28675 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28676    { (exit 1); exit 1; }; }
28677         fi
28678         if test -d $withval/dbd; then
28679            DRIVERDIR=$withval/dbd
28680         elif test -d $withval/lib/; then
28681            if test -d $withval/lib64/dbd; then
28682               DRIVERDIR=$withval/lib64/dbd
28683            else
28684               DRIVERDIR=$withval/lib/dbd
28685            fi
28686         else
28687            { echo "$as_me:$LINENO: result: no" >&5
28688 echo "${ECHO_T}no" >&6; }
28689            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28690 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28691    { (exit 1); exit 1; }; }
28692         fi
28693      fi
28694      SQL_INCLUDE=-I$DBI_INCDIR
28695      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28696      SQL_BINDIR=$DBI_BINDIR
28697      SQL_LIB=$DBI_LIBDIR/libdbi.a
28698      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28699
28700
28701 cat >>confdefs.h <<\_ACEOF
28702 #define HAVE_DBI 1
28703 _ACEOF
28704
28705      { echo "$as_me:$LINENO: result: yes" >&5
28706 echo "${ECHO_T}yes" >&6; }
28707      db_found=yes
28708      support_dbi=yes
28709      db_type=DBI
28710      DB_TYPE=dbi
28711      uncomment_dbi=" "
28712
28713   else
28714      { echo "$as_me:$LINENO: result: no" >&5
28715 echo "${ECHO_T}no" >&6; }
28716   fi
28717
28718 else
28719
28720   { echo "$as_me:$LINENO: result: no" >&5
28721 echo "${ECHO_T}no" >&6; }
28722
28723 fi
28724
28725
28726
28727
28728
28729
28730
28731
28732
28733
28734 db_found=no
28735 db_prog=no
28736 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28737 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28738
28739 # Check whether --with-dbi-driver was given.
28740 if test "${with_dbi_driver+set}" = set; then
28741   withval=$with_dbi_driver;
28742   if test "$withval" != "no"; then
28743      case $withval in
28744         "mysql")
28745            db_prog="mysql"
28746            if test -f /usr/local/mysql/bin/mysql; then
28747               SQL_BINDIR=/usr/local/mysql/bin
28748               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28749                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28750                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28751               else
28752                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28753               fi
28754            elif test -f /usr/bin/mysql; then
28755               SQL_BINDIR=/usr/bin
28756               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28757                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28758                   SQL_LIBDIR=/usr/lib64/mysql
28759               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28760                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28761                   SQL_LIBDIR=/usr/lib/mysql
28762               else
28763                   SQL_LIBDIR=/usr/lib
28764               fi
28765            elif test -f /usr/local/bin/mysql; then
28766               SQL_BINDIR=/usr/local/bin
28767               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28768                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28769                   SQL_LIBDIR=/usr/local/lib64/mysql
28770               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28771                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28772                   SQL_LIBDIR=/usr/local/lib/mysql
28773               else
28774                   SQL_LIBDIR=/usr/local/lib
28775               fi
28776            elif test -f $withval/bin/mysql; then
28777               SQL_BINDIR=$withval/bin
28778               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28779                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28780                   SQL_LIBDIR=$withval/lib64/mysql
28781               elif test -f $withval/lib64/libmysqlclient_r.a \
28782                   -o -f $withval/lib64/libmysqlclient_r.so; then
28783                   SQL_LIBDIR=$withval/lib64
28784               elif test -f $withval/lib/libmysqlclient_r.a \
28785                   -o -f $withval/lib/libmysqlclient_r.so; then
28786                   SQL_LIBDIR=$withval/lib/
28787               else
28788                   SQL_LIBDIR=$withval/lib/mysql
28789               fi
28790            else
28791               { echo "$as_me:$LINENO: result: no" >&5
28792 echo "${ECHO_T}no" >&6; }
28793               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28794 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28795    { (exit 1); exit 1; }; }
28796            fi
28797            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28798               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28799            else
28800               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28801            fi
28802         ;;
28803         "postgresql")
28804            db_prog="postgresql"
28805            PG_CONFIG=`which pg_config`
28806            if test -n "$PG_CONFIG"; then
28807               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28808               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28809            elif test -f /usr/local/bin/psql; then
28810               SQL_BINDIR=/usr/local/bin
28811               if test -d /usr/local/lib64; then
28812                  SQL_LIBDIR=/usr/local/lib64
28813               else
28814                  SQL_LIBDIR=/usr/local/lib
28815               fi
28816            elif test -f /usr/bin/psql; then
28817               SQL_BINDIR=/usr/local/bin
28818               if test -d /usr/lib64/postgresql; then
28819                  SQL_LIBDIR=/usr/lib64/postgresql
28820               elif test -d /usr/lib/postgresql; then
28821                  SQL_LIBDIR=/usr/lib/postgresql
28822               elif test -d /usr/lib64; then
28823                  SQL_LIBDIR=/usr/lib64
28824               else
28825                  SQL_LIBDIR=/usr/lib
28826               fi
28827            elif test -f $withval/bin/psql; then
28828               SQL_BINDIR=$withval/bin
28829               if test -d $withval/lib64; then
28830                  SQL_LIBDIR=$withval/lib64
28831               else
28832                  SQL_LIBDIR=$withval/lib
28833               fi
28834            else
28835               { echo "$as_me:$LINENO: result: no" >&5
28836 echo "${ECHO_T}no" >&6; }
28837               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28838 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28839    { (exit 1); exit 1; }; }
28840            fi
28841            if test -f $SQL_LIBDIR/libpq.so; then
28842               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28843            else
28844               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28845            fi
28846         ;;
28847         "sqlite")
28848            db_prog="sqlite"
28849            if test -f /usr/local/bin/sqlite; then
28850               SQL_BINDIR=/usr/local/bin
28851               if test -d /usr/local/lib64; then
28852                  SQL_LIBDIR=/usr/local/lib64
28853               else
28854                  SQL_LIBDIR=/usr/local/lib
28855               fi
28856            elif test -f /usr/bin/sqlite; then
28857               SQL_BINDIR=/usr/bin
28858               if test -d /usr/lib64; then
28859                  SQL_LIBDIR=/usr/lib64
28860               else
28861                  SQL_LIBDIR=/usr/lib
28862               fi
28863            elif test -f $withval/bin/sqlite; then
28864               SQL_BINDIR=$withval/bin
28865               if test -d $withval/lib64; then
28866                  SQL_LIBDIR=$withval/lib64
28867               else
28868                  SQL_LIBDIR=$withval/lib
28869               fi
28870            else
28871               { echo "$as_me:$LINENO: result: no" >&5
28872 echo "${ECHO_T}no" >&6; }
28873               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28874 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28875    { (exit 1); exit 1; }; }
28876            fi
28877            if test -f $SQL_LIBDIR/libsqlite.so; then
28878               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28879            else
28880               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28881            fi
28882         ;;
28883         "sqlite3")
28884            db_prog="sqlite3"
28885            if test -f /usr/local/bin/sqlite3; then
28886               SQL_BINDIR=/usr/local/bin
28887               if test -d /usr/local/lib64; then
28888                  SQL_LIBDIR=/usr/local/lib64
28889               else
28890                  SQL_LIBDIR=/usr/local/lib
28891               fi
28892            elif test -f /usr/bin/sqlite3; then
28893               SQL_BINDIR=/usr/bin
28894               if test -d /usr/lib64; then
28895                  SQL_LIBDIR=/usr/lib64
28896               else
28897                  SQL_LIBDIR=/usr/lib
28898               fi
28899            elif test -f $withval/bin/sqlite3; then
28900               SQL_BINDIR=$withval/bin
28901               if test -d $withval/lib64; then
28902                  SQL_LIBDIR=$withval/lib64
28903               else
28904                  SQL_LIBDIR=$withval/lib
28905               fi
28906            else
28907               { echo "$as_me:$LINENO: result: no" >&5
28908 echo "${ECHO_T}no" >&6; }
28909               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28910 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28911    { (exit 1); exit 1; }; }
28912            fi
28913            if test -f $SQL_LIBDIR/libsqlite3.so; then
28914               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28915            else
28916               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28917            fi
28918         ;;
28919         *)
28920            { echo "$as_me:$LINENO: result: no" >&5
28921 echo "${ECHO_T}no" >&6; }
28922            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28923 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28924    { (exit 1); exit 1; }; }
28925         ;;
28926      esac
28927
28928      { echo "$as_me:$LINENO: result: yes" >&5
28929 echo "${ECHO_T}yes" >&6; }
28930      DB_PROG=$db_prog
28931   else
28932      { echo "$as_me:$LINENO: result: no" >&5
28933 echo "${ECHO_T}no" >&6; }
28934   fi
28935
28936 else
28937
28938   { echo "$as_me:$LINENO: result: no" >&5
28939 echo "${ECHO_T}no" >&6; }
28940
28941 fi
28942
28943
28944
28945
28946
28947
28948
28949
28950
28951
28952 support_batch_insert=no
28953 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28954 pkg=$?
28955 if test $pkg = 0; then
28956    support_batch_insert=yes
28957    # Check whether --enable-batch-insert was given.
28958 if test "${enable_batch_insert+set}" = set; then
28959   enableval=$enable_batch_insert;
28960           if test x$enableval = xno; then
28961              support_batch_insert=no
28962           else
28963              support_batch_insert=yes
28964           fi
28965
28966
28967 fi
28968
28969 fi
28970
28971 if test x$DB_TYPE = xpostgresql; then
28972    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28973    pkg=$?
28974    if test $pkg != 0; then
28975       support_batch_insert=no
28976    fi
28977 fi
28978
28979 if test x$DB_TYPE = xdbi; then
28980    DB_TYPE=$DB_PROG
28981    db_type=$DB_PROG
28982    pkg=1
28983       if test $DB_PROG = postgresql; then
28984       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28985       pkg=$?
28986    fi
28987
28988    if test $DB_PROG = mysql; then
28989       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28990       pkg=$?
28991    fi
28992
28993    if test $DB_PROG = sqlite3; then
28994       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28995       pkg=$?
28996    fi
28997
28998    if test $pkg = 0; then
28999       # Check whether --enable-batch-insert was given.
29000 if test "${enable_batch_insert+set}" = set; then
29001   enableval=$enable_batch_insert;
29002              if test x$enableval = xno; then
29003                 support_batch_insert=no
29004              else
29005                 support_batch_insert=yes
29006              fi
29007
29008
29009 fi
29010
29011    fi
29012 else
29013       uncomment_dbi="#"
29014 fi
29015
29016
29017
29018 if test $support_batch_insert = yes ; then
29019
29020 cat >>confdefs.h <<\_ACEOF
29021 #define HAVE_BATCH_FILE_INSERT 1
29022 _ACEOF
29023
29024 fi
29025
29026 cat >>confdefs.h <<\_ACEOF
29027 #define PROTOTYPES 1
29028 _ACEOF
29029
29030
29031 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29032    if test -z "$CCOPTS"; then
29033       CCOPTS='-g -O2 -Wall'
29034    fi
29035    CFLAGS="$CCOPTS"
29036 fi
29037
29038
29039
29040 largefile_support="no"
29041
29042    # Check whether --enable-largefile was given.
29043 if test "${enable_largefile+set}" = set; then
29044   enableval=$enable_largefile;
29045 fi
29046
29047    if test "$enable_largefile" != no; then
29048      if test -n "$ac_tool_prefix"; then
29049   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29050 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29053 if test "${ac_cv_prog_GETCONF+set}" = set; then
29054   echo $ECHO_N "(cached) $ECHO_C" >&6
29055 else
29056   if test -n "$GETCONF"; then
29057   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29058 else
29059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29060 for as_dir in $PATH
29061 do
29062   IFS=$as_save_IFS
29063   test -z "$as_dir" && as_dir=.
29064   for ac_exec_ext in '' $ac_executable_extensions; do
29065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29066     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29068     break 2
29069   fi
29070 done
29071 done
29072 IFS=$as_save_IFS
29073
29074 fi
29075 fi
29076 GETCONF=$ac_cv_prog_GETCONF
29077 if test -n "$GETCONF"; then
29078   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29079 echo "${ECHO_T}$GETCONF" >&6; }
29080 else
29081   { echo "$as_me:$LINENO: result: no" >&5
29082 echo "${ECHO_T}no" >&6; }
29083 fi
29084
29085
29086 fi
29087 if test -z "$ac_cv_prog_GETCONF"; then
29088   ac_ct_GETCONF=$GETCONF
29089   # Extract the first word of "getconf", so it can be a program name with args.
29090 set dummy getconf; ac_word=$2
29091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29093 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29094   echo $ECHO_N "(cached) $ECHO_C" >&6
29095 else
29096   if test -n "$ac_ct_GETCONF"; then
29097   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29098 else
29099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29100 for as_dir in $PATH
29101 do
29102   IFS=$as_save_IFS
29103   test -z "$as_dir" && as_dir=.
29104   for ac_exec_ext in '' $ac_executable_extensions; do
29105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29106     ac_cv_prog_ac_ct_GETCONF="getconf"
29107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29108     break 2
29109   fi
29110 done
29111 done
29112 IFS=$as_save_IFS
29113
29114 fi
29115 fi
29116 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29117 if test -n "$ac_ct_GETCONF"; then
29118   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29119 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29120 else
29121   { echo "$as_me:$LINENO: result: no" >&5
29122 echo "${ECHO_T}no" >&6; }
29123 fi
29124
29125   if test "x$ac_ct_GETCONF" = x; then
29126     GETCONF=""
29127   else
29128     case $cross_compiling:$ac_tool_warned in
29129 yes:)
29130 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29131 whose name does not start with the host triplet.  If you think this
29132 configuration is useful to you, please write to autoconf@gnu.org." >&5
29133 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29134 whose name does not start with the host triplet.  If you think this
29135 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29136 ac_tool_warned=yes ;;
29137 esac
29138     GETCONF=$ac_ct_GETCONF
29139   fi
29140 else
29141   GETCONF="$ac_cv_prog_GETCONF"
29142 fi
29143
29144      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29145 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29146 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29147   echo $ECHO_N "(cached) $ECHO_C" >&6
29148 else
29149   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29150         ac_cv_sys_largefile_CFLAGS=no
29151         case "$host_os" in
29152            # IRIX 6.2 and later require cc -n32.
29153            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29154              if test "$GCC" != yes; then
29155                ac_cv_sys_largefile_CFLAGS=-n32
29156              fi
29157              ac_save_CC="$CC"
29158              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29159              cat >conftest.$ac_ext <<_ACEOF
29160 /* confdefs.h.  */
29161 _ACEOF
29162 cat confdefs.h >>conftest.$ac_ext
29163 cat >>conftest.$ac_ext <<_ACEOF
29164 /* end confdefs.h.  */
29165
29166 int
29167 main ()
29168 {
29169
29170   ;
29171   return 0;
29172 }
29173 _ACEOF
29174 rm -f conftest.$ac_objext conftest$ac_exeext
29175 if { (ac_try="$ac_link"
29176 case "(($ac_try" in
29177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29178   *) ac_try_echo=$ac_try;;
29179 esac
29180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29181   (eval "$ac_link") 2>conftest.er1
29182   ac_status=$?
29183   grep -v '^ *+' conftest.er1 >conftest.err
29184   rm -f conftest.er1
29185   cat conftest.err >&5
29186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187   (exit $ac_status); } && {
29188          test -z "$ac_c_werror_flag" ||
29189          test ! -s conftest.err
29190        } && test -s conftest$ac_exeext &&
29191        $as_test_x conftest$ac_exeext; then
29192   :
29193 else
29194   echo "$as_me: failed program was:" >&5
29195 sed 's/^/| /' conftest.$ac_ext >&5
29196
29197         ac_cv_sys_largefile_CFLAGS=no
29198 fi
29199
29200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29201       conftest$ac_exeext conftest.$ac_ext
29202              CC="$ac_save_CC"
29203            esac
29204       }
29205 fi
29206 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29207 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29208      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29209 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29210 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29211   echo $ECHO_N "(cached) $ECHO_C" >&6
29212 else
29213   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29214         ac_cv_sys_largefile_LDFLAGS=no
29215
29216       }
29217 fi
29218 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29219 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29220      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29221 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29222 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29223   echo $ECHO_N "(cached) $ECHO_C" >&6
29224 else
29225   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29226         ac_cv_sys_largefile_LIBS=no
29227
29228       }
29229 fi
29230 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29231 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29232
29233      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29234        case "$ac_flag" in
29235        no) ;;
29236        -D_FILE_OFFSET_BITS=*) ;;
29237        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29238        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29239        -D?* | -I?*)
29240          case "$ac_flag" in
29241    no) ;;
29242    ?*)
29243      case "$CPPFLAGS" in
29244      '') CPPFLAGS="$ac_flag" ;;
29245      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29246      esac ;;
29247    esac ;;
29248        *)
29249          case "$ac_flag" in
29250    no) ;;
29251    ?*)
29252      case "$CFLAGS" in
29253      '') CFLAGS="$ac_flag" ;;
29254      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29255      esac ;;
29256    esac ;;
29257        esac
29258      done
29259      case "$ac_cv_sys_largefile_LDFLAGS" in
29260    no) ;;
29261    ?*)
29262      case "$LDFLAGS" in
29263      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29264      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29265      esac ;;
29266    esac
29267      case "$ac_cv_sys_largefile_LIBS" in
29268    no) ;;
29269    ?*)
29270      case "$LIBS" in
29271      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29272      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29273      esac ;;
29274    esac
29275      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29276 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29277 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29278   echo $ECHO_N "(cached) $ECHO_C" >&6
29279 else
29280   ac_cv_sys_file_offset_bits=no
29281       ac_cv_sys_file_offset_bits=64
29282       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29283         case "$ac_flag" in
29284         -D_FILE_OFFSET_BITS)
29285           ac_cv_sys_file_offset_bits=1 ;;
29286         -D_FILE_OFFSET_BITS=*)
29287           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29288         esac
29289       done
29290
29291 fi
29292 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29293 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29294    if test "$ac_cv_sys_file_offset_bits" != no; then
29295
29296 cat >>confdefs.h <<_ACEOF
29297 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29298 _ACEOF
29299
29300    fi
29301      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29302 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29303 if test "${ac_cv_sys_largefile_source+set}" = set; then
29304   echo $ECHO_N "(cached) $ECHO_C" >&6
29305 else
29306   ac_cv_sys_largefile_source=no
29307       ac_cv_sys_largefile_source=1
29308       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29309         case "$ac_flag" in
29310         -D_LARGEFILE_SOURCE)
29311           ac_cv_sys_largefile_source=1 ;;
29312         -D_LARGEFILE_SOURCE=*)
29313           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29314         esac
29315       done
29316
29317 fi
29318 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29319 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29320    if test "$ac_cv_sys_largefile_source" != no; then
29321
29322 cat >>confdefs.h <<_ACEOF
29323 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29324 _ACEOF
29325
29326    fi
29327      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29328 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29329 if test "${ac_cv_sys_large_files+set}" = set; then
29330   echo $ECHO_N "(cached) $ECHO_C" >&6
29331 else
29332   ac_cv_sys_large_files=no
29333       ac_cv_sys_large_files=1
29334       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29335         case "$ac_flag" in
29336         -D_LARGE_FILES)
29337           ac_cv_sys_large_files=1 ;;
29338         -D_LARGE_FILES=*)
29339           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29340         esac
29341       done
29342
29343 fi
29344 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29345 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29346    if test "$ac_cv_sys_large_files" != no; then
29347
29348 cat >>confdefs.h <<_ACEOF
29349 #define _LARGE_FILES $ac_cv_sys_large_files
29350 _ACEOF
29351
29352    fi
29353    fi
29354
29355
29356 { echo "$as_me:$LINENO: checking for X" >&5
29357 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29358
29359
29360 # Check whether --with-x was given.
29361 if test "${with_x+set}" = set; then
29362   withval=$with_x;
29363 fi
29364
29365 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29366 if test "x$with_x" = xno; then
29367   # The user explicitly disabled X.
29368   have_x=disabled
29369 else
29370   case $x_includes,$x_libraries in #(
29371     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29372 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29373    { (exit 1); exit 1; }; };; #(
29374     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29375   echo $ECHO_N "(cached) $ECHO_C" >&6
29376 else
29377   # One or both of the vars are not set, and there is no cached value.
29378 ac_x_includes=no ac_x_libraries=no
29379 rm -f -r conftest.dir
29380 if mkdir conftest.dir; then
29381   cd conftest.dir
29382   cat >Imakefile <<'_ACEOF'
29383 incroot:
29384         @echo incroot='${INCROOT}'
29385 usrlibdir:
29386         @echo usrlibdir='${USRLIBDIR}'
29387 libdir:
29388         @echo libdir='${LIBDIR}'
29389 _ACEOF
29390   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29391     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29392     for ac_var in incroot usrlibdir libdir; do
29393       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29394     done
29395     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29396     for ac_extension in a so sl; do
29397       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29398          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29399         ac_im_usrlibdir=$ac_im_libdir; break
29400       fi
29401     done
29402     # Screen out bogus values from the imake configuration.  They are
29403     # bogus both because they are the default anyway, and because
29404     # using them would break gcc on systems where it needs fixed includes.
29405     case $ac_im_incroot in
29406         /usr/include) ac_x_includes= ;;
29407         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29408     esac
29409     case $ac_im_usrlibdir in
29410         /usr/lib | /lib) ;;
29411         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29412     esac
29413   fi
29414   cd ..
29415   rm -f -r conftest.dir
29416 fi
29417
29418 # Standard set of common directories for X headers.
29419 # Check X11 before X11Rn because it is often a symlink to the current release.
29420 ac_x_header_dirs='
29421 /usr/X11/include
29422 /usr/X11R6/include
29423 /usr/X11R5/include
29424 /usr/X11R4/include
29425
29426 /usr/include/X11
29427 /usr/include/X11R6
29428 /usr/include/X11R5
29429 /usr/include/X11R4
29430
29431 /usr/local/X11/include
29432 /usr/local/X11R6/include
29433 /usr/local/X11R5/include
29434 /usr/local/X11R4/include
29435
29436 /usr/local/include/X11
29437 /usr/local/include/X11R6
29438 /usr/local/include/X11R5
29439 /usr/local/include/X11R4
29440
29441 /usr/X386/include
29442 /usr/x386/include
29443 /usr/XFree86/include/X11
29444
29445 /usr/include
29446 /usr/local/include
29447 /usr/unsupported/include
29448 /usr/athena/include
29449 /usr/local/x11r5/include
29450 /usr/lpp/Xamples/include
29451
29452 /usr/openwin/include
29453 /usr/openwin/share/include'
29454
29455 if test "$ac_x_includes" = no; then
29456   # Guess where to find include files, by looking for Xlib.h.
29457   # First, try using that file with no special directory specified.
29458   cat >conftest.$ac_ext <<_ACEOF
29459 /* confdefs.h.  */
29460 _ACEOF
29461 cat confdefs.h >>conftest.$ac_ext
29462 cat >>conftest.$ac_ext <<_ACEOF
29463 /* end confdefs.h.  */
29464 #include <X11/Xlib.h>
29465 _ACEOF
29466 if { (ac_try="$ac_cpp conftest.$ac_ext"
29467 case "(($ac_try" in
29468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469   *) ac_try_echo=$ac_try;;
29470 esac
29471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29473   ac_status=$?
29474   grep -v '^ *+' conftest.er1 >conftest.err
29475   rm -f conftest.er1
29476   cat conftest.err >&5
29477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478   (exit $ac_status); } >/dev/null && {
29479          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29480          test ! -s conftest.err
29481        }; then
29482   # We can compile using X headers with no special include directory.
29483 ac_x_includes=
29484 else
29485   echo "$as_me: failed program was:" >&5
29486 sed 's/^/| /' conftest.$ac_ext >&5
29487
29488   for ac_dir in $ac_x_header_dirs; do
29489   if test -r "$ac_dir/X11/Xlib.h"; then
29490     ac_x_includes=$ac_dir
29491     break
29492   fi
29493 done
29494 fi
29495
29496 rm -f conftest.err conftest.$ac_ext
29497 fi # $ac_x_includes = no
29498
29499 if test "$ac_x_libraries" = no; then
29500   # Check for the libraries.
29501   # See if we find them without any special options.
29502   # Don't add to $LIBS permanently.
29503   ac_save_LIBS=$LIBS
29504   LIBS="-lX11 $LIBS"
29505   cat >conftest.$ac_ext <<_ACEOF
29506 /* confdefs.h.  */
29507 _ACEOF
29508 cat confdefs.h >>conftest.$ac_ext
29509 cat >>conftest.$ac_ext <<_ACEOF
29510 /* end confdefs.h.  */
29511 #include <X11/Xlib.h>
29512 int
29513 main ()
29514 {
29515 XrmInitialize ()
29516   ;
29517   return 0;
29518 }
29519 _ACEOF
29520 rm -f conftest.$ac_objext conftest$ac_exeext
29521 if { (ac_try="$ac_link"
29522 case "(($ac_try" in
29523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29524   *) ac_try_echo=$ac_try;;
29525 esac
29526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29527   (eval "$ac_link") 2>conftest.er1
29528   ac_status=$?
29529   grep -v '^ *+' conftest.er1 >conftest.err
29530   rm -f conftest.er1
29531   cat conftest.err >&5
29532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533   (exit $ac_status); } && {
29534          test -z "$ac_c_werror_flag" ||
29535          test ! -s conftest.err
29536        } && test -s conftest$ac_exeext &&
29537        $as_test_x conftest$ac_exeext; then
29538   LIBS=$ac_save_LIBS
29539 # We can link X programs with no special library path.
29540 ac_x_libraries=
29541 else
29542   echo "$as_me: failed program was:" >&5
29543 sed 's/^/| /' conftest.$ac_ext >&5
29544
29545         LIBS=$ac_save_LIBS
29546 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29547 do
29548   # Don't even attempt the hair of trying to link an X program!
29549   for ac_extension in a so sl; do
29550     if test -r "$ac_dir/libX11.$ac_extension"; then
29551       ac_x_libraries=$ac_dir
29552       break 2
29553     fi
29554   done
29555 done
29556 fi
29557
29558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29559       conftest$ac_exeext conftest.$ac_ext
29560 fi # $ac_x_libraries = no
29561
29562 case $ac_x_includes,$ac_x_libraries in #(
29563   no,* | *,no | *\'*)
29564     # Didn't find X, or a directory has "'" in its name.
29565     ac_cv_have_x="have_x=no";; #(
29566   *)
29567     # Record where we found X for the cache.
29568     ac_cv_have_x="have_x=yes\
29569         ac_x_includes='$ac_x_includes'\
29570         ac_x_libraries='$ac_x_libraries'"
29571 esac
29572 fi
29573 ;; #(
29574     *) have_x=yes;;
29575   esac
29576   eval "$ac_cv_have_x"
29577 fi # $with_x != no
29578
29579 if test "$have_x" != yes; then
29580   { echo "$as_me:$LINENO: result: $have_x" >&5
29581 echo "${ECHO_T}$have_x" >&6; }
29582   no_x=yes
29583 else
29584   # If each of the values was on the command line, it overrides each guess.
29585   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29586   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29587   # Update the cache value to reflect the command line values.
29588   ac_cv_have_x="have_x=yes\
29589         ac_x_includes='$x_includes'\
29590         ac_x_libraries='$x_libraries'"
29591   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29592 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29593 fi
29594
29595 if test "$no_x" = yes; then
29596   # Not all programs may use this symbol, but it does not hurt to define it.
29597
29598 cat >>confdefs.h <<\_ACEOF
29599 #define X_DISPLAY_MISSING 1
29600 _ACEOF
29601
29602   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29603 else
29604   if test -n "$x_includes"; then
29605     X_CFLAGS="$X_CFLAGS -I$x_includes"
29606   fi
29607
29608   # It would also be nice to do this for all -L options, not just this one.
29609   if test -n "$x_libraries"; then
29610     X_LIBS="$X_LIBS -L$x_libraries"
29611     # For Solaris; some versions of Sun CC require a space after -R and
29612     # others require no space.  Words are not sufficient . . . .
29613     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29614 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29615     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29616     ac_xsave_c_werror_flag=$ac_c_werror_flag
29617     ac_c_werror_flag=yes
29618     cat >conftest.$ac_ext <<_ACEOF
29619 /* confdefs.h.  */
29620 _ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h.  */
29624
29625 int
29626 main ()
29627 {
29628
29629   ;
29630   return 0;
29631 }
29632 _ACEOF
29633 rm -f conftest.$ac_objext conftest$ac_exeext
29634 if { (ac_try="$ac_link"
29635 case "(($ac_try" in
29636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29637   *) ac_try_echo=$ac_try;;
29638 esac
29639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640   (eval "$ac_link") 2>conftest.er1
29641   ac_status=$?
29642   grep -v '^ *+' conftest.er1 >conftest.err
29643   rm -f conftest.er1
29644   cat conftest.err >&5
29645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646   (exit $ac_status); } && {
29647          test -z "$ac_c_werror_flag" ||
29648          test ! -s conftest.err
29649        } && test -s conftest$ac_exeext &&
29650        $as_test_x conftest$ac_exeext; then
29651   { echo "$as_me:$LINENO: result: no" >&5
29652 echo "${ECHO_T}no" >&6; }
29653        X_LIBS="$X_LIBS -R$x_libraries"
29654 else
29655   echo "$as_me: failed program was:" >&5
29656 sed 's/^/| /' conftest.$ac_ext >&5
29657
29658         LIBS="$ac_xsave_LIBS -R $x_libraries"
29659        cat >conftest.$ac_ext <<_ACEOF
29660 /* confdefs.h.  */
29661 _ACEOF
29662 cat confdefs.h >>conftest.$ac_ext
29663 cat >>conftest.$ac_ext <<_ACEOF
29664 /* end confdefs.h.  */
29665
29666 int
29667 main ()
29668 {
29669
29670   ;
29671   return 0;
29672 }
29673 _ACEOF
29674 rm -f conftest.$ac_objext conftest$ac_exeext
29675 if { (ac_try="$ac_link"
29676 case "(($ac_try" in
29677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29678   *) ac_try_echo=$ac_try;;
29679 esac
29680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29681   (eval "$ac_link") 2>conftest.er1
29682   ac_status=$?
29683   grep -v '^ *+' conftest.er1 >conftest.err
29684   rm -f conftest.er1
29685   cat conftest.err >&5
29686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687   (exit $ac_status); } && {
29688          test -z "$ac_c_werror_flag" ||
29689          test ! -s conftest.err
29690        } && test -s conftest$ac_exeext &&
29691        $as_test_x conftest$ac_exeext; then
29692   { echo "$as_me:$LINENO: result: yes" >&5
29693 echo "${ECHO_T}yes" >&6; }
29694           X_LIBS="$X_LIBS -R $x_libraries"
29695 else
29696   echo "$as_me: failed program was:" >&5
29697 sed 's/^/| /' conftest.$ac_ext >&5
29698
29699         { echo "$as_me:$LINENO: result: neither works" >&5
29700 echo "${ECHO_T}neither works" >&6; }
29701 fi
29702
29703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29704       conftest$ac_exeext conftest.$ac_ext
29705 fi
29706
29707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29708       conftest$ac_exeext conftest.$ac_ext
29709     ac_c_werror_flag=$ac_xsave_c_werror_flag
29710     LIBS=$ac_xsave_LIBS
29711   fi
29712
29713   # Check for system-dependent libraries X programs must link with.
29714   # Do this before checking for the system-independent R6 libraries
29715   # (-lICE), since we may need -lsocket or whatever for X linking.
29716
29717   if test "$ISC" = yes; then
29718     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29719   else
29720     # Martyn Johnson says this is needed for Ultrix, if the X
29721     # libraries were built with DECnet support.  And Karl Berry says
29722     # the Alpha needs dnet_stub (dnet does not exist).
29723     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29724     cat >conftest.$ac_ext <<_ACEOF
29725 /* confdefs.h.  */
29726 _ACEOF
29727 cat confdefs.h >>conftest.$ac_ext
29728 cat >>conftest.$ac_ext <<_ACEOF
29729 /* end confdefs.h.  */
29730
29731 /* Override any GCC internal prototype to avoid an error.
29732    Use char because int might match the return type of a GCC
29733    builtin and then its argument prototype would still apply.  */
29734 #ifdef __cplusplus
29735 extern "C"
29736 #endif
29737 char XOpenDisplay ();
29738 int
29739 main ()
29740 {
29741 return XOpenDisplay ();
29742   ;
29743   return 0;
29744 }
29745 _ACEOF
29746 rm -f conftest.$ac_objext conftest$ac_exeext
29747 if { (ac_try="$ac_link"
29748 case "(($ac_try" in
29749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29750   *) ac_try_echo=$ac_try;;
29751 esac
29752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29753   (eval "$ac_link") 2>conftest.er1
29754   ac_status=$?
29755   grep -v '^ *+' conftest.er1 >conftest.err
29756   rm -f conftest.er1
29757   cat conftest.err >&5
29758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759   (exit $ac_status); } && {
29760          test -z "$ac_c_werror_flag" ||
29761          test ! -s conftest.err
29762        } && test -s conftest$ac_exeext &&
29763        $as_test_x conftest$ac_exeext; then
29764   :
29765 else
29766   echo "$as_me: failed program was:" >&5
29767 sed 's/^/| /' conftest.$ac_ext >&5
29768
29769         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29770 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29771 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29772   echo $ECHO_N "(cached) $ECHO_C" >&6
29773 else
29774   ac_check_lib_save_LIBS=$LIBS
29775 LIBS="-ldnet  $LIBS"
29776 cat >conftest.$ac_ext <<_ACEOF
29777 /* confdefs.h.  */
29778 _ACEOF
29779 cat confdefs.h >>conftest.$ac_ext
29780 cat >>conftest.$ac_ext <<_ACEOF
29781 /* end confdefs.h.  */
29782
29783 /* Override any GCC internal prototype to avoid an error.
29784    Use char because int might match the return type of a GCC
29785    builtin and then its argument prototype would still apply.  */
29786 #ifdef __cplusplus
29787 extern "C"
29788 #endif
29789 char dnet_ntoa ();
29790 int
29791 main ()
29792 {
29793 return dnet_ntoa ();
29794   ;
29795   return 0;
29796 }
29797 _ACEOF
29798 rm -f conftest.$ac_objext conftest$ac_exeext
29799 if { (ac_try="$ac_link"
29800 case "(($ac_try" in
29801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29802   *) ac_try_echo=$ac_try;;
29803 esac
29804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29805   (eval "$ac_link") 2>conftest.er1
29806   ac_status=$?
29807   grep -v '^ *+' conftest.er1 >conftest.err
29808   rm -f conftest.er1
29809   cat conftest.err >&5
29810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811   (exit $ac_status); } && {
29812          test -z "$ac_c_werror_flag" ||
29813          test ! -s conftest.err
29814        } && test -s conftest$ac_exeext &&
29815        $as_test_x conftest$ac_exeext; then
29816   ac_cv_lib_dnet_dnet_ntoa=yes
29817 else
29818   echo "$as_me: failed program was:" >&5
29819 sed 's/^/| /' conftest.$ac_ext >&5
29820
29821         ac_cv_lib_dnet_dnet_ntoa=no
29822 fi
29823
29824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29825       conftest$ac_exeext conftest.$ac_ext
29826 LIBS=$ac_check_lib_save_LIBS
29827 fi
29828 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29829 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29830 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29831   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29832 fi
29833
29834     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29835       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29836 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29837 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29838   echo $ECHO_N "(cached) $ECHO_C" >&6
29839 else
29840   ac_check_lib_save_LIBS=$LIBS
29841 LIBS="-ldnet_stub  $LIBS"
29842 cat >conftest.$ac_ext <<_ACEOF
29843 /* confdefs.h.  */
29844 _ACEOF
29845 cat confdefs.h >>conftest.$ac_ext
29846 cat >>conftest.$ac_ext <<_ACEOF
29847 /* end confdefs.h.  */
29848
29849 /* Override any GCC internal prototype to avoid an error.
29850    Use char because int might match the return type of a GCC
29851    builtin and then its argument prototype would still apply.  */
29852 #ifdef __cplusplus
29853 extern "C"
29854 #endif
29855 char dnet_ntoa ();
29856 int
29857 main ()
29858 {
29859 return dnet_ntoa ();
29860   ;
29861   return 0;
29862 }
29863 _ACEOF
29864 rm -f conftest.$ac_objext conftest$ac_exeext
29865 if { (ac_try="$ac_link"
29866 case "(($ac_try" in
29867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29868   *) ac_try_echo=$ac_try;;
29869 esac
29870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29871   (eval "$ac_link") 2>conftest.er1
29872   ac_status=$?
29873   grep -v '^ *+' conftest.er1 >conftest.err
29874   rm -f conftest.er1
29875   cat conftest.err >&5
29876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877   (exit $ac_status); } && {
29878          test -z "$ac_c_werror_flag" ||
29879          test ! -s conftest.err
29880        } && test -s conftest$ac_exeext &&
29881        $as_test_x conftest$ac_exeext; then
29882   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29883 else
29884   echo "$as_me: failed program was:" >&5
29885 sed 's/^/| /' conftest.$ac_ext >&5
29886
29887         ac_cv_lib_dnet_stub_dnet_ntoa=no
29888 fi
29889
29890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29891       conftest$ac_exeext conftest.$ac_ext
29892 LIBS=$ac_check_lib_save_LIBS
29893 fi
29894 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29895 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29896 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29897   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29898 fi
29899
29900     fi
29901 fi
29902
29903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29904       conftest$ac_exeext conftest.$ac_ext
29905     LIBS="$ac_xsave_LIBS"
29906
29907     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29908     # to get the SysV transport functions.
29909     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29910     # needs -lnsl.
29911     # The nsl library prevents programs from opening the X display
29912     # on Irix 5.2, according to T.E. Dickey.
29913     # The functions gethostbyname, getservbyname, and inet_addr are
29914     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29915     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29916 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29917 if test "${ac_cv_func_gethostbyname+set}" = set; then
29918   echo $ECHO_N "(cached) $ECHO_C" >&6
29919 else
29920   cat >conftest.$ac_ext <<_ACEOF
29921 /* confdefs.h.  */
29922 _ACEOF
29923 cat confdefs.h >>conftest.$ac_ext
29924 cat >>conftest.$ac_ext <<_ACEOF
29925 /* end confdefs.h.  */
29926 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29928 #define gethostbyname innocuous_gethostbyname
29929
29930 /* System header to define __stub macros and hopefully few prototypes,
29931     which can conflict with char gethostbyname (); below.
29932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29933     <limits.h> exists even on freestanding compilers.  */
29934
29935 #ifdef __STDC__
29936 # include <limits.h>
29937 #else
29938 # include <assert.h>
29939 #endif
29940
29941 #undef gethostbyname
29942
29943 /* Override any GCC internal prototype to avoid an error.
29944    Use char because int might match the return type of a GCC
29945    builtin and then its argument prototype would still apply.  */
29946 #ifdef __cplusplus
29947 extern "C"
29948 #endif
29949 char gethostbyname ();
29950 /* The GNU C library defines this for functions which it implements
29951     to always fail with ENOSYS.  Some functions are actually named
29952     something starting with __ and the normal name is an alias.  */
29953 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29954 choke me
29955 #endif
29956
29957 int
29958 main ()
29959 {
29960 return gethostbyname ();
29961   ;
29962   return 0;
29963 }
29964 _ACEOF
29965 rm -f conftest.$ac_objext conftest$ac_exeext
29966 if { (ac_try="$ac_link"
29967 case "(($ac_try" in
29968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29969   *) ac_try_echo=$ac_try;;
29970 esac
29971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29972   (eval "$ac_link") 2>conftest.er1
29973   ac_status=$?
29974   grep -v '^ *+' conftest.er1 >conftest.err
29975   rm -f conftest.er1
29976   cat conftest.err >&5
29977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978   (exit $ac_status); } && {
29979          test -z "$ac_c_werror_flag" ||
29980          test ! -s conftest.err
29981        } && test -s conftest$ac_exeext &&
29982        $as_test_x conftest$ac_exeext; then
29983   ac_cv_func_gethostbyname=yes
29984 else
29985   echo "$as_me: failed program was:" >&5
29986 sed 's/^/| /' conftest.$ac_ext >&5
29987
29988         ac_cv_func_gethostbyname=no
29989 fi
29990
29991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29992       conftest$ac_exeext conftest.$ac_ext
29993 fi
29994 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29995 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29996
29997     if test $ac_cv_func_gethostbyname = no; then
29998       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29999 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30000 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30001   echo $ECHO_N "(cached) $ECHO_C" >&6
30002 else
30003   ac_check_lib_save_LIBS=$LIBS
30004 LIBS="-lnsl  $LIBS"
30005 cat >conftest.$ac_ext <<_ACEOF
30006 /* confdefs.h.  */
30007 _ACEOF
30008 cat confdefs.h >>conftest.$ac_ext
30009 cat >>conftest.$ac_ext <<_ACEOF
30010 /* end confdefs.h.  */
30011
30012 /* Override any GCC internal prototype to avoid an error.
30013    Use char because int might match the return type of a GCC
30014    builtin and then its argument prototype would still apply.  */
30015 #ifdef __cplusplus
30016 extern "C"
30017 #endif
30018 char gethostbyname ();
30019 int
30020 main ()
30021 {
30022 return gethostbyname ();
30023   ;
30024   return 0;
30025 }
30026 _ACEOF
30027 rm -f conftest.$ac_objext conftest$ac_exeext
30028 if { (ac_try="$ac_link"
30029 case "(($ac_try" in
30030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30031   *) ac_try_echo=$ac_try;;
30032 esac
30033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30034   (eval "$ac_link") 2>conftest.er1
30035   ac_status=$?
30036   grep -v '^ *+' conftest.er1 >conftest.err
30037   rm -f conftest.er1
30038   cat conftest.err >&5
30039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30040   (exit $ac_status); } && {
30041          test -z "$ac_c_werror_flag" ||
30042          test ! -s conftest.err
30043        } && test -s conftest$ac_exeext &&
30044        $as_test_x conftest$ac_exeext; then
30045   ac_cv_lib_nsl_gethostbyname=yes
30046 else
30047   echo "$as_me: failed program was:" >&5
30048 sed 's/^/| /' conftest.$ac_ext >&5
30049
30050         ac_cv_lib_nsl_gethostbyname=no
30051 fi
30052
30053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30054       conftest$ac_exeext conftest.$ac_ext
30055 LIBS=$ac_check_lib_save_LIBS
30056 fi
30057 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30058 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30059 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30060   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30061 fi
30062
30063       if test $ac_cv_lib_nsl_gethostbyname = no; then
30064         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30065 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30066 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30067   echo $ECHO_N "(cached) $ECHO_C" >&6
30068 else
30069   ac_check_lib_save_LIBS=$LIBS
30070 LIBS="-lbsd  $LIBS"
30071 cat >conftest.$ac_ext <<_ACEOF
30072 /* confdefs.h.  */
30073 _ACEOF
30074 cat confdefs.h >>conftest.$ac_ext
30075 cat >>conftest.$ac_ext <<_ACEOF
30076 /* end confdefs.h.  */
30077
30078 /* Override any GCC internal prototype to avoid an error.
30079    Use char because int might match the return type of a GCC
30080    builtin and then its argument prototype would still apply.  */
30081 #ifdef __cplusplus
30082 extern "C"
30083 #endif
30084 char gethostbyname ();
30085 int
30086 main ()
30087 {
30088 return gethostbyname ();
30089   ;
30090   return 0;
30091 }
30092 _ACEOF
30093 rm -f conftest.$ac_objext conftest$ac_exeext
30094 if { (ac_try="$ac_link"
30095 case "(($ac_try" in
30096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097   *) ac_try_echo=$ac_try;;
30098 esac
30099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100   (eval "$ac_link") 2>conftest.er1
30101   ac_status=$?
30102   grep -v '^ *+' conftest.er1 >conftest.err
30103   rm -f conftest.er1
30104   cat conftest.err >&5
30105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106   (exit $ac_status); } && {
30107          test -z "$ac_c_werror_flag" ||
30108          test ! -s conftest.err
30109        } && test -s conftest$ac_exeext &&
30110        $as_test_x conftest$ac_exeext; then
30111   ac_cv_lib_bsd_gethostbyname=yes
30112 else
30113   echo "$as_me: failed program was:" >&5
30114 sed 's/^/| /' conftest.$ac_ext >&5
30115
30116         ac_cv_lib_bsd_gethostbyname=no
30117 fi
30118
30119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30120       conftest$ac_exeext conftest.$ac_ext
30121 LIBS=$ac_check_lib_save_LIBS
30122 fi
30123 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30124 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30125 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30126   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30127 fi
30128
30129       fi
30130     fi
30131
30132     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30133     # socket/setsockopt and other routines are undefined under SCO ODT
30134     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30135     # on later versions), says Simon Leinen: it contains gethostby*
30136     # variants that don't use the name server (or something).  -lsocket
30137     # must be given before -lnsl if both are needed.  We assume that
30138     # if connect needs -lnsl, so does gethostbyname.
30139     { echo "$as_me:$LINENO: checking for connect" >&5
30140 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30141 if test "${ac_cv_func_connect+set}" = set; then
30142   echo $ECHO_N "(cached) $ECHO_C" >&6
30143 else
30144   cat >conftest.$ac_ext <<_ACEOF
30145 /* confdefs.h.  */
30146 _ACEOF
30147 cat confdefs.h >>conftest.$ac_ext
30148 cat >>conftest.$ac_ext <<_ACEOF
30149 /* end confdefs.h.  */
30150 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30152 #define connect innocuous_connect
30153
30154 /* System header to define __stub macros and hopefully few prototypes,
30155     which can conflict with char connect (); below.
30156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30157     <limits.h> exists even on freestanding compilers.  */
30158
30159 #ifdef __STDC__
30160 # include <limits.h>
30161 #else
30162 # include <assert.h>
30163 #endif
30164
30165 #undef connect
30166
30167 /* Override any GCC internal prototype to avoid an error.
30168    Use char because int might match the return type of a GCC
30169    builtin and then its argument prototype would still apply.  */
30170 #ifdef __cplusplus
30171 extern "C"
30172 #endif
30173 char connect ();
30174 /* The GNU C library defines this for functions which it implements
30175     to always fail with ENOSYS.  Some functions are actually named
30176     something starting with __ and the normal name is an alias.  */
30177 #if defined __stub_connect || defined __stub___connect
30178 choke me
30179 #endif
30180
30181 int
30182 main ()
30183 {
30184 return connect ();
30185   ;
30186   return 0;
30187 }
30188 _ACEOF
30189 rm -f conftest.$ac_objext conftest$ac_exeext
30190 if { (ac_try="$ac_link"
30191 case "(($ac_try" in
30192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193   *) ac_try_echo=$ac_try;;
30194 esac
30195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196   (eval "$ac_link") 2>conftest.er1
30197   ac_status=$?
30198   grep -v '^ *+' conftest.er1 >conftest.err
30199   rm -f conftest.er1
30200   cat conftest.err >&5
30201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202   (exit $ac_status); } && {
30203          test -z "$ac_c_werror_flag" ||
30204          test ! -s conftest.err
30205        } && test -s conftest$ac_exeext &&
30206        $as_test_x conftest$ac_exeext; then
30207   ac_cv_func_connect=yes
30208 else
30209   echo "$as_me: failed program was:" >&5
30210 sed 's/^/| /' conftest.$ac_ext >&5
30211
30212         ac_cv_func_connect=no
30213 fi
30214
30215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30216       conftest$ac_exeext conftest.$ac_ext
30217 fi
30218 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30219 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30220
30221     if test $ac_cv_func_connect = no; then
30222       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30223 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30224 if test "${ac_cv_lib_socket_connect+set}" = set; then
30225   echo $ECHO_N "(cached) $ECHO_C" >&6
30226 else
30227   ac_check_lib_save_LIBS=$LIBS
30228 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30229 cat >conftest.$ac_ext <<_ACEOF
30230 /* confdefs.h.  */
30231 _ACEOF
30232 cat confdefs.h >>conftest.$ac_ext
30233 cat >>conftest.$ac_ext <<_ACEOF
30234 /* end confdefs.h.  */
30235
30236 /* Override any GCC internal prototype to avoid an error.
30237    Use char because int might match the return type of a GCC
30238    builtin and then its argument prototype would still apply.  */
30239 #ifdef __cplusplus
30240 extern "C"
30241 #endif
30242 char connect ();
30243 int
30244 main ()
30245 {
30246 return connect ();
30247   ;
30248   return 0;
30249 }
30250 _ACEOF
30251 rm -f conftest.$ac_objext conftest$ac_exeext
30252 if { (ac_try="$ac_link"
30253 case "(($ac_try" in
30254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30255   *) ac_try_echo=$ac_try;;
30256 esac
30257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30258   (eval "$ac_link") 2>conftest.er1
30259   ac_status=$?
30260   grep -v '^ *+' conftest.er1 >conftest.err
30261   rm -f conftest.er1
30262   cat conftest.err >&5
30263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264   (exit $ac_status); } && {
30265          test -z "$ac_c_werror_flag" ||
30266          test ! -s conftest.err
30267        } && test -s conftest$ac_exeext &&
30268        $as_test_x conftest$ac_exeext; then
30269   ac_cv_lib_socket_connect=yes
30270 else
30271   echo "$as_me: failed program was:" >&5
30272 sed 's/^/| /' conftest.$ac_ext >&5
30273
30274         ac_cv_lib_socket_connect=no
30275 fi
30276
30277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30278       conftest$ac_exeext conftest.$ac_ext
30279 LIBS=$ac_check_lib_save_LIBS
30280 fi
30281 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30282 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30283 if test $ac_cv_lib_socket_connect = yes; then
30284   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30285 fi
30286
30287     fi
30288
30289     # Guillermo Gomez says -lposix is necessary on A/UX.
30290     { echo "$as_me:$LINENO: checking for remove" >&5
30291 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30292 if test "${ac_cv_func_remove+set}" = set; then
30293   echo $ECHO_N "(cached) $ECHO_C" >&6
30294 else
30295   cat >conftest.$ac_ext <<_ACEOF
30296 /* confdefs.h.  */
30297 _ACEOF
30298 cat confdefs.h >>conftest.$ac_ext
30299 cat >>conftest.$ac_ext <<_ACEOF
30300 /* end confdefs.h.  */
30301 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30303 #define remove innocuous_remove
30304
30305 /* System header to define __stub macros and hopefully few prototypes,
30306     which can conflict with char remove (); below.
30307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30308     <limits.h> exists even on freestanding compilers.  */
30309
30310 #ifdef __STDC__
30311 # include <limits.h>
30312 #else
30313 # include <assert.h>
30314 #endif
30315
30316 #undef remove
30317
30318 /* Override any GCC internal prototype to avoid an error.
30319    Use char because int might match the return type of a GCC
30320    builtin and then its argument prototype would still apply.  */
30321 #ifdef __cplusplus
30322 extern "C"
30323 #endif
30324 char remove ();
30325 /* The GNU C library defines this for functions which it implements
30326     to always fail with ENOSYS.  Some functions are actually named
30327     something starting with __ and the normal name is an alias.  */
30328 #if defined __stub_remove || defined __stub___remove
30329 choke me
30330 #endif
30331
30332 int
30333 main ()
30334 {
30335 return remove ();
30336   ;
30337   return 0;
30338 }
30339 _ACEOF
30340 rm -f conftest.$ac_objext conftest$ac_exeext
30341 if { (ac_try="$ac_link"
30342 case "(($ac_try" in
30343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30344   *) ac_try_echo=$ac_try;;
30345 esac
30346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30347   (eval "$ac_link") 2>conftest.er1
30348   ac_status=$?
30349   grep -v '^ *+' conftest.er1 >conftest.err
30350   rm -f conftest.er1
30351   cat conftest.err >&5
30352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353   (exit $ac_status); } && {
30354          test -z "$ac_c_werror_flag" ||
30355          test ! -s conftest.err
30356        } && test -s conftest$ac_exeext &&
30357        $as_test_x conftest$ac_exeext; then
30358   ac_cv_func_remove=yes
30359 else
30360   echo "$as_me: failed program was:" >&5
30361 sed 's/^/| /' conftest.$ac_ext >&5
30362
30363         ac_cv_func_remove=no
30364 fi
30365
30366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30367       conftest$ac_exeext conftest.$ac_ext
30368 fi
30369 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30370 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30371
30372     if test $ac_cv_func_remove = no; then
30373       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30374 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30375 if test "${ac_cv_lib_posix_remove+set}" = set; then
30376   echo $ECHO_N "(cached) $ECHO_C" >&6
30377 else
30378   ac_check_lib_save_LIBS=$LIBS
30379 LIBS="-lposix  $LIBS"
30380 cat >conftest.$ac_ext <<_ACEOF
30381 /* confdefs.h.  */
30382 _ACEOF
30383 cat confdefs.h >>conftest.$ac_ext
30384 cat >>conftest.$ac_ext <<_ACEOF
30385 /* end confdefs.h.  */
30386
30387 /* Override any GCC internal prototype to avoid an error.
30388    Use char because int might match the return type of a GCC
30389    builtin and then its argument prototype would still apply.  */
30390 #ifdef __cplusplus
30391 extern "C"
30392 #endif
30393 char remove ();
30394 int
30395 main ()
30396 {
30397 return remove ();
30398   ;
30399   return 0;
30400 }
30401 _ACEOF
30402 rm -f conftest.$ac_objext conftest$ac_exeext
30403 if { (ac_try="$ac_link"
30404 case "(($ac_try" in
30405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30406   *) ac_try_echo=$ac_try;;
30407 esac
30408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30409   (eval "$ac_link") 2>conftest.er1
30410   ac_status=$?
30411   grep -v '^ *+' conftest.er1 >conftest.err
30412   rm -f conftest.er1
30413   cat conftest.err >&5
30414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30415   (exit $ac_status); } && {
30416          test -z "$ac_c_werror_flag" ||
30417          test ! -s conftest.err
30418        } && test -s conftest$ac_exeext &&
30419        $as_test_x conftest$ac_exeext; then
30420   ac_cv_lib_posix_remove=yes
30421 else
30422   echo "$as_me: failed program was:" >&5
30423 sed 's/^/| /' conftest.$ac_ext >&5
30424
30425         ac_cv_lib_posix_remove=no
30426 fi
30427
30428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30429       conftest$ac_exeext conftest.$ac_ext
30430 LIBS=$ac_check_lib_save_LIBS
30431 fi
30432 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30433 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30434 if test $ac_cv_lib_posix_remove = yes; then
30435   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30436 fi
30437
30438     fi
30439
30440     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30441     { echo "$as_me:$LINENO: checking for shmat" >&5
30442 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30443 if test "${ac_cv_func_shmat+set}" = set; then
30444   echo $ECHO_N "(cached) $ECHO_C" >&6
30445 else
30446   cat >conftest.$ac_ext <<_ACEOF
30447 /* confdefs.h.  */
30448 _ACEOF
30449 cat confdefs.h >>conftest.$ac_ext
30450 cat >>conftest.$ac_ext <<_ACEOF
30451 /* end confdefs.h.  */
30452 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30454 #define shmat innocuous_shmat
30455
30456 /* System header to define __stub macros and hopefully few prototypes,
30457     which can conflict with char shmat (); below.
30458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30459     <limits.h> exists even on freestanding compilers.  */
30460
30461 #ifdef __STDC__
30462 # include <limits.h>
30463 #else
30464 # include <assert.h>
30465 #endif
30466
30467 #undef shmat
30468
30469 /* Override any GCC internal prototype to avoid an error.
30470    Use char because int might match the return type of a GCC
30471    builtin and then its argument prototype would still apply.  */
30472 #ifdef __cplusplus
30473 extern "C"
30474 #endif
30475 char shmat ();
30476 /* The GNU C library defines this for functions which it implements
30477     to always fail with ENOSYS.  Some functions are actually named
30478     something starting with __ and the normal name is an alias.  */
30479 #if defined __stub_shmat || defined __stub___shmat
30480 choke me
30481 #endif
30482
30483 int
30484 main ()
30485 {
30486 return shmat ();
30487   ;
30488   return 0;
30489 }
30490 _ACEOF
30491 rm -f conftest.$ac_objext conftest$ac_exeext
30492 if { (ac_try="$ac_link"
30493 case "(($ac_try" in
30494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30495   *) ac_try_echo=$ac_try;;
30496 esac
30497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30498   (eval "$ac_link") 2>conftest.er1
30499   ac_status=$?
30500   grep -v '^ *+' conftest.er1 >conftest.err
30501   rm -f conftest.er1
30502   cat conftest.err >&5
30503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504   (exit $ac_status); } && {
30505          test -z "$ac_c_werror_flag" ||
30506          test ! -s conftest.err
30507        } && test -s conftest$ac_exeext &&
30508        $as_test_x conftest$ac_exeext; then
30509   ac_cv_func_shmat=yes
30510 else
30511   echo "$as_me: failed program was:" >&5
30512 sed 's/^/| /' conftest.$ac_ext >&5
30513
30514         ac_cv_func_shmat=no
30515 fi
30516
30517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30518       conftest$ac_exeext conftest.$ac_ext
30519 fi
30520 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30521 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30522
30523     if test $ac_cv_func_shmat = no; then
30524       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30525 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30526 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30527   echo $ECHO_N "(cached) $ECHO_C" >&6
30528 else
30529   ac_check_lib_save_LIBS=$LIBS
30530 LIBS="-lipc  $LIBS"
30531 cat >conftest.$ac_ext <<_ACEOF
30532 /* confdefs.h.  */
30533 _ACEOF
30534 cat confdefs.h >>conftest.$ac_ext
30535 cat >>conftest.$ac_ext <<_ACEOF
30536 /* end confdefs.h.  */
30537
30538 /* Override any GCC internal prototype to avoid an error.
30539    Use char because int might match the return type of a GCC
30540    builtin and then its argument prototype would still apply.  */
30541 #ifdef __cplusplus
30542 extern "C"
30543 #endif
30544 char shmat ();
30545 int
30546 main ()
30547 {
30548 return shmat ();
30549   ;
30550   return 0;
30551 }
30552 _ACEOF
30553 rm -f conftest.$ac_objext conftest$ac_exeext
30554 if { (ac_try="$ac_link"
30555 case "(($ac_try" in
30556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30557   *) ac_try_echo=$ac_try;;
30558 esac
30559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30560   (eval "$ac_link") 2>conftest.er1
30561   ac_status=$?
30562   grep -v '^ *+' conftest.er1 >conftest.err
30563   rm -f conftest.er1
30564   cat conftest.err >&5
30565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566   (exit $ac_status); } && {
30567          test -z "$ac_c_werror_flag" ||
30568          test ! -s conftest.err
30569        } && test -s conftest$ac_exeext &&
30570        $as_test_x conftest$ac_exeext; then
30571   ac_cv_lib_ipc_shmat=yes
30572 else
30573   echo "$as_me: failed program was:" >&5
30574 sed 's/^/| /' conftest.$ac_ext >&5
30575
30576         ac_cv_lib_ipc_shmat=no
30577 fi
30578
30579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30580       conftest$ac_exeext conftest.$ac_ext
30581 LIBS=$ac_check_lib_save_LIBS
30582 fi
30583 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30584 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30585 if test $ac_cv_lib_ipc_shmat = yes; then
30586   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30587 fi
30588
30589     fi
30590   fi
30591
30592   # Check for libraries that X11R6 Xt/Xaw programs need.
30593   ac_save_LDFLAGS=$LDFLAGS
30594   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30595   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30596   # check for ICE first), but we must link in the order -lSM -lICE or
30597   # we get undefined symbols.  So assume we have SM if we have ICE.
30598   # These have to be linked with before -lX11, unlike the other
30599   # libraries we check for below, so use a different variable.
30600   # John Interrante, Karl Berry
30601   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30602 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30603 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30604   echo $ECHO_N "(cached) $ECHO_C" >&6
30605 else
30606   ac_check_lib_save_LIBS=$LIBS
30607 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30608 cat >conftest.$ac_ext <<_ACEOF
30609 /* confdefs.h.  */
30610 _ACEOF
30611 cat confdefs.h >>conftest.$ac_ext
30612 cat >>conftest.$ac_ext <<_ACEOF
30613 /* end confdefs.h.  */
30614
30615 /* Override any GCC internal prototype to avoid an error.
30616    Use char because int might match the return type of a GCC
30617    builtin and then its argument prototype would still apply.  */
30618 #ifdef __cplusplus
30619 extern "C"
30620 #endif
30621 char IceConnectionNumber ();
30622 int
30623 main ()
30624 {
30625 return IceConnectionNumber ();
30626   ;
30627   return 0;
30628 }
30629 _ACEOF
30630 rm -f conftest.$ac_objext conftest$ac_exeext
30631 if { (ac_try="$ac_link"
30632 case "(($ac_try" in
30633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30634   *) ac_try_echo=$ac_try;;
30635 esac
30636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30637   (eval "$ac_link") 2>conftest.er1
30638   ac_status=$?
30639   grep -v '^ *+' conftest.er1 >conftest.err
30640   rm -f conftest.er1
30641   cat conftest.err >&5
30642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643   (exit $ac_status); } && {
30644          test -z "$ac_c_werror_flag" ||
30645          test ! -s conftest.err
30646        } && test -s conftest$ac_exeext &&
30647        $as_test_x conftest$ac_exeext; then
30648   ac_cv_lib_ICE_IceConnectionNumber=yes
30649 else
30650   echo "$as_me: failed program was:" >&5
30651 sed 's/^/| /' conftest.$ac_ext >&5
30652
30653         ac_cv_lib_ICE_IceConnectionNumber=no
30654 fi
30655
30656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30657       conftest$ac_exeext conftest.$ac_ext
30658 LIBS=$ac_check_lib_save_LIBS
30659 fi
30660 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30661 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30662 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30663   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30664 fi
30665
30666   LDFLAGS=$ac_save_LDFLAGS
30667
30668 fi
30669
30670
30671
30672
30673
30674
30675
30676
30677
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700 for ac_header in \
30701    assert.h \
30702    fcntl.h \
30703    grp.h \
30704    pwd.h \
30705    libc.h \
30706    limits.h \
30707    stdarg.h \
30708    stdlib.h \
30709    stdint.h \
30710    string.h \
30711    strings.h \
30712    termios.h \
30713    termcap.h \
30714    term.h \
30715    unistd.h \
30716    sys/bitypes.h \
30717    sys/byteorder.h \
30718    sys/ioctl.h \
30719    sys/select.h \
30720    sys/socket.h \
30721    sys/sockio.h \
30722    sys/stat.h \
30723    sys/time.h \
30724    sys/types.h \
30725    arpa/nameser.h \
30726    mtio.h \
30727    sys/mtio.h \
30728    sys/tape.h \
30729    regex.h \
30730
30731 do
30732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30734   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30737   echo $ECHO_N "(cached) $ECHO_C" >&6
30738 fi
30739 ac_res=`eval echo '${'$as_ac_Header'}'`
30740                { echo "$as_me:$LINENO: result: $ac_res" >&5
30741 echo "${ECHO_T}$ac_res" >&6; }
30742 else
30743   # Is the header compilable?
30744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
30753 #include <$ac_header>
30754 _ACEOF
30755 rm -f conftest.$ac_objext
30756 if { (ac_try="$ac_compile"
30757 case "(($ac_try" in
30758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30759   *) ac_try_echo=$ac_try;;
30760 esac
30761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30762   (eval "$ac_compile") 2>conftest.er1
30763   ac_status=$?
30764   grep -v '^ *+' conftest.er1 >conftest.err
30765   rm -f conftest.er1
30766   cat conftest.err >&5
30767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768   (exit $ac_status); } && {
30769          test -z "$ac_c_werror_flag" ||
30770          test ! -s conftest.err
30771        } && test -s conftest.$ac_objext; then
30772   ac_header_compiler=yes
30773 else
30774   echo "$as_me: failed program was:" >&5
30775 sed 's/^/| /' conftest.$ac_ext >&5
30776
30777         ac_header_compiler=no
30778 fi
30779
30780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30782 echo "${ECHO_T}$ac_header_compiler" >&6; }
30783
30784 # Is the header present?
30785 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30787 cat >conftest.$ac_ext <<_ACEOF
30788 /* confdefs.h.  */
30789 _ACEOF
30790 cat confdefs.h >>conftest.$ac_ext
30791 cat >>conftest.$ac_ext <<_ACEOF
30792 /* end confdefs.h.  */
30793 #include <$ac_header>
30794 _ACEOF
30795 if { (ac_try="$ac_cpp conftest.$ac_ext"
30796 case "(($ac_try" in
30797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30798   *) ac_try_echo=$ac_try;;
30799 esac
30800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30801   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30802   ac_status=$?
30803   grep -v '^ *+' conftest.er1 >conftest.err
30804   rm -f conftest.er1
30805   cat conftest.err >&5
30806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807   (exit $ac_status); } >/dev/null && {
30808          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30809          test ! -s conftest.err
30810        }; then
30811   ac_header_preproc=yes
30812 else
30813   echo "$as_me: failed program was:" >&5
30814 sed 's/^/| /' conftest.$ac_ext >&5
30815
30816   ac_header_preproc=no
30817 fi
30818
30819 rm -f conftest.err conftest.$ac_ext
30820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30821 echo "${ECHO_T}$ac_header_preproc" >&6; }
30822
30823 # So?  What about this header?
30824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30825   yes:no: )
30826     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30830     ac_header_preproc=yes
30831     ;;
30832   no:yes:* )
30833     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30835     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30836 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30837     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30839     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30840 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30843     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30845
30846     ;;
30847 esac
30848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30851   echo $ECHO_N "(cached) $ECHO_C" >&6
30852 else
30853   eval "$as_ac_Header=\$ac_header_preproc"
30854 fi
30855 ac_res=`eval echo '${'$as_ac_Header'}'`
30856                { echo "$as_me:$LINENO: result: $ac_res" >&5
30857 echo "${ECHO_T}$ac_res" >&6; }
30858
30859 fi
30860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30861   cat >>confdefs.h <<_ACEOF
30862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30863 _ACEOF
30864
30865 fi
30866
30867 done
30868
30869 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30870 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30871 if test "${ac_cv_header_stdc+set}" = set; then
30872   echo $ECHO_N "(cached) $ECHO_C" >&6
30873 else
30874   cat >conftest.$ac_ext <<_ACEOF
30875 /* confdefs.h.  */
30876 _ACEOF
30877 cat confdefs.h >>conftest.$ac_ext
30878 cat >>conftest.$ac_ext <<_ACEOF
30879 /* end confdefs.h.  */
30880 #include <stdlib.h>
30881 #include <stdarg.h>
30882 #include <string.h>
30883 #include <float.h>
30884
30885 int
30886 main ()
30887 {
30888
30889   ;
30890   return 0;
30891 }
30892 _ACEOF
30893 rm -f conftest.$ac_objext
30894 if { (ac_try="$ac_compile"
30895 case "(($ac_try" in
30896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30897   *) ac_try_echo=$ac_try;;
30898 esac
30899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30900   (eval "$ac_compile") 2>conftest.er1
30901   ac_status=$?
30902   grep -v '^ *+' conftest.er1 >conftest.err
30903   rm -f conftest.er1
30904   cat conftest.err >&5
30905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906   (exit $ac_status); } && {
30907          test -z "$ac_c_werror_flag" ||
30908          test ! -s conftest.err
30909        } && test -s conftest.$ac_objext; then
30910   ac_cv_header_stdc=yes
30911 else
30912   echo "$as_me: failed program was:" >&5
30913 sed 's/^/| /' conftest.$ac_ext >&5
30914
30915         ac_cv_header_stdc=no
30916 fi
30917
30918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30919
30920 if test $ac_cv_header_stdc = yes; then
30921   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30922   cat >conftest.$ac_ext <<_ACEOF
30923 /* confdefs.h.  */
30924 _ACEOF
30925 cat confdefs.h >>conftest.$ac_ext
30926 cat >>conftest.$ac_ext <<_ACEOF
30927 /* end confdefs.h.  */
30928 #include <string.h>
30929
30930 _ACEOF
30931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30932   $EGREP "memchr" >/dev/null 2>&1; then
30933   :
30934 else
30935   ac_cv_header_stdc=no
30936 fi
30937 rm -f conftest*
30938
30939 fi
30940
30941 if test $ac_cv_header_stdc = yes; then
30942   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30943   cat >conftest.$ac_ext <<_ACEOF
30944 /* confdefs.h.  */
30945 _ACEOF
30946 cat confdefs.h >>conftest.$ac_ext
30947 cat >>conftest.$ac_ext <<_ACEOF
30948 /* end confdefs.h.  */
30949 #include <stdlib.h>
30950
30951 _ACEOF
30952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30953   $EGREP "free" >/dev/null 2>&1; then
30954   :
30955 else
30956   ac_cv_header_stdc=no
30957 fi
30958 rm -f conftest*
30959
30960 fi
30961
30962 if test $ac_cv_header_stdc = yes; then
30963   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30964   if test "$cross_compiling" = yes; then
30965   :
30966 else
30967   cat >conftest.$ac_ext <<_ACEOF
30968 /* confdefs.h.  */
30969 _ACEOF
30970 cat confdefs.h >>conftest.$ac_ext
30971 cat >>conftest.$ac_ext <<_ACEOF
30972 /* end confdefs.h.  */
30973 #include <ctype.h>
30974 #include <stdlib.h>
30975 #if ((' ' & 0x0FF) == 0x020)
30976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30978 #else
30979 # define ISLOWER(c) \
30980                    (('a' <= (c) && (c) <= 'i') \
30981                      || ('j' <= (c) && (c) <= 'r') \
30982                      || ('s' <= (c) && (c) <= 'z'))
30983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30984 #endif
30985
30986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30987 int
30988 main ()
30989 {
30990   int i;
30991   for (i = 0; i < 256; i++)
30992     if (XOR (islower (i), ISLOWER (i))
30993         || toupper (i) != TOUPPER (i))
30994       return 2;
30995   return 0;
30996 }
30997 _ACEOF
30998 rm -f conftest$ac_exeext
30999 if { (ac_try="$ac_link"
31000 case "(($ac_try" in
31001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31002   *) ac_try_echo=$ac_try;;
31003 esac
31004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31005   (eval "$ac_link") 2>&5
31006   ac_status=$?
31007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31009   { (case "(($ac_try" in
31010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31011   *) ac_try_echo=$ac_try;;
31012 esac
31013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31014   (eval "$ac_try") 2>&5
31015   ac_status=$?
31016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017   (exit $ac_status); }; }; then
31018   :
31019 else
31020   echo "$as_me: program exited with status $ac_status" >&5
31021 echo "$as_me: failed program was:" >&5
31022 sed 's/^/| /' conftest.$ac_ext >&5
31023
31024 ( exit $ac_status )
31025 ac_cv_header_stdc=no
31026 fi
31027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31028 fi
31029
31030
31031 fi
31032 fi
31033 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31034 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31035 if test $ac_cv_header_stdc = yes; then
31036
31037 cat >>confdefs.h <<\_ACEOF
31038 #define STDC_HEADERS 1
31039 _ACEOF
31040
31041 fi
31042
31043 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31044 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31045 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31046   echo $ECHO_N "(cached) $ECHO_C" >&6
31047 else
31048   cat >conftest.$ac_ext <<_ACEOF
31049 /* confdefs.h.  */
31050 _ACEOF
31051 cat confdefs.h >>conftest.$ac_ext
31052 cat >>conftest.$ac_ext <<_ACEOF
31053 /* end confdefs.h.  */
31054 #include <sys/types.h>
31055 int
31056 main ()
31057 {
31058 return makedev(0, 0);
31059   ;
31060   return 0;
31061 }
31062 _ACEOF
31063 rm -f conftest.$ac_objext conftest$ac_exeext
31064 if { (ac_try="$ac_link"
31065 case "(($ac_try" in
31066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31067   *) ac_try_echo=$ac_try;;
31068 esac
31069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31070   (eval "$ac_link") 2>conftest.er1
31071   ac_status=$?
31072   grep -v '^ *+' conftest.er1 >conftest.err
31073   rm -f conftest.er1
31074   cat conftest.err >&5
31075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076   (exit $ac_status); } && {
31077          test -z "$ac_c_werror_flag" ||
31078          test ! -s conftest.err
31079        } && test -s conftest$ac_exeext &&
31080        $as_test_x conftest$ac_exeext; then
31081   ac_cv_header_sys_types_h_makedev=yes
31082 else
31083   echo "$as_me: failed program was:" >&5
31084 sed 's/^/| /' conftest.$ac_ext >&5
31085
31086         ac_cv_header_sys_types_h_makedev=no
31087 fi
31088
31089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31090       conftest$ac_exeext conftest.$ac_ext
31091
31092 fi
31093 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31094 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31095
31096 if test $ac_cv_header_sys_types_h_makedev = no; then
31097 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31098   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31099 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31100 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31101   echo $ECHO_N "(cached) $ECHO_C" >&6
31102 fi
31103 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31104 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31105 else
31106   # Is the header compilable?
31107 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31108 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31109 cat >conftest.$ac_ext <<_ACEOF
31110 /* confdefs.h.  */
31111 _ACEOF
31112 cat confdefs.h >>conftest.$ac_ext
31113 cat >>conftest.$ac_ext <<_ACEOF
31114 /* end confdefs.h.  */
31115 $ac_includes_default
31116 #include <sys/mkdev.h>
31117 _ACEOF
31118 rm -f conftest.$ac_objext
31119 if { (ac_try="$ac_compile"
31120 case "(($ac_try" in
31121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31122   *) ac_try_echo=$ac_try;;
31123 esac
31124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31125   (eval "$ac_compile") 2>conftest.er1
31126   ac_status=$?
31127   grep -v '^ *+' conftest.er1 >conftest.err
31128   rm -f conftest.er1
31129   cat conftest.err >&5
31130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131   (exit $ac_status); } && {
31132          test -z "$ac_c_werror_flag" ||
31133          test ! -s conftest.err
31134        } && test -s conftest.$ac_objext; then
31135   ac_header_compiler=yes
31136 else
31137   echo "$as_me: failed program was:" >&5
31138 sed 's/^/| /' conftest.$ac_ext >&5
31139
31140         ac_header_compiler=no
31141 fi
31142
31143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31145 echo "${ECHO_T}$ac_header_compiler" >&6; }
31146
31147 # Is the header present?
31148 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31149 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31150 cat >conftest.$ac_ext <<_ACEOF
31151 /* confdefs.h.  */
31152 _ACEOF
31153 cat confdefs.h >>conftest.$ac_ext
31154 cat >>conftest.$ac_ext <<_ACEOF
31155 /* end confdefs.h.  */
31156 #include <sys/mkdev.h>
31157 _ACEOF
31158 if { (ac_try="$ac_cpp conftest.$ac_ext"
31159 case "(($ac_try" in
31160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31161   *) ac_try_echo=$ac_try;;
31162 esac
31163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31164   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31165   ac_status=$?
31166   grep -v '^ *+' conftest.er1 >conftest.err
31167   rm -f conftest.er1
31168   cat conftest.err >&5
31169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170   (exit $ac_status); } >/dev/null && {
31171          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31172          test ! -s conftest.err
31173        }; then
31174   ac_header_preproc=yes
31175 else
31176   echo "$as_me: failed program was:" >&5
31177 sed 's/^/| /' conftest.$ac_ext >&5
31178
31179   ac_header_preproc=no
31180 fi
31181
31182 rm -f conftest.err conftest.$ac_ext
31183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31184 echo "${ECHO_T}$ac_header_preproc" >&6; }
31185
31186 # So?  What about this header?
31187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31188   yes:no: )
31189     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31190 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31191     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31192 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31193     ac_header_preproc=yes
31194     ;;
31195   no:yes:* )
31196     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31197 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31198     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31199 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31200     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31201 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31202     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31203 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31204     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31205 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31206     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31207 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31208
31209     ;;
31210 esac
31211 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31212 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31213 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31214   echo $ECHO_N "(cached) $ECHO_C" >&6
31215 else
31216   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31217 fi
31218 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31219 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31220
31221 fi
31222 if test $ac_cv_header_sys_mkdev_h = yes; then
31223
31224 cat >>confdefs.h <<\_ACEOF
31225 #define MAJOR_IN_MKDEV 1
31226 _ACEOF
31227
31228 fi
31229
31230
31231
31232   if test $ac_cv_header_sys_mkdev_h = no; then
31233     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31234   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31235 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31236 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31237   echo $ECHO_N "(cached) $ECHO_C" >&6
31238 fi
31239 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31240 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31241 else
31242   # Is the header compilable?
31243 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31244 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31245 cat >conftest.$ac_ext <<_ACEOF
31246 /* confdefs.h.  */
31247 _ACEOF
31248 cat confdefs.h >>conftest.$ac_ext
31249 cat >>conftest.$ac_ext <<_ACEOF
31250 /* end confdefs.h.  */
31251 $ac_includes_default
31252 #include <sys/sysmacros.h>
31253 _ACEOF
31254 rm -f conftest.$ac_objext
31255 if { (ac_try="$ac_compile"
31256 case "(($ac_try" in
31257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31258   *) ac_try_echo=$ac_try;;
31259 esac
31260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31261   (eval "$ac_compile") 2>conftest.er1
31262   ac_status=$?
31263   grep -v '^ *+' conftest.er1 >conftest.err
31264   rm -f conftest.er1
31265   cat conftest.err >&5
31266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267   (exit $ac_status); } && {
31268          test -z "$ac_c_werror_flag" ||
31269          test ! -s conftest.err
31270        } && test -s conftest.$ac_objext; then
31271   ac_header_compiler=yes
31272 else
31273   echo "$as_me: failed program was:" >&5
31274 sed 's/^/| /' conftest.$ac_ext >&5
31275
31276         ac_header_compiler=no
31277 fi
31278
31279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31281 echo "${ECHO_T}$ac_header_compiler" >&6; }
31282
31283 # Is the header present?
31284 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31285 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31286 cat >conftest.$ac_ext <<_ACEOF
31287 /* confdefs.h.  */
31288 _ACEOF
31289 cat confdefs.h >>conftest.$ac_ext
31290 cat >>conftest.$ac_ext <<_ACEOF
31291 /* end confdefs.h.  */
31292 #include <sys/sysmacros.h>
31293 _ACEOF
31294 if { (ac_try="$ac_cpp conftest.$ac_ext"
31295 case "(($ac_try" in
31296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31297   *) ac_try_echo=$ac_try;;
31298 esac
31299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31300   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31301   ac_status=$?
31302   grep -v '^ *+' conftest.er1 >conftest.err
31303   rm -f conftest.er1
31304   cat conftest.err >&5
31305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306   (exit $ac_status); } >/dev/null && {
31307          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31308          test ! -s conftest.err
31309        }; then
31310   ac_header_preproc=yes
31311 else
31312   echo "$as_me: failed program was:" >&5
31313 sed 's/^/| /' conftest.$ac_ext >&5
31314
31315   ac_header_preproc=no
31316 fi
31317
31318 rm -f conftest.err conftest.$ac_ext
31319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31320 echo "${ECHO_T}$ac_header_preproc" >&6; }
31321
31322 # So?  What about this header?
31323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31324   yes:no: )
31325     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31326 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31327     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31328 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31329     ac_header_preproc=yes
31330     ;;
31331   no:yes:* )
31332     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31333 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31334     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31335 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31336     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31337 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31338     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31339 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31340     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31341 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31342     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31343 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31344
31345     ;;
31346 esac
31347 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31348 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31349 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31350   echo $ECHO_N "(cached) $ECHO_C" >&6
31351 else
31352   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31353 fi
31354 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31355 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31356
31357 fi
31358 if test $ac_cv_header_sys_sysmacros_h = yes; then
31359
31360 cat >>confdefs.h <<\_ACEOF
31361 #define MAJOR_IN_SYSMACROS 1
31362 _ACEOF
31363
31364 fi
31365
31366
31367   fi
31368 fi
31369
31370
31371
31372
31373
31374
31375 ac_header_dirent=no
31376 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31377   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31378 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31379 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31381   echo $ECHO_N "(cached) $ECHO_C" >&6
31382 else
31383   cat >conftest.$ac_ext <<_ACEOF
31384 /* confdefs.h.  */
31385 _ACEOF
31386 cat confdefs.h >>conftest.$ac_ext
31387 cat >>conftest.$ac_ext <<_ACEOF
31388 /* end confdefs.h.  */
31389 #include <sys/types.h>
31390 #include <$ac_hdr>
31391
31392 int
31393 main ()
31394 {
31395 if ((DIR *) 0)
31396 return 0;
31397   ;
31398   return 0;
31399 }
31400 _ACEOF
31401 rm -f conftest.$ac_objext
31402 if { (ac_try="$ac_compile"
31403 case "(($ac_try" in
31404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31405   *) ac_try_echo=$ac_try;;
31406 esac
31407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31408   (eval "$ac_compile") 2>conftest.er1
31409   ac_status=$?
31410   grep -v '^ *+' conftest.er1 >conftest.err
31411   rm -f conftest.er1
31412   cat conftest.err >&5
31413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414   (exit $ac_status); } && {
31415          test -z "$ac_c_werror_flag" ||
31416          test ! -s conftest.err
31417        } && test -s conftest.$ac_objext; then
31418   eval "$as_ac_Header=yes"
31419 else
31420   echo "$as_me: failed program was:" >&5
31421 sed 's/^/| /' conftest.$ac_ext >&5
31422
31423         eval "$as_ac_Header=no"
31424 fi
31425
31426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31427 fi
31428 ac_res=`eval echo '${'$as_ac_Header'}'`
31429                { echo "$as_me:$LINENO: result: $ac_res" >&5
31430 echo "${ECHO_T}$ac_res" >&6; }
31431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31432   cat >>confdefs.h <<_ACEOF
31433 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31434 _ACEOF
31435
31436 ac_header_dirent=$ac_hdr; break
31437 fi
31438
31439 done
31440 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31441 if test $ac_header_dirent = dirent.h; then
31442   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31443 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31444 if test "${ac_cv_search_opendir+set}" = set; then
31445   echo $ECHO_N "(cached) $ECHO_C" >&6
31446 else
31447   ac_func_search_save_LIBS=$LIBS
31448 cat >conftest.$ac_ext <<_ACEOF
31449 /* confdefs.h.  */
31450 _ACEOF
31451 cat confdefs.h >>conftest.$ac_ext
31452 cat >>conftest.$ac_ext <<_ACEOF
31453 /* end confdefs.h.  */
31454
31455 /* Override any GCC internal prototype to avoid an error.
31456    Use char because int might match the return type of a GCC
31457    builtin and then its argument prototype would still apply.  */
31458 #ifdef __cplusplus
31459 extern "C"
31460 #endif
31461 char opendir ();
31462 int
31463 main ()
31464 {
31465 return opendir ();
31466   ;
31467   return 0;
31468 }
31469 _ACEOF
31470 for ac_lib in '' dir; do
31471   if test -z "$ac_lib"; then
31472     ac_res="none required"
31473   else
31474     ac_res=-l$ac_lib
31475     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31476   fi
31477   rm -f conftest.$ac_objext conftest$ac_exeext
31478 if { (ac_try="$ac_link"
31479 case "(($ac_try" in
31480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31481   *) ac_try_echo=$ac_try;;
31482 esac
31483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31484   (eval "$ac_link") 2>conftest.er1
31485   ac_status=$?
31486   grep -v '^ *+' conftest.er1 >conftest.err
31487   rm -f conftest.er1
31488   cat conftest.err >&5
31489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490   (exit $ac_status); } && {
31491          test -z "$ac_c_werror_flag" ||
31492          test ! -s conftest.err
31493        } && test -s conftest$ac_exeext &&
31494        $as_test_x conftest$ac_exeext; then
31495   ac_cv_search_opendir=$ac_res
31496 else
31497   echo "$as_me: failed program was:" >&5
31498 sed 's/^/| /' conftest.$ac_ext >&5
31499
31500
31501 fi
31502
31503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31504       conftest$ac_exeext
31505   if test "${ac_cv_search_opendir+set}" = set; then
31506   break
31507 fi
31508 done
31509 if test "${ac_cv_search_opendir+set}" = set; then
31510   :
31511 else
31512   ac_cv_search_opendir=no
31513 fi
31514 rm conftest.$ac_ext
31515 LIBS=$ac_func_search_save_LIBS
31516 fi
31517 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31518 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31519 ac_res=$ac_cv_search_opendir
31520 if test "$ac_res" != no; then
31521   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31522
31523 fi
31524
31525 else
31526   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31527 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31528 if test "${ac_cv_search_opendir+set}" = set; then
31529   echo $ECHO_N "(cached) $ECHO_C" >&6
31530 else
31531   ac_func_search_save_LIBS=$LIBS
31532 cat >conftest.$ac_ext <<_ACEOF
31533 /* confdefs.h.  */
31534 _ACEOF
31535 cat confdefs.h >>conftest.$ac_ext
31536 cat >>conftest.$ac_ext <<_ACEOF
31537 /* end confdefs.h.  */
31538
31539 /* Override any GCC internal prototype to avoid an error.
31540    Use char because int might match the return type of a GCC
31541    builtin and then its argument prototype would still apply.  */
31542 #ifdef __cplusplus
31543 extern "C"
31544 #endif
31545 char opendir ();
31546 int
31547 main ()
31548 {
31549 return opendir ();
31550   ;
31551   return 0;
31552 }
31553 _ACEOF
31554 for ac_lib in '' x; do
31555   if test -z "$ac_lib"; then
31556     ac_res="none required"
31557   else
31558     ac_res=-l$ac_lib
31559     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31560   fi
31561   rm -f conftest.$ac_objext conftest$ac_exeext
31562 if { (ac_try="$ac_link"
31563 case "(($ac_try" in
31564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31565   *) ac_try_echo=$ac_try;;
31566 esac
31567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31568   (eval "$ac_link") 2>conftest.er1
31569   ac_status=$?
31570   grep -v '^ *+' conftest.er1 >conftest.err
31571   rm -f conftest.er1
31572   cat conftest.err >&5
31573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31574   (exit $ac_status); } && {
31575          test -z "$ac_c_werror_flag" ||
31576          test ! -s conftest.err
31577        } && test -s conftest$ac_exeext &&
31578        $as_test_x conftest$ac_exeext; then
31579   ac_cv_search_opendir=$ac_res
31580 else
31581   echo "$as_me: failed program was:" >&5
31582 sed 's/^/| /' conftest.$ac_ext >&5
31583
31584
31585 fi
31586
31587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31588       conftest$ac_exeext
31589   if test "${ac_cv_search_opendir+set}" = set; then
31590   break
31591 fi
31592 done
31593 if test "${ac_cv_search_opendir+set}" = set; then
31594   :
31595 else
31596   ac_cv_search_opendir=no
31597 fi
31598 rm conftest.$ac_ext
31599 LIBS=$ac_func_search_save_LIBS
31600 fi
31601 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31602 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31603 ac_res=$ac_cv_search_opendir
31604 if test "$ac_res" != no; then
31605   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31606
31607 fi
31608
31609 fi
31610
31611 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31612 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31613 if test "${ac_cv_header_stat_broken+set}" = set; then
31614   echo $ECHO_N "(cached) $ECHO_C" >&6
31615 else
31616   cat >conftest.$ac_ext <<_ACEOF
31617 /* confdefs.h.  */
31618 _ACEOF
31619 cat confdefs.h >>conftest.$ac_ext
31620 cat >>conftest.$ac_ext <<_ACEOF
31621 /* end confdefs.h.  */
31622 #include <sys/types.h>
31623 #include <sys/stat.h>
31624
31625 #if defined S_ISBLK && defined S_IFDIR
31626 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31627 #endif
31628
31629 #if defined S_ISBLK && defined S_IFCHR
31630 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31631 #endif
31632
31633 #if defined S_ISLNK && defined S_IFREG
31634 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31635 #endif
31636
31637 #if defined S_ISSOCK && defined S_IFREG
31638 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31639 #endif
31640
31641 _ACEOF
31642 rm -f conftest.$ac_objext
31643 if { (ac_try="$ac_compile"
31644 case "(($ac_try" in
31645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31646   *) ac_try_echo=$ac_try;;
31647 esac
31648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31649   (eval "$ac_compile") 2>conftest.er1
31650   ac_status=$?
31651   grep -v '^ *+' conftest.er1 >conftest.err
31652   rm -f conftest.er1
31653   cat conftest.err >&5
31654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655   (exit $ac_status); } && {
31656          test -z "$ac_c_werror_flag" ||
31657          test ! -s conftest.err
31658        } && test -s conftest.$ac_objext; then
31659   ac_cv_header_stat_broken=no
31660 else
31661   echo "$as_me: failed program was:" >&5
31662 sed 's/^/| /' conftest.$ac_ext >&5
31663
31664         ac_cv_header_stat_broken=yes
31665 fi
31666
31667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31668 fi
31669 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31670 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31671 if test $ac_cv_header_stat_broken = yes; then
31672
31673 cat >>confdefs.h <<\_ACEOF
31674 #define STAT_MACROS_BROKEN 1
31675 _ACEOF
31676
31677 fi
31678
31679 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31680 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31681 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31682   echo $ECHO_N "(cached) $ECHO_C" >&6
31683 else
31684   cat >conftest.$ac_ext <<_ACEOF
31685 /* confdefs.h.  */
31686 _ACEOF
31687 cat confdefs.h >>conftest.$ac_ext
31688 cat >>conftest.$ac_ext <<_ACEOF
31689 /* end confdefs.h.  */
31690 #include <sys/types.h>
31691 #include <sys/wait.h>
31692 #ifndef WEXITSTATUS
31693 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31694 #endif
31695 #ifndef WIFEXITED
31696 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31697 #endif
31698
31699 int
31700 main ()
31701 {
31702   int s;
31703   wait (&s);
31704   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31705   ;
31706   return 0;
31707 }
31708 _ACEOF
31709 rm -f conftest.$ac_objext
31710 if { (ac_try="$ac_compile"
31711 case "(($ac_try" in
31712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31713   *) ac_try_echo=$ac_try;;
31714 esac
31715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31716   (eval "$ac_compile") 2>conftest.er1
31717   ac_status=$?
31718   grep -v '^ *+' conftest.er1 >conftest.err
31719   rm -f conftest.er1
31720   cat conftest.err >&5
31721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722   (exit $ac_status); } && {
31723          test -z "$ac_c_werror_flag" ||
31724          test ! -s conftest.err
31725        } && test -s conftest.$ac_objext; then
31726   ac_cv_header_sys_wait_h=yes
31727 else
31728   echo "$as_me: failed program was:" >&5
31729 sed 's/^/| /' conftest.$ac_ext >&5
31730
31731         ac_cv_header_sys_wait_h=no
31732 fi
31733
31734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31735 fi
31736 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31737 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31738 if test $ac_cv_header_sys_wait_h = yes; then
31739
31740 cat >>confdefs.h <<\_ACEOF
31741 #define HAVE_SYS_WAIT_H 1
31742 _ACEOF
31743
31744 fi
31745
31746 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31747 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31748 if test "${ac_cv_header_time+set}" = set; then
31749   echo $ECHO_N "(cached) $ECHO_C" >&6
31750 else
31751   cat >conftest.$ac_ext <<_ACEOF
31752 /* confdefs.h.  */
31753 _ACEOF
31754 cat confdefs.h >>conftest.$ac_ext
31755 cat >>conftest.$ac_ext <<_ACEOF
31756 /* end confdefs.h.  */
31757 #include <sys/types.h>
31758 #include <sys/time.h>
31759 #include <time.h>
31760
31761 int
31762 main ()
31763 {
31764 if ((struct tm *) 0)
31765 return 0;
31766   ;
31767   return 0;
31768 }
31769 _ACEOF
31770 rm -f conftest.$ac_objext
31771 if { (ac_try="$ac_compile"
31772 case "(($ac_try" in
31773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31774   *) ac_try_echo=$ac_try;;
31775 esac
31776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31777   (eval "$ac_compile") 2>conftest.er1
31778   ac_status=$?
31779   grep -v '^ *+' conftest.er1 >conftest.err
31780   rm -f conftest.er1
31781   cat conftest.err >&5
31782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783   (exit $ac_status); } && {
31784          test -z "$ac_c_werror_flag" ||
31785          test ! -s conftest.err
31786        } && test -s conftest.$ac_objext; then
31787   ac_cv_header_time=yes
31788 else
31789   echo "$as_me: failed program was:" >&5
31790 sed 's/^/| /' conftest.$ac_ext >&5
31791
31792         ac_cv_header_time=no
31793 fi
31794
31795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31796 fi
31797 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31798 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31799 if test $ac_cv_header_time = yes; then
31800
31801 cat >>confdefs.h <<\_ACEOF
31802 #define TIME_WITH_SYS_TIME 1
31803 _ACEOF
31804
31805 fi
31806
31807 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31808 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31809 if test "${ac_cv_member_struct_stat_st_blksize+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 $ac_includes_default
31819 int
31820 main ()
31821 {
31822 static struct stat ac_aggr;
31823 if (ac_aggr.st_blksize)
31824 return 0;
31825   ;
31826   return 0;
31827 }
31828 _ACEOF
31829 rm -f conftest.$ac_objext
31830 if { (ac_try="$ac_compile"
31831 case "(($ac_try" in
31832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31833   *) ac_try_echo=$ac_try;;
31834 esac
31835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31836   (eval "$ac_compile") 2>conftest.er1
31837   ac_status=$?
31838   grep -v '^ *+' conftest.er1 >conftest.err
31839   rm -f conftest.er1
31840   cat conftest.err >&5
31841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842   (exit $ac_status); } && {
31843          test -z "$ac_c_werror_flag" ||
31844          test ! -s conftest.err
31845        } && test -s conftest.$ac_objext; then
31846   ac_cv_member_struct_stat_st_blksize=yes
31847 else
31848   echo "$as_me: failed program was:" >&5
31849 sed 's/^/| /' conftest.$ac_ext >&5
31850
31851         cat >conftest.$ac_ext <<_ACEOF
31852 /* confdefs.h.  */
31853 _ACEOF
31854 cat confdefs.h >>conftest.$ac_ext
31855 cat >>conftest.$ac_ext <<_ACEOF
31856 /* end confdefs.h.  */
31857 $ac_includes_default
31858 int
31859 main ()
31860 {
31861 static struct stat ac_aggr;
31862 if (sizeof ac_aggr.st_blksize)
31863 return 0;
31864   ;
31865   return 0;
31866 }
31867 _ACEOF
31868 rm -f conftest.$ac_objext
31869 if { (ac_try="$ac_compile"
31870 case "(($ac_try" in
31871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31872   *) ac_try_echo=$ac_try;;
31873 esac
31874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31875   (eval "$ac_compile") 2>conftest.er1
31876   ac_status=$?
31877   grep -v '^ *+' conftest.er1 >conftest.err
31878   rm -f conftest.er1
31879   cat conftest.err >&5
31880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881   (exit $ac_status); } && {
31882          test -z "$ac_c_werror_flag" ||
31883          test ! -s conftest.err
31884        } && test -s conftest.$ac_objext; then
31885   ac_cv_member_struct_stat_st_blksize=yes
31886 else
31887   echo "$as_me: failed program was:" >&5
31888 sed 's/^/| /' conftest.$ac_ext >&5
31889
31890         ac_cv_member_struct_stat_st_blksize=no
31891 fi
31892
31893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31894 fi
31895
31896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31897 fi
31898 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31899 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31900 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31901
31902 cat >>confdefs.h <<_ACEOF
31903 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31904 _ACEOF
31905
31906
31907 cat >>confdefs.h <<\_ACEOF
31908 #define HAVE_ST_BLKSIZE 1
31909 _ACEOF
31910
31911 fi
31912
31913
31914 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31915 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31916 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31917   echo $ECHO_N "(cached) $ECHO_C" >&6
31918 else
31919   cat >conftest.$ac_ext <<_ACEOF
31920 /* confdefs.h.  */
31921 _ACEOF
31922 cat confdefs.h >>conftest.$ac_ext
31923 cat >>conftest.$ac_ext <<_ACEOF
31924 /* end confdefs.h.  */
31925 $ac_includes_default
31926 int
31927 main ()
31928 {
31929 static struct stat ac_aggr;
31930 if (ac_aggr.st_blocks)
31931 return 0;
31932   ;
31933   return 0;
31934 }
31935 _ACEOF
31936 rm -f conftest.$ac_objext
31937 if { (ac_try="$ac_compile"
31938 case "(($ac_try" in
31939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940   *) ac_try_echo=$ac_try;;
31941 esac
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943   (eval "$ac_compile") 2>conftest.er1
31944   ac_status=$?
31945   grep -v '^ *+' conftest.er1 >conftest.err
31946   rm -f conftest.er1
31947   cat conftest.err >&5
31948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949   (exit $ac_status); } && {
31950          test -z "$ac_c_werror_flag" ||
31951          test ! -s conftest.err
31952        } && test -s conftest.$ac_objext; then
31953   ac_cv_member_struct_stat_st_blocks=yes
31954 else
31955   echo "$as_me: failed program was:" >&5
31956 sed 's/^/| /' conftest.$ac_ext >&5
31957
31958         cat >conftest.$ac_ext <<_ACEOF
31959 /* confdefs.h.  */
31960 _ACEOF
31961 cat confdefs.h >>conftest.$ac_ext
31962 cat >>conftest.$ac_ext <<_ACEOF
31963 /* end confdefs.h.  */
31964 $ac_includes_default
31965 int
31966 main ()
31967 {
31968 static struct stat ac_aggr;
31969 if (sizeof ac_aggr.st_blocks)
31970 return 0;
31971   ;
31972   return 0;
31973 }
31974 _ACEOF
31975 rm -f conftest.$ac_objext
31976 if { (ac_try="$ac_compile"
31977 case "(($ac_try" in
31978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31979   *) ac_try_echo=$ac_try;;
31980 esac
31981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31982   (eval "$ac_compile") 2>conftest.er1
31983   ac_status=$?
31984   grep -v '^ *+' conftest.er1 >conftest.err
31985   rm -f conftest.er1
31986   cat conftest.err >&5
31987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988   (exit $ac_status); } && {
31989          test -z "$ac_c_werror_flag" ||
31990          test ! -s conftest.err
31991        } && test -s conftest.$ac_objext; then
31992   ac_cv_member_struct_stat_st_blocks=yes
31993 else
31994   echo "$as_me: failed program was:" >&5
31995 sed 's/^/| /' conftest.$ac_ext >&5
31996
31997         ac_cv_member_struct_stat_st_blocks=no
31998 fi
31999
32000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32001 fi
32002
32003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32004 fi
32005 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32006 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32007 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32008
32009 cat >>confdefs.h <<_ACEOF
32010 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32011 _ACEOF
32012
32013
32014 cat >>confdefs.h <<\_ACEOF
32015 #define HAVE_ST_BLOCKS 1
32016 _ACEOF
32017
32018 else
32019   case " $LIBOBJS " in
32020   *" fileblocks.$ac_objext "* ) ;;
32021   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32022  ;;
32023 esac
32024
32025 fi
32026
32027
32028 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32029 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32030 if test "${ac_cv_struct_tm+set}" = set; then
32031   echo $ECHO_N "(cached) $ECHO_C" >&6
32032 else
32033   cat >conftest.$ac_ext <<_ACEOF
32034 /* confdefs.h.  */
32035 _ACEOF
32036 cat confdefs.h >>conftest.$ac_ext
32037 cat >>conftest.$ac_ext <<_ACEOF
32038 /* end confdefs.h.  */
32039 #include <sys/types.h>
32040 #include <time.h>
32041
32042 int
32043 main ()
32044 {
32045 struct tm tm;
32046                                      int *p = &tm.tm_sec;
32047                                      return !p;
32048   ;
32049   return 0;
32050 }
32051 _ACEOF
32052 rm -f conftest.$ac_objext
32053 if { (ac_try="$ac_compile"
32054 case "(($ac_try" in
32055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32056   *) ac_try_echo=$ac_try;;
32057 esac
32058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32059   (eval "$ac_compile") 2>conftest.er1
32060   ac_status=$?
32061   grep -v '^ *+' conftest.er1 >conftest.err
32062   rm -f conftest.er1
32063   cat conftest.err >&5
32064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065   (exit $ac_status); } && {
32066          test -z "$ac_c_werror_flag" ||
32067          test ! -s conftest.err
32068        } && test -s conftest.$ac_objext; then
32069   ac_cv_struct_tm=time.h
32070 else
32071   echo "$as_me: failed program was:" >&5
32072 sed 's/^/| /' conftest.$ac_ext >&5
32073
32074         ac_cv_struct_tm=sys/time.h
32075 fi
32076
32077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32078 fi
32079 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32080 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32081 if test $ac_cv_struct_tm = sys/time.h; then
32082
32083 cat >>confdefs.h <<\_ACEOF
32084 #define TM_IN_SYS_TIME 1
32085 _ACEOF
32086
32087 fi
32088
32089 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32090 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32091 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32092   echo $ECHO_N "(cached) $ECHO_C" >&6
32093 else
32094   cat >conftest.$ac_ext <<_ACEOF
32095 /* confdefs.h.  */
32096 _ACEOF
32097 cat confdefs.h >>conftest.$ac_ext
32098 cat >>conftest.$ac_ext <<_ACEOF
32099 /* end confdefs.h.  */
32100 #include <sys/types.h>
32101 #include <$ac_cv_struct_tm>
32102
32103
32104 int
32105 main ()
32106 {
32107 static struct tm ac_aggr;
32108 if (ac_aggr.tm_zone)
32109 return 0;
32110   ;
32111   return 0;
32112 }
32113 _ACEOF
32114 rm -f conftest.$ac_objext
32115 if { (ac_try="$ac_compile"
32116 case "(($ac_try" in
32117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118   *) ac_try_echo=$ac_try;;
32119 esac
32120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32121   (eval "$ac_compile") 2>conftest.er1
32122   ac_status=$?
32123   grep -v '^ *+' conftest.er1 >conftest.err
32124   rm -f conftest.er1
32125   cat conftest.err >&5
32126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127   (exit $ac_status); } && {
32128          test -z "$ac_c_werror_flag" ||
32129          test ! -s conftest.err
32130        } && test -s conftest.$ac_objext; then
32131   ac_cv_member_struct_tm_tm_zone=yes
32132 else
32133   echo "$as_me: failed program was:" >&5
32134 sed 's/^/| /' conftest.$ac_ext >&5
32135
32136         cat >conftest.$ac_ext <<_ACEOF
32137 /* confdefs.h.  */
32138 _ACEOF
32139 cat confdefs.h >>conftest.$ac_ext
32140 cat >>conftest.$ac_ext <<_ACEOF
32141 /* end confdefs.h.  */
32142 #include <sys/types.h>
32143 #include <$ac_cv_struct_tm>
32144
32145
32146 int
32147 main ()
32148 {
32149 static struct tm ac_aggr;
32150 if (sizeof ac_aggr.tm_zone)
32151 return 0;
32152   ;
32153   return 0;
32154 }
32155 _ACEOF
32156 rm -f conftest.$ac_objext
32157 if { (ac_try="$ac_compile"
32158 case "(($ac_try" in
32159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32160   *) ac_try_echo=$ac_try;;
32161 esac
32162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32163   (eval "$ac_compile") 2>conftest.er1
32164   ac_status=$?
32165   grep -v '^ *+' conftest.er1 >conftest.err
32166   rm -f conftest.er1
32167   cat conftest.err >&5
32168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32169   (exit $ac_status); } && {
32170          test -z "$ac_c_werror_flag" ||
32171          test ! -s conftest.err
32172        } && test -s conftest.$ac_objext; then
32173   ac_cv_member_struct_tm_tm_zone=yes
32174 else
32175   echo "$as_me: failed program was:" >&5
32176 sed 's/^/| /' conftest.$ac_ext >&5
32177
32178         ac_cv_member_struct_tm_tm_zone=no
32179 fi
32180
32181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32182 fi
32183
32184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32185 fi
32186 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32187 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32188 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32189
32190 cat >>confdefs.h <<_ACEOF
32191 #define HAVE_STRUCT_TM_TM_ZONE 1
32192 _ACEOF
32193
32194
32195 fi
32196
32197 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32198
32199 cat >>confdefs.h <<\_ACEOF
32200 #define HAVE_TM_ZONE 1
32201 _ACEOF
32202
32203 else
32204   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32205 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32206 if test "${ac_cv_have_decl_tzname+set}" = set; then
32207   echo $ECHO_N "(cached) $ECHO_C" >&6
32208 else
32209   cat >conftest.$ac_ext <<_ACEOF
32210 /* confdefs.h.  */
32211 _ACEOF
32212 cat confdefs.h >>conftest.$ac_ext
32213 cat >>conftest.$ac_ext <<_ACEOF
32214 /* end confdefs.h.  */
32215 #include <time.h>
32216
32217 int
32218 main ()
32219 {
32220 #ifndef tzname
32221   (void) tzname;
32222 #endif
32223
32224   ;
32225   return 0;
32226 }
32227 _ACEOF
32228 rm -f conftest.$ac_objext
32229 if { (ac_try="$ac_compile"
32230 case "(($ac_try" in
32231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32232   *) ac_try_echo=$ac_try;;
32233 esac
32234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32235   (eval "$ac_compile") 2>conftest.er1
32236   ac_status=$?
32237   grep -v '^ *+' conftest.er1 >conftest.err
32238   rm -f conftest.er1
32239   cat conftest.err >&5
32240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241   (exit $ac_status); } && {
32242          test -z "$ac_c_werror_flag" ||
32243          test ! -s conftest.err
32244        } && test -s conftest.$ac_objext; then
32245   ac_cv_have_decl_tzname=yes
32246 else
32247   echo "$as_me: failed program was:" >&5
32248 sed 's/^/| /' conftest.$ac_ext >&5
32249
32250         ac_cv_have_decl_tzname=no
32251 fi
32252
32253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32254 fi
32255 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32256 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32257 if test $ac_cv_have_decl_tzname = yes; then
32258
32259 cat >>confdefs.h <<_ACEOF
32260 #define HAVE_DECL_TZNAME 1
32261 _ACEOF
32262
32263
32264 else
32265   cat >>confdefs.h <<_ACEOF
32266 #define HAVE_DECL_TZNAME 0
32267 _ACEOF
32268
32269
32270 fi
32271
32272
32273   { echo "$as_me:$LINENO: checking for tzname" >&5
32274 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32275 if test "${ac_cv_var_tzname+set}" = set; then
32276   echo $ECHO_N "(cached) $ECHO_C" >&6
32277 else
32278   cat >conftest.$ac_ext <<_ACEOF
32279 /* confdefs.h.  */
32280 _ACEOF
32281 cat confdefs.h >>conftest.$ac_ext
32282 cat >>conftest.$ac_ext <<_ACEOF
32283 /* end confdefs.h.  */
32284 #include <time.h>
32285 #if !HAVE_DECL_TZNAME
32286 extern char *tzname[];
32287 #endif
32288
32289 int
32290 main ()
32291 {
32292 return tzname[0][0];
32293   ;
32294   return 0;
32295 }
32296 _ACEOF
32297 rm -f conftest.$ac_objext conftest$ac_exeext
32298 if { (ac_try="$ac_link"
32299 case "(($ac_try" in
32300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32301   *) ac_try_echo=$ac_try;;
32302 esac
32303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32304   (eval "$ac_link") 2>conftest.er1
32305   ac_status=$?
32306   grep -v '^ *+' conftest.er1 >conftest.err
32307   rm -f conftest.er1
32308   cat conftest.err >&5
32309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32310   (exit $ac_status); } && {
32311          test -z "$ac_c_werror_flag" ||
32312          test ! -s conftest.err
32313        } && test -s conftest$ac_exeext &&
32314        $as_test_x conftest$ac_exeext; then
32315   ac_cv_var_tzname=yes
32316 else
32317   echo "$as_me: failed program was:" >&5
32318 sed 's/^/| /' conftest.$ac_ext >&5
32319
32320         ac_cv_var_tzname=no
32321 fi
32322
32323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32324       conftest$ac_exeext conftest.$ac_ext
32325 fi
32326 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32327 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32328   if test $ac_cv_var_tzname = yes; then
32329
32330 cat >>confdefs.h <<\_ACEOF
32331 #define HAVE_TZNAME 1
32332 _ACEOF
32333
32334   fi
32335 fi
32336
32337
32338 { echo "$as_me:$LINENO: checking for utime.h" >&5
32339 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32340 if test "${ba_cv_header_utime_h+set}" = set; then
32341   echo $ECHO_N "(cached) $ECHO_C" >&6
32342 else
32343
32344        cat >conftest.$ac_ext <<_ACEOF
32345 /* confdefs.h.  */
32346 _ACEOF
32347 cat confdefs.h >>conftest.$ac_ext
32348 cat >>conftest.$ac_ext <<_ACEOF
32349 /* end confdefs.h.  */
32350
32351               #include <sys/types.h>
32352               #include <utime.h>
32353
32354 int
32355 main ()
32356 {
32357
32358               struct utimbuf foo
32359
32360   ;
32361   return 0;
32362 }
32363 _ACEOF
32364 rm -f conftest.$ac_objext
32365 if { (ac_try="$ac_compile"
32366 case "(($ac_try" in
32367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32368   *) ac_try_echo=$ac_try;;
32369 esac
32370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32371   (eval "$ac_compile") 2>conftest.er1
32372   ac_status=$?
32373   grep -v '^ *+' conftest.er1 >conftest.err
32374   rm -f conftest.er1
32375   cat conftest.err >&5
32376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377   (exit $ac_status); } && {
32378          test -z "$ac_c_werror_flag" ||
32379          test ! -s conftest.err
32380        } && test -s conftest.$ac_objext; then
32381
32382               ba_cv_header_utime_h=yes
32383
32384 else
32385   echo "$as_me: failed program was:" >&5
32386 sed 's/^/| /' conftest.$ac_ext >&5
32387
32388
32389               ba_cv_header_utime_h=no
32390
32391
32392 fi
32393
32394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32395
32396
32397 fi
32398 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32399 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32400 test $ba_cv_header_utime_h = yes &&
32401 cat >>confdefs.h <<\_ACEOF
32402 #define HAVE_UTIME_H 1
32403 _ACEOF
32404
32405
32406 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32407 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32408 if test "${ba_cv_header_socklen_t+set}" = set; then
32409   echo $ECHO_N "(cached) $ECHO_C" >&6
32410 else
32411
32412        cat >conftest.$ac_ext <<_ACEOF
32413 /* confdefs.h.  */
32414 _ACEOF
32415 cat confdefs.h >>conftest.$ac_ext
32416 cat >>conftest.$ac_ext <<_ACEOF
32417 /* end confdefs.h.  */
32418
32419               #include <sys/types.h>
32420               #include <sys/socket.h>
32421
32422 int
32423 main ()
32424 {
32425
32426               socklen_t x
32427
32428   ;
32429   return 0;
32430 }
32431 _ACEOF
32432 rm -f conftest.$ac_objext
32433 if { (ac_try="$ac_compile"
32434 case "(($ac_try" in
32435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32436   *) ac_try_echo=$ac_try;;
32437 esac
32438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32439   (eval "$ac_compile") 2>conftest.er1
32440   ac_status=$?
32441   grep -v '^ *+' conftest.er1 >conftest.err
32442   rm -f conftest.er1
32443   cat conftest.err >&5
32444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445   (exit $ac_status); } && {
32446          test -z "$ac_c_werror_flag" ||
32447          test ! -s conftest.err
32448        } && test -s conftest.$ac_objext; then
32449
32450              ba_cv_header_socklen_t=yes
32451
32452 else
32453   echo "$as_me: failed program was:" >&5
32454 sed 's/^/| /' conftest.$ac_ext >&5
32455
32456
32457              ba_cv_header_socklen_t=no
32458
32459
32460 fi
32461
32462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32463
32464
32465 fi
32466 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32467 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32468 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32469 #define HAVE_SOCKLEN_T 1
32470 _ACEOF
32471
32472
32473 { echo "$as_me:$LINENO: checking for bigendian" >&5
32474 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32475 if test "${ba_cv_bigendian+set}" = set; then
32476   echo $ECHO_N "(cached) $ECHO_C" >&6
32477 else
32478
32479        if test "$cross_compiling" = yes; then
32480
32481              ba_cv_bigendian=no
32482
32483
32484 else
32485   cat >conftest.$ac_ext <<_ACEOF
32486 /* confdefs.h.  */
32487 _ACEOF
32488 cat confdefs.h >>conftest.$ac_ext
32489 cat >>conftest.$ac_ext <<_ACEOF
32490 /* end confdefs.h.  */
32491
32492               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32493
32494 _ACEOF
32495 rm -f conftest$ac_exeext
32496 if { (ac_try="$ac_link"
32497 case "(($ac_try" in
32498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32499   *) ac_try_echo=$ac_try;;
32500 esac
32501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32502   (eval "$ac_link") 2>&5
32503   ac_status=$?
32504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32506   { (case "(($ac_try" in
32507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32508   *) ac_try_echo=$ac_try;;
32509 esac
32510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32511   (eval "$ac_try") 2>&5
32512   ac_status=$?
32513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514   (exit $ac_status); }; }; then
32515
32516              ba_cv_bigendian=yes
32517
32518 else
32519   echo "$as_me: program exited with status $ac_status" >&5
32520 echo "$as_me: failed program was:" >&5
32521 sed 's/^/| /' conftest.$ac_ext >&5
32522
32523 ( exit $ac_status )
32524
32525              ba_cv_bigendian=no
32526
32527 fi
32528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32529 fi
32530
32531
32532
32533
32534 fi
32535 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32536 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32537 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32538 #define HAVE_BIGENDIAN 1
32539 _ACEOF
32540
32541
32542 ac_ext=cpp
32543 ac_cpp='$CXXCPP $CPPFLAGS'
32544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32547
32548 { echo "$as_me:$LINENO: checking for typeof" >&5
32549 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32550 if test "${ba_cv_have_typeof+set}" = set; then
32551   echo $ECHO_N "(cached) $ECHO_C" >&6
32552 else
32553
32554        if test "$cross_compiling" = yes; then
32555
32556               ba_cv_have_typeof=no
32557
32558
32559 else
32560   cat >conftest.$ac_ext <<_ACEOF
32561 /* confdefs.h.  */
32562 _ACEOF
32563 cat confdefs.h >>conftest.$ac_ext
32564 cat >>conftest.$ac_ext <<_ACEOF
32565 /* end confdefs.h.  */
32566
32567               main(){char *a = 0; a = (typeof a)a;}
32568
32569 _ACEOF
32570 rm -f conftest$ac_exeext
32571 if { (ac_try="$ac_link"
32572 case "(($ac_try" in
32573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32574   *) ac_try_echo=$ac_try;;
32575 esac
32576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32577   (eval "$ac_link") 2>&5
32578   ac_status=$?
32579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32581   { (case "(($ac_try" in
32582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583   *) ac_try_echo=$ac_try;;
32584 esac
32585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586   (eval "$ac_try") 2>&5
32587   ac_status=$?
32588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589   (exit $ac_status); }; }; then
32590
32591               ba_cv_have_typeof=yes
32592
32593 else
32594   echo "$as_me: program exited with status $ac_status" >&5
32595 echo "$as_me: failed program was:" >&5
32596 sed 's/^/| /' conftest.$ac_ext >&5
32597
32598 ( exit $ac_status )
32599
32600               ba_cv_have_typeof=no
32601
32602 fi
32603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32604 fi
32605
32606
32607
32608
32609 fi
32610 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32611 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32612 test $ba_cv_have_typeof = yes &&
32613 cat >>confdefs.h <<\_ACEOF
32614 #define HAVE_TYPEOF 1
32615 _ACEOF
32616
32617 ac_ext=c
32618 ac_cpp='$CPP $CPPFLAGS'
32619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32622
32623
32624 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32625 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32626 if test "${ac_cv_c_const+set}" = set; then
32627   echo $ECHO_N "(cached) $ECHO_C" >&6
32628 else
32629   cat >conftest.$ac_ext <<_ACEOF
32630 /* confdefs.h.  */
32631 _ACEOF
32632 cat confdefs.h >>conftest.$ac_ext
32633 cat >>conftest.$ac_ext <<_ACEOF
32634 /* end confdefs.h.  */
32635
32636 int
32637 main ()
32638 {
32639 /* FIXME: Include the comments suggested by Paul. */
32640 #ifndef __cplusplus
32641   /* Ultrix mips cc rejects this.  */
32642   typedef int charset[2];
32643   const charset cs;
32644   /* SunOS 4.1.1 cc rejects this.  */
32645   char const *const *pcpcc;
32646   char **ppc;
32647   /* NEC SVR4.0.2 mips cc rejects this.  */
32648   struct point {int x, y;};
32649   static struct point const zero = {0,0};
32650   /* AIX XL C 1.02.0.0 rejects this.
32651      It does not let you subtract one const X* pointer from another in
32652      an arm of an if-expression whose if-part is not a constant
32653      expression */
32654   const char *g = "string";
32655   pcpcc = &g + (g ? g-g : 0);
32656   /* HPUX 7.0 cc rejects these. */
32657   ++pcpcc;
32658   ppc = (char**) pcpcc;
32659   pcpcc = (char const *const *) ppc;
32660   { /* SCO 3.2v4 cc rejects this.  */
32661     char *t;
32662     char const *s = 0 ? (char *) 0 : (char const *) 0;
32663
32664     *t++ = 0;
32665     if (s) return 0;
32666   }
32667   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32668     int x[] = {25, 17};
32669     const int *foo = &x[0];
32670     ++foo;
32671   }
32672   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32673     typedef const int *iptr;
32674     iptr p = 0;
32675     ++p;
32676   }
32677   { /* AIX XL C 1.02.0.0 rejects this saying
32678        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32679     struct s { int j; const int *ap[3]; };
32680     struct s *b; b->j = 5;
32681   }
32682   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32683     const int foo = 10;
32684     if (!foo) return 0;
32685   }
32686   return !cs[0] && !zero.x;
32687 #endif
32688
32689   ;
32690   return 0;
32691 }
32692 _ACEOF
32693 rm -f conftest.$ac_objext
32694 if { (ac_try="$ac_compile"
32695 case "(($ac_try" in
32696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32697   *) ac_try_echo=$ac_try;;
32698 esac
32699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32700   (eval "$ac_compile") 2>conftest.er1
32701   ac_status=$?
32702   grep -v '^ *+' conftest.er1 >conftest.err
32703   rm -f conftest.er1
32704   cat conftest.err >&5
32705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706   (exit $ac_status); } && {
32707          test -z "$ac_c_werror_flag" ||
32708          test ! -s conftest.err
32709        } && test -s conftest.$ac_objext; then
32710   ac_cv_c_const=yes
32711 else
32712   echo "$as_me: failed program was:" >&5
32713 sed 's/^/| /' conftest.$ac_ext >&5
32714
32715         ac_cv_c_const=no
32716 fi
32717
32718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32719 fi
32720 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32721 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32722 if test $ac_cv_c_const = no; then
32723
32724 cat >>confdefs.h <<\_ACEOF
32725 #define const
32726 _ACEOF
32727
32728 fi
32729
32730
32731 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32732 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32733 fstype=no
32734 # The order of these tests is important.
32735 cat >conftest.$ac_ext <<_ACEOF
32736 /* confdefs.h.  */
32737 _ACEOF
32738 cat confdefs.h >>conftest.$ac_ext
32739 cat >>conftest.$ac_ext <<_ACEOF
32740 /* end confdefs.h.  */
32741
32742        #include <sys/statvfs.h>
32743        #include <sys/fstyp.h>
32744
32745 _ACEOF
32746 if { (ac_try="$ac_cpp conftest.$ac_ext"
32747 case "(($ac_try" in
32748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32749   *) ac_try_echo=$ac_try;;
32750 esac
32751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32753   ac_status=$?
32754   grep -v '^ *+' conftest.er1 >conftest.err
32755   rm -f conftest.er1
32756   cat conftest.err >&5
32757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758   (exit $ac_status); } >/dev/null && {
32759          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32760          test ! -s conftest.err
32761        }; then
32762   cat >>confdefs.h <<\_ACEOF
32763 #define FSTYPE_STATVFS 1
32764 _ACEOF
32765  fstype=SVR4
32766
32767 else
32768   echo "$as_me: failed program was:" >&5
32769 sed 's/^/| /' conftest.$ac_ext >&5
32770
32771
32772 fi
32773
32774 rm -f conftest.err conftest.$ac_ext
32775 if test $fstype = no; then
32776    cat >conftest.$ac_ext <<_ACEOF
32777 /* confdefs.h.  */
32778 _ACEOF
32779 cat confdefs.h >>conftest.$ac_ext
32780 cat >>conftest.$ac_ext <<_ACEOF
32781 /* end confdefs.h.  */
32782
32783           #include <sys/statfs.h>
32784           #include <sys/fstyp.h>
32785
32786 _ACEOF
32787 if { (ac_try="$ac_cpp conftest.$ac_ext"
32788 case "(($ac_try" in
32789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32790   *) ac_try_echo=$ac_try;;
32791 esac
32792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32794   ac_status=$?
32795   grep -v '^ *+' conftest.er1 >conftest.err
32796   rm -f conftest.er1
32797   cat conftest.err >&5
32798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799   (exit $ac_status); } >/dev/null && {
32800          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32801          test ! -s conftest.err
32802        }; then
32803   cat >>confdefs.h <<\_ACEOF
32804 #define FSTYPE_USG_STATFS 1
32805 _ACEOF
32806  fstype=SVR3
32807
32808 else
32809   echo "$as_me: failed program was:" >&5
32810 sed 's/^/| /' conftest.$ac_ext >&5
32811
32812
32813 fi
32814
32815 rm -f conftest.err conftest.$ac_ext
32816 fi
32817 if test $fstype = no; then
32818    cat >conftest.$ac_ext <<_ACEOF
32819 /* confdefs.h.  */
32820 _ACEOF
32821 cat confdefs.h >>conftest.$ac_ext
32822 cat >>conftest.$ac_ext <<_ACEOF
32823 /* end confdefs.h.  */
32824
32825           #include <sys/statfs.h>
32826           #include <sys/vmount.h>
32827
32828 _ACEOF
32829 if { (ac_try="$ac_cpp conftest.$ac_ext"
32830 case "(($ac_try" in
32831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32832   *) ac_try_echo=$ac_try;;
32833 esac
32834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32835   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32836   ac_status=$?
32837   grep -v '^ *+' conftest.er1 >conftest.err
32838   rm -f conftest.er1
32839   cat conftest.err >&5
32840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841   (exit $ac_status); } >/dev/null && {
32842          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32843          test ! -s conftest.err
32844        }; then
32845   cat >>confdefs.h <<\_ACEOF
32846 #define FSTYPE_AIX_STATFS 1
32847 _ACEOF
32848  fstype=AIX
32849
32850 else
32851   echo "$as_me: failed program was:" >&5
32852 sed 's/^/| /' conftest.$ac_ext >&5
32853
32854
32855 fi
32856
32857 rm -f conftest.err conftest.$ac_ext
32858 fi
32859 if test $fstype = no; then
32860    cat >conftest.$ac_ext <<_ACEOF
32861 /* confdefs.h.  */
32862 _ACEOF
32863 cat confdefs.h >>conftest.$ac_ext
32864 cat >>conftest.$ac_ext <<_ACEOF
32865 /* end confdefs.h.  */
32866
32867           #include <mntent.h>
32868
32869 _ACEOF
32870 if { (ac_try="$ac_cpp conftest.$ac_ext"
32871 case "(($ac_try" in
32872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32873   *) ac_try_echo=$ac_try;;
32874 esac
32875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32877   ac_status=$?
32878   grep -v '^ *+' conftest.er1 >conftest.err
32879   rm -f conftest.er1
32880   cat conftest.err >&5
32881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32882   (exit $ac_status); } >/dev/null && {
32883          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32884          test ! -s conftest.err
32885        }; then
32886   cat >>confdefs.h <<\_ACEOF
32887 #define FSTYPE_MNTENT 1
32888 _ACEOF
32889  fstype=4.3BSD
32890
32891 else
32892   echo "$as_me: failed program was:" >&5
32893 sed 's/^/| /' conftest.$ac_ext >&5
32894
32895
32896 fi
32897
32898 rm -f conftest.err conftest.$ac_ext
32899 fi
32900 if test $fstype = no; then
32901    cat >conftest.$ac_ext <<_ACEOF
32902 /* confdefs.h.  */
32903 _ACEOF
32904 cat confdefs.h >>conftest.$ac_ext
32905 cat >>conftest.$ac_ext <<_ACEOF
32906 /* end confdefs.h.  */
32907 #include <sys/mount.h>
32908
32909 _ACEOF
32910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32911   $EGREP "f_type;" >/dev/null 2>&1; then
32912   cat >>confdefs.h <<\_ACEOF
32913 #define FSTYPE_STATFS 1
32914 _ACEOF
32915  fstype=4.4BSD/OSF1
32916 fi
32917 rm -f conftest*
32918
32919 fi
32920 if test $fstype = no; then
32921    cat >conftest.$ac_ext <<_ACEOF
32922 /* confdefs.h.  */
32923 _ACEOF
32924 cat confdefs.h >>conftest.$ac_ext
32925 cat >>conftest.$ac_ext <<_ACEOF
32926 /* end confdefs.h.  */
32927
32928           #include <sys/mount.h>
32929           #include <sys/fs_types.h>
32930
32931 _ACEOF
32932 if { (ac_try="$ac_cpp conftest.$ac_ext"
32933 case "(($ac_try" in
32934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32935   *) ac_try_echo=$ac_try;;
32936 esac
32937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32938   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32939   ac_status=$?
32940   grep -v '^ *+' conftest.er1 >conftest.err
32941   rm -f conftest.er1
32942   cat conftest.err >&5
32943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944   (exit $ac_status); } >/dev/null && {
32945          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32946          test ! -s conftest.err
32947        }; then
32948   cat >>confdefs.h <<\_ACEOF
32949 #define FSTYPE_GETMNT 1
32950 _ACEOF
32951  fstype=Ultrix
32952
32953 else
32954   echo "$as_me: failed program was:" >&5
32955 sed 's/^/| /' conftest.$ac_ext >&5
32956
32957
32958 fi
32959
32960 rm -f conftest.err conftest.$ac_ext
32961 fi
32962 { echo "$as_me:$LINENO: result: $fstype" >&5
32963 echo "${ECHO_T}$fstype" >&6; }
32964
32965 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32966   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32967 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32968 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32969   echo $ECHO_N "(cached) $ECHO_C" >&6
32970 fi
32971 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32972 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32973 else
32974   # Is the header compilable?
32975 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32976 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32977 cat >conftest.$ac_ext <<_ACEOF
32978 /* confdefs.h.  */
32979 _ACEOF
32980 cat confdefs.h >>conftest.$ac_ext
32981 cat >>conftest.$ac_ext <<_ACEOF
32982 /* end confdefs.h.  */
32983 $ac_includes_default
32984 #include <sys/statvfs.h>
32985 _ACEOF
32986 rm -f conftest.$ac_objext
32987 if { (ac_try="$ac_compile"
32988 case "(($ac_try" in
32989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32990   *) ac_try_echo=$ac_try;;
32991 esac
32992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32993   (eval "$ac_compile") 2>conftest.er1
32994   ac_status=$?
32995   grep -v '^ *+' conftest.er1 >conftest.err
32996   rm -f conftest.er1
32997   cat conftest.err >&5
32998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999   (exit $ac_status); } && {
33000          test -z "$ac_c_werror_flag" ||
33001          test ! -s conftest.err
33002        } && test -s conftest.$ac_objext; then
33003   ac_header_compiler=yes
33004 else
33005   echo "$as_me: failed program was:" >&5
33006 sed 's/^/| /' conftest.$ac_ext >&5
33007
33008         ac_header_compiler=no
33009 fi
33010
33011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33013 echo "${ECHO_T}$ac_header_compiler" >&6; }
33014
33015 # Is the header present?
33016 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33017 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33018 cat >conftest.$ac_ext <<_ACEOF
33019 /* confdefs.h.  */
33020 _ACEOF
33021 cat confdefs.h >>conftest.$ac_ext
33022 cat >>conftest.$ac_ext <<_ACEOF
33023 /* end confdefs.h.  */
33024 #include <sys/statvfs.h>
33025 _ACEOF
33026 if { (ac_try="$ac_cpp conftest.$ac_ext"
33027 case "(($ac_try" in
33028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33029   *) ac_try_echo=$ac_try;;
33030 esac
33031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33032   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33033   ac_status=$?
33034   grep -v '^ *+' conftest.er1 >conftest.err
33035   rm -f conftest.er1
33036   cat conftest.err >&5
33037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038   (exit $ac_status); } >/dev/null && {
33039          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33040          test ! -s conftest.err
33041        }; then
33042   ac_header_preproc=yes
33043 else
33044   echo "$as_me: failed program was:" >&5
33045 sed 's/^/| /' conftest.$ac_ext >&5
33046
33047   ac_header_preproc=no
33048 fi
33049
33050 rm -f conftest.err conftest.$ac_ext
33051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33052 echo "${ECHO_T}$ac_header_preproc" >&6; }
33053
33054 # So?  What about this header?
33055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33056   yes:no: )
33057     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33058 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33059     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33060 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33061     ac_header_preproc=yes
33062     ;;
33063   no:yes:* )
33064     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33065 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33066     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33067 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33068     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33069 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33070     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33071 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33072     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33073 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33074     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33075 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33076
33077     ;;
33078 esac
33079 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33080 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33081 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33082   echo $ECHO_N "(cached) $ECHO_C" >&6
33083 else
33084   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33085 fi
33086 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33087 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33088
33089 fi
33090 if test $ac_cv_header_sys_statvfs_h = yes; then
33091
33092 cat >>confdefs.h <<\_ACEOF
33093 #define HAVE_SYS_STATVFS_H 1
33094 _ACEOF
33095
33096 fi
33097
33098
33099
33100 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33101 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33102 if test "${ac_cv_type_signal+set}" = set; then
33103   echo $ECHO_N "(cached) $ECHO_C" >&6
33104 else
33105   cat >conftest.$ac_ext <<_ACEOF
33106 /* confdefs.h.  */
33107 _ACEOF
33108 cat confdefs.h >>conftest.$ac_ext
33109 cat >>conftest.$ac_ext <<_ACEOF
33110 /* end confdefs.h.  */
33111 #include <sys/types.h>
33112 #include <signal.h>
33113
33114 int
33115 main ()
33116 {
33117 return *(signal (0, 0)) (0) == 1;
33118   ;
33119   return 0;
33120 }
33121 _ACEOF
33122 rm -f conftest.$ac_objext
33123 if { (ac_try="$ac_compile"
33124 case "(($ac_try" in
33125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126   *) ac_try_echo=$ac_try;;
33127 esac
33128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129   (eval "$ac_compile") 2>conftest.er1
33130   ac_status=$?
33131   grep -v '^ *+' conftest.er1 >conftest.err
33132   rm -f conftest.er1
33133   cat conftest.err >&5
33134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135   (exit $ac_status); } && {
33136          test -z "$ac_c_werror_flag" ||
33137          test ! -s conftest.err
33138        } && test -s conftest.$ac_objext; then
33139   ac_cv_type_signal=int
33140 else
33141   echo "$as_me: failed program was:" >&5
33142 sed 's/^/| /' conftest.$ac_ext >&5
33143
33144         ac_cv_type_signal=void
33145 fi
33146
33147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33148 fi
33149 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33150 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33151
33152 cat >>confdefs.h <<_ACEOF
33153 #define RETSIGTYPE $ac_cv_type_signal
33154 _ACEOF
33155
33156
33157
33158   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33159 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33160   if test "${bash_cv_signal_vintage+set}" = set; then
33161   echo $ECHO_N "(cached) $ECHO_C" >&6
33162 else
33163
33164     cat >conftest.$ac_ext <<_ACEOF
33165 /* confdefs.h.  */
33166 _ACEOF
33167 cat confdefs.h >>conftest.$ac_ext
33168 cat >>conftest.$ac_ext <<_ACEOF
33169 /* end confdefs.h.  */
33170 #include <signal.h>
33171 int
33172 main ()
33173 {
33174
33175       sigset_t ss;
33176       struct sigaction sa;
33177       sigemptyset(&ss); sigsuspend(&ss);
33178       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33179       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33180
33181   ;
33182   return 0;
33183 }
33184 _ACEOF
33185 rm -f conftest.$ac_objext conftest$ac_exeext
33186 if { (ac_try="$ac_link"
33187 case "(($ac_try" in
33188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189   *) ac_try_echo=$ac_try;;
33190 esac
33191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192   (eval "$ac_link") 2>conftest.er1
33193   ac_status=$?
33194   grep -v '^ *+' conftest.er1 >conftest.err
33195   rm -f conftest.er1
33196   cat conftest.err >&5
33197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198   (exit $ac_status); } && {
33199          test -z "$ac_c_werror_flag" ||
33200          test ! -s conftest.err
33201        } && test -s conftest$ac_exeext &&
33202        $as_test_x conftest$ac_exeext; then
33203   bash_cv_signal_vintage="posix"
33204 else
33205   echo "$as_me: failed program was:" >&5
33206 sed 's/^/| /' conftest.$ac_ext >&5
33207
33208
33209       cat >conftest.$ac_ext <<_ACEOF
33210 /* confdefs.h.  */
33211 _ACEOF
33212 cat confdefs.h >>conftest.$ac_ext
33213 cat >>conftest.$ac_ext <<_ACEOF
33214 /* end confdefs.h.  */
33215 #include <signal.h>
33216 int
33217 main ()
33218 {
33219
33220           int mask = sigmask(SIGINT);
33221           sigsetmask(mask); sigblock(mask); sigpause(mask);
33222
33223   ;
33224   return 0;
33225 }
33226 _ACEOF
33227 rm -f conftest.$ac_objext conftest$ac_exeext
33228 if { (ac_try="$ac_link"
33229 case "(($ac_try" in
33230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33231   *) ac_try_echo=$ac_try;;
33232 esac
33233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33234   (eval "$ac_link") 2>conftest.er1
33235   ac_status=$?
33236   grep -v '^ *+' conftest.er1 >conftest.err
33237   rm -f conftest.er1
33238   cat conftest.err >&5
33239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240   (exit $ac_status); } && {
33241          test -z "$ac_c_werror_flag" ||
33242          test ! -s conftest.err
33243        } && test -s conftest$ac_exeext &&
33244        $as_test_x conftest$ac_exeext; then
33245   bash_cv_signal_vintage="4.2bsd"
33246 else
33247   echo "$as_me: failed program was:" >&5
33248 sed 's/^/| /' conftest.$ac_ext >&5
33249
33250
33251         cat >conftest.$ac_ext <<_ACEOF
33252 /* confdefs.h.  */
33253 _ACEOF
33254 cat confdefs.h >>conftest.$ac_ext
33255 cat >>conftest.$ac_ext <<_ACEOF
33256 /* end confdefs.h.  */
33257
33258           #include <signal.h>
33259           RETSIGTYPE foo() { }
33260 int
33261 main ()
33262 {
33263
33264                   int mask = sigmask(SIGINT);
33265                   sigset(SIGINT, foo); sigrelse(SIGINT);
33266                   sighold(SIGINT); sigpause(SIGINT);
33267
33268   ;
33269   return 0;
33270 }
33271 _ACEOF
33272 rm -f conftest.$ac_objext conftest$ac_exeext
33273 if { (ac_try="$ac_link"
33274 case "(($ac_try" in
33275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33276   *) ac_try_echo=$ac_try;;
33277 esac
33278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33279   (eval "$ac_link") 2>conftest.er1
33280   ac_status=$?
33281   grep -v '^ *+' conftest.er1 >conftest.err
33282   rm -f conftest.er1
33283   cat conftest.err >&5
33284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33285   (exit $ac_status); } && {
33286          test -z "$ac_c_werror_flag" ||
33287          test ! -s conftest.err
33288        } && test -s conftest$ac_exeext &&
33289        $as_test_x conftest$ac_exeext; then
33290   bash_cv_signal_vintage="svr3"
33291 else
33292   echo "$as_me: failed program was:" >&5
33293 sed 's/^/| /' conftest.$ac_ext >&5
33294
33295         bash_cv_signal_vintage="v7"
33296
33297 fi
33298
33299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33300       conftest$ac_exeext conftest.$ac_ext
33301
33302 fi
33303
33304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33305       conftest$ac_exeext conftest.$ac_ext
33306
33307 fi
33308
33309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33310       conftest$ac_exeext conftest.$ac_ext
33311
33312 fi
33313
33314   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33315 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33316   if test "$bash_cv_signal_vintage" = "posix"; then
33317     cat >>confdefs.h <<\_ACEOF
33318 #define HAVE_POSIX_SIGNALS 1
33319 _ACEOF
33320
33321   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33322     cat >>confdefs.h <<\_ACEOF
33323 #define HAVE_BSD_SIGNALS 1
33324 _ACEOF
33325
33326   elif test "$bash_cv_signal_vintage" = "svr3"; then
33327     cat >>confdefs.h <<\_ACEOF
33328 #define HAVE_USG_SIGHOLD 1
33329 _ACEOF
33330
33331   fi
33332
33333 { echo "$as_me:$LINENO: checking for mode_t" >&5
33334 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33335 if test "${ac_cv_type_mode_t+set}" = set; then
33336   echo $ECHO_N "(cached) $ECHO_C" >&6
33337 else
33338   cat >conftest.$ac_ext <<_ACEOF
33339 /* confdefs.h.  */
33340 _ACEOF
33341 cat confdefs.h >>conftest.$ac_ext
33342 cat >>conftest.$ac_ext <<_ACEOF
33343 /* end confdefs.h.  */
33344 $ac_includes_default
33345 typedef mode_t ac__type_new_;
33346 int
33347 main ()
33348 {
33349 if ((ac__type_new_ *) 0)
33350   return 0;
33351 if (sizeof (ac__type_new_))
33352   return 0;
33353   ;
33354   return 0;
33355 }
33356 _ACEOF
33357 rm -f conftest.$ac_objext
33358 if { (ac_try="$ac_compile"
33359 case "(($ac_try" in
33360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33361   *) ac_try_echo=$ac_try;;
33362 esac
33363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33364   (eval "$ac_compile") 2>conftest.er1
33365   ac_status=$?
33366   grep -v '^ *+' conftest.er1 >conftest.err
33367   rm -f conftest.er1
33368   cat conftest.err >&5
33369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370   (exit $ac_status); } && {
33371          test -z "$ac_c_werror_flag" ||
33372          test ! -s conftest.err
33373        } && test -s conftest.$ac_objext; then
33374   ac_cv_type_mode_t=yes
33375 else
33376   echo "$as_me: failed program was:" >&5
33377 sed 's/^/| /' conftest.$ac_ext >&5
33378
33379         ac_cv_type_mode_t=no
33380 fi
33381
33382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33383 fi
33384 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33385 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33386 if test $ac_cv_type_mode_t = yes; then
33387   :
33388 else
33389
33390 cat >>confdefs.h <<_ACEOF
33391 #define mode_t int
33392 _ACEOF
33393
33394 fi
33395
33396 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33397 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33398 if test "${ac_cv_type_uid_t+set}" = set; then
33399   echo $ECHO_N "(cached) $ECHO_C" >&6
33400 else
33401   cat >conftest.$ac_ext <<_ACEOF
33402 /* confdefs.h.  */
33403 _ACEOF
33404 cat confdefs.h >>conftest.$ac_ext
33405 cat >>conftest.$ac_ext <<_ACEOF
33406 /* end confdefs.h.  */
33407 #include <sys/types.h>
33408
33409 _ACEOF
33410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33411   $EGREP "uid_t" >/dev/null 2>&1; then
33412   ac_cv_type_uid_t=yes
33413 else
33414   ac_cv_type_uid_t=no
33415 fi
33416 rm -f conftest*
33417
33418 fi
33419 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33420 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33421 if test $ac_cv_type_uid_t = no; then
33422
33423 cat >>confdefs.h <<\_ACEOF
33424 #define uid_t int
33425 _ACEOF
33426
33427
33428 cat >>confdefs.h <<\_ACEOF
33429 #define gid_t int
33430 _ACEOF
33431
33432 fi
33433
33434 { echo "$as_me:$LINENO: checking for size_t" >&5
33435 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33436 if test "${ac_cv_type_size_t+set}" = set; then
33437   echo $ECHO_N "(cached) $ECHO_C" >&6
33438 else
33439   cat >conftest.$ac_ext <<_ACEOF
33440 /* confdefs.h.  */
33441 _ACEOF
33442 cat confdefs.h >>conftest.$ac_ext
33443 cat >>conftest.$ac_ext <<_ACEOF
33444 /* end confdefs.h.  */
33445 $ac_includes_default
33446 typedef size_t ac__type_new_;
33447 int
33448 main ()
33449 {
33450 if ((ac__type_new_ *) 0)
33451   return 0;
33452 if (sizeof (ac__type_new_))
33453   return 0;
33454   ;
33455   return 0;
33456 }
33457 _ACEOF
33458 rm -f conftest.$ac_objext
33459 if { (ac_try="$ac_compile"
33460 case "(($ac_try" in
33461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33462   *) ac_try_echo=$ac_try;;
33463 esac
33464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33465   (eval "$ac_compile") 2>conftest.er1
33466   ac_status=$?
33467   grep -v '^ *+' conftest.er1 >conftest.err
33468   rm -f conftest.er1
33469   cat conftest.err >&5
33470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33471   (exit $ac_status); } && {
33472          test -z "$ac_c_werror_flag" ||
33473          test ! -s conftest.err
33474        } && test -s conftest.$ac_objext; then
33475   ac_cv_type_size_t=yes
33476 else
33477   echo "$as_me: failed program was:" >&5
33478 sed 's/^/| /' conftest.$ac_ext >&5
33479
33480         ac_cv_type_size_t=no
33481 fi
33482
33483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33484 fi
33485 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33486 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33487 if test $ac_cv_type_size_t = yes; then
33488   :
33489 else
33490
33491 cat >>confdefs.h <<_ACEOF
33492 #define size_t unsigned int
33493 _ACEOF
33494
33495 fi
33496
33497 { echo "$as_me:$LINENO: checking for pid_t" >&5
33498 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33499 if test "${ac_cv_type_pid_t+set}" = set; then
33500   echo $ECHO_N "(cached) $ECHO_C" >&6
33501 else
33502   cat >conftest.$ac_ext <<_ACEOF
33503 /* confdefs.h.  */
33504 _ACEOF
33505 cat confdefs.h >>conftest.$ac_ext
33506 cat >>conftest.$ac_ext <<_ACEOF
33507 /* end confdefs.h.  */
33508 $ac_includes_default
33509 typedef pid_t ac__type_new_;
33510 int
33511 main ()
33512 {
33513 if ((ac__type_new_ *) 0)
33514   return 0;
33515 if (sizeof (ac__type_new_))
33516   return 0;
33517   ;
33518   return 0;
33519 }
33520 _ACEOF
33521 rm -f conftest.$ac_objext
33522 if { (ac_try="$ac_compile"
33523 case "(($ac_try" in
33524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33525   *) ac_try_echo=$ac_try;;
33526 esac
33527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33528   (eval "$ac_compile") 2>conftest.er1
33529   ac_status=$?
33530   grep -v '^ *+' conftest.er1 >conftest.err
33531   rm -f conftest.er1
33532   cat conftest.err >&5
33533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534   (exit $ac_status); } && {
33535          test -z "$ac_c_werror_flag" ||
33536          test ! -s conftest.err
33537        } && test -s conftest.$ac_objext; then
33538   ac_cv_type_pid_t=yes
33539 else
33540   echo "$as_me: failed program was:" >&5
33541 sed 's/^/| /' conftest.$ac_ext >&5
33542
33543         ac_cv_type_pid_t=no
33544 fi
33545
33546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33547 fi
33548 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33549 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33550 if test $ac_cv_type_pid_t = yes; then
33551   :
33552 else
33553
33554 cat >>confdefs.h <<_ACEOF
33555 #define pid_t int
33556 _ACEOF
33557
33558 fi
33559
33560 { echo "$as_me:$LINENO: checking for off_t" >&5
33561 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33562 if test "${ac_cv_type_off_t+set}" = set; then
33563   echo $ECHO_N "(cached) $ECHO_C" >&6
33564 else
33565   cat >conftest.$ac_ext <<_ACEOF
33566 /* confdefs.h.  */
33567 _ACEOF
33568 cat confdefs.h >>conftest.$ac_ext
33569 cat >>conftest.$ac_ext <<_ACEOF
33570 /* end confdefs.h.  */
33571 $ac_includes_default
33572 typedef off_t ac__type_new_;
33573 int
33574 main ()
33575 {
33576 if ((ac__type_new_ *) 0)
33577   return 0;
33578 if (sizeof (ac__type_new_))
33579   return 0;
33580   ;
33581   return 0;
33582 }
33583 _ACEOF
33584 rm -f conftest.$ac_objext
33585 if { (ac_try="$ac_compile"
33586 case "(($ac_try" in
33587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33588   *) ac_try_echo=$ac_try;;
33589 esac
33590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33591   (eval "$ac_compile") 2>conftest.er1
33592   ac_status=$?
33593   grep -v '^ *+' conftest.er1 >conftest.err
33594   rm -f conftest.er1
33595   cat conftest.err >&5
33596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597   (exit $ac_status); } && {
33598          test -z "$ac_c_werror_flag" ||
33599          test ! -s conftest.err
33600        } && test -s conftest.$ac_objext; then
33601   ac_cv_type_off_t=yes
33602 else
33603   echo "$as_me: failed program was:" >&5
33604 sed 's/^/| /' conftest.$ac_ext >&5
33605
33606         ac_cv_type_off_t=no
33607 fi
33608
33609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33610 fi
33611 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33612 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33613 if test $ac_cv_type_off_t = yes; then
33614   :
33615 else
33616
33617 cat >>confdefs.h <<_ACEOF
33618 #define off_t long int
33619 _ACEOF
33620
33621 fi
33622
33623
33624   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33625 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33626 if test "${ac_cv_type_intptr_t+set}" = set; then
33627   echo $ECHO_N "(cached) $ECHO_C" >&6
33628 else
33629   cat >conftest.$ac_ext <<_ACEOF
33630 /* confdefs.h.  */
33631 _ACEOF
33632 cat confdefs.h >>conftest.$ac_ext
33633 cat >>conftest.$ac_ext <<_ACEOF
33634 /* end confdefs.h.  */
33635 $ac_includes_default
33636 typedef intptr_t ac__type_new_;
33637 int
33638 main ()
33639 {
33640 if ((ac__type_new_ *) 0)
33641   return 0;
33642 if (sizeof (ac__type_new_))
33643   return 0;
33644   ;
33645   return 0;
33646 }
33647 _ACEOF
33648 rm -f conftest.$ac_objext
33649 if { (ac_try="$ac_compile"
33650 case "(($ac_try" in
33651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33652   *) ac_try_echo=$ac_try;;
33653 esac
33654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33655   (eval "$ac_compile") 2>conftest.er1
33656   ac_status=$?
33657   grep -v '^ *+' conftest.er1 >conftest.err
33658   rm -f conftest.er1
33659   cat conftest.err >&5
33660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661   (exit $ac_status); } && {
33662          test -z "$ac_c_werror_flag" ||
33663          test ! -s conftest.err
33664        } && test -s conftest.$ac_objext; then
33665   ac_cv_type_intptr_t=yes
33666 else
33667   echo "$as_me: failed program was:" >&5
33668 sed 's/^/| /' conftest.$ac_ext >&5
33669
33670         ac_cv_type_intptr_t=no
33671 fi
33672
33673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33674 fi
33675 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33676 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33677 if test $ac_cv_type_intptr_t = yes; then
33678
33679 cat >>confdefs.h <<\_ACEOF
33680 #define HAVE_INTPTR_T 1
33681 _ACEOF
33682
33683 else
33684   for ac_type in 'int' 'long int' 'long long int'; do
33685        cat >conftest.$ac_ext <<_ACEOF
33686 /* confdefs.h.  */
33687 _ACEOF
33688 cat confdefs.h >>conftest.$ac_ext
33689 cat >>conftest.$ac_ext <<_ACEOF
33690 /* end confdefs.h.  */
33691 $ac_includes_default
33692 int
33693 main ()
33694 {
33695 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33696 test_array [0] = 0
33697
33698   ;
33699   return 0;
33700 }
33701 _ACEOF
33702 rm -f conftest.$ac_objext
33703 if { (ac_try="$ac_compile"
33704 case "(($ac_try" in
33705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33706   *) ac_try_echo=$ac_try;;
33707 esac
33708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33709   (eval "$ac_compile") 2>conftest.er1
33710   ac_status=$?
33711   grep -v '^ *+' conftest.er1 >conftest.err
33712   rm -f conftest.er1
33713   cat conftest.err >&5
33714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33715   (exit $ac_status); } && {
33716          test -z "$ac_c_werror_flag" ||
33717          test ! -s conftest.err
33718        } && test -s conftest.$ac_objext; then
33719
33720 cat >>confdefs.h <<_ACEOF
33721 #define intptr_t $ac_type
33722 _ACEOF
33723
33724           ac_type=
33725 else
33726   echo "$as_me: failed program was:" >&5
33727 sed 's/^/| /' conftest.$ac_ext >&5
33728
33729
33730 fi
33731
33732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33733        test -z "$ac_type" && break
33734      done
33735 fi
33736
33737
33738
33739   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33740 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33741 if test "${ac_cv_type_uintptr_t+set}" = set; then
33742   echo $ECHO_N "(cached) $ECHO_C" >&6
33743 else
33744   cat >conftest.$ac_ext <<_ACEOF
33745 /* confdefs.h.  */
33746 _ACEOF
33747 cat confdefs.h >>conftest.$ac_ext
33748 cat >>conftest.$ac_ext <<_ACEOF
33749 /* end confdefs.h.  */
33750 $ac_includes_default
33751 typedef uintptr_t ac__type_new_;
33752 int
33753 main ()
33754 {
33755 if ((ac__type_new_ *) 0)
33756   return 0;
33757 if (sizeof (ac__type_new_))
33758   return 0;
33759   ;
33760   return 0;
33761 }
33762 _ACEOF
33763 rm -f conftest.$ac_objext
33764 if { (ac_try="$ac_compile"
33765 case "(($ac_try" in
33766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33767   *) ac_try_echo=$ac_try;;
33768 esac
33769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33770   (eval "$ac_compile") 2>conftest.er1
33771   ac_status=$?
33772   grep -v '^ *+' conftest.er1 >conftest.err
33773   rm -f conftest.er1
33774   cat conftest.err >&5
33775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776   (exit $ac_status); } && {
33777          test -z "$ac_c_werror_flag" ||
33778          test ! -s conftest.err
33779        } && test -s conftest.$ac_objext; then
33780   ac_cv_type_uintptr_t=yes
33781 else
33782   echo "$as_me: failed program was:" >&5
33783 sed 's/^/| /' conftest.$ac_ext >&5
33784
33785         ac_cv_type_uintptr_t=no
33786 fi
33787
33788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33789 fi
33790 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33791 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33792 if test $ac_cv_type_uintptr_t = yes; then
33793
33794 cat >>confdefs.h <<\_ACEOF
33795 #define HAVE_UINTPTR_T 1
33796 _ACEOF
33797
33798 else
33799   for ac_type in 'unsigned int' 'unsigned long int' \
33800         'unsigned long long int'; do
33801        cat >conftest.$ac_ext <<_ACEOF
33802 /* confdefs.h.  */
33803 _ACEOF
33804 cat confdefs.h >>conftest.$ac_ext
33805 cat >>conftest.$ac_ext <<_ACEOF
33806 /* end confdefs.h.  */
33807 $ac_includes_default
33808 int
33809 main ()
33810 {
33811 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33812 test_array [0] = 0
33813
33814   ;
33815   return 0;
33816 }
33817 _ACEOF
33818 rm -f conftest.$ac_objext
33819 if { (ac_try="$ac_compile"
33820 case "(($ac_try" in
33821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33822   *) ac_try_echo=$ac_try;;
33823 esac
33824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33825   (eval "$ac_compile") 2>conftest.er1
33826   ac_status=$?
33827   grep -v '^ *+' conftest.er1 >conftest.err
33828   rm -f conftest.er1
33829   cat conftest.err >&5
33830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831   (exit $ac_status); } && {
33832          test -z "$ac_c_werror_flag" ||
33833          test ! -s conftest.err
33834        } && test -s conftest.$ac_objext; then
33835
33836 cat >>confdefs.h <<_ACEOF
33837 #define uintptr_t $ac_type
33838 _ACEOF
33839
33840           ac_type=
33841 else
33842   echo "$as_me: failed program was:" >&5
33843 sed 's/^/| /' conftest.$ac_ext >&5
33844
33845
33846 fi
33847
33848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33849        test -z "$ac_type" && break
33850      done
33851 fi
33852
33853
33854 { echo "$as_me:$LINENO: checking for ino_t" >&5
33855 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33856 if test "${ac_cv_type_ino_t+set}" = set; then
33857   echo $ECHO_N "(cached) $ECHO_C" >&6
33858 else
33859   cat >conftest.$ac_ext <<_ACEOF
33860 /* confdefs.h.  */
33861 _ACEOF
33862 cat confdefs.h >>conftest.$ac_ext
33863 cat >>conftest.$ac_ext <<_ACEOF
33864 /* end confdefs.h.  */
33865 $ac_includes_default
33866 typedef ino_t ac__type_new_;
33867 int
33868 main ()
33869 {
33870 if ((ac__type_new_ *) 0)
33871   return 0;
33872 if (sizeof (ac__type_new_))
33873   return 0;
33874   ;
33875   return 0;
33876 }
33877 _ACEOF
33878 rm -f conftest.$ac_objext
33879 if { (ac_try="$ac_compile"
33880 case "(($ac_try" in
33881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33882   *) ac_try_echo=$ac_try;;
33883 esac
33884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33885   (eval "$ac_compile") 2>conftest.er1
33886   ac_status=$?
33887   grep -v '^ *+' conftest.er1 >conftest.err
33888   rm -f conftest.er1
33889   cat conftest.err >&5
33890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891   (exit $ac_status); } && {
33892          test -z "$ac_c_werror_flag" ||
33893          test ! -s conftest.err
33894        } && test -s conftest.$ac_objext; then
33895   ac_cv_type_ino_t=yes
33896 else
33897   echo "$as_me: failed program was:" >&5
33898 sed 's/^/| /' conftest.$ac_ext >&5
33899
33900         ac_cv_type_ino_t=no
33901 fi
33902
33903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33904 fi
33905 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33906 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33907 if test $ac_cv_type_ino_t = yes; then
33908   :
33909 else
33910
33911 cat >>confdefs.h <<_ACEOF
33912 #define ino_t unsigned long
33913 _ACEOF
33914
33915 fi
33916
33917 { echo "$as_me:$LINENO: checking for dev_t" >&5
33918 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33919 if test "${ac_cv_type_dev_t+set}" = set; then
33920   echo $ECHO_N "(cached) $ECHO_C" >&6
33921 else
33922   cat >conftest.$ac_ext <<_ACEOF
33923 /* confdefs.h.  */
33924 _ACEOF
33925 cat confdefs.h >>conftest.$ac_ext
33926 cat >>conftest.$ac_ext <<_ACEOF
33927 /* end confdefs.h.  */
33928 $ac_includes_default
33929 typedef dev_t ac__type_new_;
33930 int
33931 main ()
33932 {
33933 if ((ac__type_new_ *) 0)
33934   return 0;
33935 if (sizeof (ac__type_new_))
33936   return 0;
33937   ;
33938   return 0;
33939 }
33940 _ACEOF
33941 rm -f conftest.$ac_objext
33942 if { (ac_try="$ac_compile"
33943 case "(($ac_try" in
33944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33945   *) ac_try_echo=$ac_try;;
33946 esac
33947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33948   (eval "$ac_compile") 2>conftest.er1
33949   ac_status=$?
33950   grep -v '^ *+' conftest.er1 >conftest.err
33951   rm -f conftest.er1
33952   cat conftest.err >&5
33953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954   (exit $ac_status); } && {
33955          test -z "$ac_c_werror_flag" ||
33956          test ! -s conftest.err
33957        } && test -s conftest.$ac_objext; then
33958   ac_cv_type_dev_t=yes
33959 else
33960   echo "$as_me: failed program was:" >&5
33961 sed 's/^/| /' conftest.$ac_ext >&5
33962
33963         ac_cv_type_dev_t=no
33964 fi
33965
33966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33967 fi
33968 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33969 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33970 if test $ac_cv_type_dev_t = yes; then
33971   :
33972 else
33973
33974 cat >>confdefs.h <<_ACEOF
33975 #define dev_t unsigned long
33976 _ACEOF
33977
33978 fi
33979
33980 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33981 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33982 if test "${ac_cv_type_daddr_t+set}" = set; then
33983   echo $ECHO_N "(cached) $ECHO_C" >&6
33984 else
33985   cat >conftest.$ac_ext <<_ACEOF
33986 /* confdefs.h.  */
33987 _ACEOF
33988 cat confdefs.h >>conftest.$ac_ext
33989 cat >>conftest.$ac_ext <<_ACEOF
33990 /* end confdefs.h.  */
33991 $ac_includes_default
33992 typedef daddr_t ac__type_new_;
33993 int
33994 main ()
33995 {
33996 if ((ac__type_new_ *) 0)
33997   return 0;
33998 if (sizeof (ac__type_new_))
33999   return 0;
34000   ;
34001   return 0;
34002 }
34003 _ACEOF
34004 rm -f conftest.$ac_objext
34005 if { (ac_try="$ac_compile"
34006 case "(($ac_try" in
34007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34008   *) ac_try_echo=$ac_try;;
34009 esac
34010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34011   (eval "$ac_compile") 2>conftest.er1
34012   ac_status=$?
34013   grep -v '^ *+' conftest.er1 >conftest.err
34014   rm -f conftest.er1
34015   cat conftest.err >&5
34016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34017   (exit $ac_status); } && {
34018          test -z "$ac_c_werror_flag" ||
34019          test ! -s conftest.err
34020        } && test -s conftest.$ac_objext; then
34021   ac_cv_type_daddr_t=yes
34022 else
34023   echo "$as_me: failed program was:" >&5
34024 sed 's/^/| /' conftest.$ac_ext >&5
34025
34026         ac_cv_type_daddr_t=no
34027 fi
34028
34029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34030 fi
34031 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34032 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34033 if test $ac_cv_type_daddr_t = yes; then
34034   :
34035 else
34036
34037 cat >>confdefs.h <<_ACEOF
34038 #define daddr_t long
34039 _ACEOF
34040
34041 fi
34042
34043 { echo "$as_me:$LINENO: checking for major_t" >&5
34044 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34045 if test "${ac_cv_type_major_t+set}" = set; then
34046   echo $ECHO_N "(cached) $ECHO_C" >&6
34047 else
34048   cat >conftest.$ac_ext <<_ACEOF
34049 /* confdefs.h.  */
34050 _ACEOF
34051 cat confdefs.h >>conftest.$ac_ext
34052 cat >>conftest.$ac_ext <<_ACEOF
34053 /* end confdefs.h.  */
34054 $ac_includes_default
34055 typedef major_t ac__type_new_;
34056 int
34057 main ()
34058 {
34059 if ((ac__type_new_ *) 0)
34060   return 0;
34061 if (sizeof (ac__type_new_))
34062   return 0;
34063   ;
34064   return 0;
34065 }
34066 _ACEOF
34067 rm -f conftest.$ac_objext
34068 if { (ac_try="$ac_compile"
34069 case "(($ac_try" in
34070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34071   *) ac_try_echo=$ac_try;;
34072 esac
34073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34074   (eval "$ac_compile") 2>conftest.er1
34075   ac_status=$?
34076   grep -v '^ *+' conftest.er1 >conftest.err
34077   rm -f conftest.er1
34078   cat conftest.err >&5
34079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34080   (exit $ac_status); } && {
34081          test -z "$ac_c_werror_flag" ||
34082          test ! -s conftest.err
34083        } && test -s conftest.$ac_objext; then
34084   ac_cv_type_major_t=yes
34085 else
34086   echo "$as_me: failed program was:" >&5
34087 sed 's/^/| /' conftest.$ac_ext >&5
34088
34089         ac_cv_type_major_t=no
34090 fi
34091
34092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34093 fi
34094 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34095 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34096 if test $ac_cv_type_major_t = yes; then
34097   :
34098 else
34099
34100 cat >>confdefs.h <<_ACEOF
34101 #define major_t int
34102 _ACEOF
34103
34104 fi
34105
34106 { echo "$as_me:$LINENO: checking for minor_t" >&5
34107 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34108 if test "${ac_cv_type_minor_t+set}" = set; then
34109   echo $ECHO_N "(cached) $ECHO_C" >&6
34110 else
34111   cat >conftest.$ac_ext <<_ACEOF
34112 /* confdefs.h.  */
34113 _ACEOF
34114 cat confdefs.h >>conftest.$ac_ext
34115 cat >>conftest.$ac_ext <<_ACEOF
34116 /* end confdefs.h.  */
34117 $ac_includes_default
34118 typedef minor_t ac__type_new_;
34119 int
34120 main ()
34121 {
34122 if ((ac__type_new_ *) 0)
34123   return 0;
34124 if (sizeof (ac__type_new_))
34125   return 0;
34126   ;
34127   return 0;
34128 }
34129 _ACEOF
34130 rm -f conftest.$ac_objext
34131 if { (ac_try="$ac_compile"
34132 case "(($ac_try" in
34133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34134   *) ac_try_echo=$ac_try;;
34135 esac
34136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34137   (eval "$ac_compile") 2>conftest.er1
34138   ac_status=$?
34139   grep -v '^ *+' conftest.er1 >conftest.err
34140   rm -f conftest.er1
34141   cat conftest.err >&5
34142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34143   (exit $ac_status); } && {
34144          test -z "$ac_c_werror_flag" ||
34145          test ! -s conftest.err
34146        } && test -s conftest.$ac_objext; then
34147   ac_cv_type_minor_t=yes
34148 else
34149   echo "$as_me: failed program was:" >&5
34150 sed 's/^/| /' conftest.$ac_ext >&5
34151
34152         ac_cv_type_minor_t=no
34153 fi
34154
34155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34156 fi
34157 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34158 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34159 if test $ac_cv_type_minor_t = yes; then
34160   :
34161 else
34162
34163 cat >>confdefs.h <<_ACEOF
34164 #define minor_t int
34165 _ACEOF
34166
34167 fi
34168
34169 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34170 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34171 if test "${ac_cv_type_ssize_t+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 ssize_t 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_ssize_t=yes
34211 else
34212   echo "$as_me: failed program was:" >&5
34213 sed 's/^/| /' conftest.$ac_ext >&5
34214
34215         ac_cv_type_ssize_t=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_ssize_t" >&5
34221 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34222 if test $ac_cv_type_ssize_t = yes; then
34223   :
34224 else
34225
34226 cat >>confdefs.h <<_ACEOF
34227 #define ssize_t int
34228 _ACEOF
34229
34230 fi
34231
34232 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34233 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34234 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34235   echo $ECHO_N "(cached) $ECHO_C" >&6
34236 else
34237   cat >conftest.$ac_ext <<_ACEOF
34238 /* confdefs.h.  */
34239 _ACEOF
34240 cat confdefs.h >>conftest.$ac_ext
34241 cat >>conftest.$ac_ext <<_ACEOF
34242 /* end confdefs.h.  */
34243 $ac_includes_default
34244 int
34245 main ()
34246 {
34247 static struct stat ac_aggr;
34248 if (ac_aggr.st_blocks)
34249 return 0;
34250   ;
34251   return 0;
34252 }
34253 _ACEOF
34254 rm -f conftest.$ac_objext
34255 if { (ac_try="$ac_compile"
34256 case "(($ac_try" in
34257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34258   *) ac_try_echo=$ac_try;;
34259 esac
34260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34261   (eval "$ac_compile") 2>conftest.er1
34262   ac_status=$?
34263   grep -v '^ *+' conftest.er1 >conftest.err
34264   rm -f conftest.er1
34265   cat conftest.err >&5
34266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267   (exit $ac_status); } && {
34268          test -z "$ac_c_werror_flag" ||
34269          test ! -s conftest.err
34270        } && test -s conftest.$ac_objext; then
34271   ac_cv_member_struct_stat_st_blocks=yes
34272 else
34273   echo "$as_me: failed program was:" >&5
34274 sed 's/^/| /' conftest.$ac_ext >&5
34275
34276         cat >conftest.$ac_ext <<_ACEOF
34277 /* confdefs.h.  */
34278 _ACEOF
34279 cat confdefs.h >>conftest.$ac_ext
34280 cat >>conftest.$ac_ext <<_ACEOF
34281 /* end confdefs.h.  */
34282 $ac_includes_default
34283 int
34284 main ()
34285 {
34286 static struct stat ac_aggr;
34287 if (sizeof ac_aggr.st_blocks)
34288 return 0;
34289   ;
34290   return 0;
34291 }
34292 _ACEOF
34293 rm -f conftest.$ac_objext
34294 if { (ac_try="$ac_compile"
34295 case "(($ac_try" in
34296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34297   *) ac_try_echo=$ac_try;;
34298 esac
34299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34300   (eval "$ac_compile") 2>conftest.er1
34301   ac_status=$?
34302   grep -v '^ *+' conftest.er1 >conftest.err
34303   rm -f conftest.er1
34304   cat conftest.err >&5
34305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34306   (exit $ac_status); } && {
34307          test -z "$ac_c_werror_flag" ||
34308          test ! -s conftest.err
34309        } && test -s conftest.$ac_objext; then
34310   ac_cv_member_struct_stat_st_blocks=yes
34311 else
34312   echo "$as_me: failed program was:" >&5
34313 sed 's/^/| /' conftest.$ac_ext >&5
34314
34315         ac_cv_member_struct_stat_st_blocks=no
34316 fi
34317
34318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34319 fi
34320
34321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34322 fi
34323 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34324 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34325 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34326
34327 cat >>confdefs.h <<_ACEOF
34328 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34329 _ACEOF
34330
34331
34332 cat >>confdefs.h <<\_ACEOF
34333 #define HAVE_ST_BLOCKS 1
34334 _ACEOF
34335
34336 else
34337   case " $LIBOBJS " in
34338   *" fileblocks.$ac_objext "* ) ;;
34339   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34340  ;;
34341 esac
34342
34343 fi
34344
34345
34346 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34347 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34348 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34349   echo $ECHO_N "(cached) $ECHO_C" >&6
34350 else
34351   cat >conftest.$ac_ext <<_ACEOF
34352 /* confdefs.h.  */
34353 _ACEOF
34354 cat confdefs.h >>conftest.$ac_ext
34355 cat >>conftest.$ac_ext <<_ACEOF
34356 /* end confdefs.h.  */
34357 $ac_includes_default
34358 int
34359 main ()
34360 {
34361 static struct stat ac_aggr;
34362 if (ac_aggr.st_rdev)
34363 return 0;
34364   ;
34365   return 0;
34366 }
34367 _ACEOF
34368 rm -f conftest.$ac_objext
34369 if { (ac_try="$ac_compile"
34370 case "(($ac_try" in
34371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34372   *) ac_try_echo=$ac_try;;
34373 esac
34374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34375   (eval "$ac_compile") 2>conftest.er1
34376   ac_status=$?
34377   grep -v '^ *+' conftest.er1 >conftest.err
34378   rm -f conftest.er1
34379   cat conftest.err >&5
34380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381   (exit $ac_status); } && {
34382          test -z "$ac_c_werror_flag" ||
34383          test ! -s conftest.err
34384        } && test -s conftest.$ac_objext; then
34385   ac_cv_member_struct_stat_st_rdev=yes
34386 else
34387   echo "$as_me: failed program was:" >&5
34388 sed 's/^/| /' conftest.$ac_ext >&5
34389
34390         cat >conftest.$ac_ext <<_ACEOF
34391 /* confdefs.h.  */
34392 _ACEOF
34393 cat confdefs.h >>conftest.$ac_ext
34394 cat >>conftest.$ac_ext <<_ACEOF
34395 /* end confdefs.h.  */
34396 $ac_includes_default
34397 int
34398 main ()
34399 {
34400 static struct stat ac_aggr;
34401 if (sizeof ac_aggr.st_rdev)
34402 return 0;
34403   ;
34404   return 0;
34405 }
34406 _ACEOF
34407 rm -f conftest.$ac_objext
34408 if { (ac_try="$ac_compile"
34409 case "(($ac_try" in
34410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34411   *) ac_try_echo=$ac_try;;
34412 esac
34413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34414   (eval "$ac_compile") 2>conftest.er1
34415   ac_status=$?
34416   grep -v '^ *+' conftest.er1 >conftest.err
34417   rm -f conftest.er1
34418   cat conftest.err >&5
34419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34420   (exit $ac_status); } && {
34421          test -z "$ac_c_werror_flag" ||
34422          test ! -s conftest.err
34423        } && test -s conftest.$ac_objext; then
34424   ac_cv_member_struct_stat_st_rdev=yes
34425 else
34426   echo "$as_me: failed program was:" >&5
34427 sed 's/^/| /' conftest.$ac_ext >&5
34428
34429         ac_cv_member_struct_stat_st_rdev=no
34430 fi
34431
34432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34433 fi
34434
34435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34436 fi
34437 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34438 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34439 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34440
34441 cat >>confdefs.h <<_ACEOF
34442 #define HAVE_STRUCT_STAT_ST_RDEV 1
34443 _ACEOF
34444
34445
34446 cat >>confdefs.h <<\_ACEOF
34447 #define HAVE_ST_RDEV 1
34448 _ACEOF
34449
34450 fi
34451
34452
34453 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34454 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34455 if test "${ac_cv_struct_tm+set}" = set; then
34456   echo $ECHO_N "(cached) $ECHO_C" >&6
34457 else
34458   cat >conftest.$ac_ext <<_ACEOF
34459 /* confdefs.h.  */
34460 _ACEOF
34461 cat confdefs.h >>conftest.$ac_ext
34462 cat >>conftest.$ac_ext <<_ACEOF
34463 /* end confdefs.h.  */
34464 #include <sys/types.h>
34465 #include <time.h>
34466
34467 int
34468 main ()
34469 {
34470 struct tm tm;
34471                                      int *p = &tm.tm_sec;
34472                                      return !p;
34473   ;
34474   return 0;
34475 }
34476 _ACEOF
34477 rm -f conftest.$ac_objext
34478 if { (ac_try="$ac_compile"
34479 case "(($ac_try" in
34480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34481   *) ac_try_echo=$ac_try;;
34482 esac
34483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34484   (eval "$ac_compile") 2>conftest.er1
34485   ac_status=$?
34486   grep -v '^ *+' conftest.er1 >conftest.err
34487   rm -f conftest.er1
34488   cat conftest.err >&5
34489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490   (exit $ac_status); } && {
34491          test -z "$ac_c_werror_flag" ||
34492          test ! -s conftest.err
34493        } && test -s conftest.$ac_objext; then
34494   ac_cv_struct_tm=time.h
34495 else
34496   echo "$as_me: failed program was:" >&5
34497 sed 's/^/| /' conftest.$ac_ext >&5
34498
34499         ac_cv_struct_tm=sys/time.h
34500 fi
34501
34502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34503 fi
34504 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34505 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34506 if test $ac_cv_struct_tm = sys/time.h; then
34507
34508 cat >>confdefs.h <<\_ACEOF
34509 #define TM_IN_SYS_TIME 1
34510 _ACEOF
34511
34512 fi
34513
34514 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34515 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34516 if test "${ac_cv_c_const+set}" = set; then
34517   echo $ECHO_N "(cached) $ECHO_C" >&6
34518 else
34519   cat >conftest.$ac_ext <<_ACEOF
34520 /* confdefs.h.  */
34521 _ACEOF
34522 cat confdefs.h >>conftest.$ac_ext
34523 cat >>conftest.$ac_ext <<_ACEOF
34524 /* end confdefs.h.  */
34525
34526 int
34527 main ()
34528 {
34529 /* FIXME: Include the comments suggested by Paul. */
34530 #ifndef __cplusplus
34531   /* Ultrix mips cc rejects this.  */
34532   typedef int charset[2];
34533   const charset cs;
34534   /* SunOS 4.1.1 cc rejects this.  */
34535   char const *const *pcpcc;
34536   char **ppc;
34537   /* NEC SVR4.0.2 mips cc rejects this.  */
34538   struct point {int x, y;};
34539   static struct point const zero = {0,0};
34540   /* AIX XL C 1.02.0.0 rejects this.
34541      It does not let you subtract one const X* pointer from another in
34542      an arm of an if-expression whose if-part is not a constant
34543      expression */
34544   const char *g = "string";
34545   pcpcc = &g + (g ? g-g : 0);
34546   /* HPUX 7.0 cc rejects these. */
34547   ++pcpcc;
34548   ppc = (char**) pcpcc;
34549   pcpcc = (char const *const *) ppc;
34550   { /* SCO 3.2v4 cc rejects this.  */
34551     char *t;
34552     char const *s = 0 ? (char *) 0 : (char const *) 0;
34553
34554     *t++ = 0;
34555     if (s) return 0;
34556   }
34557   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34558     int x[] = {25, 17};
34559     const int *foo = &x[0];
34560     ++foo;
34561   }
34562   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34563     typedef const int *iptr;
34564     iptr p = 0;
34565     ++p;
34566   }
34567   { /* AIX XL C 1.02.0.0 rejects this saying
34568        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34569     struct s { int j; const int *ap[3]; };
34570     struct s *b; b->j = 5;
34571   }
34572   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34573     const int foo = 10;
34574     if (!foo) return 0;
34575   }
34576   return !cs[0] && !zero.x;
34577 #endif
34578
34579   ;
34580   return 0;
34581 }
34582 _ACEOF
34583 rm -f conftest.$ac_objext
34584 if { (ac_try="$ac_compile"
34585 case "(($ac_try" in
34586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34587   *) ac_try_echo=$ac_try;;
34588 esac
34589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34590   (eval "$ac_compile") 2>conftest.er1
34591   ac_status=$?
34592   grep -v '^ *+' conftest.er1 >conftest.err
34593   rm -f conftest.er1
34594   cat conftest.err >&5
34595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34596   (exit $ac_status); } && {
34597          test -z "$ac_c_werror_flag" ||
34598          test ! -s conftest.err
34599        } && test -s conftest.$ac_objext; then
34600   ac_cv_c_const=yes
34601 else
34602   echo "$as_me: failed program was:" >&5
34603 sed 's/^/| /' conftest.$ac_ext >&5
34604
34605         ac_cv_c_const=no
34606 fi
34607
34608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34609 fi
34610 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34611 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34612 if test $ac_cv_c_const = no; then
34613
34614 cat >>confdefs.h <<\_ACEOF
34615 #define const
34616 _ACEOF
34617
34618 fi
34619
34620
34621 { echo "$as_me:$LINENO: checking for char" >&5
34622 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34623 if test "${ac_cv_type_char+set}" = set; then
34624   echo $ECHO_N "(cached) $ECHO_C" >&6
34625 else
34626   cat >conftest.$ac_ext <<_ACEOF
34627 /* confdefs.h.  */
34628 _ACEOF
34629 cat confdefs.h >>conftest.$ac_ext
34630 cat >>conftest.$ac_ext <<_ACEOF
34631 /* end confdefs.h.  */
34632 $ac_includes_default
34633 typedef char ac__type_new_;
34634 int
34635 main ()
34636 {
34637 if ((ac__type_new_ *) 0)
34638   return 0;
34639 if (sizeof (ac__type_new_))
34640   return 0;
34641   ;
34642   return 0;
34643 }
34644 _ACEOF
34645 rm -f conftest.$ac_objext
34646 if { (ac_try="$ac_compile"
34647 case "(($ac_try" in
34648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34649   *) ac_try_echo=$ac_try;;
34650 esac
34651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34652   (eval "$ac_compile") 2>conftest.er1
34653   ac_status=$?
34654   grep -v '^ *+' conftest.er1 >conftest.err
34655   rm -f conftest.er1
34656   cat conftest.err >&5
34657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658   (exit $ac_status); } && {
34659          test -z "$ac_c_werror_flag" ||
34660          test ! -s conftest.err
34661        } && test -s conftest.$ac_objext; then
34662   ac_cv_type_char=yes
34663 else
34664   echo "$as_me: failed program was:" >&5
34665 sed 's/^/| /' conftest.$ac_ext >&5
34666
34667         ac_cv_type_char=no
34668 fi
34669
34670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34671 fi
34672 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34673 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34674
34675 # The cast to long int works around a bug in the HP C Compiler
34676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34678 # This bug is HP SR number 8606223364.
34679 { echo "$as_me:$LINENO: checking size of char" >&5
34680 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34681 if test "${ac_cv_sizeof_char+set}" = set; then
34682   echo $ECHO_N "(cached) $ECHO_C" >&6
34683 else
34684   if test "$cross_compiling" = yes; then
34685   # Depending upon the size, compute the lo and hi bounds.
34686 cat >conftest.$ac_ext <<_ACEOF
34687 /* confdefs.h.  */
34688 _ACEOF
34689 cat confdefs.h >>conftest.$ac_ext
34690 cat >>conftest.$ac_ext <<_ACEOF
34691 /* end confdefs.h.  */
34692 $ac_includes_default
34693    typedef char ac__type_sizeof_;
34694 int
34695 main ()
34696 {
34697 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34698 test_array [0] = 0
34699
34700   ;
34701   return 0;
34702 }
34703 _ACEOF
34704 rm -f conftest.$ac_objext
34705 if { (ac_try="$ac_compile"
34706 case "(($ac_try" in
34707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34708   *) ac_try_echo=$ac_try;;
34709 esac
34710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34711   (eval "$ac_compile") 2>conftest.er1
34712   ac_status=$?
34713   grep -v '^ *+' conftest.er1 >conftest.err
34714   rm -f conftest.er1
34715   cat conftest.err >&5
34716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34717   (exit $ac_status); } && {
34718          test -z "$ac_c_werror_flag" ||
34719          test ! -s conftest.err
34720        } && test -s conftest.$ac_objext; then
34721   ac_lo=0 ac_mid=0
34722   while :; do
34723     cat >conftest.$ac_ext <<_ACEOF
34724 /* confdefs.h.  */
34725 _ACEOF
34726 cat confdefs.h >>conftest.$ac_ext
34727 cat >>conftest.$ac_ext <<_ACEOF
34728 /* end confdefs.h.  */
34729 $ac_includes_default
34730    typedef char ac__type_sizeof_;
34731 int
34732 main ()
34733 {
34734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34735 test_array [0] = 0
34736
34737   ;
34738   return 0;
34739 }
34740 _ACEOF
34741 rm -f conftest.$ac_objext
34742 if { (ac_try="$ac_compile"
34743 case "(($ac_try" in
34744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34745   *) ac_try_echo=$ac_try;;
34746 esac
34747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34748   (eval "$ac_compile") 2>conftest.er1
34749   ac_status=$?
34750   grep -v '^ *+' conftest.er1 >conftest.err
34751   rm -f conftest.er1
34752   cat conftest.err >&5
34753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34754   (exit $ac_status); } && {
34755          test -z "$ac_c_werror_flag" ||
34756          test ! -s conftest.err
34757        } && test -s conftest.$ac_objext; then
34758   ac_hi=$ac_mid; break
34759 else
34760   echo "$as_me: failed program was:" >&5
34761 sed 's/^/| /' conftest.$ac_ext >&5
34762
34763         ac_lo=`expr $ac_mid + 1`
34764                         if test $ac_lo -le $ac_mid; then
34765                           ac_lo= ac_hi=
34766                           break
34767                         fi
34768                         ac_mid=`expr 2 '*' $ac_mid + 1`
34769 fi
34770
34771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34772   done
34773 else
34774   echo "$as_me: failed program was:" >&5
34775 sed 's/^/| /' conftest.$ac_ext >&5
34776
34777         cat >conftest.$ac_ext <<_ACEOF
34778 /* confdefs.h.  */
34779 _ACEOF
34780 cat confdefs.h >>conftest.$ac_ext
34781 cat >>conftest.$ac_ext <<_ACEOF
34782 /* end confdefs.h.  */
34783 $ac_includes_default
34784    typedef char ac__type_sizeof_;
34785 int
34786 main ()
34787 {
34788 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34789 test_array [0] = 0
34790
34791   ;
34792   return 0;
34793 }
34794 _ACEOF
34795 rm -f conftest.$ac_objext
34796 if { (ac_try="$ac_compile"
34797 case "(($ac_try" in
34798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34799   *) ac_try_echo=$ac_try;;
34800 esac
34801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34802   (eval "$ac_compile") 2>conftest.er1
34803   ac_status=$?
34804   grep -v '^ *+' conftest.er1 >conftest.err
34805   rm -f conftest.er1
34806   cat conftest.err >&5
34807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808   (exit $ac_status); } && {
34809          test -z "$ac_c_werror_flag" ||
34810          test ! -s conftest.err
34811        } && test -s conftest.$ac_objext; then
34812   ac_hi=-1 ac_mid=-1
34813   while :; do
34814     cat >conftest.$ac_ext <<_ACEOF
34815 /* confdefs.h.  */
34816 _ACEOF
34817 cat confdefs.h >>conftest.$ac_ext
34818 cat >>conftest.$ac_ext <<_ACEOF
34819 /* end confdefs.h.  */
34820 $ac_includes_default
34821    typedef char ac__type_sizeof_;
34822 int
34823 main ()
34824 {
34825 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34826 test_array [0] = 0
34827
34828   ;
34829   return 0;
34830 }
34831 _ACEOF
34832 rm -f conftest.$ac_objext
34833 if { (ac_try="$ac_compile"
34834 case "(($ac_try" in
34835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34836   *) ac_try_echo=$ac_try;;
34837 esac
34838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34839   (eval "$ac_compile") 2>conftest.er1
34840   ac_status=$?
34841   grep -v '^ *+' conftest.er1 >conftest.err
34842   rm -f conftest.er1
34843   cat conftest.err >&5
34844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845   (exit $ac_status); } && {
34846          test -z "$ac_c_werror_flag" ||
34847          test ! -s conftest.err
34848        } && test -s conftest.$ac_objext; then
34849   ac_lo=$ac_mid; break
34850 else
34851   echo "$as_me: failed program was:" >&5
34852 sed 's/^/| /' conftest.$ac_ext >&5
34853
34854         ac_hi=`expr '(' $ac_mid ')' - 1`
34855                         if test $ac_mid -le $ac_hi; then
34856                           ac_lo= ac_hi=
34857                           break
34858                         fi
34859                         ac_mid=`expr 2 '*' $ac_mid`
34860 fi
34861
34862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34863   done
34864 else
34865   echo "$as_me: failed program was:" >&5
34866 sed 's/^/| /' conftest.$ac_ext >&5
34867
34868         ac_lo= ac_hi=
34869 fi
34870
34871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34872 fi
34873
34874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875 # Binary search between lo and hi bounds.
34876 while test "x$ac_lo" != "x$ac_hi"; do
34877   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34878   cat >conftest.$ac_ext <<_ACEOF
34879 /* confdefs.h.  */
34880 _ACEOF
34881 cat confdefs.h >>conftest.$ac_ext
34882 cat >>conftest.$ac_ext <<_ACEOF
34883 /* end confdefs.h.  */
34884 $ac_includes_default
34885    typedef char ac__type_sizeof_;
34886 int
34887 main ()
34888 {
34889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34890 test_array [0] = 0
34891
34892   ;
34893   return 0;
34894 }
34895 _ACEOF
34896 rm -f conftest.$ac_objext
34897 if { (ac_try="$ac_compile"
34898 case "(($ac_try" in
34899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34900   *) ac_try_echo=$ac_try;;
34901 esac
34902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34903   (eval "$ac_compile") 2>conftest.er1
34904   ac_status=$?
34905   grep -v '^ *+' conftest.er1 >conftest.err
34906   rm -f conftest.er1
34907   cat conftest.err >&5
34908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34909   (exit $ac_status); } && {
34910          test -z "$ac_c_werror_flag" ||
34911          test ! -s conftest.err
34912        } && test -s conftest.$ac_objext; then
34913   ac_hi=$ac_mid
34914 else
34915   echo "$as_me: failed program was:" >&5
34916 sed 's/^/| /' conftest.$ac_ext >&5
34917
34918         ac_lo=`expr '(' $ac_mid ')' + 1`
34919 fi
34920
34921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34922 done
34923 case $ac_lo in
34924 ?*) ac_cv_sizeof_char=$ac_lo;;
34925 '') if test "$ac_cv_type_char" = yes; then
34926      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34927 See \`config.log' for more details." >&5
34928 echo "$as_me: error: cannot compute sizeof (char)
34929 See \`config.log' for more details." >&2;}
34930    { (exit 77); exit 77; }; }
34931    else
34932      ac_cv_sizeof_char=0
34933    fi ;;
34934 esac
34935 else
34936   cat >conftest.$ac_ext <<_ACEOF
34937 /* confdefs.h.  */
34938 _ACEOF
34939 cat confdefs.h >>conftest.$ac_ext
34940 cat >>conftest.$ac_ext <<_ACEOF
34941 /* end confdefs.h.  */
34942 $ac_includes_default
34943    typedef char ac__type_sizeof_;
34944 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34945 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34946 #include <stdio.h>
34947 #include <stdlib.h>
34948 int
34949 main ()
34950 {
34951
34952   FILE *f = fopen ("conftest.val", "w");
34953   if (! f)
34954     return 1;
34955   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34956     {
34957       long int i = longval ();
34958       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34959         return 1;
34960       fprintf (f, "%ld\n", i);
34961     }
34962   else
34963     {
34964       unsigned long int i = ulongval ();
34965       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34966         return 1;
34967       fprintf (f, "%lu\n", i);
34968     }
34969   return ferror (f) || fclose (f) != 0;
34970
34971   ;
34972   return 0;
34973 }
34974 _ACEOF
34975 rm -f conftest$ac_exeext
34976 if { (ac_try="$ac_link"
34977 case "(($ac_try" in
34978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34979   *) ac_try_echo=$ac_try;;
34980 esac
34981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34982   (eval "$ac_link") 2>&5
34983   ac_status=$?
34984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34985   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34986   { (case "(($ac_try" in
34987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34988   *) ac_try_echo=$ac_try;;
34989 esac
34990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34991   (eval "$ac_try") 2>&5
34992   ac_status=$?
34993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994   (exit $ac_status); }; }; then
34995   ac_cv_sizeof_char=`cat conftest.val`
34996 else
34997   echo "$as_me: program exited with status $ac_status" >&5
34998 echo "$as_me: failed program was:" >&5
34999 sed 's/^/| /' conftest.$ac_ext >&5
35000
35001 ( exit $ac_status )
35002 if test "$ac_cv_type_char" = yes; then
35003      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35004 See \`config.log' for more details." >&5
35005 echo "$as_me: error: cannot compute sizeof (char)
35006 See \`config.log' for more details." >&2;}
35007    { (exit 77); exit 77; }; }
35008    else
35009      ac_cv_sizeof_char=0
35010    fi
35011 fi
35012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35013 fi
35014 rm -f conftest.val
35015 fi
35016 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35017 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35018
35019
35020
35021 cat >>confdefs.h <<_ACEOF
35022 #define SIZEOF_CHAR $ac_cv_sizeof_char
35023 _ACEOF
35024
35025
35026 { echo "$as_me:$LINENO: checking for short int" >&5
35027 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35028 if test "${ac_cv_type_short_int+set}" = set; then
35029   echo $ECHO_N "(cached) $ECHO_C" >&6
35030 else
35031   cat >conftest.$ac_ext <<_ACEOF
35032 /* confdefs.h.  */
35033 _ACEOF
35034 cat confdefs.h >>conftest.$ac_ext
35035 cat >>conftest.$ac_ext <<_ACEOF
35036 /* end confdefs.h.  */
35037 $ac_includes_default
35038 typedef short int ac__type_new_;
35039 int
35040 main ()
35041 {
35042 if ((ac__type_new_ *) 0)
35043   return 0;
35044 if (sizeof (ac__type_new_))
35045   return 0;
35046   ;
35047   return 0;
35048 }
35049 _ACEOF
35050 rm -f conftest.$ac_objext
35051 if { (ac_try="$ac_compile"
35052 case "(($ac_try" in
35053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35054   *) ac_try_echo=$ac_try;;
35055 esac
35056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35057   (eval "$ac_compile") 2>conftest.er1
35058   ac_status=$?
35059   grep -v '^ *+' conftest.er1 >conftest.err
35060   rm -f conftest.er1
35061   cat conftest.err >&5
35062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35063   (exit $ac_status); } && {
35064          test -z "$ac_c_werror_flag" ||
35065          test ! -s conftest.err
35066        } && test -s conftest.$ac_objext; then
35067   ac_cv_type_short_int=yes
35068 else
35069   echo "$as_me: failed program was:" >&5
35070 sed 's/^/| /' conftest.$ac_ext >&5
35071
35072         ac_cv_type_short_int=no
35073 fi
35074
35075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35076 fi
35077 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35078 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35079
35080 # The cast to long int works around a bug in the HP C Compiler
35081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35083 # This bug is HP SR number 8606223364.
35084 { echo "$as_me:$LINENO: checking size of short int" >&5
35085 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35086 if test "${ac_cv_sizeof_short_int+set}" = set; then
35087   echo $ECHO_N "(cached) $ECHO_C" >&6
35088 else
35089   if test "$cross_compiling" = yes; then
35090   # Depending upon the size, compute the lo and hi bounds.
35091 cat >conftest.$ac_ext <<_ACEOF
35092 /* confdefs.h.  */
35093 _ACEOF
35094 cat confdefs.h >>conftest.$ac_ext
35095 cat >>conftest.$ac_ext <<_ACEOF
35096 /* end confdefs.h.  */
35097 $ac_includes_default
35098    typedef short int ac__type_sizeof_;
35099 int
35100 main ()
35101 {
35102 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35103 test_array [0] = 0
35104
35105   ;
35106   return 0;
35107 }
35108 _ACEOF
35109 rm -f conftest.$ac_objext
35110 if { (ac_try="$ac_compile"
35111 case "(($ac_try" in
35112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35113   *) ac_try_echo=$ac_try;;
35114 esac
35115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35116   (eval "$ac_compile") 2>conftest.er1
35117   ac_status=$?
35118   grep -v '^ *+' conftest.er1 >conftest.err
35119   rm -f conftest.er1
35120   cat conftest.err >&5
35121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122   (exit $ac_status); } && {
35123          test -z "$ac_c_werror_flag" ||
35124          test ! -s conftest.err
35125        } && test -s conftest.$ac_objext; then
35126   ac_lo=0 ac_mid=0
35127   while :; do
35128     cat >conftest.$ac_ext <<_ACEOF
35129 /* confdefs.h.  */
35130 _ACEOF
35131 cat confdefs.h >>conftest.$ac_ext
35132 cat >>conftest.$ac_ext <<_ACEOF
35133 /* end confdefs.h.  */
35134 $ac_includes_default
35135    typedef short int ac__type_sizeof_;
35136 int
35137 main ()
35138 {
35139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35140 test_array [0] = 0
35141
35142   ;
35143   return 0;
35144 }
35145 _ACEOF
35146 rm -f conftest.$ac_objext
35147 if { (ac_try="$ac_compile"
35148 case "(($ac_try" in
35149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35150   *) ac_try_echo=$ac_try;;
35151 esac
35152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35153   (eval "$ac_compile") 2>conftest.er1
35154   ac_status=$?
35155   grep -v '^ *+' conftest.er1 >conftest.err
35156   rm -f conftest.er1
35157   cat conftest.err >&5
35158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159   (exit $ac_status); } && {
35160          test -z "$ac_c_werror_flag" ||
35161          test ! -s conftest.err
35162        } && test -s conftest.$ac_objext; then
35163   ac_hi=$ac_mid; break
35164 else
35165   echo "$as_me: failed program was:" >&5
35166 sed 's/^/| /' conftest.$ac_ext >&5
35167
35168         ac_lo=`expr $ac_mid + 1`
35169                         if test $ac_lo -le $ac_mid; then
35170                           ac_lo= ac_hi=
35171                           break
35172                         fi
35173                         ac_mid=`expr 2 '*' $ac_mid + 1`
35174 fi
35175
35176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35177   done
35178 else
35179   echo "$as_me: failed program was:" >&5
35180 sed 's/^/| /' conftest.$ac_ext >&5
35181
35182         cat >conftest.$ac_ext <<_ACEOF
35183 /* confdefs.h.  */
35184 _ACEOF
35185 cat confdefs.h >>conftest.$ac_ext
35186 cat >>conftest.$ac_ext <<_ACEOF
35187 /* end confdefs.h.  */
35188 $ac_includes_default
35189    typedef short int ac__type_sizeof_;
35190 int
35191 main ()
35192 {
35193 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35194 test_array [0] = 0
35195
35196   ;
35197   return 0;
35198 }
35199 _ACEOF
35200 rm -f conftest.$ac_objext
35201 if { (ac_try="$ac_compile"
35202 case "(($ac_try" in
35203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35204   *) ac_try_echo=$ac_try;;
35205 esac
35206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35207   (eval "$ac_compile") 2>conftest.er1
35208   ac_status=$?
35209   grep -v '^ *+' conftest.er1 >conftest.err
35210   rm -f conftest.er1
35211   cat conftest.err >&5
35212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213   (exit $ac_status); } && {
35214          test -z "$ac_c_werror_flag" ||
35215          test ! -s conftest.err
35216        } && test -s conftest.$ac_objext; then
35217   ac_hi=-1 ac_mid=-1
35218   while :; do
35219     cat >conftest.$ac_ext <<_ACEOF
35220 /* confdefs.h.  */
35221 _ACEOF
35222 cat confdefs.h >>conftest.$ac_ext
35223 cat >>conftest.$ac_ext <<_ACEOF
35224 /* end confdefs.h.  */
35225 $ac_includes_default
35226    typedef short int ac__type_sizeof_;
35227 int
35228 main ()
35229 {
35230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35231 test_array [0] = 0
35232
35233   ;
35234   return 0;
35235 }
35236 _ACEOF
35237 rm -f conftest.$ac_objext
35238 if { (ac_try="$ac_compile"
35239 case "(($ac_try" in
35240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35241   *) ac_try_echo=$ac_try;;
35242 esac
35243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35244   (eval "$ac_compile") 2>conftest.er1
35245   ac_status=$?
35246   grep -v '^ *+' conftest.er1 >conftest.err
35247   rm -f conftest.er1
35248   cat conftest.err >&5
35249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250   (exit $ac_status); } && {
35251          test -z "$ac_c_werror_flag" ||
35252          test ! -s conftest.err
35253        } && test -s conftest.$ac_objext; then
35254   ac_lo=$ac_mid; break
35255 else
35256   echo "$as_me: failed program was:" >&5
35257 sed 's/^/| /' conftest.$ac_ext >&5
35258
35259         ac_hi=`expr '(' $ac_mid ')' - 1`
35260                         if test $ac_mid -le $ac_hi; then
35261                           ac_lo= ac_hi=
35262                           break
35263                         fi
35264                         ac_mid=`expr 2 '*' $ac_mid`
35265 fi
35266
35267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35268   done
35269 else
35270   echo "$as_me: failed program was:" >&5
35271 sed 's/^/| /' conftest.$ac_ext >&5
35272
35273         ac_lo= ac_hi=
35274 fi
35275
35276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35277 fi
35278
35279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35280 # Binary search between lo and hi bounds.
35281 while test "x$ac_lo" != "x$ac_hi"; do
35282   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35283   cat >conftest.$ac_ext <<_ACEOF
35284 /* confdefs.h.  */
35285 _ACEOF
35286 cat confdefs.h >>conftest.$ac_ext
35287 cat >>conftest.$ac_ext <<_ACEOF
35288 /* end confdefs.h.  */
35289 $ac_includes_default
35290    typedef short int ac__type_sizeof_;
35291 int
35292 main ()
35293 {
35294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35295 test_array [0] = 0
35296
35297   ;
35298   return 0;
35299 }
35300 _ACEOF
35301 rm -f conftest.$ac_objext
35302 if { (ac_try="$ac_compile"
35303 case "(($ac_try" in
35304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35305   *) ac_try_echo=$ac_try;;
35306 esac
35307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35308   (eval "$ac_compile") 2>conftest.er1
35309   ac_status=$?
35310   grep -v '^ *+' conftest.er1 >conftest.err
35311   rm -f conftest.er1
35312   cat conftest.err >&5
35313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314   (exit $ac_status); } && {
35315          test -z "$ac_c_werror_flag" ||
35316          test ! -s conftest.err
35317        } && test -s conftest.$ac_objext; then
35318   ac_hi=$ac_mid
35319 else
35320   echo "$as_me: failed program was:" >&5
35321 sed 's/^/| /' conftest.$ac_ext >&5
35322
35323         ac_lo=`expr '(' $ac_mid ')' + 1`
35324 fi
35325
35326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35327 done
35328 case $ac_lo in
35329 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35330 '') if test "$ac_cv_type_short_int" = yes; then
35331      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35332 See \`config.log' for more details." >&5
35333 echo "$as_me: error: cannot compute sizeof (short int)
35334 See \`config.log' for more details." >&2;}
35335    { (exit 77); exit 77; }; }
35336    else
35337      ac_cv_sizeof_short_int=0
35338    fi ;;
35339 esac
35340 else
35341   cat >conftest.$ac_ext <<_ACEOF
35342 /* confdefs.h.  */
35343 _ACEOF
35344 cat confdefs.h >>conftest.$ac_ext
35345 cat >>conftest.$ac_ext <<_ACEOF
35346 /* end confdefs.h.  */
35347 $ac_includes_default
35348    typedef short int ac__type_sizeof_;
35349 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35350 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35351 #include <stdio.h>
35352 #include <stdlib.h>
35353 int
35354 main ()
35355 {
35356
35357   FILE *f = fopen ("conftest.val", "w");
35358   if (! f)
35359     return 1;
35360   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35361     {
35362       long int i = longval ();
35363       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35364         return 1;
35365       fprintf (f, "%ld\n", i);
35366     }
35367   else
35368     {
35369       unsigned long int i = ulongval ();
35370       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35371         return 1;
35372       fprintf (f, "%lu\n", i);
35373     }
35374   return ferror (f) || fclose (f) != 0;
35375
35376   ;
35377   return 0;
35378 }
35379 _ACEOF
35380 rm -f conftest$ac_exeext
35381 if { (ac_try="$ac_link"
35382 case "(($ac_try" in
35383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35384   *) ac_try_echo=$ac_try;;
35385 esac
35386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35387   (eval "$ac_link") 2>&5
35388   ac_status=$?
35389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35391   { (case "(($ac_try" in
35392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35393   *) ac_try_echo=$ac_try;;
35394 esac
35395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35396   (eval "$ac_try") 2>&5
35397   ac_status=$?
35398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35399   (exit $ac_status); }; }; then
35400   ac_cv_sizeof_short_int=`cat conftest.val`
35401 else
35402   echo "$as_me: program exited with status $ac_status" >&5
35403 echo "$as_me: failed program was:" >&5
35404 sed 's/^/| /' conftest.$ac_ext >&5
35405
35406 ( exit $ac_status )
35407 if test "$ac_cv_type_short_int" = yes; then
35408      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35409 See \`config.log' for more details." >&5
35410 echo "$as_me: error: cannot compute sizeof (short int)
35411 See \`config.log' for more details." >&2;}
35412    { (exit 77); exit 77; }; }
35413    else
35414      ac_cv_sizeof_short_int=0
35415    fi
35416 fi
35417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35418 fi
35419 rm -f conftest.val
35420 fi
35421 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35422 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35423
35424
35425
35426 cat >>confdefs.h <<_ACEOF
35427 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35428 _ACEOF
35429
35430
35431 { echo "$as_me:$LINENO: checking for int" >&5
35432 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35433 if test "${ac_cv_type_int+set}" = set; then
35434   echo $ECHO_N "(cached) $ECHO_C" >&6
35435 else
35436   cat >conftest.$ac_ext <<_ACEOF
35437 /* confdefs.h.  */
35438 _ACEOF
35439 cat confdefs.h >>conftest.$ac_ext
35440 cat >>conftest.$ac_ext <<_ACEOF
35441 /* end confdefs.h.  */
35442 $ac_includes_default
35443 typedef int ac__type_new_;
35444 int
35445 main ()
35446 {
35447 if ((ac__type_new_ *) 0)
35448   return 0;
35449 if (sizeof (ac__type_new_))
35450   return 0;
35451   ;
35452   return 0;
35453 }
35454 _ACEOF
35455 rm -f conftest.$ac_objext
35456 if { (ac_try="$ac_compile"
35457 case "(($ac_try" in
35458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35459   *) ac_try_echo=$ac_try;;
35460 esac
35461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35462   (eval "$ac_compile") 2>conftest.er1
35463   ac_status=$?
35464   grep -v '^ *+' conftest.er1 >conftest.err
35465   rm -f conftest.er1
35466   cat conftest.err >&5
35467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35468   (exit $ac_status); } && {
35469          test -z "$ac_c_werror_flag" ||
35470          test ! -s conftest.err
35471        } && test -s conftest.$ac_objext; then
35472   ac_cv_type_int=yes
35473 else
35474   echo "$as_me: failed program was:" >&5
35475 sed 's/^/| /' conftest.$ac_ext >&5
35476
35477         ac_cv_type_int=no
35478 fi
35479
35480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35481 fi
35482 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35483 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35484
35485 # The cast to long int works around a bug in the HP C Compiler
35486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35488 # This bug is HP SR number 8606223364.
35489 { echo "$as_me:$LINENO: checking size of int" >&5
35490 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35491 if test "${ac_cv_sizeof_int+set}" = set; then
35492   echo $ECHO_N "(cached) $ECHO_C" >&6
35493 else
35494   if test "$cross_compiling" = yes; then
35495   # Depending upon the size, compute the lo and hi bounds.
35496 cat >conftest.$ac_ext <<_ACEOF
35497 /* confdefs.h.  */
35498 _ACEOF
35499 cat confdefs.h >>conftest.$ac_ext
35500 cat >>conftest.$ac_ext <<_ACEOF
35501 /* end confdefs.h.  */
35502 $ac_includes_default
35503    typedef int ac__type_sizeof_;
35504 int
35505 main ()
35506 {
35507 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35508 test_array [0] = 0
35509
35510   ;
35511   return 0;
35512 }
35513 _ACEOF
35514 rm -f conftest.$ac_objext
35515 if { (ac_try="$ac_compile"
35516 case "(($ac_try" in
35517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35518   *) ac_try_echo=$ac_try;;
35519 esac
35520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35521   (eval "$ac_compile") 2>conftest.er1
35522   ac_status=$?
35523   grep -v '^ *+' conftest.er1 >conftest.err
35524   rm -f conftest.er1
35525   cat conftest.err >&5
35526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527   (exit $ac_status); } && {
35528          test -z "$ac_c_werror_flag" ||
35529          test ! -s conftest.err
35530        } && test -s conftest.$ac_objext; then
35531   ac_lo=0 ac_mid=0
35532   while :; do
35533     cat >conftest.$ac_ext <<_ACEOF
35534 /* confdefs.h.  */
35535 _ACEOF
35536 cat confdefs.h >>conftest.$ac_ext
35537 cat >>conftest.$ac_ext <<_ACEOF
35538 /* end confdefs.h.  */
35539 $ac_includes_default
35540    typedef int ac__type_sizeof_;
35541 int
35542 main ()
35543 {
35544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35545 test_array [0] = 0
35546
35547   ;
35548   return 0;
35549 }
35550 _ACEOF
35551 rm -f conftest.$ac_objext
35552 if { (ac_try="$ac_compile"
35553 case "(($ac_try" in
35554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35555   *) ac_try_echo=$ac_try;;
35556 esac
35557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35558   (eval "$ac_compile") 2>conftest.er1
35559   ac_status=$?
35560   grep -v '^ *+' conftest.er1 >conftest.err
35561   rm -f conftest.er1
35562   cat conftest.err >&5
35563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35564   (exit $ac_status); } && {
35565          test -z "$ac_c_werror_flag" ||
35566          test ! -s conftest.err
35567        } && test -s conftest.$ac_objext; then
35568   ac_hi=$ac_mid; break
35569 else
35570   echo "$as_me: failed program was:" >&5
35571 sed 's/^/| /' conftest.$ac_ext >&5
35572
35573         ac_lo=`expr $ac_mid + 1`
35574                         if test $ac_lo -le $ac_mid; then
35575                           ac_lo= ac_hi=
35576                           break
35577                         fi
35578                         ac_mid=`expr 2 '*' $ac_mid + 1`
35579 fi
35580
35581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35582   done
35583 else
35584   echo "$as_me: failed program was:" >&5
35585 sed 's/^/| /' conftest.$ac_ext >&5
35586
35587         cat >conftest.$ac_ext <<_ACEOF
35588 /* confdefs.h.  */
35589 _ACEOF
35590 cat confdefs.h >>conftest.$ac_ext
35591 cat >>conftest.$ac_ext <<_ACEOF
35592 /* end confdefs.h.  */
35593 $ac_includes_default
35594    typedef int ac__type_sizeof_;
35595 int
35596 main ()
35597 {
35598 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35599 test_array [0] = 0
35600
35601   ;
35602   return 0;
35603 }
35604 _ACEOF
35605 rm -f conftest.$ac_objext
35606 if { (ac_try="$ac_compile"
35607 case "(($ac_try" in
35608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35609   *) ac_try_echo=$ac_try;;
35610 esac
35611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35612   (eval "$ac_compile") 2>conftest.er1
35613   ac_status=$?
35614   grep -v '^ *+' conftest.er1 >conftest.err
35615   rm -f conftest.er1
35616   cat conftest.err >&5
35617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618   (exit $ac_status); } && {
35619          test -z "$ac_c_werror_flag" ||
35620          test ! -s conftest.err
35621        } && test -s conftest.$ac_objext; then
35622   ac_hi=-1 ac_mid=-1
35623   while :; do
35624     cat >conftest.$ac_ext <<_ACEOF
35625 /* confdefs.h.  */
35626 _ACEOF
35627 cat confdefs.h >>conftest.$ac_ext
35628 cat >>conftest.$ac_ext <<_ACEOF
35629 /* end confdefs.h.  */
35630 $ac_includes_default
35631    typedef int ac__type_sizeof_;
35632 int
35633 main ()
35634 {
35635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35636 test_array [0] = 0
35637
35638   ;
35639   return 0;
35640 }
35641 _ACEOF
35642 rm -f conftest.$ac_objext
35643 if { (ac_try="$ac_compile"
35644 case "(($ac_try" in
35645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35646   *) ac_try_echo=$ac_try;;
35647 esac
35648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35649   (eval "$ac_compile") 2>conftest.er1
35650   ac_status=$?
35651   grep -v '^ *+' conftest.er1 >conftest.err
35652   rm -f conftest.er1
35653   cat conftest.err >&5
35654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35655   (exit $ac_status); } && {
35656          test -z "$ac_c_werror_flag" ||
35657          test ! -s conftest.err
35658        } && test -s conftest.$ac_objext; then
35659   ac_lo=$ac_mid; break
35660 else
35661   echo "$as_me: failed program was:" >&5
35662 sed 's/^/| /' conftest.$ac_ext >&5
35663
35664         ac_hi=`expr '(' $ac_mid ')' - 1`
35665                         if test $ac_mid -le $ac_hi; then
35666                           ac_lo= ac_hi=
35667                           break
35668                         fi
35669                         ac_mid=`expr 2 '*' $ac_mid`
35670 fi
35671
35672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35673   done
35674 else
35675   echo "$as_me: failed program was:" >&5
35676 sed 's/^/| /' conftest.$ac_ext >&5
35677
35678         ac_lo= ac_hi=
35679 fi
35680
35681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35682 fi
35683
35684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35685 # Binary search between lo and hi bounds.
35686 while test "x$ac_lo" != "x$ac_hi"; do
35687   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35688   cat >conftest.$ac_ext <<_ACEOF
35689 /* confdefs.h.  */
35690 _ACEOF
35691 cat confdefs.h >>conftest.$ac_ext
35692 cat >>conftest.$ac_ext <<_ACEOF
35693 /* end confdefs.h.  */
35694 $ac_includes_default
35695    typedef int ac__type_sizeof_;
35696 int
35697 main ()
35698 {
35699 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35700 test_array [0] = 0
35701
35702   ;
35703   return 0;
35704 }
35705 _ACEOF
35706 rm -f conftest.$ac_objext
35707 if { (ac_try="$ac_compile"
35708 case "(($ac_try" in
35709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35710   *) ac_try_echo=$ac_try;;
35711 esac
35712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35713   (eval "$ac_compile") 2>conftest.er1
35714   ac_status=$?
35715   grep -v '^ *+' conftest.er1 >conftest.err
35716   rm -f conftest.er1
35717   cat conftest.err >&5
35718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719   (exit $ac_status); } && {
35720          test -z "$ac_c_werror_flag" ||
35721          test ! -s conftest.err
35722        } && test -s conftest.$ac_objext; then
35723   ac_hi=$ac_mid
35724 else
35725   echo "$as_me: failed program was:" >&5
35726 sed 's/^/| /' conftest.$ac_ext >&5
35727
35728         ac_lo=`expr '(' $ac_mid ')' + 1`
35729 fi
35730
35731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35732 done
35733 case $ac_lo in
35734 ?*) ac_cv_sizeof_int=$ac_lo;;
35735 '') if test "$ac_cv_type_int" = yes; then
35736      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35737 See \`config.log' for more details." >&5
35738 echo "$as_me: error: cannot compute sizeof (int)
35739 See \`config.log' for more details." >&2;}
35740    { (exit 77); exit 77; }; }
35741    else
35742      ac_cv_sizeof_int=0
35743    fi ;;
35744 esac
35745 else
35746   cat >conftest.$ac_ext <<_ACEOF
35747 /* confdefs.h.  */
35748 _ACEOF
35749 cat confdefs.h >>conftest.$ac_ext
35750 cat >>conftest.$ac_ext <<_ACEOF
35751 /* end confdefs.h.  */
35752 $ac_includes_default
35753    typedef int ac__type_sizeof_;
35754 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35755 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35756 #include <stdio.h>
35757 #include <stdlib.h>
35758 int
35759 main ()
35760 {
35761
35762   FILE *f = fopen ("conftest.val", "w");
35763   if (! f)
35764     return 1;
35765   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35766     {
35767       long int i = longval ();
35768       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35769         return 1;
35770       fprintf (f, "%ld\n", i);
35771     }
35772   else
35773     {
35774       unsigned long int i = ulongval ();
35775       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35776         return 1;
35777       fprintf (f, "%lu\n", i);
35778     }
35779   return ferror (f) || fclose (f) != 0;
35780
35781   ;
35782   return 0;
35783 }
35784 _ACEOF
35785 rm -f conftest$ac_exeext
35786 if { (ac_try="$ac_link"
35787 case "(($ac_try" in
35788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35789   *) ac_try_echo=$ac_try;;
35790 esac
35791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35792   (eval "$ac_link") 2>&5
35793   ac_status=$?
35794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35795   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35796   { (case "(($ac_try" in
35797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35798   *) ac_try_echo=$ac_try;;
35799 esac
35800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35801   (eval "$ac_try") 2>&5
35802   ac_status=$?
35803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804   (exit $ac_status); }; }; then
35805   ac_cv_sizeof_int=`cat conftest.val`
35806 else
35807   echo "$as_me: program exited with status $ac_status" >&5
35808 echo "$as_me: failed program was:" >&5
35809 sed 's/^/| /' conftest.$ac_ext >&5
35810
35811 ( exit $ac_status )
35812 if test "$ac_cv_type_int" = yes; then
35813      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35814 See \`config.log' for more details." >&5
35815 echo "$as_me: error: cannot compute sizeof (int)
35816 See \`config.log' for more details." >&2;}
35817    { (exit 77); exit 77; }; }
35818    else
35819      ac_cv_sizeof_int=0
35820    fi
35821 fi
35822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35823 fi
35824 rm -f conftest.val
35825 fi
35826 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35827 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35828
35829
35830
35831 cat >>confdefs.h <<_ACEOF
35832 #define SIZEOF_INT $ac_cv_sizeof_int
35833 _ACEOF
35834
35835
35836 { echo "$as_me:$LINENO: checking for long int" >&5
35837 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35838 if test "${ac_cv_type_long_int+set}" = set; then
35839   echo $ECHO_N "(cached) $ECHO_C" >&6
35840 else
35841   cat >conftest.$ac_ext <<_ACEOF
35842 /* confdefs.h.  */
35843 _ACEOF
35844 cat confdefs.h >>conftest.$ac_ext
35845 cat >>conftest.$ac_ext <<_ACEOF
35846 /* end confdefs.h.  */
35847 $ac_includes_default
35848 typedef long int ac__type_new_;
35849 int
35850 main ()
35851 {
35852 if ((ac__type_new_ *) 0)
35853   return 0;
35854 if (sizeof (ac__type_new_))
35855   return 0;
35856   ;
35857   return 0;
35858 }
35859 _ACEOF
35860 rm -f conftest.$ac_objext
35861 if { (ac_try="$ac_compile"
35862 case "(($ac_try" in
35863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35864   *) ac_try_echo=$ac_try;;
35865 esac
35866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35867   (eval "$ac_compile") 2>conftest.er1
35868   ac_status=$?
35869   grep -v '^ *+' conftest.er1 >conftest.err
35870   rm -f conftest.er1
35871   cat conftest.err >&5
35872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873   (exit $ac_status); } && {
35874          test -z "$ac_c_werror_flag" ||
35875          test ! -s conftest.err
35876        } && test -s conftest.$ac_objext; then
35877   ac_cv_type_long_int=yes
35878 else
35879   echo "$as_me: failed program was:" >&5
35880 sed 's/^/| /' conftest.$ac_ext >&5
35881
35882         ac_cv_type_long_int=no
35883 fi
35884
35885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35886 fi
35887 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35888 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35889
35890 # The cast to long int works around a bug in the HP C Compiler
35891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35893 # This bug is HP SR number 8606223364.
35894 { echo "$as_me:$LINENO: checking size of long int" >&5
35895 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35896 if test "${ac_cv_sizeof_long_int+set}" = set; then
35897   echo $ECHO_N "(cached) $ECHO_C" >&6
35898 else
35899   if test "$cross_compiling" = yes; then
35900   # Depending upon the size, compute the lo and hi bounds.
35901 cat >conftest.$ac_ext <<_ACEOF
35902 /* confdefs.h.  */
35903 _ACEOF
35904 cat confdefs.h >>conftest.$ac_ext
35905 cat >>conftest.$ac_ext <<_ACEOF
35906 /* end confdefs.h.  */
35907 $ac_includes_default
35908    typedef long int ac__type_sizeof_;
35909 int
35910 main ()
35911 {
35912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35913 test_array [0] = 0
35914
35915   ;
35916   return 0;
35917 }
35918 _ACEOF
35919 rm -f conftest.$ac_objext
35920 if { (ac_try="$ac_compile"
35921 case "(($ac_try" in
35922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35923   *) ac_try_echo=$ac_try;;
35924 esac
35925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35926   (eval "$ac_compile") 2>conftest.er1
35927   ac_status=$?
35928   grep -v '^ *+' conftest.er1 >conftest.err
35929   rm -f conftest.er1
35930   cat conftest.err >&5
35931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932   (exit $ac_status); } && {
35933          test -z "$ac_c_werror_flag" ||
35934          test ! -s conftest.err
35935        } && test -s conftest.$ac_objext; then
35936   ac_lo=0 ac_mid=0
35937   while :; do
35938     cat >conftest.$ac_ext <<_ACEOF
35939 /* confdefs.h.  */
35940 _ACEOF
35941 cat confdefs.h >>conftest.$ac_ext
35942 cat >>conftest.$ac_ext <<_ACEOF
35943 /* end confdefs.h.  */
35944 $ac_includes_default
35945    typedef long int ac__type_sizeof_;
35946 int
35947 main ()
35948 {
35949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35950 test_array [0] = 0
35951
35952   ;
35953   return 0;
35954 }
35955 _ACEOF
35956 rm -f conftest.$ac_objext
35957 if { (ac_try="$ac_compile"
35958 case "(($ac_try" in
35959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35960   *) ac_try_echo=$ac_try;;
35961 esac
35962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35963   (eval "$ac_compile") 2>conftest.er1
35964   ac_status=$?
35965   grep -v '^ *+' conftest.er1 >conftest.err
35966   rm -f conftest.er1
35967   cat conftest.err >&5
35968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35969   (exit $ac_status); } && {
35970          test -z "$ac_c_werror_flag" ||
35971          test ! -s conftest.err
35972        } && test -s conftest.$ac_objext; then
35973   ac_hi=$ac_mid; break
35974 else
35975   echo "$as_me: failed program was:" >&5
35976 sed 's/^/| /' conftest.$ac_ext >&5
35977
35978         ac_lo=`expr $ac_mid + 1`
35979                         if test $ac_lo -le $ac_mid; then
35980                           ac_lo= ac_hi=
35981                           break
35982                         fi
35983                         ac_mid=`expr 2 '*' $ac_mid + 1`
35984 fi
35985
35986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35987   done
35988 else
35989   echo "$as_me: failed program was:" >&5
35990 sed 's/^/| /' conftest.$ac_ext >&5
35991
35992         cat >conftest.$ac_ext <<_ACEOF
35993 /* confdefs.h.  */
35994 _ACEOF
35995 cat confdefs.h >>conftest.$ac_ext
35996 cat >>conftest.$ac_ext <<_ACEOF
35997 /* end confdefs.h.  */
35998 $ac_includes_default
35999    typedef long int ac__type_sizeof_;
36000 int
36001 main ()
36002 {
36003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36004 test_array [0] = 0
36005
36006   ;
36007   return 0;
36008 }
36009 _ACEOF
36010 rm -f conftest.$ac_objext
36011 if { (ac_try="$ac_compile"
36012 case "(($ac_try" in
36013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36014   *) ac_try_echo=$ac_try;;
36015 esac
36016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36017   (eval "$ac_compile") 2>conftest.er1
36018   ac_status=$?
36019   grep -v '^ *+' conftest.er1 >conftest.err
36020   rm -f conftest.er1
36021   cat conftest.err >&5
36022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36023   (exit $ac_status); } && {
36024          test -z "$ac_c_werror_flag" ||
36025          test ! -s conftest.err
36026        } && test -s conftest.$ac_objext; then
36027   ac_hi=-1 ac_mid=-1
36028   while :; do
36029     cat >conftest.$ac_ext <<_ACEOF
36030 /* confdefs.h.  */
36031 _ACEOF
36032 cat confdefs.h >>conftest.$ac_ext
36033 cat >>conftest.$ac_ext <<_ACEOF
36034 /* end confdefs.h.  */
36035 $ac_includes_default
36036    typedef long int ac__type_sizeof_;
36037 int
36038 main ()
36039 {
36040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36041 test_array [0] = 0
36042
36043   ;
36044   return 0;
36045 }
36046 _ACEOF
36047 rm -f conftest.$ac_objext
36048 if { (ac_try="$ac_compile"
36049 case "(($ac_try" in
36050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36051   *) ac_try_echo=$ac_try;;
36052 esac
36053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36054   (eval "$ac_compile") 2>conftest.er1
36055   ac_status=$?
36056   grep -v '^ *+' conftest.er1 >conftest.err
36057   rm -f conftest.er1
36058   cat conftest.err >&5
36059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060   (exit $ac_status); } && {
36061          test -z "$ac_c_werror_flag" ||
36062          test ! -s conftest.err
36063        } && test -s conftest.$ac_objext; then
36064   ac_lo=$ac_mid; break
36065 else
36066   echo "$as_me: failed program was:" >&5
36067 sed 's/^/| /' conftest.$ac_ext >&5
36068
36069         ac_hi=`expr '(' $ac_mid ')' - 1`
36070                         if test $ac_mid -le $ac_hi; then
36071                           ac_lo= ac_hi=
36072                           break
36073                         fi
36074                         ac_mid=`expr 2 '*' $ac_mid`
36075 fi
36076
36077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36078   done
36079 else
36080   echo "$as_me: failed program was:" >&5
36081 sed 's/^/| /' conftest.$ac_ext >&5
36082
36083         ac_lo= ac_hi=
36084 fi
36085
36086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36087 fi
36088
36089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36090 # Binary search between lo and hi bounds.
36091 while test "x$ac_lo" != "x$ac_hi"; do
36092   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36093   cat >conftest.$ac_ext <<_ACEOF
36094 /* confdefs.h.  */
36095 _ACEOF
36096 cat confdefs.h >>conftest.$ac_ext
36097 cat >>conftest.$ac_ext <<_ACEOF
36098 /* end confdefs.h.  */
36099 $ac_includes_default
36100    typedef long int ac__type_sizeof_;
36101 int
36102 main ()
36103 {
36104 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36105 test_array [0] = 0
36106
36107   ;
36108   return 0;
36109 }
36110 _ACEOF
36111 rm -f conftest.$ac_objext
36112 if { (ac_try="$ac_compile"
36113 case "(($ac_try" in
36114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36115   *) ac_try_echo=$ac_try;;
36116 esac
36117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36118   (eval "$ac_compile") 2>conftest.er1
36119   ac_status=$?
36120   grep -v '^ *+' conftest.er1 >conftest.err
36121   rm -f conftest.er1
36122   cat conftest.err >&5
36123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36124   (exit $ac_status); } && {
36125          test -z "$ac_c_werror_flag" ||
36126          test ! -s conftest.err
36127        } && test -s conftest.$ac_objext; then
36128   ac_hi=$ac_mid
36129 else
36130   echo "$as_me: failed program was:" >&5
36131 sed 's/^/| /' conftest.$ac_ext >&5
36132
36133         ac_lo=`expr '(' $ac_mid ')' + 1`
36134 fi
36135
36136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36137 done
36138 case $ac_lo in
36139 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36140 '') if test "$ac_cv_type_long_int" = yes; then
36141      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36142 See \`config.log' for more details." >&5
36143 echo "$as_me: error: cannot compute sizeof (long int)
36144 See \`config.log' for more details." >&2;}
36145    { (exit 77); exit 77; }; }
36146    else
36147      ac_cv_sizeof_long_int=0
36148    fi ;;
36149 esac
36150 else
36151   cat >conftest.$ac_ext <<_ACEOF
36152 /* confdefs.h.  */
36153 _ACEOF
36154 cat confdefs.h >>conftest.$ac_ext
36155 cat >>conftest.$ac_ext <<_ACEOF
36156 /* end confdefs.h.  */
36157 $ac_includes_default
36158    typedef long int ac__type_sizeof_;
36159 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36160 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36161 #include <stdio.h>
36162 #include <stdlib.h>
36163 int
36164 main ()
36165 {
36166
36167   FILE *f = fopen ("conftest.val", "w");
36168   if (! f)
36169     return 1;
36170   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36171     {
36172       long int i = longval ();
36173       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36174         return 1;
36175       fprintf (f, "%ld\n", i);
36176     }
36177   else
36178     {
36179       unsigned long int i = ulongval ();
36180       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36181         return 1;
36182       fprintf (f, "%lu\n", i);
36183     }
36184   return ferror (f) || fclose (f) != 0;
36185
36186   ;
36187   return 0;
36188 }
36189 _ACEOF
36190 rm -f conftest$ac_exeext
36191 if { (ac_try="$ac_link"
36192 case "(($ac_try" in
36193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36194   *) ac_try_echo=$ac_try;;
36195 esac
36196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36197   (eval "$ac_link") 2>&5
36198   ac_status=$?
36199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36200   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36201   { (case "(($ac_try" in
36202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36203   *) ac_try_echo=$ac_try;;
36204 esac
36205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36206   (eval "$ac_try") 2>&5
36207   ac_status=$?
36208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36209   (exit $ac_status); }; }; then
36210   ac_cv_sizeof_long_int=`cat conftest.val`
36211 else
36212   echo "$as_me: program exited with status $ac_status" >&5
36213 echo "$as_me: failed program was:" >&5
36214 sed 's/^/| /' conftest.$ac_ext >&5
36215
36216 ( exit $ac_status )
36217 if test "$ac_cv_type_long_int" = yes; then
36218      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36219 See \`config.log' for more details." >&5
36220 echo "$as_me: error: cannot compute sizeof (long int)
36221 See \`config.log' for more details." >&2;}
36222    { (exit 77); exit 77; }; }
36223    else
36224      ac_cv_sizeof_long_int=0
36225    fi
36226 fi
36227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36228 fi
36229 rm -f conftest.val
36230 fi
36231 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36232 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36233
36234
36235
36236 cat >>confdefs.h <<_ACEOF
36237 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36238 _ACEOF
36239
36240
36241 { echo "$as_me:$LINENO: checking for long long int" >&5
36242 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36243 if test "${ac_cv_type_long_long_int+set}" = set; then
36244   echo $ECHO_N "(cached) $ECHO_C" >&6
36245 else
36246   cat >conftest.$ac_ext <<_ACEOF
36247 /* confdefs.h.  */
36248 _ACEOF
36249 cat confdefs.h >>conftest.$ac_ext
36250 cat >>conftest.$ac_ext <<_ACEOF
36251 /* end confdefs.h.  */
36252 $ac_includes_default
36253 typedef long long int ac__type_new_;
36254 int
36255 main ()
36256 {
36257 if ((ac__type_new_ *) 0)
36258   return 0;
36259 if (sizeof (ac__type_new_))
36260   return 0;
36261   ;
36262   return 0;
36263 }
36264 _ACEOF
36265 rm -f conftest.$ac_objext
36266 if { (ac_try="$ac_compile"
36267 case "(($ac_try" in
36268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36269   *) ac_try_echo=$ac_try;;
36270 esac
36271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36272   (eval "$ac_compile") 2>conftest.er1
36273   ac_status=$?
36274   grep -v '^ *+' conftest.er1 >conftest.err
36275   rm -f conftest.er1
36276   cat conftest.err >&5
36277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36278   (exit $ac_status); } && {
36279          test -z "$ac_c_werror_flag" ||
36280          test ! -s conftest.err
36281        } && test -s conftest.$ac_objext; then
36282   ac_cv_type_long_long_int=yes
36283 else
36284   echo "$as_me: failed program was:" >&5
36285 sed 's/^/| /' conftest.$ac_ext >&5
36286
36287         ac_cv_type_long_long_int=no
36288 fi
36289
36290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36291 fi
36292 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36293 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36294
36295 # The cast to long int works around a bug in the HP C Compiler
36296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36298 # This bug is HP SR number 8606223364.
36299 { echo "$as_me:$LINENO: checking size of long long int" >&5
36300 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36301 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36302   echo $ECHO_N "(cached) $ECHO_C" >&6
36303 else
36304   if test "$cross_compiling" = yes; then
36305   # Depending upon the size, compute the lo and hi bounds.
36306 cat >conftest.$ac_ext <<_ACEOF
36307 /* confdefs.h.  */
36308 _ACEOF
36309 cat confdefs.h >>conftest.$ac_ext
36310 cat >>conftest.$ac_ext <<_ACEOF
36311 /* end confdefs.h.  */
36312 $ac_includes_default
36313    typedef long long int ac__type_sizeof_;
36314 int
36315 main ()
36316 {
36317 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36318 test_array [0] = 0
36319
36320   ;
36321   return 0;
36322 }
36323 _ACEOF
36324 rm -f conftest.$ac_objext
36325 if { (ac_try="$ac_compile"
36326 case "(($ac_try" in
36327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36328   *) ac_try_echo=$ac_try;;
36329 esac
36330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36331   (eval "$ac_compile") 2>conftest.er1
36332   ac_status=$?
36333   grep -v '^ *+' conftest.er1 >conftest.err
36334   rm -f conftest.er1
36335   cat conftest.err >&5
36336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36337   (exit $ac_status); } && {
36338          test -z "$ac_c_werror_flag" ||
36339          test ! -s conftest.err
36340        } && test -s conftest.$ac_objext; then
36341   ac_lo=0 ac_mid=0
36342   while :; do
36343     cat >conftest.$ac_ext <<_ACEOF
36344 /* confdefs.h.  */
36345 _ACEOF
36346 cat confdefs.h >>conftest.$ac_ext
36347 cat >>conftest.$ac_ext <<_ACEOF
36348 /* end confdefs.h.  */
36349 $ac_includes_default
36350    typedef long long int ac__type_sizeof_;
36351 int
36352 main ()
36353 {
36354 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36355 test_array [0] = 0
36356
36357   ;
36358   return 0;
36359 }
36360 _ACEOF
36361 rm -f conftest.$ac_objext
36362 if { (ac_try="$ac_compile"
36363 case "(($ac_try" in
36364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36365   *) ac_try_echo=$ac_try;;
36366 esac
36367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36368   (eval "$ac_compile") 2>conftest.er1
36369   ac_status=$?
36370   grep -v '^ *+' conftest.er1 >conftest.err
36371   rm -f conftest.er1
36372   cat conftest.err >&5
36373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36374   (exit $ac_status); } && {
36375          test -z "$ac_c_werror_flag" ||
36376          test ! -s conftest.err
36377        } && test -s conftest.$ac_objext; then
36378   ac_hi=$ac_mid; break
36379 else
36380   echo "$as_me: failed program was:" >&5
36381 sed 's/^/| /' conftest.$ac_ext >&5
36382
36383         ac_lo=`expr $ac_mid + 1`
36384                         if test $ac_lo -le $ac_mid; then
36385                           ac_lo= ac_hi=
36386                           break
36387                         fi
36388                         ac_mid=`expr 2 '*' $ac_mid + 1`
36389 fi
36390
36391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36392   done
36393 else
36394   echo "$as_me: failed program was:" >&5
36395 sed 's/^/| /' conftest.$ac_ext >&5
36396
36397         cat >conftest.$ac_ext <<_ACEOF
36398 /* confdefs.h.  */
36399 _ACEOF
36400 cat confdefs.h >>conftest.$ac_ext
36401 cat >>conftest.$ac_ext <<_ACEOF
36402 /* end confdefs.h.  */
36403 $ac_includes_default
36404    typedef long long int ac__type_sizeof_;
36405 int
36406 main ()
36407 {
36408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36409 test_array [0] = 0
36410
36411   ;
36412   return 0;
36413 }
36414 _ACEOF
36415 rm -f conftest.$ac_objext
36416 if { (ac_try="$ac_compile"
36417 case "(($ac_try" in
36418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36419   *) ac_try_echo=$ac_try;;
36420 esac
36421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36422   (eval "$ac_compile") 2>conftest.er1
36423   ac_status=$?
36424   grep -v '^ *+' conftest.er1 >conftest.err
36425   rm -f conftest.er1
36426   cat conftest.err >&5
36427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428   (exit $ac_status); } && {
36429          test -z "$ac_c_werror_flag" ||
36430          test ! -s conftest.err
36431        } && test -s conftest.$ac_objext; then
36432   ac_hi=-1 ac_mid=-1
36433   while :; do
36434     cat >conftest.$ac_ext <<_ACEOF
36435 /* confdefs.h.  */
36436 _ACEOF
36437 cat confdefs.h >>conftest.$ac_ext
36438 cat >>conftest.$ac_ext <<_ACEOF
36439 /* end confdefs.h.  */
36440 $ac_includes_default
36441    typedef long long int ac__type_sizeof_;
36442 int
36443 main ()
36444 {
36445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36446 test_array [0] = 0
36447
36448   ;
36449   return 0;
36450 }
36451 _ACEOF
36452 rm -f conftest.$ac_objext
36453 if { (ac_try="$ac_compile"
36454 case "(($ac_try" in
36455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36456   *) ac_try_echo=$ac_try;;
36457 esac
36458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36459   (eval "$ac_compile") 2>conftest.er1
36460   ac_status=$?
36461   grep -v '^ *+' conftest.er1 >conftest.err
36462   rm -f conftest.er1
36463   cat conftest.err >&5
36464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36465   (exit $ac_status); } && {
36466          test -z "$ac_c_werror_flag" ||
36467          test ! -s conftest.err
36468        } && test -s conftest.$ac_objext; then
36469   ac_lo=$ac_mid; break
36470 else
36471   echo "$as_me: failed program was:" >&5
36472 sed 's/^/| /' conftest.$ac_ext >&5
36473
36474         ac_hi=`expr '(' $ac_mid ')' - 1`
36475                         if test $ac_mid -le $ac_hi; then
36476                           ac_lo= ac_hi=
36477                           break
36478                         fi
36479                         ac_mid=`expr 2 '*' $ac_mid`
36480 fi
36481
36482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36483   done
36484 else
36485   echo "$as_me: failed program was:" >&5
36486 sed 's/^/| /' conftest.$ac_ext >&5
36487
36488         ac_lo= ac_hi=
36489 fi
36490
36491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36492 fi
36493
36494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36495 # Binary search between lo and hi bounds.
36496 while test "x$ac_lo" != "x$ac_hi"; do
36497   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36498   cat >conftest.$ac_ext <<_ACEOF
36499 /* confdefs.h.  */
36500 _ACEOF
36501 cat confdefs.h >>conftest.$ac_ext
36502 cat >>conftest.$ac_ext <<_ACEOF
36503 /* end confdefs.h.  */
36504 $ac_includes_default
36505    typedef long long int ac__type_sizeof_;
36506 int
36507 main ()
36508 {
36509 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36510 test_array [0] = 0
36511
36512   ;
36513   return 0;
36514 }
36515 _ACEOF
36516 rm -f conftest.$ac_objext
36517 if { (ac_try="$ac_compile"
36518 case "(($ac_try" in
36519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36520   *) ac_try_echo=$ac_try;;
36521 esac
36522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36523   (eval "$ac_compile") 2>conftest.er1
36524   ac_status=$?
36525   grep -v '^ *+' conftest.er1 >conftest.err
36526   rm -f conftest.er1
36527   cat conftest.err >&5
36528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36529   (exit $ac_status); } && {
36530          test -z "$ac_c_werror_flag" ||
36531          test ! -s conftest.err
36532        } && test -s conftest.$ac_objext; then
36533   ac_hi=$ac_mid
36534 else
36535   echo "$as_me: failed program was:" >&5
36536 sed 's/^/| /' conftest.$ac_ext >&5
36537
36538         ac_lo=`expr '(' $ac_mid ')' + 1`
36539 fi
36540
36541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36542 done
36543 case $ac_lo in
36544 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36545 '') if test "$ac_cv_type_long_long_int" = yes; then
36546      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36547 See \`config.log' for more details." >&5
36548 echo "$as_me: error: cannot compute sizeof (long long int)
36549 See \`config.log' for more details." >&2;}
36550    { (exit 77); exit 77; }; }
36551    else
36552      ac_cv_sizeof_long_long_int=0
36553    fi ;;
36554 esac
36555 else
36556   cat >conftest.$ac_ext <<_ACEOF
36557 /* confdefs.h.  */
36558 _ACEOF
36559 cat confdefs.h >>conftest.$ac_ext
36560 cat >>conftest.$ac_ext <<_ACEOF
36561 /* end confdefs.h.  */
36562 $ac_includes_default
36563    typedef long long int ac__type_sizeof_;
36564 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36565 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36566 #include <stdio.h>
36567 #include <stdlib.h>
36568 int
36569 main ()
36570 {
36571
36572   FILE *f = fopen ("conftest.val", "w");
36573   if (! f)
36574     return 1;
36575   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36576     {
36577       long int i = longval ();
36578       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36579         return 1;
36580       fprintf (f, "%ld\n", i);
36581     }
36582   else
36583     {
36584       unsigned long int i = ulongval ();
36585       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36586         return 1;
36587       fprintf (f, "%lu\n", i);
36588     }
36589   return ferror (f) || fclose (f) != 0;
36590
36591   ;
36592   return 0;
36593 }
36594 _ACEOF
36595 rm -f conftest$ac_exeext
36596 if { (ac_try="$ac_link"
36597 case "(($ac_try" in
36598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36599   *) ac_try_echo=$ac_try;;
36600 esac
36601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36602   (eval "$ac_link") 2>&5
36603   ac_status=$?
36604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36606   { (case "(($ac_try" in
36607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36608   *) ac_try_echo=$ac_try;;
36609 esac
36610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36611   (eval "$ac_try") 2>&5
36612   ac_status=$?
36613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36614   (exit $ac_status); }; }; then
36615   ac_cv_sizeof_long_long_int=`cat conftest.val`
36616 else
36617   echo "$as_me: program exited with status $ac_status" >&5
36618 echo "$as_me: failed program was:" >&5
36619 sed 's/^/| /' conftest.$ac_ext >&5
36620
36621 ( exit $ac_status )
36622 if test "$ac_cv_type_long_long_int" = yes; then
36623      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36624 See \`config.log' for more details." >&5
36625 echo "$as_me: error: cannot compute sizeof (long long int)
36626 See \`config.log' for more details." >&2;}
36627    { (exit 77); exit 77; }; }
36628    else
36629      ac_cv_sizeof_long_long_int=0
36630    fi
36631 fi
36632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36633 fi
36634 rm -f conftest.val
36635 fi
36636 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36637 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36638
36639
36640
36641 cat >>confdefs.h <<_ACEOF
36642 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36643 _ACEOF
36644
36645
36646 { echo "$as_me:$LINENO: checking for int *" >&5
36647 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36648 if test "${ac_cv_type_int_p+set}" = set; then
36649   echo $ECHO_N "(cached) $ECHO_C" >&6
36650 else
36651   cat >conftest.$ac_ext <<_ACEOF
36652 /* confdefs.h.  */
36653 _ACEOF
36654 cat confdefs.h >>conftest.$ac_ext
36655 cat >>conftest.$ac_ext <<_ACEOF
36656 /* end confdefs.h.  */
36657 $ac_includes_default
36658 typedef int * ac__type_new_;
36659 int
36660 main ()
36661 {
36662 if ((ac__type_new_ *) 0)
36663   return 0;
36664 if (sizeof (ac__type_new_))
36665   return 0;
36666   ;
36667   return 0;
36668 }
36669 _ACEOF
36670 rm -f conftest.$ac_objext
36671 if { (ac_try="$ac_compile"
36672 case "(($ac_try" in
36673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36674   *) ac_try_echo=$ac_try;;
36675 esac
36676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36677   (eval "$ac_compile") 2>conftest.er1
36678   ac_status=$?
36679   grep -v '^ *+' conftest.er1 >conftest.err
36680   rm -f conftest.er1
36681   cat conftest.err >&5
36682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36683   (exit $ac_status); } && {
36684          test -z "$ac_c_werror_flag" ||
36685          test ! -s conftest.err
36686        } && test -s conftest.$ac_objext; then
36687   ac_cv_type_int_p=yes
36688 else
36689   echo "$as_me: failed program was:" >&5
36690 sed 's/^/| /' conftest.$ac_ext >&5
36691
36692         ac_cv_type_int_p=no
36693 fi
36694
36695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36696 fi
36697 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36698 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36699
36700 # The cast to long int works around a bug in the HP C Compiler
36701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36703 # This bug is HP SR number 8606223364.
36704 { echo "$as_me:$LINENO: checking size of int *" >&5
36705 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36706 if test "${ac_cv_sizeof_int_p+set}" = set; then
36707   echo $ECHO_N "(cached) $ECHO_C" >&6
36708 else
36709   if test "$cross_compiling" = yes; then
36710   # Depending upon the size, compute the lo and hi bounds.
36711 cat >conftest.$ac_ext <<_ACEOF
36712 /* confdefs.h.  */
36713 _ACEOF
36714 cat confdefs.h >>conftest.$ac_ext
36715 cat >>conftest.$ac_ext <<_ACEOF
36716 /* end confdefs.h.  */
36717 $ac_includes_default
36718    typedef int * ac__type_sizeof_;
36719 int
36720 main ()
36721 {
36722 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36723 test_array [0] = 0
36724
36725   ;
36726   return 0;
36727 }
36728 _ACEOF
36729 rm -f conftest.$ac_objext
36730 if { (ac_try="$ac_compile"
36731 case "(($ac_try" in
36732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36733   *) ac_try_echo=$ac_try;;
36734 esac
36735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36736   (eval "$ac_compile") 2>conftest.er1
36737   ac_status=$?
36738   grep -v '^ *+' conftest.er1 >conftest.err
36739   rm -f conftest.er1
36740   cat conftest.err >&5
36741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36742   (exit $ac_status); } && {
36743          test -z "$ac_c_werror_flag" ||
36744          test ! -s conftest.err
36745        } && test -s conftest.$ac_objext; then
36746   ac_lo=0 ac_mid=0
36747   while :; do
36748     cat >conftest.$ac_ext <<_ACEOF
36749 /* confdefs.h.  */
36750 _ACEOF
36751 cat confdefs.h >>conftest.$ac_ext
36752 cat >>conftest.$ac_ext <<_ACEOF
36753 /* end confdefs.h.  */
36754 $ac_includes_default
36755    typedef int * ac__type_sizeof_;
36756 int
36757 main ()
36758 {
36759 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36760 test_array [0] = 0
36761
36762   ;
36763   return 0;
36764 }
36765 _ACEOF
36766 rm -f conftest.$ac_objext
36767 if { (ac_try="$ac_compile"
36768 case "(($ac_try" in
36769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36770   *) ac_try_echo=$ac_try;;
36771 esac
36772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36773   (eval "$ac_compile") 2>conftest.er1
36774   ac_status=$?
36775   grep -v '^ *+' conftest.er1 >conftest.err
36776   rm -f conftest.er1
36777   cat conftest.err >&5
36778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36779   (exit $ac_status); } && {
36780          test -z "$ac_c_werror_flag" ||
36781          test ! -s conftest.err
36782        } && test -s conftest.$ac_objext; then
36783   ac_hi=$ac_mid; break
36784 else
36785   echo "$as_me: failed program was:" >&5
36786 sed 's/^/| /' conftest.$ac_ext >&5
36787
36788         ac_lo=`expr $ac_mid + 1`
36789                         if test $ac_lo -le $ac_mid; then
36790                           ac_lo= ac_hi=
36791                           break
36792                         fi
36793                         ac_mid=`expr 2 '*' $ac_mid + 1`
36794 fi
36795
36796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36797   done
36798 else
36799   echo "$as_me: failed program was:" >&5
36800 sed 's/^/| /' conftest.$ac_ext >&5
36801
36802         cat >conftest.$ac_ext <<_ACEOF
36803 /* confdefs.h.  */
36804 _ACEOF
36805 cat confdefs.h >>conftest.$ac_ext
36806 cat >>conftest.$ac_ext <<_ACEOF
36807 /* end confdefs.h.  */
36808 $ac_includes_default
36809    typedef int * ac__type_sizeof_;
36810 int
36811 main ()
36812 {
36813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36814 test_array [0] = 0
36815
36816   ;
36817   return 0;
36818 }
36819 _ACEOF
36820 rm -f conftest.$ac_objext
36821 if { (ac_try="$ac_compile"
36822 case "(($ac_try" in
36823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36824   *) ac_try_echo=$ac_try;;
36825 esac
36826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36827   (eval "$ac_compile") 2>conftest.er1
36828   ac_status=$?
36829   grep -v '^ *+' conftest.er1 >conftest.err
36830   rm -f conftest.er1
36831   cat conftest.err >&5
36832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36833   (exit $ac_status); } && {
36834          test -z "$ac_c_werror_flag" ||
36835          test ! -s conftest.err
36836        } && test -s conftest.$ac_objext; then
36837   ac_hi=-1 ac_mid=-1
36838   while :; do
36839     cat >conftest.$ac_ext <<_ACEOF
36840 /* confdefs.h.  */
36841 _ACEOF
36842 cat confdefs.h >>conftest.$ac_ext
36843 cat >>conftest.$ac_ext <<_ACEOF
36844 /* end confdefs.h.  */
36845 $ac_includes_default
36846    typedef int * ac__type_sizeof_;
36847 int
36848 main ()
36849 {
36850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36851 test_array [0] = 0
36852
36853   ;
36854   return 0;
36855 }
36856 _ACEOF
36857 rm -f conftest.$ac_objext
36858 if { (ac_try="$ac_compile"
36859 case "(($ac_try" in
36860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36861   *) ac_try_echo=$ac_try;;
36862 esac
36863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36864   (eval "$ac_compile") 2>conftest.er1
36865   ac_status=$?
36866   grep -v '^ *+' conftest.er1 >conftest.err
36867   rm -f conftest.er1
36868   cat conftest.err >&5
36869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870   (exit $ac_status); } && {
36871          test -z "$ac_c_werror_flag" ||
36872          test ! -s conftest.err
36873        } && test -s conftest.$ac_objext; then
36874   ac_lo=$ac_mid; break
36875 else
36876   echo "$as_me: failed program was:" >&5
36877 sed 's/^/| /' conftest.$ac_ext >&5
36878
36879         ac_hi=`expr '(' $ac_mid ')' - 1`
36880                         if test $ac_mid -le $ac_hi; then
36881                           ac_lo= ac_hi=
36882                           break
36883                         fi
36884                         ac_mid=`expr 2 '*' $ac_mid`
36885 fi
36886
36887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36888   done
36889 else
36890   echo "$as_me: failed program was:" >&5
36891 sed 's/^/| /' conftest.$ac_ext >&5
36892
36893         ac_lo= ac_hi=
36894 fi
36895
36896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36897 fi
36898
36899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36900 # Binary search between lo and hi bounds.
36901 while test "x$ac_lo" != "x$ac_hi"; do
36902   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36903   cat >conftest.$ac_ext <<_ACEOF
36904 /* confdefs.h.  */
36905 _ACEOF
36906 cat confdefs.h >>conftest.$ac_ext
36907 cat >>conftest.$ac_ext <<_ACEOF
36908 /* end confdefs.h.  */
36909 $ac_includes_default
36910    typedef int * ac__type_sizeof_;
36911 int
36912 main ()
36913 {
36914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36915 test_array [0] = 0
36916
36917   ;
36918   return 0;
36919 }
36920 _ACEOF
36921 rm -f conftest.$ac_objext
36922 if { (ac_try="$ac_compile"
36923 case "(($ac_try" in
36924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36925   *) ac_try_echo=$ac_try;;
36926 esac
36927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36928   (eval "$ac_compile") 2>conftest.er1
36929   ac_status=$?
36930   grep -v '^ *+' conftest.er1 >conftest.err
36931   rm -f conftest.er1
36932   cat conftest.err >&5
36933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36934   (exit $ac_status); } && {
36935          test -z "$ac_c_werror_flag" ||
36936          test ! -s conftest.err
36937        } && test -s conftest.$ac_objext; then
36938   ac_hi=$ac_mid
36939 else
36940   echo "$as_me: failed program was:" >&5
36941 sed 's/^/| /' conftest.$ac_ext >&5
36942
36943         ac_lo=`expr '(' $ac_mid ')' + 1`
36944 fi
36945
36946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36947 done
36948 case $ac_lo in
36949 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36950 '') if test "$ac_cv_type_int_p" = yes; then
36951      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36952 See \`config.log' for more details." >&5
36953 echo "$as_me: error: cannot compute sizeof (int *)
36954 See \`config.log' for more details." >&2;}
36955    { (exit 77); exit 77; }; }
36956    else
36957      ac_cv_sizeof_int_p=0
36958    fi ;;
36959 esac
36960 else
36961   cat >conftest.$ac_ext <<_ACEOF
36962 /* confdefs.h.  */
36963 _ACEOF
36964 cat confdefs.h >>conftest.$ac_ext
36965 cat >>conftest.$ac_ext <<_ACEOF
36966 /* end confdefs.h.  */
36967 $ac_includes_default
36968    typedef int * ac__type_sizeof_;
36969 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36970 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36971 #include <stdio.h>
36972 #include <stdlib.h>
36973 int
36974 main ()
36975 {
36976
36977   FILE *f = fopen ("conftest.val", "w");
36978   if (! f)
36979     return 1;
36980   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36981     {
36982       long int i = longval ();
36983       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36984         return 1;
36985       fprintf (f, "%ld\n", i);
36986     }
36987   else
36988     {
36989       unsigned long int i = ulongval ();
36990       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36991         return 1;
36992       fprintf (f, "%lu\n", i);
36993     }
36994   return ferror (f) || fclose (f) != 0;
36995
36996   ;
36997   return 0;
36998 }
36999 _ACEOF
37000 rm -f conftest$ac_exeext
37001 if { (ac_try="$ac_link"
37002 case "(($ac_try" in
37003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37004   *) ac_try_echo=$ac_try;;
37005 esac
37006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37007   (eval "$ac_link") 2>&5
37008   ac_status=$?
37009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37011   { (case "(($ac_try" in
37012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37013   *) ac_try_echo=$ac_try;;
37014 esac
37015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37016   (eval "$ac_try") 2>&5
37017   ac_status=$?
37018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019   (exit $ac_status); }; }; then
37020   ac_cv_sizeof_int_p=`cat conftest.val`
37021 else
37022   echo "$as_me: program exited with status $ac_status" >&5
37023 echo "$as_me: failed program was:" >&5
37024 sed 's/^/| /' conftest.$ac_ext >&5
37025
37026 ( exit $ac_status )
37027 if test "$ac_cv_type_int_p" = yes; then
37028      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37029 See \`config.log' for more details." >&5
37030 echo "$as_me: error: cannot compute sizeof (int *)
37031 See \`config.log' for more details." >&2;}
37032    { (exit 77); exit 77; }; }
37033    else
37034      ac_cv_sizeof_int_p=0
37035    fi
37036 fi
37037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37038 fi
37039 rm -f conftest.val
37040 fi
37041 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37042 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37043
37044
37045
37046 cat >>confdefs.h <<_ACEOF
37047 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37048 _ACEOF
37049
37050
37051
37052 { echo "$as_me:$LINENO: checking for u_int type" >&5
37053 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37054 if test "${ac_cv_have_u_int+set}" = set; then
37055   echo $ECHO_N "(cached) $ECHO_C" >&6
37056 else
37057
37058        cat >conftest.$ac_ext <<_ACEOF
37059 /* confdefs.h.  */
37060 _ACEOF
37061 cat confdefs.h >>conftest.$ac_ext
37062 cat >>conftest.$ac_ext <<_ACEOF
37063 /* end confdefs.h.  */
37064
37065               #include <sys/types.h>
37066
37067 int
37068 main ()
37069 {
37070
37071               u_int a; a = 1;
37072
37073   ;
37074   return 0;
37075 }
37076 _ACEOF
37077 rm -f conftest.$ac_objext
37078 if { (ac_try="$ac_compile"
37079 case "(($ac_try" in
37080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37081   *) ac_try_echo=$ac_try;;
37082 esac
37083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37084   (eval "$ac_compile") 2>conftest.er1
37085   ac_status=$?
37086   grep -v '^ *+' conftest.er1 >conftest.err
37087   rm -f conftest.er1
37088   cat conftest.err >&5
37089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37090   (exit $ac_status); } && {
37091          test -z "$ac_c_werror_flag" ||
37092          test ! -s conftest.err
37093        } && test -s conftest.$ac_objext; then
37094
37095               ac_cv_have_u_int="yes"
37096
37097 else
37098   echo "$as_me: failed program was:" >&5
37099 sed 's/^/| /' conftest.$ac_ext >&5
37100
37101
37102               ac_cv_have_u_int="no"
37103
37104
37105 fi
37106
37107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37108
37109
37110 fi
37111 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37112 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37113 if test "x$ac_cv_have_u_int" = "xyes" ; then
37114    cat >>confdefs.h <<\_ACEOF
37115 #define HAVE_U_INT 1
37116 _ACEOF
37117
37118    have_u_int=1
37119 fi
37120
37121 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37122 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37123 if test "${ac_cv_have_intmax_t+set}" = set; then
37124   echo $ECHO_N "(cached) $ECHO_C" >&6
37125 else
37126
37127        cat >conftest.$ac_ext <<_ACEOF
37128 /* confdefs.h.  */
37129 _ACEOF
37130 cat confdefs.h >>conftest.$ac_ext
37131 cat >>conftest.$ac_ext <<_ACEOF
37132 /* end confdefs.h.  */
37133
37134               #include <sys/types.h>
37135
37136 int
37137 main ()
37138 {
37139
37140               intmax_t a; a = 1;
37141
37142   ;
37143   return 0;
37144 }
37145 _ACEOF
37146 rm -f conftest.$ac_objext
37147 if { (ac_try="$ac_compile"
37148 case "(($ac_try" in
37149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37150   *) ac_try_echo=$ac_try;;
37151 esac
37152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37153   (eval "$ac_compile") 2>conftest.er1
37154   ac_status=$?
37155   grep -v '^ *+' conftest.er1 >conftest.err
37156   rm -f conftest.er1
37157   cat conftest.err >&5
37158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37159   (exit $ac_status); } && {
37160          test -z "$ac_c_werror_flag" ||
37161          test ! -s conftest.err
37162        } && test -s conftest.$ac_objext; then
37163
37164               ac_cv_have_intmax_t="yes"
37165
37166 else
37167   echo "$as_me: failed program was:" >&5
37168 sed 's/^/| /' conftest.$ac_ext >&5
37169
37170
37171               cat >conftest.$ac_ext <<_ACEOF
37172 /* confdefs.h.  */
37173 _ACEOF
37174 cat confdefs.h >>conftest.$ac_ext
37175 cat >>conftest.$ac_ext <<_ACEOF
37176 /* end confdefs.h.  */
37177
37178                      #include <stdint.h>
37179
37180 int
37181 main ()
37182 {
37183
37184                      intmax_t a; a = 1;
37185
37186   ;
37187   return 0;
37188 }
37189 _ACEOF
37190 rm -f conftest.$ac_objext
37191 if { (ac_try="$ac_compile"
37192 case "(($ac_try" in
37193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37194   *) ac_try_echo=$ac_try;;
37195 esac
37196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37197   (eval "$ac_compile") 2>conftest.er1
37198   ac_status=$?
37199   grep -v '^ *+' conftest.er1 >conftest.err
37200   rm -f conftest.er1
37201   cat conftest.err >&5
37202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37203   (exit $ac_status); } && {
37204          test -z "$ac_c_werror_flag" ||
37205          test ! -s conftest.err
37206        } && test -s conftest.$ac_objext; then
37207
37208                      ac_cv_have_intmax_t="yes"
37209
37210 else
37211   echo "$as_me: failed program was:" >&5
37212 sed 's/^/| /' conftest.$ac_ext >&5
37213
37214
37215                      ac_cv_have_intmax_t="no"
37216
37217
37218 fi
37219
37220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37221
37222
37223 fi
37224
37225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37226
37227
37228 fi
37229 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37230 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37231 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37232    cat >>confdefs.h <<\_ACEOF
37233 #define HAVE_INTMAX_T 1
37234 _ACEOF
37235
37236    have_intmax_t=1
37237 fi
37238
37239 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37240 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37241 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37242   echo $ECHO_N "(cached) $ECHO_C" >&6
37243 else
37244
37245        cat >conftest.$ac_ext <<_ACEOF
37246 /* confdefs.h.  */
37247 _ACEOF
37248 cat confdefs.h >>conftest.$ac_ext
37249 cat >>conftest.$ac_ext <<_ACEOF
37250 /* end confdefs.h.  */
37251
37252               #include <sys/types.h>
37253
37254 int
37255 main ()
37256 {
37257
37258               u_intmax_t a; a = 1;
37259
37260   ;
37261   return 0;
37262 }
37263 _ACEOF
37264 rm -f conftest.$ac_objext
37265 if { (ac_try="$ac_compile"
37266 case "(($ac_try" in
37267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37268   *) ac_try_echo=$ac_try;;
37269 esac
37270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37271   (eval "$ac_compile") 2>conftest.er1
37272   ac_status=$?
37273   grep -v '^ *+' conftest.er1 >conftest.err
37274   rm -f conftest.er1
37275   cat conftest.err >&5
37276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37277   (exit $ac_status); } && {
37278          test -z "$ac_c_werror_flag" ||
37279          test ! -s conftest.err
37280        } && test -s conftest.$ac_objext; then
37281
37282               ac_cv_have_u_intmax_t="yes"
37283
37284 else
37285   echo "$as_me: failed program was:" >&5
37286 sed 's/^/| /' conftest.$ac_ext >&5
37287
37288
37289               cat >conftest.$ac_ext <<_ACEOF
37290 /* confdefs.h.  */
37291 _ACEOF
37292 cat confdefs.h >>conftest.$ac_ext
37293 cat >>conftest.$ac_ext <<_ACEOF
37294 /* end confdefs.h.  */
37295
37296                      #include <stdint.h>
37297
37298 int
37299 main ()
37300 {
37301
37302                     u_intmax_t a; a = 1;
37303
37304   ;
37305   return 0;
37306 }
37307 _ACEOF
37308 rm -f conftest.$ac_objext
37309 if { (ac_try="$ac_compile"
37310 case "(($ac_try" in
37311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37312   *) ac_try_echo=$ac_try;;
37313 esac
37314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37315   (eval "$ac_compile") 2>conftest.er1
37316   ac_status=$?
37317   grep -v '^ *+' conftest.er1 >conftest.err
37318   rm -f conftest.er1
37319   cat conftest.err >&5
37320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321   (exit $ac_status); } && {
37322          test -z "$ac_c_werror_flag" ||
37323          test ! -s conftest.err
37324        } && test -s conftest.$ac_objext; then
37325
37326                     ac_cv_have_u_intmax_t="yes"
37327
37328 else
37329   echo "$as_me: failed program was:" >&5
37330 sed 's/^/| /' conftest.$ac_ext >&5
37331
37332
37333                     ac_cv_have_u_intmax_t="no"
37334
37335
37336 fi
37337
37338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37339
37340
37341 fi
37342
37343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37344
37345
37346 fi
37347 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37348 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37349 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37350    cat >>confdefs.h <<\_ACEOF
37351 #define HAVE_U_INTMAX_T 1
37352 _ACEOF
37353
37354    have_u_intmax_t=1
37355 fi
37356
37357 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37358 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37359 if test "${ac_cv_have_intxx_t+set}" = set; then
37360   echo $ECHO_N "(cached) $ECHO_C" >&6
37361 else
37362
37363        cat >conftest.$ac_ext <<_ACEOF
37364 /* confdefs.h.  */
37365 _ACEOF
37366 cat confdefs.h >>conftest.$ac_ext
37367 cat >>conftest.$ac_ext <<_ACEOF
37368 /* end confdefs.h.  */
37369
37370               #include <sys/types.h>
37371
37372 int
37373 main ()
37374 {
37375
37376               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37377
37378   ;
37379   return 0;
37380 }
37381 _ACEOF
37382 rm -f conftest.$ac_objext
37383 if { (ac_try="$ac_compile"
37384 case "(($ac_try" in
37385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37386   *) ac_try_echo=$ac_try;;
37387 esac
37388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37389   (eval "$ac_compile") 2>conftest.er1
37390   ac_status=$?
37391   grep -v '^ *+' conftest.er1 >conftest.err
37392   rm -f conftest.er1
37393   cat conftest.err >&5
37394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37395   (exit $ac_status); } && {
37396          test -z "$ac_c_werror_flag" ||
37397          test ! -s conftest.err
37398        } && test -s conftest.$ac_objext; then
37399
37400               ac_cv_have_intxx_t="yes"
37401
37402 else
37403   echo "$as_me: failed program was:" >&5
37404 sed 's/^/| /' conftest.$ac_ext >&5
37405
37406
37407               ac_cv_have_intxx_t="no"
37408
37409
37410 fi
37411
37412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37413
37414
37415 fi
37416 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37417 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37418 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37419    cat >>confdefs.h <<\_ACEOF
37420 #define HAVE_INTXX_T 1
37421 _ACEOF
37422
37423    have_intxx_t=1
37424 fi
37425
37426 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37427 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37428 if test "${ac_cv_have_int64_t+set}" = set; then
37429   echo $ECHO_N "(cached) $ECHO_C" >&6
37430 else
37431
37432        cat >conftest.$ac_ext <<_ACEOF
37433 /* confdefs.h.  */
37434 _ACEOF
37435 cat confdefs.h >>conftest.$ac_ext
37436 cat >>conftest.$ac_ext <<_ACEOF
37437 /* end confdefs.h.  */
37438
37439               #include <sys/types.h>
37440
37441 int
37442 main ()
37443 {
37444
37445               int64_t a; a = 1;
37446
37447   ;
37448   return 0;
37449 }
37450 _ACEOF
37451 rm -f conftest.$ac_objext
37452 if { (ac_try="$ac_compile"
37453 case "(($ac_try" in
37454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37455   *) ac_try_echo=$ac_try;;
37456 esac
37457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37458   (eval "$ac_compile") 2>conftest.er1
37459   ac_status=$?
37460   grep -v '^ *+' conftest.er1 >conftest.err
37461   rm -f conftest.er1
37462   cat conftest.err >&5
37463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464   (exit $ac_status); } && {
37465          test -z "$ac_c_werror_flag" ||
37466          test ! -s conftest.err
37467        } && test -s conftest.$ac_objext; then
37468
37469               ac_cv_have_int64_t="yes"
37470
37471 else
37472   echo "$as_me: failed program was:" >&5
37473 sed 's/^/| /' conftest.$ac_ext >&5
37474
37475
37476               ac_cv_have_int64_t="no"
37477
37478
37479 fi
37480
37481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37482
37483
37484 fi
37485 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37486 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37487 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37488    cat >>confdefs.h <<\_ACEOF
37489 #define HAVE_INT64_T 1
37490 _ACEOF
37491
37492    have_int64_t=1
37493 fi
37494
37495 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37496 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37497 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37498   echo $ECHO_N "(cached) $ECHO_C" >&6
37499 else
37500
37501        cat >conftest.$ac_ext <<_ACEOF
37502 /* confdefs.h.  */
37503 _ACEOF
37504 cat confdefs.h >>conftest.$ac_ext
37505 cat >>conftest.$ac_ext <<_ACEOF
37506 /* end confdefs.h.  */
37507
37508               #include <sys/types.h>
37509
37510 int
37511 main ()
37512 {
37513
37514               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37515
37516   ;
37517   return 0;
37518 }
37519 _ACEOF
37520 rm -f conftest.$ac_objext
37521 if { (ac_try="$ac_compile"
37522 case "(($ac_try" in
37523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37524   *) ac_try_echo=$ac_try;;
37525 esac
37526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37527   (eval "$ac_compile") 2>conftest.er1
37528   ac_status=$?
37529   grep -v '^ *+' conftest.er1 >conftest.err
37530   rm -f conftest.er1
37531   cat conftest.err >&5
37532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37533   (exit $ac_status); } && {
37534          test -z "$ac_c_werror_flag" ||
37535          test ! -s conftest.err
37536        } && test -s conftest.$ac_objext; then
37537
37538              ac_cv_have_u_intxx_t="yes"
37539
37540 else
37541   echo "$as_me: failed program was:" >&5
37542 sed 's/^/| /' conftest.$ac_ext >&5
37543
37544
37545              ac_cv_have_u_intxx_t="no"
37546
37547
37548 fi
37549
37550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37551
37552
37553 fi
37554 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37555 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37556 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37557    cat >>confdefs.h <<\_ACEOF
37558 #define HAVE_U_INTXX_T 1
37559 _ACEOF
37560
37561    have_u_intxx_t=1
37562 fi
37563
37564 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37565 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37566 if test "${ac_cv_have_u_int64_t+set}" = set; then
37567   echo $ECHO_N "(cached) $ECHO_C" >&6
37568 else
37569
37570        cat >conftest.$ac_ext <<_ACEOF
37571 /* confdefs.h.  */
37572 _ACEOF
37573 cat confdefs.h >>conftest.$ac_ext
37574 cat >>conftest.$ac_ext <<_ACEOF
37575 /* end confdefs.h.  */
37576
37577               #include <sys/types.h>
37578
37579 int
37580 main ()
37581 {
37582
37583               u_int64_t a; a = 1;
37584
37585   ;
37586   return 0;
37587 }
37588 _ACEOF
37589 rm -f conftest.$ac_objext
37590 if { (ac_try="$ac_compile"
37591 case "(($ac_try" in
37592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37593   *) ac_try_echo=$ac_try;;
37594 esac
37595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37596   (eval "$ac_compile") 2>conftest.er1
37597   ac_status=$?
37598   grep -v '^ *+' conftest.er1 >conftest.err
37599   rm -f conftest.er1
37600   cat conftest.err >&5
37601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37602   (exit $ac_status); } && {
37603          test -z "$ac_c_werror_flag" ||
37604          test ! -s conftest.err
37605        } && test -s conftest.$ac_objext; then
37606
37607              ac_cv_have_u_int64_t="yes"
37608
37609 else
37610   echo "$as_me: failed program was:" >&5
37611 sed 's/^/| /' conftest.$ac_ext >&5
37612
37613
37614              ac_cv_have_u_int64_t="no"
37615
37616
37617 fi
37618
37619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37620
37621
37622 fi
37623 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37624 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37625 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37626    cat >>confdefs.h <<\_ACEOF
37627 #define HAVE_U_INT64_T 1
37628 _ACEOF
37629
37630    have_u_int64_t=1
37631 fi
37632
37633 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37634     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37635 then
37636    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37637 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37638    cat >conftest.$ac_ext <<_ACEOF
37639 /* confdefs.h.  */
37640 _ACEOF
37641 cat confdefs.h >>conftest.$ac_ext
37642 cat >>conftest.$ac_ext <<_ACEOF
37643 /* end confdefs.h.  */
37644
37645           #include <sys/bitypes.h>
37646
37647 int
37648 main ()
37649 {
37650
37651           int8_t a; int16_t b; int32_t c;
37652           u_int8_t e; u_int16_t f; u_int32_t g;
37653           a = b = c = e = f = g = 1;
37654
37655   ;
37656   return 0;
37657 }
37658 _ACEOF
37659 rm -f conftest.$ac_objext
37660 if { (ac_try="$ac_compile"
37661 case "(($ac_try" in
37662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37663   *) ac_try_echo=$ac_try;;
37664 esac
37665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37666   (eval "$ac_compile") 2>conftest.er1
37667   ac_status=$?
37668   grep -v '^ *+' conftest.er1 >conftest.err
37669   rm -f conftest.er1
37670   cat conftest.err >&5
37671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37672   (exit $ac_status); } && {
37673          test -z "$ac_c_werror_flag" ||
37674          test ! -s conftest.err
37675        } && test -s conftest.$ac_objext; then
37676
37677           cat >>confdefs.h <<\_ACEOF
37678 #define HAVE_U_INTXX_T 1
37679 _ACEOF
37680
37681           cat >>confdefs.h <<\_ACEOF
37682 #define HAVE_INTXX_T 1
37683 _ACEOF
37684
37685           cat >>confdefs.h <<\_ACEOF
37686 #define HAVE_SYS_BITYPES_H 1
37687 _ACEOF
37688
37689           { echo "$as_me:$LINENO: result: yes" >&5
37690 echo "${ECHO_T}yes" >&6; }
37691
37692 else
37693   echo "$as_me: failed program was:" >&5
37694 sed 's/^/| /' conftest.$ac_ext >&5
37695
37696
37697           { echo "$as_me:$LINENO: result: no" >&5
37698 echo "${ECHO_T}no" >&6; }
37699
37700
37701 fi
37702
37703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37704 fi
37705
37706 if test -z "$have_u_intxx_t" ; then
37707    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37708 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37709 if test "${ac_cv_have_uintxx_t+set}" = set; then
37710   echo $ECHO_N "(cached) $ECHO_C" >&6
37711 else
37712
37713           cat >conftest.$ac_ext <<_ACEOF
37714 /* confdefs.h.  */
37715 _ACEOF
37716 cat confdefs.h >>conftest.$ac_ext
37717 cat >>conftest.$ac_ext <<_ACEOF
37718 /* end confdefs.h.  */
37719
37720                  #include <sys/types.h>
37721
37722 int
37723 main ()
37724 {
37725
37726                  uint8_t a; uint16_t b;
37727                  uint32_t c; a = b = c = 1;
37728
37729   ;
37730   return 0;
37731 }
37732 _ACEOF
37733 rm -f conftest.$ac_objext
37734 if { (ac_try="$ac_compile"
37735 case "(($ac_try" in
37736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37737   *) ac_try_echo=$ac_try;;
37738 esac
37739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37740   (eval "$ac_compile") 2>conftest.er1
37741   ac_status=$?
37742   grep -v '^ *+' conftest.er1 >conftest.err
37743   rm -f conftest.er1
37744   cat conftest.err >&5
37745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37746   (exit $ac_status); } && {
37747          test -z "$ac_c_werror_flag" ||
37748          test ! -s conftest.err
37749        } && test -s conftest.$ac_objext; then
37750
37751                 ac_cv_have_uintxx_t="yes"
37752
37753 else
37754   echo "$as_me: failed program was:" >&5
37755 sed 's/^/| /' conftest.$ac_ext >&5
37756
37757
37758                 ac_cv_have_uintxx_t="no"
37759
37760
37761 fi
37762
37763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37764
37765
37766 fi
37767 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37768 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37769    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37770       cat >>confdefs.h <<\_ACEOF
37771 #define HAVE_UINTXX_T 1
37772 _ACEOF
37773
37774    fi
37775 fi
37776
37777 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37778     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37779 then
37780    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37781 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37782    cat >conftest.$ac_ext <<_ACEOF
37783 /* confdefs.h.  */
37784 _ACEOF
37785 cat confdefs.h >>conftest.$ac_ext
37786 cat >>conftest.$ac_ext <<_ACEOF
37787 /* end confdefs.h.  */
37788
37789           #include <sys/bitypes.h>
37790
37791 int
37792 main ()
37793 {
37794
37795           int64_t a; u_int64_t b;
37796           a = b = 1;
37797
37798   ;
37799   return 0;
37800 }
37801 _ACEOF
37802 rm -f conftest.$ac_objext
37803 if { (ac_try="$ac_compile"
37804 case "(($ac_try" in
37805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37806   *) ac_try_echo=$ac_try;;
37807 esac
37808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37809   (eval "$ac_compile") 2>conftest.er1
37810   ac_status=$?
37811   grep -v '^ *+' conftest.er1 >conftest.err
37812   rm -f conftest.er1
37813   cat conftest.err >&5
37814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37815   (exit $ac_status); } && {
37816          test -z "$ac_c_werror_flag" ||
37817          test ! -s conftest.err
37818        } && test -s conftest.$ac_objext; then
37819
37820           cat >>confdefs.h <<\_ACEOF
37821 #define HAVE_U_INT64_T 1
37822 _ACEOF
37823
37824           cat >>confdefs.h <<\_ACEOF
37825 #define HAVE_INT64_T 1
37826 _ACEOF
37827
37828           { echo "$as_me:$LINENO: result: yes" >&5
37829 echo "${ECHO_T}yes" >&6; }
37830
37831 else
37832   echo "$as_me: failed program was:" >&5
37833 sed 's/^/| /' conftest.$ac_ext >&5
37834
37835
37836           { echo "$as_me:$LINENO: result: no" >&5
37837 echo "${ECHO_T}no" >&6; }
37838
37839
37840 fi
37841
37842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37843 fi
37844
37845 if (test -z "$have_uintxx_t" && \
37846     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37847 then
37848    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37849 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37850    cat >conftest.$ac_ext <<_ACEOF
37851 /* confdefs.h.  */
37852 _ACEOF
37853 cat confdefs.h >>conftest.$ac_ext
37854 cat >>conftest.$ac_ext <<_ACEOF
37855 /* end confdefs.h.  */
37856
37857           #include <sys/bitypes.h>
37858
37859 int
37860 main ()
37861 {
37862
37863           uint8_t a; uint16_t b;
37864           uint32_t c; a = b = c = 1;
37865
37866   ;
37867   return 0;
37868 }
37869 _ACEOF
37870 rm -f conftest.$ac_objext
37871 if { (ac_try="$ac_compile"
37872 case "(($ac_try" in
37873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37874   *) ac_try_echo=$ac_try;;
37875 esac
37876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37877   (eval "$ac_compile") 2>conftest.er1
37878   ac_status=$?
37879   grep -v '^ *+' conftest.er1 >conftest.err
37880   rm -f conftest.er1
37881   cat conftest.err >&5
37882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883   (exit $ac_status); } && {
37884          test -z "$ac_c_werror_flag" ||
37885          test ! -s conftest.err
37886        } && test -s conftest.$ac_objext; then
37887
37888           cat >>confdefs.h <<\_ACEOF
37889 #define HAVE_UINTXX_T 1
37890 _ACEOF
37891
37892           { echo "$as_me:$LINENO: result: yes" >&5
37893 echo "${ECHO_T}yes" >&6; }
37894
37895 else
37896   echo "$as_me: failed program was:" >&5
37897 sed 's/^/| /' conftest.$ac_ext >&5
37898
37899
37900           { echo "$as_me:$LINENO: result: no" >&5
37901 echo "${ECHO_T}no" >&6; }
37902
37903
37904 fi
37905
37906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37907 fi
37908
37909
37910
37911
37912
37913
37914
37915
37916
37917
37918
37919
37920
37921
37922 for ac_func in \
37923    fork \
37924    getcwd \
37925    gethostname \
37926    getpid \
37927    gettimeofday \
37928    setpgid \
37929    setpgrp \
37930    setsid \
37931    signal \
37932    strerror \
37933    strncmp \
37934    strncpy \
37935    vfprintf \
37936
37937 do
37938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37942   echo $ECHO_N "(cached) $ECHO_C" >&6
37943 else
37944   cat >conftest.$ac_ext <<_ACEOF
37945 /* confdefs.h.  */
37946 _ACEOF
37947 cat confdefs.h >>conftest.$ac_ext
37948 cat >>conftest.$ac_ext <<_ACEOF
37949 /* end confdefs.h.  */
37950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37952 #define $ac_func innocuous_$ac_func
37953
37954 /* System header to define __stub macros and hopefully few prototypes,
37955     which can conflict with char $ac_func (); below.
37956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37957     <limits.h> exists even on freestanding compilers.  */
37958
37959 #ifdef __STDC__
37960 # include <limits.h>
37961 #else
37962 # include <assert.h>
37963 #endif
37964
37965 #undef $ac_func
37966
37967 /* Override any GCC internal prototype to avoid an error.
37968    Use char because int might match the return type of a GCC
37969    builtin and then its argument prototype would still apply.  */
37970 #ifdef __cplusplus
37971 extern "C"
37972 #endif
37973 char $ac_func ();
37974 /* The GNU C library defines this for functions which it implements
37975     to always fail with ENOSYS.  Some functions are actually named
37976     something starting with __ and the normal name is an alias.  */
37977 #if defined __stub_$ac_func || defined __stub___$ac_func
37978 choke me
37979 #endif
37980
37981 int
37982 main ()
37983 {
37984 return $ac_func ();
37985   ;
37986   return 0;
37987 }
37988 _ACEOF
37989 rm -f conftest.$ac_objext conftest$ac_exeext
37990 if { (ac_try="$ac_link"
37991 case "(($ac_try" in
37992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37993   *) ac_try_echo=$ac_try;;
37994 esac
37995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37996   (eval "$ac_link") 2>conftest.er1
37997   ac_status=$?
37998   grep -v '^ *+' conftest.er1 >conftest.err
37999   rm -f conftest.er1
38000   cat conftest.err >&5
38001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38002   (exit $ac_status); } && {
38003          test -z "$ac_c_werror_flag" ||
38004          test ! -s conftest.err
38005        } && test -s conftest$ac_exeext &&
38006        $as_test_x conftest$ac_exeext; then
38007   eval "$as_ac_var=yes"
38008 else
38009   echo "$as_me: failed program was:" >&5
38010 sed 's/^/| /' conftest.$ac_ext >&5
38011
38012         eval "$as_ac_var=no"
38013 fi
38014
38015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38016       conftest$ac_exeext conftest.$ac_ext
38017 fi
38018 ac_res=`eval echo '${'$as_ac_var'}'`
38019                { echo "$as_me:$LINENO: result: $ac_res" >&5
38020 echo "${ECHO_T}$ac_res" >&6; }
38021 if test `eval echo '${'$as_ac_var'}'` = yes; then
38022   cat >>confdefs.h <<_ACEOF
38023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38024 _ACEOF
38025
38026 else
38027   echo 'configure: cannot find needed function.'; exit 1
38028
38029 fi
38030 done
38031
38032
38033
38034 for ac_func in fchdir
38035 do
38036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38040   echo $ECHO_N "(cached) $ECHO_C" >&6
38041 else
38042   cat >conftest.$ac_ext <<_ACEOF
38043 /* confdefs.h.  */
38044 _ACEOF
38045 cat confdefs.h >>conftest.$ac_ext
38046 cat >>conftest.$ac_ext <<_ACEOF
38047 /* end confdefs.h.  */
38048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38050 #define $ac_func innocuous_$ac_func
38051
38052 /* System header to define __stub macros and hopefully few prototypes,
38053     which can conflict with char $ac_func (); below.
38054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38055     <limits.h> exists even on freestanding compilers.  */
38056
38057 #ifdef __STDC__
38058 # include <limits.h>
38059 #else
38060 # include <assert.h>
38061 #endif
38062
38063 #undef $ac_func
38064
38065 /* Override any GCC internal prototype to avoid an error.
38066    Use char because int might match the return type of a GCC
38067    builtin and then its argument prototype would still apply.  */
38068 #ifdef __cplusplus
38069 extern "C"
38070 #endif
38071 char $ac_func ();
38072 /* The GNU C library defines this for functions which it implements
38073     to always fail with ENOSYS.  Some functions are actually named
38074     something starting with __ and the normal name is an alias.  */
38075 #if defined __stub_$ac_func || defined __stub___$ac_func
38076 choke me
38077 #endif
38078
38079 int
38080 main ()
38081 {
38082 return $ac_func ();
38083   ;
38084   return 0;
38085 }
38086 _ACEOF
38087 rm -f conftest.$ac_objext conftest$ac_exeext
38088 if { (ac_try="$ac_link"
38089 case "(($ac_try" in
38090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38091   *) ac_try_echo=$ac_try;;
38092 esac
38093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38094   (eval "$ac_link") 2>conftest.er1
38095   ac_status=$?
38096   grep -v '^ *+' conftest.er1 >conftest.err
38097   rm -f conftest.er1
38098   cat conftest.err >&5
38099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38100   (exit $ac_status); } && {
38101          test -z "$ac_c_werror_flag" ||
38102          test ! -s conftest.err
38103        } && test -s conftest$ac_exeext &&
38104        $as_test_x conftest$ac_exeext; then
38105   eval "$as_ac_var=yes"
38106 else
38107   echo "$as_me: failed program was:" >&5
38108 sed 's/^/| /' conftest.$ac_ext >&5
38109
38110         eval "$as_ac_var=no"
38111 fi
38112
38113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38114       conftest$ac_exeext conftest.$ac_ext
38115 fi
38116 ac_res=`eval echo '${'$as_ac_var'}'`
38117                { echo "$as_me:$LINENO: result: $ac_res" >&5
38118 echo "${ECHO_T}$ac_res" >&6; }
38119 if test `eval echo '${'$as_ac_var'}'` = yes; then
38120   cat >>confdefs.h <<_ACEOF
38121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38122 _ACEOF
38123  cat >>confdefs.h <<\_ACEOF
38124 #define HAVE_FCHDIR 1
38125 _ACEOF
38126
38127 fi
38128 done
38129
38130
38131 for ac_func in strtoll
38132 do
38133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38136 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38137   echo $ECHO_N "(cached) $ECHO_C" >&6
38138 else
38139   cat >conftest.$ac_ext <<_ACEOF
38140 /* confdefs.h.  */
38141 _ACEOF
38142 cat confdefs.h >>conftest.$ac_ext
38143 cat >>conftest.$ac_ext <<_ACEOF
38144 /* end confdefs.h.  */
38145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38147 #define $ac_func innocuous_$ac_func
38148
38149 /* System header to define __stub macros and hopefully few prototypes,
38150     which can conflict with char $ac_func (); below.
38151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38152     <limits.h> exists even on freestanding compilers.  */
38153
38154 #ifdef __STDC__
38155 # include <limits.h>
38156 #else
38157 # include <assert.h>
38158 #endif
38159
38160 #undef $ac_func
38161
38162 /* Override any GCC internal prototype to avoid an error.
38163    Use char because int might match the return type of a GCC
38164    builtin and then its argument prototype would still apply.  */
38165 #ifdef __cplusplus
38166 extern "C"
38167 #endif
38168 char $ac_func ();
38169 /* The GNU C library defines this for functions which it implements
38170     to always fail with ENOSYS.  Some functions are actually named
38171     something starting with __ and the normal name is an alias.  */
38172 #if defined __stub_$ac_func || defined __stub___$ac_func
38173 choke me
38174 #endif
38175
38176 int
38177 main ()
38178 {
38179 return $ac_func ();
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   eval "$as_ac_var=yes"
38203 else
38204   echo "$as_me: failed program was:" >&5
38205 sed 's/^/| /' conftest.$ac_ext >&5
38206
38207         eval "$as_ac_var=no"
38208 fi
38209
38210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38211       conftest$ac_exeext conftest.$ac_ext
38212 fi
38213 ac_res=`eval echo '${'$as_ac_var'}'`
38214                { echo "$as_me:$LINENO: result: $ac_res" >&5
38215 echo "${ECHO_T}$ac_res" >&6; }
38216 if test `eval echo '${'$as_ac_var'}'` = yes; then
38217   cat >>confdefs.h <<_ACEOF
38218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38219 _ACEOF
38220  cat >>confdefs.h <<\_ACEOF
38221 #define HAVE_STRTOLL 1
38222 _ACEOF
38223
38224 fi
38225 done
38226
38227
38228 for ac_func in posix_fadvise
38229 do
38230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38234   echo $ECHO_N "(cached) $ECHO_C" >&6
38235 else
38236   cat >conftest.$ac_ext <<_ACEOF
38237 /* confdefs.h.  */
38238 _ACEOF
38239 cat confdefs.h >>conftest.$ac_ext
38240 cat >>conftest.$ac_ext <<_ACEOF
38241 /* end confdefs.h.  */
38242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38244 #define $ac_func innocuous_$ac_func
38245
38246 /* System header to define __stub macros and hopefully few prototypes,
38247     which can conflict with char $ac_func (); below.
38248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38249     <limits.h> exists even on freestanding compilers.  */
38250
38251 #ifdef __STDC__
38252 # include <limits.h>
38253 #else
38254 # include <assert.h>
38255 #endif
38256
38257 #undef $ac_func
38258
38259 /* Override any GCC internal prototype to avoid an error.
38260    Use char because int might match the return type of a GCC
38261    builtin and then its argument prototype would still apply.  */
38262 #ifdef __cplusplus
38263 extern "C"
38264 #endif
38265 char $ac_func ();
38266 /* The GNU C library defines this for functions which it implements
38267     to always fail with ENOSYS.  Some functions are actually named
38268     something starting with __ and the normal name is an alias.  */
38269 #if defined __stub_$ac_func || defined __stub___$ac_func
38270 choke me
38271 #endif
38272
38273 int
38274 main ()
38275 {
38276 return $ac_func ();
38277   ;
38278   return 0;
38279 }
38280 _ACEOF
38281 rm -f conftest.$ac_objext conftest$ac_exeext
38282 if { (ac_try="$ac_link"
38283 case "(($ac_try" in
38284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38285   *) ac_try_echo=$ac_try;;
38286 esac
38287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38288   (eval "$ac_link") 2>conftest.er1
38289   ac_status=$?
38290   grep -v '^ *+' conftest.er1 >conftest.err
38291   rm -f conftest.er1
38292   cat conftest.err >&5
38293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294   (exit $ac_status); } && {
38295          test -z "$ac_c_werror_flag" ||
38296          test ! -s conftest.err
38297        } && test -s conftest$ac_exeext &&
38298        $as_test_x conftest$ac_exeext; then
38299   eval "$as_ac_var=yes"
38300 else
38301   echo "$as_me: failed program was:" >&5
38302 sed 's/^/| /' conftest.$ac_ext >&5
38303
38304         eval "$as_ac_var=no"
38305 fi
38306
38307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38308       conftest$ac_exeext conftest.$ac_ext
38309 fi
38310 ac_res=`eval echo '${'$as_ac_var'}'`
38311                { echo "$as_me:$LINENO: result: $ac_res" >&5
38312 echo "${ECHO_T}$ac_res" >&6; }
38313 if test `eval echo '${'$as_ac_var'}'` = yes; then
38314   cat >>confdefs.h <<_ACEOF
38315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38316 _ACEOF
38317
38318 fi
38319 done
38320
38321
38322 for ac_func in fdatasync
38323 do
38324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38328   echo $ECHO_N "(cached) $ECHO_C" >&6
38329 else
38330   cat >conftest.$ac_ext <<_ACEOF
38331 /* confdefs.h.  */
38332 _ACEOF
38333 cat confdefs.h >>conftest.$ac_ext
38334 cat >>conftest.$ac_ext <<_ACEOF
38335 /* end confdefs.h.  */
38336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38338 #define $ac_func innocuous_$ac_func
38339
38340 /* System header to define __stub macros and hopefully few prototypes,
38341     which can conflict with char $ac_func (); below.
38342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38343     <limits.h> exists even on freestanding compilers.  */
38344
38345 #ifdef __STDC__
38346 # include <limits.h>
38347 #else
38348 # include <assert.h>
38349 #endif
38350
38351 #undef $ac_func
38352
38353 /* Override any GCC internal prototype to avoid an error.
38354    Use char because int might match the return type of a GCC
38355    builtin and then its argument prototype would still apply.  */
38356 #ifdef __cplusplus
38357 extern "C"
38358 #endif
38359 char $ac_func ();
38360 /* The GNU C library defines this for functions which it implements
38361     to always fail with ENOSYS.  Some functions are actually named
38362     something starting with __ and the normal name is an alias.  */
38363 #if defined __stub_$ac_func || defined __stub___$ac_func
38364 choke me
38365 #endif
38366
38367 int
38368 main ()
38369 {
38370 return $ac_func ();
38371   ;
38372   return 0;
38373 }
38374 _ACEOF
38375 rm -f conftest.$ac_objext conftest$ac_exeext
38376 if { (ac_try="$ac_link"
38377 case "(($ac_try" in
38378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38379   *) ac_try_echo=$ac_try;;
38380 esac
38381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38382   (eval "$ac_link") 2>conftest.er1
38383   ac_status=$?
38384   grep -v '^ *+' conftest.er1 >conftest.err
38385   rm -f conftest.er1
38386   cat conftest.err >&5
38387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388   (exit $ac_status); } && {
38389          test -z "$ac_c_werror_flag" ||
38390          test ! -s conftest.err
38391        } && test -s conftest$ac_exeext &&
38392        $as_test_x conftest$ac_exeext; then
38393   eval "$as_ac_var=yes"
38394 else
38395   echo "$as_me: failed program was:" >&5
38396 sed 's/^/| /' conftest.$ac_ext >&5
38397
38398         eval "$as_ac_var=no"
38399 fi
38400
38401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38402       conftest$ac_exeext conftest.$ac_ext
38403 fi
38404 ac_res=`eval echo '${'$as_ac_var'}'`
38405                { echo "$as_me:$LINENO: result: $ac_res" >&5
38406 echo "${ECHO_T}$ac_res" >&6; }
38407 if test `eval echo '${'$as_ac_var'}'` = yes; then
38408   cat >>confdefs.h <<_ACEOF
38409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38410 _ACEOF
38411
38412 fi
38413 done
38414
38415
38416
38417 for ac_func in chflags
38418 do
38419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38423   echo $ECHO_N "(cached) $ECHO_C" >&6
38424 else
38425   cat >conftest.$ac_ext <<_ACEOF
38426 /* confdefs.h.  */
38427 _ACEOF
38428 cat confdefs.h >>conftest.$ac_ext
38429 cat >>conftest.$ac_ext <<_ACEOF
38430 /* end confdefs.h.  */
38431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38433 #define $ac_func innocuous_$ac_func
38434
38435 /* System header to define __stub macros and hopefully few prototypes,
38436     which can conflict with char $ac_func (); below.
38437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38438     <limits.h> exists even on freestanding compilers.  */
38439
38440 #ifdef __STDC__
38441 # include <limits.h>
38442 #else
38443 # include <assert.h>
38444 #endif
38445
38446 #undef $ac_func
38447
38448 /* Override any GCC internal prototype to avoid an error.
38449    Use char because int might match the return type of a GCC
38450    builtin and then its argument prototype would still apply.  */
38451 #ifdef __cplusplus
38452 extern "C"
38453 #endif
38454 char $ac_func ();
38455 /* The GNU C library defines this for functions which it implements
38456     to always fail with ENOSYS.  Some functions are actually named
38457     something starting with __ and the normal name is an alias.  */
38458 #if defined __stub_$ac_func || defined __stub___$ac_func
38459 choke me
38460 #endif
38461
38462 int
38463 main ()
38464 {
38465 return $ac_func ();
38466   ;
38467   return 0;
38468 }
38469 _ACEOF
38470 rm -f conftest.$ac_objext conftest$ac_exeext
38471 if { (ac_try="$ac_link"
38472 case "(($ac_try" in
38473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38474   *) ac_try_echo=$ac_try;;
38475 esac
38476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38477   (eval "$ac_link") 2>conftest.er1
38478   ac_status=$?
38479   grep -v '^ *+' conftest.er1 >conftest.err
38480   rm -f conftest.er1
38481   cat conftest.err >&5
38482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38483   (exit $ac_status); } && {
38484          test -z "$ac_c_werror_flag" ||
38485          test ! -s conftest.err
38486        } && test -s conftest$ac_exeext &&
38487        $as_test_x conftest$ac_exeext; then
38488   eval "$as_ac_var=yes"
38489 else
38490   echo "$as_me: failed program was:" >&5
38491 sed 's/^/| /' conftest.$ac_ext >&5
38492
38493         eval "$as_ac_var=no"
38494 fi
38495
38496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38497       conftest$ac_exeext conftest.$ac_ext
38498 fi
38499 ac_res=`eval echo '${'$as_ac_var'}'`
38500                { echo "$as_me:$LINENO: result: $ac_res" >&5
38501 echo "${ECHO_T}$ac_res" >&6; }
38502 if test `eval echo '${'$as_ac_var'}'` = yes; then
38503   cat >>confdefs.h <<_ACEOF
38504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38505 _ACEOF
38506
38507 fi
38508 done
38509
38510
38511
38512
38513
38514
38515 for ac_func in snprintf vsnprintf gethostid fseeko
38516 do
38517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38521   echo $ECHO_N "(cached) $ECHO_C" >&6
38522 else
38523   cat >conftest.$ac_ext <<_ACEOF
38524 /* confdefs.h.  */
38525 _ACEOF
38526 cat confdefs.h >>conftest.$ac_ext
38527 cat >>conftest.$ac_ext <<_ACEOF
38528 /* end confdefs.h.  */
38529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38531 #define $ac_func innocuous_$ac_func
38532
38533 /* System header to define __stub macros and hopefully few prototypes,
38534     which can conflict with char $ac_func (); below.
38535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38536     <limits.h> exists even on freestanding compilers.  */
38537
38538 #ifdef __STDC__
38539 # include <limits.h>
38540 #else
38541 # include <assert.h>
38542 #endif
38543
38544 #undef $ac_func
38545
38546 /* Override any GCC internal prototype to avoid an error.
38547    Use char because int might match the return type of a GCC
38548    builtin and then its argument prototype would still apply.  */
38549 #ifdef __cplusplus
38550 extern "C"
38551 #endif
38552 char $ac_func ();
38553 /* The GNU C library defines this for functions which it implements
38554     to always fail with ENOSYS.  Some functions are actually named
38555     something starting with __ and the normal name is an alias.  */
38556 #if defined __stub_$ac_func || defined __stub___$ac_func
38557 choke me
38558 #endif
38559
38560 int
38561 main ()
38562 {
38563 return $ac_func ();
38564   ;
38565   return 0;
38566 }
38567 _ACEOF
38568 rm -f conftest.$ac_objext conftest$ac_exeext
38569 if { (ac_try="$ac_link"
38570 case "(($ac_try" in
38571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38572   *) ac_try_echo=$ac_try;;
38573 esac
38574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38575   (eval "$ac_link") 2>conftest.er1
38576   ac_status=$?
38577   grep -v '^ *+' conftest.er1 >conftest.err
38578   rm -f conftest.er1
38579   cat conftest.err >&5
38580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38581   (exit $ac_status); } && {
38582          test -z "$ac_c_werror_flag" ||
38583          test ! -s conftest.err
38584        } && test -s conftest$ac_exeext &&
38585        $as_test_x conftest$ac_exeext; then
38586   eval "$as_ac_var=yes"
38587 else
38588   echo "$as_me: failed program was:" >&5
38589 sed 's/^/| /' conftest.$ac_ext >&5
38590
38591         eval "$as_ac_var=no"
38592 fi
38593
38594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38595       conftest$ac_exeext conftest.$ac_ext
38596 fi
38597 ac_res=`eval echo '${'$as_ac_var'}'`
38598                { echo "$as_me:$LINENO: result: $ac_res" >&5
38599 echo "${ECHO_T}$ac_res" >&6; }
38600 if test `eval echo '${'$as_ac_var'}'` = yes; then
38601   cat >>confdefs.h <<_ACEOF
38602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38603 _ACEOF
38604
38605 fi
38606 done
38607
38608
38609 { echo "$as_me:$LINENO: checking for va_copy" >&5
38610 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38611 if test "${ba_cv_va_copy+set}" = set; then
38612   echo $ECHO_N "(cached) $ECHO_C" >&6
38613 else
38614
38615        cat >conftest.$ac_ext <<_ACEOF
38616 /* confdefs.h.  */
38617 _ACEOF
38618 cat confdefs.h >>conftest.$ac_ext
38619 cat >>conftest.$ac_ext <<_ACEOF
38620 /* end confdefs.h.  */
38621
38622               #include <stdarg.h>
38623               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38624               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38625
38626 int
38627 main ()
38628 {
38629
38630               call_use_va_copy(1,2,3)
38631
38632   ;
38633   return 0;
38634 }
38635 _ACEOF
38636 rm -f conftest.$ac_objext conftest$ac_exeext
38637 if { (ac_try="$ac_link"
38638 case "(($ac_try" in
38639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38640   *) ac_try_echo=$ac_try;;
38641 esac
38642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38643   (eval "$ac_link") 2>conftest.er1
38644   ac_status=$?
38645   grep -v '^ *+' conftest.er1 >conftest.err
38646   rm -f conftest.er1
38647   cat conftest.err >&5
38648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38649   (exit $ac_status); } && {
38650          test -z "$ac_c_werror_flag" ||
38651          test ! -s conftest.err
38652        } && test -s conftest$ac_exeext &&
38653        $as_test_x conftest$ac_exeext; then
38654
38655               ba_cv_va_copy=yes,
38656
38657 else
38658   echo "$as_me: failed program was:" >&5
38659 sed 's/^/| /' conftest.$ac_ext >&5
38660
38661
38662               ba_cv_va_copy=no
38663
38664
38665 fi
38666
38667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38668       conftest$ac_exeext conftest.$ac_ext
38669
38670
38671 fi
38672 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38673 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38674 test $ba_cv_va_copy = yes &&
38675 cat >>confdefs.h <<\_ACEOF
38676 #define HAVE_VA_COPY 1
38677 _ACEOF
38678
38679
38680
38681
38682
38683
38684 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38685 do
38686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38690   echo $ECHO_N "(cached) $ECHO_C" >&6
38691 else
38692   cat >conftest.$ac_ext <<_ACEOF
38693 /* confdefs.h.  */
38694 _ACEOF
38695 cat confdefs.h >>conftest.$ac_ext
38696 cat >>conftest.$ac_ext <<_ACEOF
38697 /* end confdefs.h.  */
38698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38700 #define $ac_func innocuous_$ac_func
38701
38702 /* System header to define __stub macros and hopefully few prototypes,
38703     which can conflict with char $ac_func (); below.
38704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38705     <limits.h> exists even on freestanding compilers.  */
38706
38707 #ifdef __STDC__
38708 # include <limits.h>
38709 #else
38710 # include <assert.h>
38711 #endif
38712
38713 #undef $ac_func
38714
38715 /* Override any GCC internal prototype to avoid an error.
38716    Use char because int might match the return type of a GCC
38717    builtin and then its argument prototype would still apply.  */
38718 #ifdef __cplusplus
38719 extern "C"
38720 #endif
38721 char $ac_func ();
38722 /* The GNU C library defines this for functions which it implements
38723     to always fail with ENOSYS.  Some functions are actually named
38724     something starting with __ and the normal name is an alias.  */
38725 #if defined __stub_$ac_func || defined __stub___$ac_func
38726 choke me
38727 #endif
38728
38729 int
38730 main ()
38731 {
38732 return $ac_func ();
38733   ;
38734   return 0;
38735 }
38736 _ACEOF
38737 rm -f conftest.$ac_objext conftest$ac_exeext
38738 if { (ac_try="$ac_link"
38739 case "(($ac_try" in
38740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38741   *) ac_try_echo=$ac_try;;
38742 esac
38743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38744   (eval "$ac_link") 2>conftest.er1
38745   ac_status=$?
38746   grep -v '^ *+' conftest.er1 >conftest.err
38747   rm -f conftest.er1
38748   cat conftest.err >&5
38749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38750   (exit $ac_status); } && {
38751          test -z "$ac_c_werror_flag" ||
38752          test ! -s conftest.err
38753        } && test -s conftest$ac_exeext &&
38754        $as_test_x conftest$ac_exeext; then
38755   eval "$as_ac_var=yes"
38756 else
38757   echo "$as_me: failed program was:" >&5
38758 sed 's/^/| /' conftest.$ac_ext >&5
38759
38760         eval "$as_ac_var=no"
38761 fi
38762
38763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38764       conftest$ac_exeext conftest.$ac_ext
38765 fi
38766 ac_res=`eval echo '${'$as_ac_var'}'`
38767                { echo "$as_me:$LINENO: result: $ac_res" >&5
38768 echo "${ECHO_T}$ac_res" >&6; }
38769 if test `eval echo '${'$as_ac_var'}'` = yes; then
38770   cat >>confdefs.h <<_ACEOF
38771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38772 _ACEOF
38773
38774 fi
38775 done
38776
38777
38778 # If resolver functions are not in libc check for -lnsl or -lresolv.
38779 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38780 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38781 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38782   echo $ECHO_N "(cached) $ECHO_C" >&6
38783 else
38784   cat >conftest.$ac_ext <<_ACEOF
38785 /* confdefs.h.  */
38786 _ACEOF
38787 cat confdefs.h >>conftest.$ac_ext
38788 cat >>conftest.$ac_ext <<_ACEOF
38789 /* end confdefs.h.  */
38790 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38792 #define gethostbyname_r innocuous_gethostbyname_r
38793
38794 /* System header to define __stub macros and hopefully few prototypes,
38795     which can conflict with char gethostbyname_r (); below.
38796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38797     <limits.h> exists even on freestanding compilers.  */
38798
38799 #ifdef __STDC__
38800 # include <limits.h>
38801 #else
38802 # include <assert.h>
38803 #endif
38804
38805 #undef gethostbyname_r
38806
38807 /* Override any GCC internal prototype to avoid an error.
38808    Use char because int might match the return type of a GCC
38809    builtin and then its argument prototype would still apply.  */
38810 #ifdef __cplusplus
38811 extern "C"
38812 #endif
38813 char gethostbyname_r ();
38814 /* The GNU C library defines this for functions which it implements
38815     to always fail with ENOSYS.  Some functions are actually named
38816     something starting with __ and the normal name is an alias.  */
38817 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38818 choke me
38819 #endif
38820
38821 int
38822 main ()
38823 {
38824 return gethostbyname_r ();
38825   ;
38826   return 0;
38827 }
38828 _ACEOF
38829 rm -f conftest.$ac_objext conftest$ac_exeext
38830 if { (ac_try="$ac_link"
38831 case "(($ac_try" in
38832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38833   *) ac_try_echo=$ac_try;;
38834 esac
38835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38836   (eval "$ac_link") 2>conftest.er1
38837   ac_status=$?
38838   grep -v '^ *+' conftest.er1 >conftest.err
38839   rm -f conftest.er1
38840   cat conftest.err >&5
38841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842   (exit $ac_status); } && {
38843          test -z "$ac_c_werror_flag" ||
38844          test ! -s conftest.err
38845        } && test -s conftest$ac_exeext &&
38846        $as_test_x conftest$ac_exeext; then
38847   ac_cv_func_gethostbyname_r=yes
38848 else
38849   echo "$as_me: failed program was:" >&5
38850 sed 's/^/| /' conftest.$ac_ext >&5
38851
38852         ac_cv_func_gethostbyname_r=no
38853 fi
38854
38855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38856       conftest$ac_exeext conftest.$ac_ext
38857 fi
38858 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38859 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38860 if test $ac_cv_func_gethostbyname_r = yes; then
38861   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38862 echo "${ECHO_T}using libc's resolver" >&6; }
38863 else
38864
38865 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38866 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38867 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38868   echo $ECHO_N "(cached) $ECHO_C" >&6
38869 else
38870   ac_check_lib_save_LIBS=$LIBS
38871 LIBS="-lnsl  $LIBS"
38872 cat >conftest.$ac_ext <<_ACEOF
38873 /* confdefs.h.  */
38874 _ACEOF
38875 cat confdefs.h >>conftest.$ac_ext
38876 cat >>conftest.$ac_ext <<_ACEOF
38877 /* end confdefs.h.  */
38878
38879 /* Override any GCC internal prototype to avoid an error.
38880    Use char because int might match the return type of a GCC
38881    builtin and then its argument prototype would still apply.  */
38882 #ifdef __cplusplus
38883 extern "C"
38884 #endif
38885 char gethostbyname_r ();
38886 int
38887 main ()
38888 {
38889 return gethostbyname_r ();
38890   ;
38891   return 0;
38892 }
38893 _ACEOF
38894 rm -f conftest.$ac_objext conftest$ac_exeext
38895 if { (ac_try="$ac_link"
38896 case "(($ac_try" in
38897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38898   *) ac_try_echo=$ac_try;;
38899 esac
38900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38901   (eval "$ac_link") 2>conftest.er1
38902   ac_status=$?
38903   grep -v '^ *+' conftest.er1 >conftest.err
38904   rm -f conftest.er1
38905   cat conftest.err >&5
38906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907   (exit $ac_status); } && {
38908          test -z "$ac_c_werror_flag" ||
38909          test ! -s conftest.err
38910        } && test -s conftest$ac_exeext &&
38911        $as_test_x conftest$ac_exeext; then
38912   ac_cv_lib_nsl_gethostbyname_r=yes
38913 else
38914   echo "$as_me: failed program was:" >&5
38915 sed 's/^/| /' conftest.$ac_ext >&5
38916
38917         ac_cv_lib_nsl_gethostbyname_r=no
38918 fi
38919
38920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38921       conftest$ac_exeext conftest.$ac_ext
38922 LIBS=$ac_check_lib_save_LIBS
38923 fi
38924 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38925 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38926 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38927   cat >>confdefs.h <<_ACEOF
38928 #define HAVE_LIBNSL 1
38929 _ACEOF
38930
38931   LIBS="-lnsl $LIBS"
38932
38933 fi
38934
38935
38936 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38937 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38938 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38939   echo $ECHO_N "(cached) $ECHO_C" >&6
38940 else
38941   ac_check_lib_save_LIBS=$LIBS
38942 LIBS="-lresolv  $LIBS"
38943 cat >conftest.$ac_ext <<_ACEOF
38944 /* confdefs.h.  */
38945 _ACEOF
38946 cat confdefs.h >>conftest.$ac_ext
38947 cat >>conftest.$ac_ext <<_ACEOF
38948 /* end confdefs.h.  */
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 gethostbyname_r ();
38957 int
38958 main ()
38959 {
38960 return gethostbyname_r ();
38961   ;
38962   return 0;
38963 }
38964 _ACEOF
38965 rm -f conftest.$ac_objext conftest$ac_exeext
38966 if { (ac_try="$ac_link"
38967 case "(($ac_try" in
38968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38969   *) ac_try_echo=$ac_try;;
38970 esac
38971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38972   (eval "$ac_link") 2>conftest.er1
38973   ac_status=$?
38974   grep -v '^ *+' conftest.er1 >conftest.err
38975   rm -f conftest.er1
38976   cat conftest.err >&5
38977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38978   (exit $ac_status); } && {
38979          test -z "$ac_c_werror_flag" ||
38980          test ! -s conftest.err
38981        } && test -s conftest$ac_exeext &&
38982        $as_test_x conftest$ac_exeext; then
38983   ac_cv_lib_resolv_gethostbyname_r=yes
38984 else
38985   echo "$as_me: failed program was:" >&5
38986 sed 's/^/| /' conftest.$ac_ext >&5
38987
38988         ac_cv_lib_resolv_gethostbyname_r=no
38989 fi
38990
38991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38992       conftest$ac_exeext conftest.$ac_ext
38993 LIBS=$ac_check_lib_save_LIBS
38994 fi
38995 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38996 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38997 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38998   cat >>confdefs.h <<_ACEOF
38999 #define HAVE_LIBRESOLV 1
39000 _ACEOF
39001
39002   LIBS="-lresolv $LIBS"
39003
39004 fi
39005
39006 fi
39007
39008
39009
39010 for ac_func in inet_pton
39011 do
39012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39016   echo $ECHO_N "(cached) $ECHO_C" >&6
39017 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39026 #define $ac_func innocuous_$ac_func
39027
39028 /* System header to define __stub macros and hopefully few prototypes,
39029     which can conflict with char $ac_func (); below.
39030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39031     <limits.h> exists even on freestanding compilers.  */
39032
39033 #ifdef __STDC__
39034 # include <limits.h>
39035 #else
39036 # include <assert.h>
39037 #endif
39038
39039 #undef $ac_func
39040
39041 /* Override any GCC internal prototype to avoid an error.
39042    Use char because int might match the return type of a GCC
39043    builtin and then its argument prototype would still apply.  */
39044 #ifdef __cplusplus
39045 extern "C"
39046 #endif
39047 char $ac_func ();
39048 /* The GNU C library defines this for functions which it implements
39049     to always fail with ENOSYS.  Some functions are actually named
39050     something starting with __ and the normal name is an alias.  */
39051 #if defined __stub_$ac_func || defined __stub___$ac_func
39052 choke me
39053 #endif
39054
39055 int
39056 main ()
39057 {
39058 return $ac_func ();
39059   ;
39060   return 0;
39061 }
39062 _ACEOF
39063 rm -f conftest.$ac_objext conftest$ac_exeext
39064 if { (ac_try="$ac_link"
39065 case "(($ac_try" in
39066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39067   *) ac_try_echo=$ac_try;;
39068 esac
39069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39070   (eval "$ac_link") 2>conftest.er1
39071   ac_status=$?
39072   grep -v '^ *+' conftest.er1 >conftest.err
39073   rm -f conftest.er1
39074   cat conftest.err >&5
39075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39076   (exit $ac_status); } && {
39077          test -z "$ac_c_werror_flag" ||
39078          test ! -s conftest.err
39079        } && test -s conftest$ac_exeext &&
39080        $as_test_x conftest$ac_exeext; then
39081   eval "$as_ac_var=yes"
39082 else
39083   echo "$as_me: failed program was:" >&5
39084 sed 's/^/| /' conftest.$ac_ext >&5
39085
39086         eval "$as_ac_var=no"
39087 fi
39088
39089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39090       conftest$ac_exeext conftest.$ac_ext
39091 fi
39092 ac_res=`eval echo '${'$as_ac_var'}'`
39093                { echo "$as_me:$LINENO: result: $ac_res" >&5
39094 echo "${ECHO_T}$ac_res" >&6; }
39095 if test `eval echo '${'$as_ac_var'}'` = yes; then
39096   cat >>confdefs.h <<_ACEOF
39097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39098 _ACEOF
39099  cat >>confdefs.h <<\_ACEOF
39100 #define HAVE_INET_PTON 1
39101 _ACEOF
39102
39103 fi
39104 done
39105
39106
39107 for ac_func in inet_ntop
39108 do
39109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39113   echo $ECHO_N "(cached) $ECHO_C" >&6
39114 else
39115   cat >conftest.$ac_ext <<_ACEOF
39116 /* confdefs.h.  */
39117 _ACEOF
39118 cat confdefs.h >>conftest.$ac_ext
39119 cat >>conftest.$ac_ext <<_ACEOF
39120 /* end confdefs.h.  */
39121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39123 #define $ac_func innocuous_$ac_func
39124
39125 /* System header to define __stub macros and hopefully few prototypes,
39126     which can conflict with char $ac_func (); below.
39127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39128     <limits.h> exists even on freestanding compilers.  */
39129
39130 #ifdef __STDC__
39131 # include <limits.h>
39132 #else
39133 # include <assert.h>
39134 #endif
39135
39136 #undef $ac_func
39137
39138 /* Override any GCC internal prototype to avoid an error.
39139    Use char because int might match the return type of a GCC
39140    builtin and then its argument prototype would still apply.  */
39141 #ifdef __cplusplus
39142 extern "C"
39143 #endif
39144 char $ac_func ();
39145 /* The GNU C library defines this for functions which it implements
39146     to always fail with ENOSYS.  Some functions are actually named
39147     something starting with __ and the normal name is an alias.  */
39148 #if defined __stub_$ac_func || defined __stub___$ac_func
39149 choke me
39150 #endif
39151
39152 int
39153 main ()
39154 {
39155 return $ac_func ();
39156   ;
39157   return 0;
39158 }
39159 _ACEOF
39160 rm -f conftest.$ac_objext conftest$ac_exeext
39161 if { (ac_try="$ac_link"
39162 case "(($ac_try" in
39163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39164   *) ac_try_echo=$ac_try;;
39165 esac
39166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39167   (eval "$ac_link") 2>conftest.er1
39168   ac_status=$?
39169   grep -v '^ *+' conftest.er1 >conftest.err
39170   rm -f conftest.er1
39171   cat conftest.err >&5
39172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39173   (exit $ac_status); } && {
39174          test -z "$ac_c_werror_flag" ||
39175          test ! -s conftest.err
39176        } && test -s conftest$ac_exeext &&
39177        $as_test_x conftest$ac_exeext; then
39178   eval "$as_ac_var=yes"
39179 else
39180   echo "$as_me: failed program was:" >&5
39181 sed 's/^/| /' conftest.$ac_ext >&5
39182
39183         eval "$as_ac_var=no"
39184 fi
39185
39186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39187       conftest$ac_exeext conftest.$ac_ext
39188 fi
39189 ac_res=`eval echo '${'$as_ac_var'}'`
39190                { echo "$as_me:$LINENO: result: $ac_res" >&5
39191 echo "${ECHO_T}$ac_res" >&6; }
39192 if test `eval echo '${'$as_ac_var'}'` = yes; then
39193   cat >>confdefs.h <<_ACEOF
39194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39195 _ACEOF
39196  cat >>confdefs.h <<\_ACEOF
39197 #define HAVE_INET_NTOP 1
39198 _ACEOF
39199
39200 fi
39201 done
39202
39203
39204 for ac_func in gethostbyname2
39205 do
39206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39210   echo $ECHO_N "(cached) $ECHO_C" >&6
39211 else
39212   cat >conftest.$ac_ext <<_ACEOF
39213 /* confdefs.h.  */
39214 _ACEOF
39215 cat confdefs.h >>conftest.$ac_ext
39216 cat >>conftest.$ac_ext <<_ACEOF
39217 /* end confdefs.h.  */
39218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39219    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39220 #define $ac_func innocuous_$ac_func
39221
39222 /* System header to define __stub macros and hopefully few prototypes,
39223     which can conflict with char $ac_func (); below.
39224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39225     <limits.h> exists even on freestanding compilers.  */
39226
39227 #ifdef __STDC__
39228 # include <limits.h>
39229 #else
39230 # include <assert.h>
39231 #endif
39232
39233 #undef $ac_func
39234
39235 /* Override any GCC internal prototype to avoid an error.
39236    Use char because int might match the return type of a GCC
39237    builtin and then its argument prototype would still apply.  */
39238 #ifdef __cplusplus
39239 extern "C"
39240 #endif
39241 char $ac_func ();
39242 /* The GNU C library defines this for functions which it implements
39243     to always fail with ENOSYS.  Some functions are actually named
39244     something starting with __ and the normal name is an alias.  */
39245 #if defined __stub_$ac_func || defined __stub___$ac_func
39246 choke me
39247 #endif
39248
39249 int
39250 main ()
39251 {
39252 return $ac_func ();
39253   ;
39254   return 0;
39255 }
39256 _ACEOF
39257 rm -f conftest.$ac_objext conftest$ac_exeext
39258 if { (ac_try="$ac_link"
39259 case "(($ac_try" in
39260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39261   *) ac_try_echo=$ac_try;;
39262 esac
39263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39264   (eval "$ac_link") 2>conftest.er1
39265   ac_status=$?
39266   grep -v '^ *+' conftest.er1 >conftest.err
39267   rm -f conftest.er1
39268   cat conftest.err >&5
39269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39270   (exit $ac_status); } && {
39271          test -z "$ac_c_werror_flag" ||
39272          test ! -s conftest.err
39273        } && test -s conftest$ac_exeext &&
39274        $as_test_x conftest$ac_exeext; then
39275   eval "$as_ac_var=yes"
39276 else
39277   echo "$as_me: failed program was:" >&5
39278 sed 's/^/| /' conftest.$ac_ext >&5
39279
39280         eval "$as_ac_var=no"
39281 fi
39282
39283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39284       conftest$ac_exeext conftest.$ac_ext
39285 fi
39286 ac_res=`eval echo '${'$as_ac_var'}'`
39287                { echo "$as_me:$LINENO: result: $ac_res" >&5
39288 echo "${ECHO_T}$ac_res" >&6; }
39289 if test `eval echo '${'$as_ac_var'}'` = yes; then
39290   cat >>confdefs.h <<_ACEOF
39291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39292 _ACEOF
39293  cat >>confdefs.h <<\_ACEOF
39294 #define HAVE_GETHOSTBYNAME2 1
39295 _ACEOF
39296
39297 fi
39298 done
39299
39300
39301 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39302 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39303 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39304   echo $ECHO_N "(cached) $ECHO_C" >&6
39305 else
39306
39307        cat >conftest.$ac_ext <<_ACEOF
39308 /* confdefs.h.  */
39309 _ACEOF
39310 cat confdefs.h >>conftest.$ac_ext
39311 cat >>conftest.$ac_ext <<_ACEOF
39312 /* end confdefs.h.  */
39313
39314               #include <sys/socket.h>
39315
39316 int
39317 main ()
39318 {
39319
39320               struct sockaddr s; s.sa_len;
39321
39322   ;
39323   return 0;
39324 }
39325 _ACEOF
39326 rm -f conftest.$ac_objext
39327 if { (ac_try="$ac_compile"
39328 case "(($ac_try" in
39329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39330   *) ac_try_echo=$ac_try;;
39331 esac
39332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39333   (eval "$ac_compile") 2>conftest.er1
39334   ac_status=$?
39335   grep -v '^ *+' conftest.er1 >conftest.err
39336   rm -f conftest.er1
39337   cat conftest.err >&5
39338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39339   (exit $ac_status); } && {
39340          test -z "$ac_c_werror_flag" ||
39341          test ! -s conftest.err
39342        } && test -s conftest.$ac_objext; then
39343
39344              ac_cv_struct_sockaddr_sa_len=yes
39345
39346 else
39347   echo "$as_me: failed program was:" >&5
39348 sed 's/^/| /' conftest.$ac_ext >&5
39349
39350         ac_cv_struct_sockaddr_sa_len=no
39351
39352
39353 fi
39354
39355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39356
39357
39358 fi
39359 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39360 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39361
39362 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39363
39364 cat >>confdefs.h <<\_ACEOF
39365 #define HAVE_SA_LEN 1
39366 _ACEOF
39367
39368 fi
39369
39370
39371 for ac_func in strftime
39372 do
39373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39377   echo $ECHO_N "(cached) $ECHO_C" >&6
39378 else
39379   cat >conftest.$ac_ext <<_ACEOF
39380 /* confdefs.h.  */
39381 _ACEOF
39382 cat confdefs.h >>conftest.$ac_ext
39383 cat >>conftest.$ac_ext <<_ACEOF
39384 /* end confdefs.h.  */
39385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39387 #define $ac_func innocuous_$ac_func
39388
39389 /* System header to define __stub macros and hopefully few prototypes,
39390     which can conflict with char $ac_func (); below.
39391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39392     <limits.h> exists even on freestanding compilers.  */
39393
39394 #ifdef __STDC__
39395 # include <limits.h>
39396 #else
39397 # include <assert.h>
39398 #endif
39399
39400 #undef $ac_func
39401
39402 /* Override any GCC internal prototype to avoid an error.
39403    Use char because int might match the return type of a GCC
39404    builtin and then its argument prototype would still apply.  */
39405 #ifdef __cplusplus
39406 extern "C"
39407 #endif
39408 char $ac_func ();
39409 /* The GNU C library defines this for functions which it implements
39410     to always fail with ENOSYS.  Some functions are actually named
39411     something starting with __ and the normal name is an alias.  */
39412 #if defined __stub_$ac_func || defined __stub___$ac_func
39413 choke me
39414 #endif
39415
39416 int
39417 main ()
39418 {
39419 return $ac_func ();
39420   ;
39421   return 0;
39422 }
39423 _ACEOF
39424 rm -f conftest.$ac_objext conftest$ac_exeext
39425 if { (ac_try="$ac_link"
39426 case "(($ac_try" in
39427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39428   *) ac_try_echo=$ac_try;;
39429 esac
39430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39431   (eval "$ac_link") 2>conftest.er1
39432   ac_status=$?
39433   grep -v '^ *+' conftest.er1 >conftest.err
39434   rm -f conftest.er1
39435   cat conftest.err >&5
39436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39437   (exit $ac_status); } && {
39438          test -z "$ac_c_werror_flag" ||
39439          test ! -s conftest.err
39440        } && test -s conftest$ac_exeext &&
39441        $as_test_x conftest$ac_exeext; then
39442   eval "$as_ac_var=yes"
39443 else
39444   echo "$as_me: failed program was:" >&5
39445 sed 's/^/| /' conftest.$ac_ext >&5
39446
39447         eval "$as_ac_var=no"
39448 fi
39449
39450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39451       conftest$ac_exeext conftest.$ac_ext
39452 fi
39453 ac_res=`eval echo '${'$as_ac_var'}'`
39454                { echo "$as_me:$LINENO: result: $ac_res" >&5
39455 echo "${ECHO_T}$ac_res" >&6; }
39456 if test `eval echo '${'$as_ac_var'}'` = yes; then
39457   cat >>confdefs.h <<_ACEOF
39458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39459 _ACEOF
39460
39461 else
39462   # strftime is in -lintl on SCO UNIX.
39463 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39464 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39465 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39466   echo $ECHO_N "(cached) $ECHO_C" >&6
39467 else
39468   ac_check_lib_save_LIBS=$LIBS
39469 LIBS="-lintl  $LIBS"
39470 cat >conftest.$ac_ext <<_ACEOF
39471 /* confdefs.h.  */
39472 _ACEOF
39473 cat confdefs.h >>conftest.$ac_ext
39474 cat >>conftest.$ac_ext <<_ACEOF
39475 /* end confdefs.h.  */
39476
39477 /* Override any GCC internal prototype to avoid an error.
39478    Use char because int might match the return type of a GCC
39479    builtin and then its argument prototype would still apply.  */
39480 #ifdef __cplusplus
39481 extern "C"
39482 #endif
39483 char strftime ();
39484 int
39485 main ()
39486 {
39487 return strftime ();
39488   ;
39489   return 0;
39490 }
39491 _ACEOF
39492 rm -f conftest.$ac_objext conftest$ac_exeext
39493 if { (ac_try="$ac_link"
39494 case "(($ac_try" in
39495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39496   *) ac_try_echo=$ac_try;;
39497 esac
39498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39499   (eval "$ac_link") 2>conftest.er1
39500   ac_status=$?
39501   grep -v '^ *+' conftest.er1 >conftest.err
39502   rm -f conftest.er1
39503   cat conftest.err >&5
39504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39505   (exit $ac_status); } && {
39506          test -z "$ac_c_werror_flag" ||
39507          test ! -s conftest.err
39508        } && test -s conftest$ac_exeext &&
39509        $as_test_x conftest$ac_exeext; then
39510   ac_cv_lib_intl_strftime=yes
39511 else
39512   echo "$as_me: failed program was:" >&5
39513 sed 's/^/| /' conftest.$ac_ext >&5
39514
39515         ac_cv_lib_intl_strftime=no
39516 fi
39517
39518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39519       conftest$ac_exeext conftest.$ac_ext
39520 LIBS=$ac_check_lib_save_LIBS
39521 fi
39522 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39523 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39524 if test $ac_cv_lib_intl_strftime = yes; then
39525   cat >>confdefs.h <<\_ACEOF
39526 #define HAVE_STRFTIME 1
39527 _ACEOF
39528
39529 LIBS="-lintl $LIBS"
39530 fi
39531
39532 fi
39533 done
39534
39535
39536 for ac_func in vprintf
39537 do
39538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39542   echo $ECHO_N "(cached) $ECHO_C" >&6
39543 else
39544   cat >conftest.$ac_ext <<_ACEOF
39545 /* confdefs.h.  */
39546 _ACEOF
39547 cat confdefs.h >>conftest.$ac_ext
39548 cat >>conftest.$ac_ext <<_ACEOF
39549 /* end confdefs.h.  */
39550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39552 #define $ac_func innocuous_$ac_func
39553
39554 /* System header to define __stub macros and hopefully few prototypes,
39555     which can conflict with char $ac_func (); below.
39556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39557     <limits.h> exists even on freestanding compilers.  */
39558
39559 #ifdef __STDC__
39560 # include <limits.h>
39561 #else
39562 # include <assert.h>
39563 #endif
39564
39565 #undef $ac_func
39566
39567 /* Override any GCC internal prototype to avoid an error.
39568    Use char because int might match the return type of a GCC
39569    builtin and then its argument prototype would still apply.  */
39570 #ifdef __cplusplus
39571 extern "C"
39572 #endif
39573 char $ac_func ();
39574 /* The GNU C library defines this for functions which it implements
39575     to always fail with ENOSYS.  Some functions are actually named
39576     something starting with __ and the normal name is an alias.  */
39577 #if defined __stub_$ac_func || defined __stub___$ac_func
39578 choke me
39579 #endif
39580
39581 int
39582 main ()
39583 {
39584 return $ac_func ();
39585   ;
39586   return 0;
39587 }
39588 _ACEOF
39589 rm -f conftest.$ac_objext conftest$ac_exeext
39590 if { (ac_try="$ac_link"
39591 case "(($ac_try" in
39592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39593   *) ac_try_echo=$ac_try;;
39594 esac
39595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39596   (eval "$ac_link") 2>conftest.er1
39597   ac_status=$?
39598   grep -v '^ *+' conftest.er1 >conftest.err
39599   rm -f conftest.er1
39600   cat conftest.err >&5
39601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39602   (exit $ac_status); } && {
39603          test -z "$ac_c_werror_flag" ||
39604          test ! -s conftest.err
39605        } && test -s conftest$ac_exeext &&
39606        $as_test_x conftest$ac_exeext; then
39607   eval "$as_ac_var=yes"
39608 else
39609   echo "$as_me: failed program was:" >&5
39610 sed 's/^/| /' conftest.$ac_ext >&5
39611
39612         eval "$as_ac_var=no"
39613 fi
39614
39615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39616       conftest$ac_exeext conftest.$ac_ext
39617 fi
39618 ac_res=`eval echo '${'$as_ac_var'}'`
39619                { echo "$as_me:$LINENO: result: $ac_res" >&5
39620 echo "${ECHO_T}$ac_res" >&6; }
39621 if test `eval echo '${'$as_ac_var'}'` = yes; then
39622   cat >>confdefs.h <<_ACEOF
39623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39624 _ACEOF
39625
39626 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39627 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39628 if test "${ac_cv_func__doprnt+set}" = set; then
39629   echo $ECHO_N "(cached) $ECHO_C" >&6
39630 else
39631   cat >conftest.$ac_ext <<_ACEOF
39632 /* confdefs.h.  */
39633 _ACEOF
39634 cat confdefs.h >>conftest.$ac_ext
39635 cat >>conftest.$ac_ext <<_ACEOF
39636 /* end confdefs.h.  */
39637 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39639 #define _doprnt innocuous__doprnt
39640
39641 /* System header to define __stub macros and hopefully few prototypes,
39642     which can conflict with char _doprnt (); below.
39643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39644     <limits.h> exists even on freestanding compilers.  */
39645
39646 #ifdef __STDC__
39647 # include <limits.h>
39648 #else
39649 # include <assert.h>
39650 #endif
39651
39652 #undef _doprnt
39653
39654 /* Override any GCC internal prototype to avoid an error.
39655    Use char because int might match the return type of a GCC
39656    builtin and then its argument prototype would still apply.  */
39657 #ifdef __cplusplus
39658 extern "C"
39659 #endif
39660 char _doprnt ();
39661 /* The GNU C library defines this for functions which it implements
39662     to always fail with ENOSYS.  Some functions are actually named
39663     something starting with __ and the normal name is an alias.  */
39664 #if defined __stub__doprnt || defined __stub____doprnt
39665 choke me
39666 #endif
39667
39668 int
39669 main ()
39670 {
39671 return _doprnt ();
39672   ;
39673   return 0;
39674 }
39675 _ACEOF
39676 rm -f conftest.$ac_objext conftest$ac_exeext
39677 if { (ac_try="$ac_link"
39678 case "(($ac_try" in
39679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39680   *) ac_try_echo=$ac_try;;
39681 esac
39682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39683   (eval "$ac_link") 2>conftest.er1
39684   ac_status=$?
39685   grep -v '^ *+' conftest.er1 >conftest.err
39686   rm -f conftest.er1
39687   cat conftest.err >&5
39688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39689   (exit $ac_status); } && {
39690          test -z "$ac_c_werror_flag" ||
39691          test ! -s conftest.err
39692        } && test -s conftest$ac_exeext &&
39693        $as_test_x conftest$ac_exeext; then
39694   ac_cv_func__doprnt=yes
39695 else
39696   echo "$as_me: failed program was:" >&5
39697 sed 's/^/| /' conftest.$ac_ext >&5
39698
39699         ac_cv_func__doprnt=no
39700 fi
39701
39702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39703       conftest$ac_exeext conftest.$ac_ext
39704 fi
39705 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39706 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39707 if test $ac_cv_func__doprnt = yes; then
39708
39709 cat >>confdefs.h <<\_ACEOF
39710 #define HAVE_DOPRNT 1
39711 _ACEOF
39712
39713 fi
39714
39715 fi
39716 done
39717
39718
39719 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39720 # for constant arguments.  Useless!
39721 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39722 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39723 if test "${ac_cv_working_alloca_h+set}" = set; then
39724   echo $ECHO_N "(cached) $ECHO_C" >&6
39725 else
39726   cat >conftest.$ac_ext <<_ACEOF
39727 /* confdefs.h.  */
39728 _ACEOF
39729 cat confdefs.h >>conftest.$ac_ext
39730 cat >>conftest.$ac_ext <<_ACEOF
39731 /* end confdefs.h.  */
39732 #include <alloca.h>
39733 int
39734 main ()
39735 {
39736 char *p = (char *) alloca (2 * sizeof (int));
39737                           if (p) return 0;
39738   ;
39739   return 0;
39740 }
39741 _ACEOF
39742 rm -f conftest.$ac_objext conftest$ac_exeext
39743 if { (ac_try="$ac_link"
39744 case "(($ac_try" in
39745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39746   *) ac_try_echo=$ac_try;;
39747 esac
39748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39749   (eval "$ac_link") 2>conftest.er1
39750   ac_status=$?
39751   grep -v '^ *+' conftest.er1 >conftest.err
39752   rm -f conftest.er1
39753   cat conftest.err >&5
39754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39755   (exit $ac_status); } && {
39756          test -z "$ac_c_werror_flag" ||
39757          test ! -s conftest.err
39758        } && test -s conftest$ac_exeext &&
39759        $as_test_x conftest$ac_exeext; then
39760   ac_cv_working_alloca_h=yes
39761 else
39762   echo "$as_me: failed program was:" >&5
39763 sed 's/^/| /' conftest.$ac_ext >&5
39764
39765         ac_cv_working_alloca_h=no
39766 fi
39767
39768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39769       conftest$ac_exeext conftest.$ac_ext
39770 fi
39771 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39772 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39773 if test $ac_cv_working_alloca_h = yes; then
39774
39775 cat >>confdefs.h <<\_ACEOF
39776 #define HAVE_ALLOCA_H 1
39777 _ACEOF
39778
39779 fi
39780
39781 { echo "$as_me:$LINENO: checking for alloca" >&5
39782 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39783 if test "${ac_cv_func_alloca_works+set}" = set; then
39784   echo $ECHO_N "(cached) $ECHO_C" >&6
39785 else
39786   cat >conftest.$ac_ext <<_ACEOF
39787 /* confdefs.h.  */
39788 _ACEOF
39789 cat confdefs.h >>conftest.$ac_ext
39790 cat >>conftest.$ac_ext <<_ACEOF
39791 /* end confdefs.h.  */
39792 #ifdef __GNUC__
39793 # define alloca __builtin_alloca
39794 #else
39795 # ifdef _MSC_VER
39796 #  include <malloc.h>
39797 #  define alloca _alloca
39798 # else
39799 #  ifdef HAVE_ALLOCA_H
39800 #   include <alloca.h>
39801 #  else
39802 #   ifdef _AIX
39803  #pragma alloca
39804 #   else
39805 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39806 char *alloca ();
39807 #    endif
39808 #   endif
39809 #  endif
39810 # endif
39811 #endif
39812
39813 int
39814 main ()
39815 {
39816 char *p = (char *) alloca (1);
39817                                     if (p) return 0;
39818   ;
39819   return 0;
39820 }
39821 _ACEOF
39822 rm -f conftest.$ac_objext conftest$ac_exeext
39823 if { (ac_try="$ac_link"
39824 case "(($ac_try" in
39825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39826   *) ac_try_echo=$ac_try;;
39827 esac
39828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39829   (eval "$ac_link") 2>conftest.er1
39830   ac_status=$?
39831   grep -v '^ *+' conftest.er1 >conftest.err
39832   rm -f conftest.er1
39833   cat conftest.err >&5
39834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39835   (exit $ac_status); } && {
39836          test -z "$ac_c_werror_flag" ||
39837          test ! -s conftest.err
39838        } && test -s conftest$ac_exeext &&
39839        $as_test_x conftest$ac_exeext; then
39840   ac_cv_func_alloca_works=yes
39841 else
39842   echo "$as_me: failed program was:" >&5
39843 sed 's/^/| /' conftest.$ac_ext >&5
39844
39845         ac_cv_func_alloca_works=no
39846 fi
39847
39848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39849       conftest$ac_exeext conftest.$ac_ext
39850 fi
39851 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39852 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39853
39854 if test $ac_cv_func_alloca_works = yes; then
39855
39856 cat >>confdefs.h <<\_ACEOF
39857 #define HAVE_ALLOCA 1
39858 _ACEOF
39859
39860 else
39861   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39862 # that cause trouble.  Some versions do not even contain alloca or
39863 # contain a buggy version.  If you still want to use their alloca,
39864 # use ar to extract alloca.o from them instead of compiling alloca.c.
39865
39866 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39867
39868 cat >>confdefs.h <<\_ACEOF
39869 #define C_ALLOCA 1
39870 _ACEOF
39871
39872
39873 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39874 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39875 if test "${ac_cv_os_cray+set}" = set; then
39876   echo $ECHO_N "(cached) $ECHO_C" >&6
39877 else
39878   cat >conftest.$ac_ext <<_ACEOF
39879 /* confdefs.h.  */
39880 _ACEOF
39881 cat confdefs.h >>conftest.$ac_ext
39882 cat >>conftest.$ac_ext <<_ACEOF
39883 /* end confdefs.h.  */
39884 #if defined CRAY && ! defined CRAY2
39885 webecray
39886 #else
39887 wenotbecray
39888 #endif
39889
39890 _ACEOF
39891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39892   $EGREP "webecray" >/dev/null 2>&1; then
39893   ac_cv_os_cray=yes
39894 else
39895   ac_cv_os_cray=no
39896 fi
39897 rm -f conftest*
39898
39899 fi
39900 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39901 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39902 if test $ac_cv_os_cray = yes; then
39903   for ac_func in _getb67 GETB67 getb67; do
39904     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39908   echo $ECHO_N "(cached) $ECHO_C" >&6
39909 else
39910   cat >conftest.$ac_ext <<_ACEOF
39911 /* confdefs.h.  */
39912 _ACEOF
39913 cat confdefs.h >>conftest.$ac_ext
39914 cat >>conftest.$ac_ext <<_ACEOF
39915 /* end confdefs.h.  */
39916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39917    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39918 #define $ac_func innocuous_$ac_func
39919
39920 /* System header to define __stub macros and hopefully few prototypes,
39921     which can conflict with char $ac_func (); below.
39922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39923     <limits.h> exists even on freestanding compilers.  */
39924
39925 #ifdef __STDC__
39926 # include <limits.h>
39927 #else
39928 # include <assert.h>
39929 #endif
39930
39931 #undef $ac_func
39932
39933 /* Override any GCC internal prototype to avoid an error.
39934    Use char because int might match the return type of a GCC
39935    builtin and then its argument prototype would still apply.  */
39936 #ifdef __cplusplus
39937 extern "C"
39938 #endif
39939 char $ac_func ();
39940 /* The GNU C library defines this for functions which it implements
39941     to always fail with ENOSYS.  Some functions are actually named
39942     something starting with __ and the normal name is an alias.  */
39943 #if defined __stub_$ac_func || defined __stub___$ac_func
39944 choke me
39945 #endif
39946
39947 int
39948 main ()
39949 {
39950 return $ac_func ();
39951   ;
39952   return 0;
39953 }
39954 _ACEOF
39955 rm -f conftest.$ac_objext conftest$ac_exeext
39956 if { (ac_try="$ac_link"
39957 case "(($ac_try" in
39958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39959   *) ac_try_echo=$ac_try;;
39960 esac
39961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39962   (eval "$ac_link") 2>conftest.er1
39963   ac_status=$?
39964   grep -v '^ *+' conftest.er1 >conftest.err
39965   rm -f conftest.er1
39966   cat conftest.err >&5
39967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39968   (exit $ac_status); } && {
39969          test -z "$ac_c_werror_flag" ||
39970          test ! -s conftest.err
39971        } && test -s conftest$ac_exeext &&
39972        $as_test_x conftest$ac_exeext; then
39973   eval "$as_ac_var=yes"
39974 else
39975   echo "$as_me: failed program was:" >&5
39976 sed 's/^/| /' conftest.$ac_ext >&5
39977
39978         eval "$as_ac_var=no"
39979 fi
39980
39981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39982       conftest$ac_exeext conftest.$ac_ext
39983 fi
39984 ac_res=`eval echo '${'$as_ac_var'}'`
39985                { echo "$as_me:$LINENO: result: $ac_res" >&5
39986 echo "${ECHO_T}$ac_res" >&6; }
39987 if test `eval echo '${'$as_ac_var'}'` = yes; then
39988
39989 cat >>confdefs.h <<_ACEOF
39990 #define CRAY_STACKSEG_END $ac_func
39991 _ACEOF
39992
39993     break
39994 fi
39995
39996   done
39997 fi
39998
39999 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40000 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40001 if test "${ac_cv_c_stack_direction+set}" = set; then
40002   echo $ECHO_N "(cached) $ECHO_C" >&6
40003 else
40004   if test "$cross_compiling" = yes; then
40005   ac_cv_c_stack_direction=0
40006 else
40007   cat >conftest.$ac_ext <<_ACEOF
40008 /* confdefs.h.  */
40009 _ACEOF
40010 cat confdefs.h >>conftest.$ac_ext
40011 cat >>conftest.$ac_ext <<_ACEOF
40012 /* end confdefs.h.  */
40013 $ac_includes_default
40014 int
40015 find_stack_direction ()
40016 {
40017   static char *addr = 0;
40018   auto char dummy;
40019   if (addr == 0)
40020     {
40021       addr = &dummy;
40022       return find_stack_direction ();
40023     }
40024   else
40025     return (&dummy > addr) ? 1 : -1;
40026 }
40027
40028 int
40029 main ()
40030 {
40031   return find_stack_direction () < 0;
40032 }
40033 _ACEOF
40034 rm -f conftest$ac_exeext
40035 if { (ac_try="$ac_link"
40036 case "(($ac_try" in
40037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40038   *) ac_try_echo=$ac_try;;
40039 esac
40040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40041   (eval "$ac_link") 2>&5
40042   ac_status=$?
40043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40044   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40045   { (case "(($ac_try" in
40046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40047   *) ac_try_echo=$ac_try;;
40048 esac
40049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40050   (eval "$ac_try") 2>&5
40051   ac_status=$?
40052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053   (exit $ac_status); }; }; then
40054   ac_cv_c_stack_direction=1
40055 else
40056   echo "$as_me: program exited with status $ac_status" >&5
40057 echo "$as_me: failed program was:" >&5
40058 sed 's/^/| /' conftest.$ac_ext >&5
40059
40060 ( exit $ac_status )
40061 ac_cv_c_stack_direction=-1
40062 fi
40063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40064 fi
40065
40066
40067 fi
40068 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40069 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40070
40071 cat >>confdefs.h <<_ACEOF
40072 #define STACK_DIRECTION $ac_cv_c_stack_direction
40073 _ACEOF
40074
40075
40076 fi
40077
40078 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40079 # -lseq on Dynix/PTX, -lgen on Unixware.
40080 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40081 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40082 if test "${ac_cv_search_getmntent+set}" = set; then
40083   echo $ECHO_N "(cached) $ECHO_C" >&6
40084 else
40085   ac_func_search_save_LIBS=$LIBS
40086 cat >conftest.$ac_ext <<_ACEOF
40087 /* confdefs.h.  */
40088 _ACEOF
40089 cat confdefs.h >>conftest.$ac_ext
40090 cat >>conftest.$ac_ext <<_ACEOF
40091 /* end confdefs.h.  */
40092
40093 /* Override any GCC internal prototype to avoid an error.
40094    Use char because int might match the return type of a GCC
40095    builtin and then its argument prototype would still apply.  */
40096 #ifdef __cplusplus
40097 extern "C"
40098 #endif
40099 char getmntent ();
40100 int
40101 main ()
40102 {
40103 return getmntent ();
40104   ;
40105   return 0;
40106 }
40107 _ACEOF
40108 for ac_lib in '' sun seq gen; do
40109   if test -z "$ac_lib"; then
40110     ac_res="none required"
40111   else
40112     ac_res=-l$ac_lib
40113     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40114   fi
40115   rm -f conftest.$ac_objext conftest$ac_exeext
40116 if { (ac_try="$ac_link"
40117 case "(($ac_try" in
40118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40119   *) ac_try_echo=$ac_try;;
40120 esac
40121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40122   (eval "$ac_link") 2>conftest.er1
40123   ac_status=$?
40124   grep -v '^ *+' conftest.er1 >conftest.err
40125   rm -f conftest.er1
40126   cat conftest.err >&5
40127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40128   (exit $ac_status); } && {
40129          test -z "$ac_c_werror_flag" ||
40130          test ! -s conftest.err
40131        } && test -s conftest$ac_exeext &&
40132        $as_test_x conftest$ac_exeext; then
40133   ac_cv_search_getmntent=$ac_res
40134 else
40135   echo "$as_me: failed program was:" >&5
40136 sed 's/^/| /' conftest.$ac_ext >&5
40137
40138
40139 fi
40140
40141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40142       conftest$ac_exeext
40143   if test "${ac_cv_search_getmntent+set}" = set; then
40144   break
40145 fi
40146 done
40147 if test "${ac_cv_search_getmntent+set}" = set; then
40148   :
40149 else
40150   ac_cv_search_getmntent=no
40151 fi
40152 rm conftest.$ac_ext
40153 LIBS=$ac_func_search_save_LIBS
40154 fi
40155 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40156 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40157 ac_res=$ac_cv_search_getmntent
40158 if test "$ac_res" != no; then
40159   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40160   ac_cv_func_getmntent=yes
40161
40162 cat >>confdefs.h <<\_ACEOF
40163 #define HAVE_GETMNTENT 1
40164 _ACEOF
40165
40166 else
40167   ac_cv_func_getmntent=no
40168 fi
40169
40170
40171 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40172 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40173 if test "${ac_cv_func_closedir_void+set}" = set; then
40174   echo $ECHO_N "(cached) $ECHO_C" >&6
40175 else
40176   if test "$cross_compiling" = yes; then
40177   ac_cv_func_closedir_void=yes
40178 else
40179   cat >conftest.$ac_ext <<_ACEOF
40180 /* confdefs.h.  */
40181 _ACEOF
40182 cat confdefs.h >>conftest.$ac_ext
40183 cat >>conftest.$ac_ext <<_ACEOF
40184 /* end confdefs.h.  */
40185 $ac_includes_default
40186 #include <$ac_header_dirent>
40187 #ifndef __cplusplus
40188 int closedir ();
40189 #endif
40190
40191 int
40192 main ()
40193 {
40194 return closedir (opendir (".")) != 0;
40195   ;
40196   return 0;
40197 }
40198 _ACEOF
40199 rm -f conftest$ac_exeext
40200 if { (ac_try="$ac_link"
40201 case "(($ac_try" in
40202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40203   *) ac_try_echo=$ac_try;;
40204 esac
40205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40206   (eval "$ac_link") 2>&5
40207   ac_status=$?
40208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40209   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40210   { (case "(($ac_try" in
40211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40212   *) ac_try_echo=$ac_try;;
40213 esac
40214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40215   (eval "$ac_try") 2>&5
40216   ac_status=$?
40217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40218   (exit $ac_status); }; }; then
40219   ac_cv_func_closedir_void=no
40220 else
40221   echo "$as_me: program exited with status $ac_status" >&5
40222 echo "$as_me: failed program was:" >&5
40223 sed 's/^/| /' conftest.$ac_ext >&5
40224
40225 ( exit $ac_status )
40226 ac_cv_func_closedir_void=yes
40227 fi
40228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40229 fi
40230
40231
40232 fi
40233 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40234 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40235 if test $ac_cv_func_closedir_void = yes; then
40236
40237 cat >>confdefs.h <<\_ACEOF
40238 #define CLOSEDIR_VOID 1
40239 _ACEOF
40240
40241 fi
40242
40243 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40244 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40245 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40246   echo $ECHO_N "(cached) $ECHO_C" >&6
40247 else
40248   if test "$cross_compiling" = yes; then
40249   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40250 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40251    { (exit 1); exit 1; }; }
40252 else
40253   cat >conftest.$ac_ext <<_ACEOF
40254 /* confdefs.h.  */
40255 _ACEOF
40256 cat confdefs.h >>conftest.$ac_ext
40257 cat >>conftest.$ac_ext <<_ACEOF
40258 /* end confdefs.h.  */
40259 $ac_includes_default
40260 int
40261 main ()
40262 {
40263 /* If this system has a BSD-style setpgrp which takes arguments,
40264   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40265   exit successfully. */
40266   return setpgrp (1,1) != -1;
40267   ;
40268   return 0;
40269 }
40270 _ACEOF
40271 rm -f conftest$ac_exeext
40272 if { (ac_try="$ac_link"
40273 case "(($ac_try" in
40274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40275   *) ac_try_echo=$ac_try;;
40276 esac
40277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40278   (eval "$ac_link") 2>&5
40279   ac_status=$?
40280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40281   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40282   { (case "(($ac_try" in
40283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40284   *) ac_try_echo=$ac_try;;
40285 esac
40286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40287   (eval "$ac_try") 2>&5
40288   ac_status=$?
40289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40290   (exit $ac_status); }; }; then
40291   ac_cv_func_setpgrp_void=no
40292 else
40293   echo "$as_me: program exited with status $ac_status" >&5
40294 echo "$as_me: failed program was:" >&5
40295 sed 's/^/| /' conftest.$ac_ext >&5
40296
40297 ( exit $ac_status )
40298 ac_cv_func_setpgrp_void=yes
40299 fi
40300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40301 fi
40302
40303
40304 fi
40305 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40306 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40307 if test $ac_cv_func_setpgrp_void = yes; then
40308
40309 cat >>confdefs.h <<\_ACEOF
40310 #define SETPGRP_VOID 1
40311 _ACEOF
40312
40313 fi
40314             # AC_FUNC_FNMATCH    dnl use local version
40315
40316 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40317 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40318 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40319   echo $ECHO_N "(cached) $ECHO_C" >&6
40320 else
40321   ac_check_lib_save_LIBS=$LIBS
40322 LIBS="-lintl  $LIBS"
40323 cat >conftest.$ac_ext <<_ACEOF
40324 /* confdefs.h.  */
40325 _ACEOF
40326 cat confdefs.h >>conftest.$ac_ext
40327 cat >>conftest.$ac_ext <<_ACEOF
40328 /* end confdefs.h.  */
40329
40330 /* Override any GCC internal prototype to avoid an error.
40331    Use char because int might match the return type of a GCC
40332    builtin and then its argument prototype would still apply.  */
40333 #ifdef __cplusplus
40334 extern "C"
40335 #endif
40336 char gettext ();
40337 int
40338 main ()
40339 {
40340 return gettext ();
40341   ;
40342   return 0;
40343 }
40344 _ACEOF
40345 rm -f conftest.$ac_objext conftest$ac_exeext
40346 if { (ac_try="$ac_link"
40347 case "(($ac_try" in
40348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40349   *) ac_try_echo=$ac_try;;
40350 esac
40351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40352   (eval "$ac_link") 2>conftest.er1
40353   ac_status=$?
40354   grep -v '^ *+' conftest.er1 >conftest.err
40355   rm -f conftest.er1
40356   cat conftest.err >&5
40357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40358   (exit $ac_status); } && {
40359          test -z "$ac_c_werror_flag" ||
40360          test ! -s conftest.err
40361        } && test -s conftest$ac_exeext &&
40362        $as_test_x conftest$ac_exeext; then
40363   ac_cv_lib_intl_gettext=yes
40364 else
40365   echo "$as_me: failed program was:" >&5
40366 sed 's/^/| /' conftest.$ac_ext >&5
40367
40368         ac_cv_lib_intl_gettext=no
40369 fi
40370
40371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40372       conftest$ac_exeext conftest.$ac_ext
40373 LIBS=$ac_check_lib_save_LIBS
40374 fi
40375 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40376 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40377 if test $ac_cv_lib_intl_gettext = yes; then
40378   LIBS="$LIBS -lintl"
40379 fi
40380
40381
40382
40383 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40384 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40385 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40386   echo $ECHO_N "(cached) $ECHO_C" >&6
40387 else
40388   ac_check_lib_save_LIBS=$LIBS
40389 LIBS="-lsun  $LIBS"
40390 cat >conftest.$ac_ext <<_ACEOF
40391 /* confdefs.h.  */
40392 _ACEOF
40393 cat confdefs.h >>conftest.$ac_ext
40394 cat >>conftest.$ac_ext <<_ACEOF
40395 /* end confdefs.h.  */
40396
40397 /* Override any GCC internal prototype to avoid an error.
40398    Use char because int might match the return type of a GCC
40399    builtin and then its argument prototype would still apply.  */
40400 #ifdef __cplusplus
40401 extern "C"
40402 #endif
40403 char getpwnam ();
40404 int
40405 main ()
40406 {
40407 return getpwnam ();
40408   ;
40409   return 0;
40410 }
40411 _ACEOF
40412 rm -f conftest.$ac_objext conftest$ac_exeext
40413 if { (ac_try="$ac_link"
40414 case "(($ac_try" in
40415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40416   *) ac_try_echo=$ac_try;;
40417 esac
40418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40419   (eval "$ac_link") 2>conftest.er1
40420   ac_status=$?
40421   grep -v '^ *+' conftest.er1 >conftest.err
40422   rm -f conftest.er1
40423   cat conftest.err >&5
40424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40425   (exit $ac_status); } && {
40426          test -z "$ac_c_werror_flag" ||
40427          test ! -s conftest.err
40428        } && test -s conftest$ac_exeext &&
40429        $as_test_x conftest$ac_exeext; then
40430   ac_cv_lib_sun_getpwnam=yes
40431 else
40432   echo "$as_me: failed program was:" >&5
40433 sed 's/^/| /' conftest.$ac_ext >&5
40434
40435         ac_cv_lib_sun_getpwnam=no
40436 fi
40437
40438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40439       conftest$ac_exeext conftest.$ac_ext
40440 LIBS=$ac_check_lib_save_LIBS
40441 fi
40442 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40443 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40444 if test $ac_cv_lib_sun_getpwnam = yes; then
40445   cat >>confdefs.h <<_ACEOF
40446 #define HAVE_LIBSUN 1
40447 _ACEOF
40448
40449   LIBS="-lsun $LIBS"
40450
40451 fi
40452
40453
40454
40455 for ac_header in zlib.h
40456 do
40457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40459   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40462   echo $ECHO_N "(cached) $ECHO_C" >&6
40463 fi
40464 ac_res=`eval echo '${'$as_ac_Header'}'`
40465                { echo "$as_me:$LINENO: result: $ac_res" >&5
40466 echo "${ECHO_T}$ac_res" >&6; }
40467 else
40468   # Is the header compilable?
40469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40471 cat >conftest.$ac_ext <<_ACEOF
40472 /* confdefs.h.  */
40473 _ACEOF
40474 cat confdefs.h >>conftest.$ac_ext
40475 cat >>conftest.$ac_ext <<_ACEOF
40476 /* end confdefs.h.  */
40477 $ac_includes_default
40478 #include <$ac_header>
40479 _ACEOF
40480 rm -f conftest.$ac_objext
40481 if { (ac_try="$ac_compile"
40482 case "(($ac_try" in
40483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40484   *) ac_try_echo=$ac_try;;
40485 esac
40486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40487   (eval "$ac_compile") 2>conftest.er1
40488   ac_status=$?
40489   grep -v '^ *+' conftest.er1 >conftest.err
40490   rm -f conftest.er1
40491   cat conftest.err >&5
40492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40493   (exit $ac_status); } && {
40494          test -z "$ac_c_werror_flag" ||
40495          test ! -s conftest.err
40496        } && test -s conftest.$ac_objext; then
40497   ac_header_compiler=yes
40498 else
40499   echo "$as_me: failed program was:" >&5
40500 sed 's/^/| /' conftest.$ac_ext >&5
40501
40502         ac_header_compiler=no
40503 fi
40504
40505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40507 echo "${ECHO_T}$ac_header_compiler" >&6; }
40508
40509 # Is the header present?
40510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40512 cat >conftest.$ac_ext <<_ACEOF
40513 /* confdefs.h.  */
40514 _ACEOF
40515 cat confdefs.h >>conftest.$ac_ext
40516 cat >>conftest.$ac_ext <<_ACEOF
40517 /* end confdefs.h.  */
40518 #include <$ac_header>
40519 _ACEOF
40520 if { (ac_try="$ac_cpp conftest.$ac_ext"
40521 case "(($ac_try" in
40522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40523   *) ac_try_echo=$ac_try;;
40524 esac
40525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40527   ac_status=$?
40528   grep -v '^ *+' conftest.er1 >conftest.err
40529   rm -f conftest.er1
40530   cat conftest.err >&5
40531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40532   (exit $ac_status); } >/dev/null && {
40533          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40534          test ! -s conftest.err
40535        }; then
40536   ac_header_preproc=yes
40537 else
40538   echo "$as_me: failed program was:" >&5
40539 sed 's/^/| /' conftest.$ac_ext >&5
40540
40541   ac_header_preproc=no
40542 fi
40543
40544 rm -f conftest.err conftest.$ac_ext
40545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40546 echo "${ECHO_T}$ac_header_preproc" >&6; }
40547
40548 # So?  What about this header?
40549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40550   yes:no: )
40551     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40555     ac_header_preproc=yes
40556     ;;
40557   no:yes:* )
40558     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40560     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40561 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40562     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40564     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40565 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40568     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40570
40571     ;;
40572 esac
40573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40576   echo $ECHO_N "(cached) $ECHO_C" >&6
40577 else
40578   eval "$as_ac_Header=\$ac_header_preproc"
40579 fi
40580 ac_res=`eval echo '${'$as_ac_Header'}'`
40581                { echo "$as_me:$LINENO: result: $ac_res" >&5
40582 echo "${ECHO_T}$ac_res" >&6; }
40583
40584 fi
40585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40586   cat >>confdefs.h <<_ACEOF
40587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40588 _ACEOF
40589
40590 fi
40591
40592 done
40593
40594 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40595 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40596 if test "${ac_cv_lib_z_deflate+set}" = set; then
40597   echo $ECHO_N "(cached) $ECHO_C" >&6
40598 else
40599   ac_check_lib_save_LIBS=$LIBS
40600 LIBS="-lz  $LIBS"
40601 cat >conftest.$ac_ext <<_ACEOF
40602 /* confdefs.h.  */
40603 _ACEOF
40604 cat confdefs.h >>conftest.$ac_ext
40605 cat >>conftest.$ac_ext <<_ACEOF
40606 /* end confdefs.h.  */
40607
40608 /* Override any GCC internal prototype to avoid an error.
40609    Use char because int might match the return type of a GCC
40610    builtin and then its argument prototype would still apply.  */
40611 #ifdef __cplusplus
40612 extern "C"
40613 #endif
40614 char deflate ();
40615 int
40616 main ()
40617 {
40618 return deflate ();
40619   ;
40620   return 0;
40621 }
40622 _ACEOF
40623 rm -f conftest.$ac_objext conftest$ac_exeext
40624 if { (ac_try="$ac_link"
40625 case "(($ac_try" in
40626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40627   *) ac_try_echo=$ac_try;;
40628 esac
40629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40630   (eval "$ac_link") 2>conftest.er1
40631   ac_status=$?
40632   grep -v '^ *+' conftest.er1 >conftest.err
40633   rm -f conftest.er1
40634   cat conftest.err >&5
40635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40636   (exit $ac_status); } && {
40637          test -z "$ac_c_werror_flag" ||
40638          test ! -s conftest.err
40639        } && test -s conftest$ac_exeext &&
40640        $as_test_x conftest$ac_exeext; then
40641   ac_cv_lib_z_deflate=yes
40642 else
40643   echo "$as_me: failed program was:" >&5
40644 sed 's/^/| /' conftest.$ac_ext >&5
40645
40646         ac_cv_lib_z_deflate=no
40647 fi
40648
40649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40650       conftest$ac_exeext conftest.$ac_ext
40651 LIBS=$ac_check_lib_save_LIBS
40652 fi
40653 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40654 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40655 if test $ac_cv_lib_z_deflate = yes; then
40656   FDLIBS="-lz"
40657 fi
40658
40659 have_zlib=no
40660 if test x$FDLIBS = x-lz; then
40661    cat >>confdefs.h <<\_ACEOF
40662 #define HAVE_LIBZ 1
40663 _ACEOF
40664
40665    have_zlib=yes
40666 fi
40667
40668 support_acl=auto
40669 # Check whether --enable-acl was given.
40670 if test "${enable_acl+set}" = set; then
40671   enableval=$enable_acl;
40672        if test x$enableval = xyes; then
40673           support_acl=yes
40674        elif test x$enableval = xno; then
40675           support_acl=no
40676        fi
40677
40678
40679 fi
40680
40681
40682 have_acl=no
40683 have_extended_acl=no
40684 if test x$support_acl = xyes -o x$support_acl = xauto; then
40685    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40686   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40687 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40688 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40689   echo $ECHO_N "(cached) $ECHO_C" >&6
40690 fi
40691 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40692 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40693 else
40694   # Is the header compilable?
40695 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40696 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40697 cat >conftest.$ac_ext <<_ACEOF
40698 /* confdefs.h.  */
40699 _ACEOF
40700 cat confdefs.h >>conftest.$ac_ext
40701 cat >>conftest.$ac_ext <<_ACEOF
40702 /* end confdefs.h.  */
40703 $ac_includes_default
40704 #include <sys/acl.h>
40705 _ACEOF
40706 rm -f conftest.$ac_objext
40707 if { (ac_try="$ac_compile"
40708 case "(($ac_try" in
40709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40710   *) ac_try_echo=$ac_try;;
40711 esac
40712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40713   (eval "$ac_compile") 2>conftest.er1
40714   ac_status=$?
40715   grep -v '^ *+' conftest.er1 >conftest.err
40716   rm -f conftest.er1
40717   cat conftest.err >&5
40718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40719   (exit $ac_status); } && {
40720          test -z "$ac_c_werror_flag" ||
40721          test ! -s conftest.err
40722        } && test -s conftest.$ac_objext; then
40723   ac_header_compiler=yes
40724 else
40725   echo "$as_me: failed program was:" >&5
40726 sed 's/^/| /' conftest.$ac_ext >&5
40727
40728         ac_header_compiler=no
40729 fi
40730
40731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40733 echo "${ECHO_T}$ac_header_compiler" >&6; }
40734
40735 # Is the header present?
40736 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40737 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40738 cat >conftest.$ac_ext <<_ACEOF
40739 /* confdefs.h.  */
40740 _ACEOF
40741 cat confdefs.h >>conftest.$ac_ext
40742 cat >>conftest.$ac_ext <<_ACEOF
40743 /* end confdefs.h.  */
40744 #include <sys/acl.h>
40745 _ACEOF
40746 if { (ac_try="$ac_cpp conftest.$ac_ext"
40747 case "(($ac_try" in
40748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40749   *) ac_try_echo=$ac_try;;
40750 esac
40751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40753   ac_status=$?
40754   grep -v '^ *+' conftest.er1 >conftest.err
40755   rm -f conftest.er1
40756   cat conftest.err >&5
40757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40758   (exit $ac_status); } >/dev/null && {
40759          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40760          test ! -s conftest.err
40761        }; then
40762   ac_header_preproc=yes
40763 else
40764   echo "$as_me: failed program was:" >&5
40765 sed 's/^/| /' conftest.$ac_ext >&5
40766
40767   ac_header_preproc=no
40768 fi
40769
40770 rm -f conftest.err conftest.$ac_ext
40771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40772 echo "${ECHO_T}$ac_header_preproc" >&6; }
40773
40774 # So?  What about this header?
40775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40776   yes:no: )
40777     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40778 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40779     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40780 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40781     ac_header_preproc=yes
40782     ;;
40783   no:yes:* )
40784     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40785 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40786     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40787 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40788     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40789 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40790     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40791 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40792     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40793 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40794     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40795 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40796
40797     ;;
40798 esac
40799 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40800 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40801 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40802   echo $ECHO_N "(cached) $ECHO_C" >&6
40803 else
40804   ac_cv_header_sys_acl_h=$ac_header_preproc
40805 fi
40806 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40807 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40808
40809 fi
40810 if test $ac_cv_header_sys_acl_h = yes; then
40811
40812 cat >>confdefs.h <<\_ACEOF
40813 #define HAVE_SYS_ACL_H 1
40814 _ACEOF
40815
40816 fi
40817
40818
40819    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40820 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40821 if test "${ac_cv_func_acl_get_file+set}" = set; then
40822   echo $ECHO_N "(cached) $ECHO_C" >&6
40823 else
40824   cat >conftest.$ac_ext <<_ACEOF
40825 /* confdefs.h.  */
40826 _ACEOF
40827 cat confdefs.h >>conftest.$ac_ext
40828 cat >>conftest.$ac_ext <<_ACEOF
40829 /* end confdefs.h.  */
40830 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40832 #define acl_get_file innocuous_acl_get_file
40833
40834 /* System header to define __stub macros and hopefully few prototypes,
40835     which can conflict with char acl_get_file (); below.
40836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40837     <limits.h> exists even on freestanding compilers.  */
40838
40839 #ifdef __STDC__
40840 # include <limits.h>
40841 #else
40842 # include <assert.h>
40843 #endif
40844
40845 #undef acl_get_file
40846
40847 /* Override any GCC internal prototype to avoid an error.
40848    Use char because int might match the return type of a GCC
40849    builtin and then its argument prototype would still apply.  */
40850 #ifdef __cplusplus
40851 extern "C"
40852 #endif
40853 char acl_get_file ();
40854 /* The GNU C library defines this for functions which it implements
40855     to always fail with ENOSYS.  Some functions are actually named
40856     something starting with __ and the normal name is an alias.  */
40857 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40858 choke me
40859 #endif
40860
40861 int
40862 main ()
40863 {
40864 return acl_get_file ();
40865   ;
40866   return 0;
40867 }
40868 _ACEOF
40869 rm -f conftest.$ac_objext conftest$ac_exeext
40870 if { (ac_try="$ac_link"
40871 case "(($ac_try" in
40872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40873   *) ac_try_echo=$ac_try;;
40874 esac
40875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40876   (eval "$ac_link") 2>conftest.er1
40877   ac_status=$?
40878   grep -v '^ *+' conftest.er1 >conftest.err
40879   rm -f conftest.er1
40880   cat conftest.err >&5
40881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40882   (exit $ac_status); } && {
40883          test -z "$ac_c_werror_flag" ||
40884          test ! -s conftest.err
40885        } && test -s conftest$ac_exeext &&
40886        $as_test_x conftest$ac_exeext; then
40887   ac_cv_func_acl_get_file=yes
40888 else
40889   echo "$as_me: failed program was:" >&5
40890 sed 's/^/| /' conftest.$ac_ext >&5
40891
40892         ac_cv_func_acl_get_file=no
40893 fi
40894
40895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40896       conftest$ac_exeext conftest.$ac_ext
40897 fi
40898 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40899 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40900 if test $ac_cv_func_acl_get_file = yes; then
40901
40902           have_acl=yes
40903
40904 else
40905
40906           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40907 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40908 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40909   echo $ECHO_N "(cached) $ECHO_C" >&6
40910 else
40911   ac_check_lib_save_LIBS=$LIBS
40912 LIBS="-lacl  $LIBS"
40913 cat >conftest.$ac_ext <<_ACEOF
40914 /* confdefs.h.  */
40915 _ACEOF
40916 cat confdefs.h >>conftest.$ac_ext
40917 cat >>conftest.$ac_ext <<_ACEOF
40918 /* end confdefs.h.  */
40919
40920 /* Override any GCC internal prototype to avoid an error.
40921    Use char because int might match the return type of a GCC
40922    builtin and then its argument prototype would still apply.  */
40923 #ifdef __cplusplus
40924 extern "C"
40925 #endif
40926 char acl_get_file ();
40927 int
40928 main ()
40929 {
40930 return acl_get_file ();
40931   ;
40932   return 0;
40933 }
40934 _ACEOF
40935 rm -f conftest.$ac_objext conftest$ac_exeext
40936 if { (ac_try="$ac_link"
40937 case "(($ac_try" in
40938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40939   *) ac_try_echo=$ac_try;;
40940 esac
40941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40942   (eval "$ac_link") 2>conftest.er1
40943   ac_status=$?
40944   grep -v '^ *+' conftest.er1 >conftest.err
40945   rm -f conftest.er1
40946   cat conftest.err >&5
40947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40948   (exit $ac_status); } && {
40949          test -z "$ac_c_werror_flag" ||
40950          test ! -s conftest.err
40951        } && test -s conftest$ac_exeext &&
40952        $as_test_x conftest$ac_exeext; then
40953   ac_cv_lib_acl_acl_get_file=yes
40954 else
40955   echo "$as_me: failed program was:" >&5
40956 sed 's/^/| /' conftest.$ac_ext >&5
40957
40958         ac_cv_lib_acl_acl_get_file=no
40959 fi
40960
40961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40962       conftest$ac_exeext conftest.$ac_ext
40963 LIBS=$ac_check_lib_save_LIBS
40964 fi
40965 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40966 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40967 if test $ac_cv_lib_acl_acl_get_file = yes; then
40968
40969                  have_acl=yes;
40970                  FDLIBS="-lacl $FDLIBS"
40971
40972 else
40973
40974                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40975 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40976 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40977   echo $ECHO_N "(cached) $ECHO_C" >&6
40978 else
40979   ac_check_lib_save_LIBS=$LIBS
40980 LIBS="-lpacl  $LIBS"
40981 cat >conftest.$ac_ext <<_ACEOF
40982 /* confdefs.h.  */
40983 _ACEOF
40984 cat confdefs.h >>conftest.$ac_ext
40985 cat >>conftest.$ac_ext <<_ACEOF
40986 /* end confdefs.h.  */
40987
40988 /* Override any GCC internal prototype to avoid an error.
40989    Use char because int might match the return type of a GCC
40990    builtin and then its argument prototype would still apply.  */
40991 #ifdef __cplusplus
40992 extern "C"
40993 #endif
40994 char acl_get_file ();
40995 int
40996 main ()
40997 {
40998 return acl_get_file ();
40999   ;
41000   return 0;
41001 }
41002 _ACEOF
41003 rm -f conftest.$ac_objext conftest$ac_exeext
41004 if { (ac_try="$ac_link"
41005 case "(($ac_try" in
41006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41007   *) ac_try_echo=$ac_try;;
41008 esac
41009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41010   (eval "$ac_link") 2>conftest.er1
41011   ac_status=$?
41012   grep -v '^ *+' conftest.er1 >conftest.err
41013   rm -f conftest.er1
41014   cat conftest.err >&5
41015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41016   (exit $ac_status); } && {
41017          test -z "$ac_c_werror_flag" ||
41018          test ! -s conftest.err
41019        } && test -s conftest$ac_exeext &&
41020        $as_test_x conftest$ac_exeext; then
41021   ac_cv_lib_pacl_acl_get_file=yes
41022 else
41023   echo "$as_me: failed program was:" >&5
41024 sed 's/^/| /' conftest.$ac_ext >&5
41025
41026         ac_cv_lib_pacl_acl_get_file=no
41027 fi
41028
41029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41030       conftest$ac_exeext conftest.$ac_ext
41031 LIBS=$ac_check_lib_save_LIBS
41032 fi
41033 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41034 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41035 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41036
41037                         have_acl=yes;
41038                         FDLIBS="-lpacl $FDLIBS"
41039
41040 else
41041
41042                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41043 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41044 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41045   echo $ECHO_N "(cached) $ECHO_C" >&6
41046 else
41047   ac_check_lib_save_LIBS=$LIBS
41048 LIBS="-lsec  $LIBS"
41049 cat >conftest.$ac_ext <<_ACEOF
41050 /* confdefs.h.  */
41051 _ACEOF
41052 cat confdefs.h >>conftest.$ac_ext
41053 cat >>conftest.$ac_ext <<_ACEOF
41054 /* end confdefs.h.  */
41055
41056 /* Override any GCC internal prototype to avoid an error.
41057    Use char because int might match the return type of a GCC
41058    builtin and then its argument prototype would still apply.  */
41059 #ifdef __cplusplus
41060 extern "C"
41061 #endif
41062 char acltotext ();
41063 int
41064 main ()
41065 {
41066 return acltotext ();
41067   ;
41068   return 0;
41069 }
41070 _ACEOF
41071 rm -f conftest.$ac_objext conftest$ac_exeext
41072 if { (ac_try="$ac_link"
41073 case "(($ac_try" in
41074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41075   *) ac_try_echo=$ac_try;;
41076 esac
41077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41078   (eval "$ac_link") 2>conftest.er1
41079   ac_status=$?
41080   grep -v '^ *+' conftest.er1 >conftest.err
41081   rm -f conftest.er1
41082   cat conftest.err >&5
41083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41084   (exit $ac_status); } && {
41085          test -z "$ac_c_werror_flag" ||
41086          test ! -s conftest.err
41087        } && test -s conftest$ac_exeext &&
41088        $as_test_x conftest$ac_exeext; then
41089   ac_cv_lib_sec_acltotext=yes
41090 else
41091   echo "$as_me: failed program was:" >&5
41092 sed 's/^/| /' conftest.$ac_ext >&5
41093
41094         ac_cv_lib_sec_acltotext=no
41095 fi
41096
41097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41098       conftest$ac_exeext conftest.$ac_ext
41099 LIBS=$ac_check_lib_save_LIBS
41100 fi
41101 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41102 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41103 if test $ac_cv_lib_sec_acltotext = yes; then
41104
41105                                have_acl=yes;
41106                                FDLIBS="-lsec $FDLIBS"
41107
41108                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41109 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41110 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41111   echo $ECHO_N "(cached) $ECHO_C" >&6
41112 else
41113   ac_check_lib_save_LIBS=$LIBS
41114 LIBS="-lsec  $LIBS"
41115 cat >conftest.$ac_ext <<_ACEOF
41116 /* confdefs.h.  */
41117 _ACEOF
41118 cat confdefs.h >>conftest.$ac_ext
41119 cat >>conftest.$ac_ext <<_ACEOF
41120 /* end confdefs.h.  */
41121
41122 /* Override any GCC internal prototype to avoid an error.
41123    Use char because int might match the return type of a GCC
41124    builtin and then its argument prototype would still apply.  */
41125 #ifdef __cplusplus
41126 extern "C"
41127 #endif
41128 char acl_totext ();
41129 int
41130 main ()
41131 {
41132 return acl_totext ();
41133   ;
41134   return 0;
41135 }
41136 _ACEOF
41137 rm -f conftest.$ac_objext conftest$ac_exeext
41138 if { (ac_try="$ac_link"
41139 case "(($ac_try" in
41140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41141   *) ac_try_echo=$ac_try;;
41142 esac
41143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41144   (eval "$ac_link") 2>conftest.er1
41145   ac_status=$?
41146   grep -v '^ *+' conftest.er1 >conftest.err
41147   rm -f conftest.er1
41148   cat conftest.err >&5
41149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41150   (exit $ac_status); } && {
41151          test -z "$ac_c_werror_flag" ||
41152          test ! -s conftest.err
41153        } && test -s conftest$ac_exeext &&
41154        $as_test_x conftest$ac_exeext; then
41155   ac_cv_lib_sec_acl_totext=yes
41156 else
41157   echo "$as_me: failed program was:" >&5
41158 sed 's/^/| /' conftest.$ac_ext >&5
41159
41160         ac_cv_lib_sec_acl_totext=no
41161 fi
41162
41163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41164       conftest$ac_exeext conftest.$ac_ext
41165 LIBS=$ac_check_lib_save_LIBS
41166 fi
41167 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41168 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41169 if test $ac_cv_lib_sec_acl_totext = yes; then
41170
41171                                       have_extended_acl=yes
41172
41173
41174 fi
41175
41176
41177
41178 fi
41179
41180
41181
41182 fi
41183
41184
41185
41186 fi
41187
41188
41189
41190 fi
41191
41192
41193    if test x$support_acl = xyes -a $have_acl != yes; then
41194       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41195   please either load the acl libraries or rerun configure without --enable-acl" >&5
41196 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41197   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41198    { (exit 1); exit 1; }; }
41199    else
41200       if test $have_acl = yes; then
41201
41202 cat >>confdefs.h <<\_ACEOF
41203 #define HAVE_ACL
41204 _ACEOF
41205
41206       fi
41207
41208       if test $have_extended_acl = yes; then
41209
41210 cat >>confdefs.h <<\_ACEOF
41211 #define HAVE_EXTENDED_ACL
41212 _ACEOF
41213
41214       fi
41215    fi
41216 fi
41217
41218 support_xattr=auto
41219 # Check whether --enable-xattr was given.
41220 if test "${enable_xattr+set}" = set; then
41221   enableval=$enable_xattr;
41222        if test x$enableval = xyes; then
41223           support_xattr=yes
41224        elif test x$enableval = xno; then
41225           support_xattr=no
41226        fi
41227
41228
41229 fi
41230
41231
41232 have_xattr=no
41233 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41234    if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41235   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41236 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41237 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41238   echo $ECHO_N "(cached) $ECHO_C" >&6
41239 fi
41240 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41241 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41242 else
41243   # Is the header compilable?
41244 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41245 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41246 cat >conftest.$ac_ext <<_ACEOF
41247 /* confdefs.h.  */
41248 _ACEOF
41249 cat confdefs.h >>conftest.$ac_ext
41250 cat >>conftest.$ac_ext <<_ACEOF
41251 /* end confdefs.h.  */
41252 $ac_includes_default
41253 #include <sys/xattr.h>
41254 _ACEOF
41255 rm -f conftest.$ac_objext
41256 if { (ac_try="$ac_compile"
41257 case "(($ac_try" in
41258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41259   *) ac_try_echo=$ac_try;;
41260 esac
41261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41262   (eval "$ac_compile") 2>conftest.er1
41263   ac_status=$?
41264   grep -v '^ *+' conftest.er1 >conftest.err
41265   rm -f conftest.er1
41266   cat conftest.err >&5
41267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41268   (exit $ac_status); } && {
41269          test -z "$ac_c_werror_flag" ||
41270          test ! -s conftest.err
41271        } && test -s conftest.$ac_objext; then
41272   ac_header_compiler=yes
41273 else
41274   echo "$as_me: failed program was:" >&5
41275 sed 's/^/| /' conftest.$ac_ext >&5
41276
41277         ac_header_compiler=no
41278 fi
41279
41280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41282 echo "${ECHO_T}$ac_header_compiler" >&6; }
41283
41284 # Is the header present?
41285 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41286 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41287 cat >conftest.$ac_ext <<_ACEOF
41288 /* confdefs.h.  */
41289 _ACEOF
41290 cat confdefs.h >>conftest.$ac_ext
41291 cat >>conftest.$ac_ext <<_ACEOF
41292 /* end confdefs.h.  */
41293 #include <sys/xattr.h>
41294 _ACEOF
41295 if { (ac_try="$ac_cpp conftest.$ac_ext"
41296 case "(($ac_try" in
41297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41298   *) ac_try_echo=$ac_try;;
41299 esac
41300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41301   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41302   ac_status=$?
41303   grep -v '^ *+' conftest.er1 >conftest.err
41304   rm -f conftest.er1
41305   cat conftest.err >&5
41306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41307   (exit $ac_status); } >/dev/null && {
41308          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41309          test ! -s conftest.err
41310        }; then
41311   ac_header_preproc=yes
41312 else
41313   echo "$as_me: failed program was:" >&5
41314 sed 's/^/| /' conftest.$ac_ext >&5
41315
41316   ac_header_preproc=no
41317 fi
41318
41319 rm -f conftest.err conftest.$ac_ext
41320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41321 echo "${ECHO_T}$ac_header_preproc" >&6; }
41322
41323 # So?  What about this header?
41324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41325   yes:no: )
41326     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41327 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41328     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41329 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41330     ac_header_preproc=yes
41331     ;;
41332   no:yes:* )
41333     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41334 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41335     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
41336 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
41337     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41338 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41339     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41340 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41341     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41342 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41343     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41344 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41345
41346     ;;
41347 esac
41348 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41349 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41350 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41351   echo $ECHO_N "(cached) $ECHO_C" >&6
41352 else
41353   ac_cv_header_sys_xattr_h=$ac_header_preproc
41354 fi
41355 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41356 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41357
41358 fi
41359 if test $ac_cv_header_sys_xattr_h = yes; then
41360
41361 cat >>confdefs.h <<\_ACEOF
41362 #define HAVE_SYS_XATTR_H 1
41363 _ACEOF
41364
41365 fi
41366
41367
41368
41369
41370
41371 for ac_func in llistxattr lgetxattr lsetxattr
41372 do
41373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41377   echo $ECHO_N "(cached) $ECHO_C" >&6
41378 else
41379   cat >conftest.$ac_ext <<_ACEOF
41380 /* confdefs.h.  */
41381 _ACEOF
41382 cat confdefs.h >>conftest.$ac_ext
41383 cat >>conftest.$ac_ext <<_ACEOF
41384 /* end confdefs.h.  */
41385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41387 #define $ac_func innocuous_$ac_func
41388
41389 /* System header to define __stub macros and hopefully few prototypes,
41390     which can conflict with char $ac_func (); below.
41391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41392     <limits.h> exists even on freestanding compilers.  */
41393
41394 #ifdef __STDC__
41395 # include <limits.h>
41396 #else
41397 # include <assert.h>
41398 #endif
41399
41400 #undef $ac_func
41401
41402 /* Override any GCC internal prototype to avoid an error.
41403    Use char because int might match the return type of a GCC
41404    builtin and then its argument prototype would still apply.  */
41405 #ifdef __cplusplus
41406 extern "C"
41407 #endif
41408 char $ac_func ();
41409 /* The GNU C library defines this for functions which it implements
41410     to always fail with ENOSYS.  Some functions are actually named
41411     something starting with __ and the normal name is an alias.  */
41412 #if defined __stub_$ac_func || defined __stub___$ac_func
41413 choke me
41414 #endif
41415
41416 int
41417 main ()
41418 {
41419 return $ac_func ();
41420   ;
41421   return 0;
41422 }
41423 _ACEOF
41424 rm -f conftest.$ac_objext conftest$ac_exeext
41425 if { (ac_try="$ac_link"
41426 case "(($ac_try" in
41427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41428   *) ac_try_echo=$ac_try;;
41429 esac
41430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41431   (eval "$ac_link") 2>conftest.er1
41432   ac_status=$?
41433   grep -v '^ *+' conftest.er1 >conftest.err
41434   rm -f conftest.er1
41435   cat conftest.err >&5
41436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41437   (exit $ac_status); } && {
41438          test -z "$ac_c_werror_flag" ||
41439          test ! -s conftest.err
41440        } && test -s conftest$ac_exeext &&
41441        $as_test_x conftest$ac_exeext; then
41442   eval "$as_ac_var=yes"
41443 else
41444   echo "$as_me: failed program was:" >&5
41445 sed 's/^/| /' conftest.$ac_ext >&5
41446
41447         eval "$as_ac_var=no"
41448 fi
41449
41450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41451       conftest$ac_exeext conftest.$ac_ext
41452 fi
41453 ac_res=`eval echo '${'$as_ac_var'}'`
41454                { echo "$as_me:$LINENO: result: $ac_res" >&5
41455 echo "${ECHO_T}$ac_res" >&6; }
41456 if test `eval echo '${'$as_ac_var'}'` = yes; then
41457   cat >>confdefs.h <<_ACEOF
41458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41459 _ACEOF
41460
41461           have_xattr=yes
41462
41463 cat >>confdefs.h <<\_ACEOF
41464 #define HAVE_LLISTXATTR
41465 _ACEOF
41466
41467
41468 cat >>confdefs.h <<\_ACEOF
41469 #define HAVE_LGETXATTR
41470 _ACEOF
41471
41472
41473 cat >>confdefs.h <<\_ACEOF
41474 #define HAVE_LSETXATTR
41475 _ACEOF
41476
41477
41478
41479 fi
41480 done
41481
41482
41483    #
41484    # OSX specific
41485    #
41486    if test $have_xattr = no; then
41487
41488
41489
41490 for ac_func in listxattr getxattr setxattr
41491 do
41492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41496   echo $ECHO_N "(cached) $ECHO_C" >&6
41497 else
41498   cat >conftest.$ac_ext <<_ACEOF
41499 /* confdefs.h.  */
41500 _ACEOF
41501 cat confdefs.h >>conftest.$ac_ext
41502 cat >>conftest.$ac_ext <<_ACEOF
41503 /* end confdefs.h.  */
41504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41506 #define $ac_func innocuous_$ac_func
41507
41508 /* System header to define __stub macros and hopefully few prototypes,
41509     which can conflict with char $ac_func (); below.
41510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41511     <limits.h> exists even on freestanding compilers.  */
41512
41513 #ifdef __STDC__
41514 # include <limits.h>
41515 #else
41516 # include <assert.h>
41517 #endif
41518
41519 #undef $ac_func
41520
41521 /* Override any GCC internal prototype to avoid an error.
41522    Use char because int might match the return type of a GCC
41523    builtin and then its argument prototype would still apply.  */
41524 #ifdef __cplusplus
41525 extern "C"
41526 #endif
41527 char $ac_func ();
41528 /* The GNU C library defines this for functions which it implements
41529     to always fail with ENOSYS.  Some functions are actually named
41530     something starting with __ and the normal name is an alias.  */
41531 #if defined __stub_$ac_func || defined __stub___$ac_func
41532 choke me
41533 #endif
41534
41535 int
41536 main ()
41537 {
41538 return $ac_func ();
41539   ;
41540   return 0;
41541 }
41542 _ACEOF
41543 rm -f conftest.$ac_objext conftest$ac_exeext
41544 if { (ac_try="$ac_link"
41545 case "(($ac_try" in
41546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41547   *) ac_try_echo=$ac_try;;
41548 esac
41549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41550   (eval "$ac_link") 2>conftest.er1
41551   ac_status=$?
41552   grep -v '^ *+' conftest.er1 >conftest.err
41553   rm -f conftest.er1
41554   cat conftest.err >&5
41555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41556   (exit $ac_status); } && {
41557          test -z "$ac_c_werror_flag" ||
41558          test ! -s conftest.err
41559        } && test -s conftest$ac_exeext &&
41560        $as_test_x conftest$ac_exeext; then
41561   eval "$as_ac_var=yes"
41562 else
41563   echo "$as_me: failed program was:" >&5
41564 sed 's/^/| /' conftest.$ac_ext >&5
41565
41566         eval "$as_ac_var=no"
41567 fi
41568
41569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41570       conftest$ac_exeext conftest.$ac_ext
41571 fi
41572 ac_res=`eval echo '${'$as_ac_var'}'`
41573                { echo "$as_me:$LINENO: result: $ac_res" >&5
41574 echo "${ECHO_T}$ac_res" >&6; }
41575 if test `eval echo '${'$as_ac_var'}'` = yes; then
41576   cat >>confdefs.h <<_ACEOF
41577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41578 _ACEOF
41579
41580              have_xattr=yes
41581
41582 cat >>confdefs.h <<\_ACEOF
41583 #define HAVE_LLISTXATTR
41584 _ACEOF
41585
41586
41587 cat >>confdefs.h <<\_ACEOF
41588 #define HAVE_LGETXATTR
41589 _ACEOF
41590
41591
41592 cat >>confdefs.h <<\_ACEOF
41593 #define HAVE_LSETXATTR
41594 _ACEOF
41595
41596
41597
41598 fi
41599 done
41600
41601    fi
41602
41603    #
41604    # Solaris specific
41605    #
41606    if test $have_xattr = no; then
41607       if test "${ac_cv_header_sys_attr_h+set}" = set; then
41608   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41609 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41610 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41611   echo $ECHO_N "(cached) $ECHO_C" >&6
41612 fi
41613 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41614 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41615 else
41616   # Is the header compilable?
41617 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
41618 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
41619 cat >conftest.$ac_ext <<_ACEOF
41620 /* confdefs.h.  */
41621 _ACEOF
41622 cat confdefs.h >>conftest.$ac_ext
41623 cat >>conftest.$ac_ext <<_ACEOF
41624 /* end confdefs.h.  */
41625 $ac_includes_default
41626 #include <sys/attr.h>
41627 _ACEOF
41628 rm -f conftest.$ac_objext
41629 if { (ac_try="$ac_compile"
41630 case "(($ac_try" in
41631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41632   *) ac_try_echo=$ac_try;;
41633 esac
41634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41635   (eval "$ac_compile") 2>conftest.er1
41636   ac_status=$?
41637   grep -v '^ *+' conftest.er1 >conftest.err
41638   rm -f conftest.er1
41639   cat conftest.err >&5
41640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41641   (exit $ac_status); } && {
41642          test -z "$ac_c_werror_flag" ||
41643          test ! -s conftest.err
41644        } && test -s conftest.$ac_objext; then
41645   ac_header_compiler=yes
41646 else
41647   echo "$as_me: failed program was:" >&5
41648 sed 's/^/| /' conftest.$ac_ext >&5
41649
41650         ac_header_compiler=no
41651 fi
41652
41653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41655 echo "${ECHO_T}$ac_header_compiler" >&6; }
41656
41657 # Is the header present?
41658 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
41659 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
41660 cat >conftest.$ac_ext <<_ACEOF
41661 /* confdefs.h.  */
41662 _ACEOF
41663 cat confdefs.h >>conftest.$ac_ext
41664 cat >>conftest.$ac_ext <<_ACEOF
41665 /* end confdefs.h.  */
41666 #include <sys/attr.h>
41667 _ACEOF
41668 if { (ac_try="$ac_cpp conftest.$ac_ext"
41669 case "(($ac_try" in
41670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41671   *) ac_try_echo=$ac_try;;
41672 esac
41673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41674   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41675   ac_status=$?
41676   grep -v '^ *+' conftest.er1 >conftest.err
41677   rm -f conftest.er1
41678   cat conftest.err >&5
41679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41680   (exit $ac_status); } >/dev/null && {
41681          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41682          test ! -s conftest.err
41683        }; then
41684   ac_header_preproc=yes
41685 else
41686   echo "$as_me: failed program was:" >&5
41687 sed 's/^/| /' conftest.$ac_ext >&5
41688
41689   ac_header_preproc=no
41690 fi
41691
41692 rm -f conftest.err conftest.$ac_ext
41693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41694 echo "${ECHO_T}$ac_header_preproc" >&6; }
41695
41696 # So?  What about this header?
41697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41698   yes:no: )
41699     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41700 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41701     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
41702 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
41703     ac_header_preproc=yes
41704     ;;
41705   no:yes:* )
41706     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
41707 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
41708     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
41709 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
41710     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
41711 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
41712     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41713 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41714     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
41715 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
41716     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
41717 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
41718
41719     ;;
41720 esac
41721 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41722 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41723 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41724   echo $ECHO_N "(cached) $ECHO_C" >&6
41725 else
41726   ac_cv_header_sys_attr_h=$ac_header_preproc
41727 fi
41728 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41729 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41730
41731 fi
41732 if test $ac_cv_header_sys_attr_h = yes; then
41733
41734 cat >>confdefs.h <<\_ACEOF
41735 #define HAVE_SYS_ATTR_H 1
41736 _ACEOF
41737
41738 fi
41739
41740
41741       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41742   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41743 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41744 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41745   echo $ECHO_N "(cached) $ECHO_C" >&6
41746 fi
41747 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41748 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41749 else
41750   # Is the header compilable?
41751 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
41752 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
41753 cat >conftest.$ac_ext <<_ACEOF
41754 /* confdefs.h.  */
41755 _ACEOF
41756 cat confdefs.h >>conftest.$ac_ext
41757 cat >>conftest.$ac_ext <<_ACEOF
41758 /* end confdefs.h.  */
41759 $ac_includes_default
41760 #include <sys/nvpair.h>
41761 _ACEOF
41762 rm -f conftest.$ac_objext
41763 if { (ac_try="$ac_compile"
41764 case "(($ac_try" in
41765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41766   *) ac_try_echo=$ac_try;;
41767 esac
41768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41769   (eval "$ac_compile") 2>conftest.er1
41770   ac_status=$?
41771   grep -v '^ *+' conftest.er1 >conftest.err
41772   rm -f conftest.er1
41773   cat conftest.err >&5
41774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41775   (exit $ac_status); } && {
41776          test -z "$ac_c_werror_flag" ||
41777          test ! -s conftest.err
41778        } && test -s conftest.$ac_objext; then
41779   ac_header_compiler=yes
41780 else
41781   echo "$as_me: failed program was:" >&5
41782 sed 's/^/| /' conftest.$ac_ext >&5
41783
41784         ac_header_compiler=no
41785 fi
41786
41787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41789 echo "${ECHO_T}$ac_header_compiler" >&6; }
41790
41791 # Is the header present?
41792 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
41793 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
41794 cat >conftest.$ac_ext <<_ACEOF
41795 /* confdefs.h.  */
41796 _ACEOF
41797 cat confdefs.h >>conftest.$ac_ext
41798 cat >>conftest.$ac_ext <<_ACEOF
41799 /* end confdefs.h.  */
41800 #include <sys/nvpair.h>
41801 _ACEOF
41802 if { (ac_try="$ac_cpp conftest.$ac_ext"
41803 case "(($ac_try" in
41804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41805   *) ac_try_echo=$ac_try;;
41806 esac
41807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41809   ac_status=$?
41810   grep -v '^ *+' conftest.er1 >conftest.err
41811   rm -f conftest.er1
41812   cat conftest.err >&5
41813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41814   (exit $ac_status); } >/dev/null && {
41815          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41816          test ! -s conftest.err
41817        }; then
41818   ac_header_preproc=yes
41819 else
41820   echo "$as_me: failed program was:" >&5
41821 sed 's/^/| /' conftest.$ac_ext >&5
41822
41823   ac_header_preproc=no
41824 fi
41825
41826 rm -f conftest.err conftest.$ac_ext
41827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41828 echo "${ECHO_T}$ac_header_preproc" >&6; }
41829
41830 # So?  What about this header?
41831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41832   yes:no: )
41833     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
41834 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41835     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
41836 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
41837     ac_header_preproc=yes
41838     ;;
41839   no:yes:* )
41840     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
41841 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
41842     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
41843 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
41844     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
41845 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
41846     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
41847 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41848     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
41849 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
41850     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
41851 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
41852
41853     ;;
41854 esac
41855 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41856 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41857 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41858   echo $ECHO_N "(cached) $ECHO_C" >&6
41859 else
41860   ac_cv_header_sys_nvpair_h=$ac_header_preproc
41861 fi
41862 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41863 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41864
41865 fi
41866 if test $ac_cv_header_sys_nvpair_h = yes; then
41867
41868 cat >>confdefs.h <<\_ACEOF
41869 #define HAVE_SYS_NVPAIR_H 1
41870 _ACEOF
41871
41872 fi
41873
41874
41875       if test "${ac_cv_header_attr_h+set}" = set; then
41876   { echo "$as_me:$LINENO: checking for attr.h" >&5
41877 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41878 if test "${ac_cv_header_attr_h+set}" = set; then
41879   echo $ECHO_N "(cached) $ECHO_C" >&6
41880 fi
41881 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41882 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41883 else
41884   # Is the header compilable?
41885 { echo "$as_me:$LINENO: checking attr.h usability" >&5
41886 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
41887 cat >conftest.$ac_ext <<_ACEOF
41888 /* confdefs.h.  */
41889 _ACEOF
41890 cat confdefs.h >>conftest.$ac_ext
41891 cat >>conftest.$ac_ext <<_ACEOF
41892 /* end confdefs.h.  */
41893 $ac_includes_default
41894 #include <attr.h>
41895 _ACEOF
41896 rm -f conftest.$ac_objext
41897 if { (ac_try="$ac_compile"
41898 case "(($ac_try" in
41899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41900   *) ac_try_echo=$ac_try;;
41901 esac
41902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41903   (eval "$ac_compile") 2>conftest.er1
41904   ac_status=$?
41905   grep -v '^ *+' conftest.er1 >conftest.err
41906   rm -f conftest.er1
41907   cat conftest.err >&5
41908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41909   (exit $ac_status); } && {
41910          test -z "$ac_c_werror_flag" ||
41911          test ! -s conftest.err
41912        } && test -s conftest.$ac_objext; then
41913   ac_header_compiler=yes
41914 else
41915   echo "$as_me: failed program was:" >&5
41916 sed 's/^/| /' conftest.$ac_ext >&5
41917
41918         ac_header_compiler=no
41919 fi
41920
41921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41923 echo "${ECHO_T}$ac_header_compiler" >&6; }
41924
41925 # Is the header present?
41926 { echo "$as_me:$LINENO: checking attr.h presence" >&5
41927 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
41928 cat >conftest.$ac_ext <<_ACEOF
41929 /* confdefs.h.  */
41930 _ACEOF
41931 cat confdefs.h >>conftest.$ac_ext
41932 cat >>conftest.$ac_ext <<_ACEOF
41933 /* end confdefs.h.  */
41934 #include <attr.h>
41935 _ACEOF
41936 if { (ac_try="$ac_cpp conftest.$ac_ext"
41937 case "(($ac_try" in
41938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41939   *) ac_try_echo=$ac_try;;
41940 esac
41941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41943   ac_status=$?
41944   grep -v '^ *+' conftest.er1 >conftest.err
41945   rm -f conftest.er1
41946   cat conftest.err >&5
41947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41948   (exit $ac_status); } >/dev/null && {
41949          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41950          test ! -s conftest.err
41951        }; then
41952   ac_header_preproc=yes
41953 else
41954   echo "$as_me: failed program was:" >&5
41955 sed 's/^/| /' conftest.$ac_ext >&5
41956
41957   ac_header_preproc=no
41958 fi
41959
41960 rm -f conftest.err conftest.$ac_ext
41961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41962 echo "${ECHO_T}$ac_header_preproc" >&6; }
41963
41964 # So?  What about this header?
41965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41966   yes:no: )
41967     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41968 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41969     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
41970 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
41971     ac_header_preproc=yes
41972     ;;
41973   no:yes:* )
41974     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
41975 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
41976     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
41977 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
41978     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
41979 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
41980     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41981 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41982     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
41983 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
41984     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
41985 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
41986
41987     ;;
41988 esac
41989 { echo "$as_me:$LINENO: checking for attr.h" >&5
41990 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41991 if test "${ac_cv_header_attr_h+set}" = set; then
41992   echo $ECHO_N "(cached) $ECHO_C" >&6
41993 else
41994   ac_cv_header_attr_h=$ac_header_preproc
41995 fi
41996 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41997 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41998
41999 fi
42000 if test $ac_cv_header_attr_h = yes; then
42001
42002 cat >>confdefs.h <<\_ACEOF
42003 #define HAVE_ATTR_H 1
42004 _ACEOF
42005
42006 fi
42007
42008
42009
42010
42011
42012
42013
42014
42015 for ac_func in openat fstatat unlinkat fchownat futimesat
42016 do
42017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42021   echo $ECHO_N "(cached) $ECHO_C" >&6
42022 else
42023   cat >conftest.$ac_ext <<_ACEOF
42024 /* confdefs.h.  */
42025 _ACEOF
42026 cat confdefs.h >>conftest.$ac_ext
42027 cat >>conftest.$ac_ext <<_ACEOF
42028 /* end confdefs.h.  */
42029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42031 #define $ac_func innocuous_$ac_func
42032
42033 /* System header to define __stub macros and hopefully few prototypes,
42034     which can conflict with char $ac_func (); below.
42035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42036     <limits.h> exists even on freestanding compilers.  */
42037
42038 #ifdef __STDC__
42039 # include <limits.h>
42040 #else
42041 # include <assert.h>
42042 #endif
42043
42044 #undef $ac_func
42045
42046 /* Override any GCC internal prototype to avoid an error.
42047    Use char because int might match the return type of a GCC
42048    builtin and then its argument prototype would still apply.  */
42049 #ifdef __cplusplus
42050 extern "C"
42051 #endif
42052 char $ac_func ();
42053 /* The GNU C library defines this for functions which it implements
42054     to always fail with ENOSYS.  Some functions are actually named
42055     something starting with __ and the normal name is an alias.  */
42056 #if defined __stub_$ac_func || defined __stub___$ac_func
42057 choke me
42058 #endif
42059
42060 int
42061 main ()
42062 {
42063 return $ac_func ();
42064   ;
42065   return 0;
42066 }
42067 _ACEOF
42068 rm -f conftest.$ac_objext conftest$ac_exeext
42069 if { (ac_try="$ac_link"
42070 case "(($ac_try" in
42071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42072   *) ac_try_echo=$ac_try;;
42073 esac
42074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42075   (eval "$ac_link") 2>conftest.er1
42076   ac_status=$?
42077   grep -v '^ *+' conftest.er1 >conftest.err
42078   rm -f conftest.er1
42079   cat conftest.err >&5
42080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42081   (exit $ac_status); } && {
42082          test -z "$ac_c_werror_flag" ||
42083          test ! -s conftest.err
42084        } && test -s conftest$ac_exeext &&
42085        $as_test_x conftest$ac_exeext; then
42086   eval "$as_ac_var=yes"
42087 else
42088   echo "$as_me: failed program was:" >&5
42089 sed 's/^/| /' conftest.$ac_ext >&5
42090
42091         eval "$as_ac_var=no"
42092 fi
42093
42094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42095       conftest$ac_exeext conftest.$ac_ext
42096 fi
42097 ac_res=`eval echo '${'$as_ac_var'}'`
42098                { echo "$as_me:$LINENO: result: $ac_res" >&5
42099 echo "${ECHO_T}$ac_res" >&6; }
42100 if test `eval echo '${'$as_ac_var'}'` = yes; then
42101   cat >>confdefs.h <<_ACEOF
42102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42103 _ACEOF
42104
42105              have_xattr=yes
42106
42107 cat >>confdefs.h <<\_ACEOF
42108 #define HAVE_OPENAT
42109 _ACEOF
42110
42111
42112 cat >>confdefs.h <<\_ACEOF
42113 #define HAVE_FSTATAT
42114 _ACEOF
42115
42116
42117 cat >>confdefs.h <<\_ACEOF
42118 #define HAVE_UNLINKAT
42119 _ACEOF
42120
42121
42122 cat >>confdefs.h <<\_ACEOF
42123 #define HAVE_FCHOWNAT
42124 _ACEOF
42125
42126
42127 cat >>confdefs.h <<\_ACEOF
42128 #define HAVE_FUTIMESAT
42129 _ACEOF
42130
42131
42132
42133 fi
42134 done
42135
42136
42137       if test $have_xattr = yes; then
42138          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42139 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42140 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42141   echo $ECHO_N "(cached) $ECHO_C" >&6
42142 else
42143   ac_check_lib_save_LIBS=$LIBS
42144 LIBS="-lnvpair  $LIBS"
42145 cat >conftest.$ac_ext <<_ACEOF
42146 /* confdefs.h.  */
42147 _ACEOF
42148 cat confdefs.h >>conftest.$ac_ext
42149 cat >>conftest.$ac_ext <<_ACEOF
42150 /* end confdefs.h.  */
42151
42152 /* Override any GCC internal prototype to avoid an error.
42153    Use char because int might match the return type of a GCC
42154    builtin and then its argument prototype would still apply.  */
42155 #ifdef __cplusplus
42156 extern "C"
42157 #endif
42158 char nvlist_next_nvpair ();
42159 int
42160 main ()
42161 {
42162 return nvlist_next_nvpair ();
42163   ;
42164   return 0;
42165 }
42166 _ACEOF
42167 rm -f conftest.$ac_objext conftest$ac_exeext
42168 if { (ac_try="$ac_link"
42169 case "(($ac_try" in
42170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42171   *) ac_try_echo=$ac_try;;
42172 esac
42173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42174   (eval "$ac_link") 2>conftest.er1
42175   ac_status=$?
42176   grep -v '^ *+' conftest.er1 >conftest.err
42177   rm -f conftest.er1
42178   cat conftest.err >&5
42179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42180   (exit $ac_status); } && {
42181          test -z "$ac_c_werror_flag" ||
42182          test ! -s conftest.err
42183        } && test -s conftest$ac_exeext &&
42184        $as_test_x conftest$ac_exeext; then
42185   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42186 else
42187   echo "$as_me: failed program was:" >&5
42188 sed 's/^/| /' conftest.$ac_ext >&5
42189
42190         ac_cv_lib_nvpair_nvlist_next_nvpair=no
42191 fi
42192
42193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42194       conftest$ac_exeext conftest.$ac_ext
42195 LIBS=$ac_check_lib_save_LIBS
42196 fi
42197 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42198 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42199 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42200
42201                 FDLIBS="-lnvpair $FDLIBS"
42202
42203
42204 fi
42205
42206       fi
42207    fi
42208
42209    if test x$support_xattr = xyes -a $have_xattr != yes; then
42210       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
42211   please either load the xattr libraries or rerun configure without --enable-xatt" >&5
42212 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
42213   please either load the xattr libraries or rerun configure without --enable-xatt" >&2;}
42214    { (exit 1); exit 1; }; }
42215    else
42216       if test $have_xattr = yes; then
42217
42218 cat >>confdefs.h <<\_ACEOF
42219 #define HAVE_XATTR
42220 _ACEOF
42221
42222       fi
42223    fi
42224 fi
42225
42226 PTHREAD_LIB=""
42227 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42228 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42229 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42230   echo $ECHO_N "(cached) $ECHO_C" >&6
42231 else
42232   ac_check_lib_save_LIBS=$LIBS
42233 LIBS="-lpthread  $LIBS"
42234 cat >conftest.$ac_ext <<_ACEOF
42235 /* confdefs.h.  */
42236 _ACEOF
42237 cat confdefs.h >>conftest.$ac_ext
42238 cat >>conftest.$ac_ext <<_ACEOF
42239 /* end confdefs.h.  */
42240
42241 /* Override any GCC internal prototype to avoid an error.
42242    Use char because int might match the return type of a GCC
42243    builtin and then its argument prototype would still apply.  */
42244 #ifdef __cplusplus
42245 extern "C"
42246 #endif
42247 char pthread_create ();
42248 int
42249 main ()
42250 {
42251 return pthread_create ();
42252   ;
42253   return 0;
42254 }
42255 _ACEOF
42256 rm -f conftest.$ac_objext conftest$ac_exeext
42257 if { (ac_try="$ac_link"
42258 case "(($ac_try" in
42259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42260   *) ac_try_echo=$ac_try;;
42261 esac
42262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42263   (eval "$ac_link") 2>conftest.er1
42264   ac_status=$?
42265   grep -v '^ *+' conftest.er1 >conftest.err
42266   rm -f conftest.er1
42267   cat conftest.err >&5
42268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42269   (exit $ac_status); } && {
42270          test -z "$ac_c_werror_flag" ||
42271          test ! -s conftest.err
42272        } && test -s conftest$ac_exeext &&
42273        $as_test_x conftest$ac_exeext; then
42274   ac_cv_lib_pthread_pthread_create=yes
42275 else
42276   echo "$as_me: failed program was:" >&5
42277 sed 's/^/| /' conftest.$ac_ext >&5
42278
42279         ac_cv_lib_pthread_pthread_create=no
42280 fi
42281
42282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42283       conftest$ac_exeext conftest.$ac_ext
42284 LIBS=$ac_check_lib_save_LIBS
42285 fi
42286 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42287 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42288 if test $ac_cv_lib_pthread_pthread_create = yes; then
42289   PTHREAD_LIB="-lpthread"
42290 else
42291
42292        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42293 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42294 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42295   echo $ECHO_N "(cached) $ECHO_C" >&6
42296 else
42297   ac_check_lib_save_LIBS=$LIBS
42298 LIBS="-lpthreads  $LIBS"
42299 cat >conftest.$ac_ext <<_ACEOF
42300 /* confdefs.h.  */
42301 _ACEOF
42302 cat confdefs.h >>conftest.$ac_ext
42303 cat >>conftest.$ac_ext <<_ACEOF
42304 /* end confdefs.h.  */
42305
42306 /* Override any GCC internal prototype to avoid an error.
42307    Use char because int might match the return type of a GCC
42308    builtin and then its argument prototype would still apply.  */
42309 #ifdef __cplusplus
42310 extern "C"
42311 #endif
42312 char pthread_create ();
42313 int
42314 main ()
42315 {
42316 return pthread_create ();
42317   ;
42318   return 0;
42319 }
42320 _ACEOF
42321 rm -f conftest.$ac_objext conftest$ac_exeext
42322 if { (ac_try="$ac_link"
42323 case "(($ac_try" in
42324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42325   *) ac_try_echo=$ac_try;;
42326 esac
42327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42328   (eval "$ac_link") 2>conftest.er1
42329   ac_status=$?
42330   grep -v '^ *+' conftest.er1 >conftest.err
42331   rm -f conftest.er1
42332   cat conftest.err >&5
42333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42334   (exit $ac_status); } && {
42335          test -z "$ac_c_werror_flag" ||
42336          test ! -s conftest.err
42337        } && test -s conftest$ac_exeext &&
42338        $as_test_x conftest$ac_exeext; then
42339   ac_cv_lib_pthreads_pthread_create=yes
42340 else
42341   echo "$as_me: failed program was:" >&5
42342 sed 's/^/| /' conftest.$ac_ext >&5
42343
42344         ac_cv_lib_pthreads_pthread_create=no
42345 fi
42346
42347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42348       conftest$ac_exeext conftest.$ac_ext
42349 LIBS=$ac_check_lib_save_LIBS
42350 fi
42351 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42352 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42353 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42354   PTHREAD_LIB="-lpthreads"
42355 else
42356
42357               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42358 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42359 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42360   echo $ECHO_N "(cached) $ECHO_C" >&6
42361 else
42362   ac_check_lib_save_LIBS=$LIBS
42363 LIBS="-lc_r  $LIBS"
42364 cat >conftest.$ac_ext <<_ACEOF
42365 /* confdefs.h.  */
42366 _ACEOF
42367 cat confdefs.h >>conftest.$ac_ext
42368 cat >>conftest.$ac_ext <<_ACEOF
42369 /* end confdefs.h.  */
42370
42371 /* Override any GCC internal prototype to avoid an error.
42372    Use char because int might match the return type of a GCC
42373    builtin and then its argument prototype would still apply.  */
42374 #ifdef __cplusplus
42375 extern "C"
42376 #endif
42377 char pthread_create ();
42378 int
42379 main ()
42380 {
42381 return pthread_create ();
42382   ;
42383   return 0;
42384 }
42385 _ACEOF
42386 rm -f conftest.$ac_objext conftest$ac_exeext
42387 if { (ac_try="$ac_link"
42388 case "(($ac_try" in
42389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42390   *) ac_try_echo=$ac_try;;
42391 esac
42392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42393   (eval "$ac_link") 2>conftest.er1
42394   ac_status=$?
42395   grep -v '^ *+' conftest.er1 >conftest.err
42396   rm -f conftest.er1
42397   cat conftest.err >&5
42398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42399   (exit $ac_status); } && {
42400          test -z "$ac_c_werror_flag" ||
42401          test ! -s conftest.err
42402        } && test -s conftest$ac_exeext &&
42403        $as_test_x conftest$ac_exeext; then
42404   ac_cv_lib_c_r_pthread_create=yes
42405 else
42406   echo "$as_me: failed program was:" >&5
42407 sed 's/^/| /' conftest.$ac_ext >&5
42408
42409         ac_cv_lib_c_r_pthread_create=no
42410 fi
42411
42412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42413       conftest$ac_exeext conftest.$ac_ext
42414 LIBS=$ac_check_lib_save_LIBS
42415 fi
42416 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
42417 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
42418 if test $ac_cv_lib_c_r_pthread_create = yes; then
42419   PTHREAD_LIB="-lc_r"
42420 else
42421
42422                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
42423 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
42424 if test "${ac_cv_func_pthread_create+set}" = set; then
42425   echo $ECHO_N "(cached) $ECHO_C" >&6
42426 else
42427   cat >conftest.$ac_ext <<_ACEOF
42428 /* confdefs.h.  */
42429 _ACEOF
42430 cat confdefs.h >>conftest.$ac_ext
42431 cat >>conftest.$ac_ext <<_ACEOF
42432 /* end confdefs.h.  */
42433 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
42434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42435 #define pthread_create innocuous_pthread_create
42436
42437 /* System header to define __stub macros and hopefully few prototypes,
42438     which can conflict with char pthread_create (); below.
42439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42440     <limits.h> exists even on freestanding compilers.  */
42441
42442 #ifdef __STDC__
42443 # include <limits.h>
42444 #else
42445 # include <assert.h>
42446 #endif
42447
42448 #undef pthread_create
42449
42450 /* Override any GCC internal prototype to avoid an error.
42451    Use char because int might match the return type of a GCC
42452    builtin and then its argument prototype would still apply.  */
42453 #ifdef __cplusplus
42454 extern "C"
42455 #endif
42456 char pthread_create ();
42457 /* The GNU C library defines this for functions which it implements
42458     to always fail with ENOSYS.  Some functions are actually named
42459     something starting with __ and the normal name is an alias.  */
42460 #if defined __stub_pthread_create || defined __stub___pthread_create
42461 choke me
42462 #endif
42463
42464 int
42465 main ()
42466 {
42467 return pthread_create ();
42468   ;
42469   return 0;
42470 }
42471 _ACEOF
42472 rm -f conftest.$ac_objext conftest$ac_exeext
42473 if { (ac_try="$ac_link"
42474 case "(($ac_try" in
42475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42476   *) ac_try_echo=$ac_try;;
42477 esac
42478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42479   (eval "$ac_link") 2>conftest.er1
42480   ac_status=$?
42481   grep -v '^ *+' conftest.er1 >conftest.err
42482   rm -f conftest.er1
42483   cat conftest.err >&5
42484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42485   (exit $ac_status); } && {
42486          test -z "$ac_c_werror_flag" ||
42487          test ! -s conftest.err
42488        } && test -s conftest$ac_exeext &&
42489        $as_test_x conftest$ac_exeext; then
42490   ac_cv_func_pthread_create=yes
42491 else
42492   echo "$as_me: failed program was:" >&5
42493 sed 's/^/| /' conftest.$ac_ext >&5
42494
42495         ac_cv_func_pthread_create=no
42496 fi
42497
42498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42499       conftest$ac_exeext conftest.$ac_ext
42500 fi
42501 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
42502 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
42503
42504
42505
42506 fi
42507
42508
42509
42510 fi
42511
42512
42513
42514 fi
42515
42516
42517
42518 cat >>confdefs.h <<\_ACEOF
42519 #define FDLIBS 1
42520 _ACEOF
42521
42522
42523 CFLAGS=${CFLAGS--O}
42524
42525 if test x$have_gcc = xyes ; then
42526    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42527    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42528 fi
42529 LDFLAGS=${LDFLAGS--O}
42530 DB_LIBS="${SQL_LFLAGS}"
42531 CPPFLAGS="$CPPFLAGS"
42532 CFLAGS="$CFLAGS"
42533
42534
42535
42536
42537
42538
42539
42540
42541
42542
42543
42544
42545
42546
42547
42548
42549 OBJLIST=
42550
42551
42552 lld="lld"
42553 llu="llu"
42554
42555 WCFLAGS=
42556 WLDFLAGS=
42557
42558 PFILES="platforms/Makefile"
42559 PSCMD="ps -e"
42560 WIN32=
42561 MACOSX=
42562 hostname=`uname -n | cut -d '.' -f 1`
42563 if test x${hostname} = x ; then
42564    hostname="localhost"
42565 fi
42566 case "$DISTNAME" in
42567 aix)
42568    DISTVER=`uname -r`
42569    PSCMD="ps -e -o pid,comm"
42570    PFILES="${PFILES} \
42571       platforms/aix/Makefile"
42572    TAPEDRIVE="/dev/rmt0.1"
42573   ;;
42574 alpha)
42575    DISTVER=`uname -r`
42576    PTHREAD_LIB="-lpthread -lexc"
42577    if test "${CC}" = "gcc" ; then
42578       lld="lld"
42579       llu="llu"
42580    else
42581       lld="ld"
42582       llu="lu"
42583    fi
42584    TAPEDRIVE="/dev/nrmt0"
42585   ;;
42586 bsdi)
42587    DISTVER=`uname -a |awk '{print $3}'`
42588    TAPEDRIVE="/dev/nrmt0"
42589    PTHREAD_LIB="-pthread"
42590    CFLAGS="${CFLAGS} -pthread"
42591    PSCMD="ps -ax -o pid,command"
42592    lld="qd"
42593    llu="qu"
42594    PFILES="${PFILES} \
42595        platforms/bsdi/Makefile \
42596        platforms/bsdi/bacula-fd \
42597        platforms/bsdi/bacula-sd \
42598        platforms/bsdi/bacula-dir"
42599    largefile_support="yes"
42600   ;;
42601 cygwin)
42602    DISTVER=`uname -a |awk '{print $3}'`
42603    TAPEDRIVE="/dev/nrst0"
42604    WIN32=win32
42605    WCFLAGS="-mwindows"
42606    WLDFLAGS="-mwindows"
42607   ;;
42608 darwin)
42609    DISTVER=`uname -r`
42610    TAPEDRIVE="/dev/nst0"
42611    PSCMD="ps -e -o pid,command"
42612    MACOSX=macosx
42613    PFILES="${PFILES} \
42614       platforms/darwin/Makefile"
42615   ;;
42616 debian)
42617       ping -c 1 $hostname 2>&1 1>/dev/null
42618    if test ! $? = 0; then
42619       hostname="localhost"
42620    fi
42621    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
42622       DISTNAME="ubuntu"
42623    fi
42624    DISTVER=`cat /etc/debian_version`
42625    if test -f /etc/lsb-release ; then
42626       . /etc/lsb-release
42627       if test "x$DISTRIB_ID" != "x" ; then
42628          DISTNAME=$DISTRIB_ID
42629       fi
42630       if test "x$DISTRIB_RELEASE" != "x" ; then
42631          DISTVER=$DISTRIB_RELEASE
42632       fi
42633    fi
42634    if test "$DISTNAME" = "Ubuntu" ; then
42635       DISTNAME="ubuntu"
42636    fi
42637    TAPEDRIVE="/dev/nst0"
42638    PSCMD="ps -e -o pid,command"
42639    if test "$DISTNAME" = "ubuntu" ; then
42640       PFILES="${PFILES} \
42641          platforms/ubuntu/Makefile \
42642          platforms/ubuntu/bacula-fd \
42643          platforms/ubuntu/bacula-sd \
42644          platforms/ubuntu/bacula-dir"
42645    else
42646       PFILES="${PFILES} \
42647          platforms/debian/Makefile \
42648          platforms/debian/bacula-fd \
42649          platforms/debian/bacula-sd \
42650          platforms/debian/bacula-dir"
42651    fi
42652   ;;
42653 freebsd)
42654       ping -c 1 $hostname 2>&1 1>/dev/null
42655    if test ! $? = 0; then
42656       hostname="localhost"
42657    fi
42658    DISTVER=`uname -a |awk '{print $3}'`
42659    VER=`echo $DISTVER | cut -c 1`
42660    if test x$VER = x4 ; then
42661       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
42662       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
42663    fi
42664    lld="qd"
42665    llu="qu"
42666    TAPEDRIVE="/dev/nrsa0"
42667    PSCMD="ps -ax -o pid,command"
42668    PFILES="${PFILES} \
42669        platforms/freebsd/Makefile \
42670        platforms/freebsd/bacula-fd \
42671        platforms/freebsd/bacula-sd \
42672        platforms/freebsd/bacula-dir"
42673    largefile_support="yes"
42674   ;;
42675 hpux)
42676    PSCMD="UNIX95=1; ps -e -o pid,comm"
42677    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
42678    DISTVER=`uname -r`
42679    TAPEDRIVE="/dev/rmt/0hnb"
42680    PTHREAD_LIB="-lpthread"
42681    cat >>confdefs.h <<\_ACEOF
42682 #define _INCLUDE_LONGLONG 1
42683 _ACEOF
42684
42685   ;;
42686 irix)
42687    DISTVER=`uname -r`
42688    TAPEDRIVE="/dev/rmt/0cbn"
42689    PSCMD="ps -e -o pid,comm"
42690    PFILES="${PFILES} \
42691        platforms/irix/Makefile \
42692        platforms/irix/bacula-fd \
42693        platforms/irix/bacula-sd \
42694        platforms/irix/bacula-dir"
42695   ;;
42696 netbsd)
42697    DISTVER=`uname -a |awk '{print $3}'`
42698    lld="qd"
42699    llu="qu"
42700    TAPEDRIVE="/dev/nrst0"
42701    PSCMD="ps -ax -o pid,command"
42702    PTHREAD_LIB="-pthread"
42703    CFLAGS="${CFLAGS} -pthread"
42704   ;;
42705 openbsd)
42706    DISTVER=`uname -a |awk '{print $3}'`
42707    lld="qd"
42708    llu="qu"
42709    TAPEDRIVE="/dev/nrst0"
42710    PSCMD="ps -ax -o pid,command"
42711    PTHREAD_LIB="-pthread"
42712    CFLAGS="${CFLAGS} -pthread"
42713    PFILES="${PFILES} \
42714        platforms/openbsd/Makefile \
42715        platforms/openbsd/bacula-fd \
42716        platforms/openbsd/bacula-sd \
42717        platforms/openbsd/bacula-dir"
42718   ;;
42719 redhat)
42720       ping -c 1 $hostname 2>&1 1>/dev/null
42721    if test ! $? = 0; then
42722       hostname="localhost"
42723    fi
42724    if test -f /etc/whitebox-release ; then
42725       f=/etc/whitebox-release
42726    else
42727       f=/etc/redhat-release
42728    fi
42729    if test `cat $f | grep release |\
42730          cut -f 3 -d ' '`x = "Enterprise"x ; then
42731       DISTVER="Enterprise "`cat $f | grep release |\
42732           cut -f 6 -d ' '`
42733    else
42734        DISTVER=`cat /etc/redhat-release | grep release |\
42735            cut -f 5 -d ' '`
42736    fi
42737    TAPEDRIVE="/dev/nst0"
42738    PSCMD="ps -e -o pid,command"
42739    PFILES="${PFILES} \
42740        platforms/redhat/Makefile \
42741        platforms/redhat/bacula-fd \
42742        platforms/redhat/bacula-sd \
42743        platforms/redhat/bacula-dir \
42744        platforms/redhat/bacula.spec \
42745        "
42746   ;;
42747 mandrake)
42748       ping -c 1 $hostname 2>&1 1>/dev/null
42749    if test ! $? = 0; then
42750       hostname="localhost"
42751    fi
42752    DISTVER=`cat /etc/mandrake-release | grep release |\
42753       cut -f 5 -d ' '`
42754    TAPEDRIVE="/dev/nst0"
42755    PSCMD="ps -e -o pid,command"
42756    PFILES="${PFILES} \
42757        platforms/mandrake/Makefile \
42758        platforms/mandrake/bacula-fd \
42759        platforms/mandrake/bacula-sd \
42760        platforms/mandrake/bacula-dir \
42761        platforms/mandrake/bacula.spec \
42762        "
42763   ;;
42764 gentoo)
42765       ping -c 1 $hostname 2>&1 1>/dev/null
42766    if test ! $? = 0; then
42767       hostname="localhost"
42768    fi
42769    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
42770    TAPEDRIVE="/dev/nst0"
42771    PSCMD="ps -e -o pid,command"
42772    PFILES="${PFILES} \
42773        platforms/gentoo/Makefile \
42774     platforms/gentoo/bacula-init \
42775        platforms/gentoo/bacula-fd \
42776        platforms/gentoo/bacula-sd \
42777        platforms/gentoo/bacula-dir"
42778   ;;
42779 slackware)
42780       ping -c 1 $hostname 2>&1 1>/dev/null
42781    if test ! $? = 0; then
42782       hostname="localhost"
42783    fi
42784    DISTVER=`cat /etc/slackware-version`
42785    TAPEDRIVE="/dev/nst0"
42786    PSCMD="ps -e -o pid,command"
42787    PFILES="${PFILES} \
42788        platforms/slackware/Makefile \
42789        platforms/slackware/rc.bacula-fd \
42790        platforms/slackware/rc.bacula-sd \
42791        platforms/slackware/rc.bacula-dir\
42792        platforms/slackware/functions.bacula"
42793   ;;
42794 solaris)
42795    DISTVER=`uname -r`
42796    TAPEDRIVE="/dev/rmt/0cbn"
42797    PSCMD="ps -e -o pid,comm"
42798    PFILES="${PFILES} \
42799        platforms/solaris/Makefile \
42800        platforms/solaris/bacula-fd \
42801        platforms/solaris/bacula-sd \
42802        platforms/solaris/bacula-dir"
42803    if test x$DISTVER = x5.6 ; then
42804        cat >>confdefs.h <<\_ACEOF
42805 #define HAVE_OLD_SOCKOPT 1
42806 _ACEOF
42807
42808    fi
42809    LIBS="$LIBS -lresolv"
42810   ;;
42811 suse)
42812       ping -c 1 $hostname 2>&1 1>/dev/null
42813    if test ! $? = 0; then
42814       hostname="localhost"
42815    fi
42816    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
42817        cut -f 3 -d ' '`
42818    TAPEDRIVE="/dev/nst0"
42819    PSCMD="ps -e -o pid,command"
42820    PFILES="${PFILES} \
42821        platforms/suse/Makefile \
42822        platforms/suse/bacula-fd \
42823        platforms/suse/bacula-sd \
42824        platforms/suse/bacula-dir \
42825        platforms/suse/bacula \
42826        platforms/suse/bacula.spec"
42827   ;;
42828 suse5)
42829       ping -c 1 $hostname 2>&1 1>/dev/null
42830    if test ! $? = 0; then
42831       hostname="localhost"
42832    fi
42833    DISTNAME=suse
42834    DISTVER=5.x
42835    TAPEDRIVE="/dev/nst0"
42836    PSCMD="ps -e -o pid,command"
42837    PFILES="${PFILES} \
42838        platforms/suse/Makefile \
42839        platforms/suse/bacula-fd \
42840        platforms/suse/bacula-sd \
42841        platforms/suse/bacula-dir"
42842   ;;
42843 unknown)
42844    DISTVER=unknown
42845    TAPEDRIVE="/dev/nst0"
42846   ;;
42847 *)
42848   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
42849   ;;
42850 esac
42851
42852
42853
42854 LIBS="$PTHREAD_LIB $LIBS"
42855
42856 cat >>confdefs.h <<_ACEOF
42857 #define lld "$lld"
42858 _ACEOF
42859
42860 cat >>confdefs.h <<_ACEOF
42861 #define llu "$llu"
42862 _ACEOF
42863
42864
42865
42866
42867
42868
42869
42870
42871 MCOMMON=./autoconf/Make.common
42872
42873
42874 if test "x${subsysdir}" = "x${sbindir}" ; then
42875    echo " "
42876    echo " "
42877    echo "You have set both --sbindir and --with-subsys-dir"
42878    echo "  equal to: ${subsysdir} "
42879    echo "This is not permitted. Please reconfigure."
42880    echo " "
42881    echo "Aborting configuration ..."
42882    echo " "
42883    echo " "
42884    exit 1
42885 fi
42886
42887 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_sqlite_tables_9_to_10 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"
42888
42889 ac_config_commands="$ac_config_commands default"
42890
42891 cat >confcache <<\_ACEOF
42892 # This file is a shell script that caches the results of configure
42893 # tests run on this system so they can be shared between configure
42894 # scripts and configure runs, see configure's option --config-cache.
42895 # It is not useful on other systems.  If it contains results you don't
42896 # want to keep, you may remove or edit it.
42897 #
42898 # config.status only pays attention to the cache file if you give it
42899 # the --recheck option to rerun configure.
42900 #
42901 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42902 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42903 # following values.
42904
42905 _ACEOF
42906
42907 # The following way of writing the cache mishandles newlines in values,
42908 # but we know of no workaround that is simple, portable, and efficient.
42909 # So, we kill variables containing newlines.
42910 # Ultrix sh set writes to stderr and can't be redirected directly,
42911 # and sets the high bit in the cache file unless we assign to the vars.
42912 (
42913   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42914     eval ac_val=\$$ac_var
42915     case $ac_val in #(
42916     *${as_nl}*)
42917       case $ac_var in #(
42918       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42919 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42920       esac
42921       case $ac_var in #(
42922       _ | IFS | as_nl) ;; #(
42923       *) $as_unset $ac_var ;;
42924       esac ;;
42925     esac
42926   done
42927
42928   (set) 2>&1 |
42929     case $as_nl`(ac_space=' '; set) 2>&1` in #(
42930     *${as_nl}ac_space=\ *)
42931       # `set' does not quote correctly, so add quotes (double-quote
42932       # substitution turns \\\\ into \\, and sed turns \\ into \).
42933       sed -n \
42934         "s/'/'\\\\''/g;
42935           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42936       ;; #(
42937     *)
42938       # `set' quotes correctly as required by POSIX, so do not add quotes.
42939       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42940       ;;
42941     esac |
42942     sort
42943 ) |
42944   sed '
42945      /^ac_cv_env_/b end
42946      t clear
42947      :clear
42948      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42949      t end
42950      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42951      :end' >>confcache
42952 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42953   if test -w "$cache_file"; then
42954     test "x$cache_file" != "x/dev/null" &&
42955       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42956 echo "$as_me: updating cache $cache_file" >&6;}
42957     cat confcache >$cache_file
42958   else
42959     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42960 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42961   fi
42962 fi
42963 rm -f confcache
42964
42965 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42966 # Let make expand exec_prefix.
42967 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42968
42969 DEFS=-DHAVE_CONFIG_H
42970
42971 ac_libobjs=
42972 ac_ltlibobjs=
42973 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42974   # 1. Remove the extension, and $U if already installed.
42975   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
42976   ac_i=`echo "$ac_i" | sed "$ac_script"`
42977   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
42978   #    will be set to the directory where LIBOBJS objects are built.
42979   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42980   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42981 done
42982 LIBOBJS=$ac_libobjs
42983
42984 LTLIBOBJS=$ac_ltlibobjs
42985
42986
42987
42988 : ${CONFIG_STATUS=./config.status}
42989 ac_clean_files_save=$ac_clean_files
42990 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42991 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42992 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42993 cat >$CONFIG_STATUS <<_ACEOF
42994 #! $SHELL
42995 # Generated by $as_me.
42996 # Run this file to recreate the current configuration.
42997 # Compiler output produced by configure, useful for debugging
42998 # configure, is in config.log if it exists.
42999
43000 debug=false
43001 ac_cs_recheck=false
43002 ac_cs_silent=false
43003 SHELL=\${CONFIG_SHELL-$SHELL}
43004 _ACEOF
43005
43006 cat >>$CONFIG_STATUS <<\_ACEOF
43007 ## --------------------- ##
43008 ## M4sh Initialization.  ##
43009 ## --------------------- ##
43010
43011 # Be more Bourne compatible
43012 DUALCASE=1; export DUALCASE # for MKS sh
43013 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43014   emulate sh
43015   NULLCMD=:
43016   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43017   # is contrary to our usage.  Disable this feature.
43018   alias -g '${1+"$@"}'='"$@"'
43019   setopt NO_GLOB_SUBST
43020 else
43021   case `(set -o) 2>/dev/null` in
43022   *posix*) set -o posix ;;
43023 esac
43024
43025 fi
43026
43027
43028
43029
43030 # PATH needs CR
43031 # Avoid depending upon Character Ranges.
43032 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43033 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43034 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43035 as_cr_digits='0123456789'
43036 as_cr_alnum=$as_cr_Letters$as_cr_digits
43037
43038 # The user is always right.
43039 if test "${PATH_SEPARATOR+set}" != set; then
43040   echo "#! /bin/sh" >conf$$.sh
43041   echo  "exit 0"   >>conf$$.sh
43042   chmod +x conf$$.sh
43043   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43044     PATH_SEPARATOR=';'
43045   else
43046     PATH_SEPARATOR=:
43047   fi
43048   rm -f conf$$.sh
43049 fi
43050
43051 # Support unset when possible.
43052 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43053   as_unset=unset
43054 else
43055   as_unset=false
43056 fi
43057
43058
43059 # IFS
43060 # We need space, tab and new line, in precisely that order.  Quoting is
43061 # there to prevent editors from complaining about space-tab.
43062 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43063 # splitting by setting IFS to empty value.)
43064 as_nl='
43065 '
43066 IFS=" ""        $as_nl"
43067
43068 # Find who we are.  Look in the path if we contain no directory separator.
43069 case $0 in
43070   *[\\/]* ) as_myself=$0 ;;
43071   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43072 for as_dir in $PATH
43073 do
43074   IFS=$as_save_IFS
43075   test -z "$as_dir" && as_dir=.
43076   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43077 done
43078 IFS=$as_save_IFS
43079
43080      ;;
43081 esac
43082 # We did not find ourselves, most probably we were run as `sh COMMAND'
43083 # in which case we are not to be found in the path.
43084 if test "x$as_myself" = x; then
43085   as_myself=$0
43086 fi
43087 if test ! -f "$as_myself"; then
43088   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43089   { (exit 1); exit 1; }
43090 fi
43091
43092 # Work around bugs in pre-3.0 UWIN ksh.
43093 for as_var in ENV MAIL MAILPATH
43094 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43095 done
43096 PS1='$ '
43097 PS2='> '
43098 PS4='+ '
43099
43100 # NLS nuisances.
43101 for as_var in \
43102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43104   LC_TELEPHONE LC_TIME
43105 do
43106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43107     eval $as_var=C; export $as_var
43108   else
43109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43110   fi
43111 done
43112
43113 # Required to use basename.
43114 if expr a : '\(a\)' >/dev/null 2>&1 &&
43115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43116   as_expr=expr
43117 else
43118   as_expr=false
43119 fi
43120
43121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43122   as_basename=basename
43123 else
43124   as_basename=false
43125 fi
43126
43127
43128 # Name of the executable.
43129 as_me=`$as_basename -- "$0" ||
43130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43131          X"$0" : 'X\(//\)$' \| \
43132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43133 echo X/"$0" |
43134     sed '/^.*\/\([^/][^/]*\)\/*$/{
43135             s//\1/
43136             q
43137           }
43138           /^X\/\(\/\/\)$/{
43139             s//\1/
43140             q
43141           }
43142           /^X\/\(\/\).*/{
43143             s//\1/
43144             q
43145           }
43146           s/.*/./; q'`
43147
43148 # CDPATH.
43149 $as_unset CDPATH
43150
43151
43152
43153   as_lineno_1=$LINENO
43154   as_lineno_2=$LINENO
43155   test "x$as_lineno_1" != "x$as_lineno_2" &&
43156   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43157
43158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43159   # uniformly replaced by the line number.  The first 'sed' inserts a
43160   # line-number line after each line using $LINENO; the second 'sed'
43161   # does the real work.  The second script uses 'N' to pair each
43162   # line-number line with the line containing $LINENO, and appends
43163   # trailing '-' during substitution so that $LINENO is not a special
43164   # case at line end.
43165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43166   # scripts with optimization help from Paolo Bonzini.  Blame Lee
43167   # E. McMahon (1931-1989) for sed's syntax.  :-)
43168   sed -n '
43169     p
43170     /[$]LINENO/=
43171   ' <$as_myself |
43172     sed '
43173       s/[$]LINENO.*/&-/
43174       t lineno
43175       b
43176       :lineno
43177       N
43178       :loop
43179       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43180       t loop
43181       s/-\n.*//
43182     ' >$as_me.lineno &&
43183   chmod +x "$as_me.lineno" ||
43184     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43185    { (exit 1); exit 1; }; }
43186
43187   # Don't try to exec as it changes $[0], causing all sort of problems
43188   # (the dirname of $[0] is not the place where we might find the
43189   # original and so on.  Autoconf is especially sensitive to this).
43190   . "./$as_me.lineno"
43191   # Exit status is that of the last command.
43192   exit
43193 }
43194
43195
43196 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43197   as_dirname=dirname
43198 else
43199   as_dirname=false
43200 fi
43201
43202 ECHO_C= ECHO_N= ECHO_T=
43203 case `echo -n x` in
43204 -n*)
43205   case `echo 'x\c'` in
43206   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
43207   *)   ECHO_C='\c';;
43208   esac;;
43209 *)
43210   ECHO_N='-n';;
43211 esac
43212
43213 if expr a : '\(a\)' >/dev/null 2>&1 &&
43214    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43215   as_expr=expr
43216 else
43217   as_expr=false
43218 fi
43219
43220 rm -f conf$$ conf$$.exe conf$$.file
43221 if test -d conf$$.dir; then
43222   rm -f conf$$.dir/conf$$.file
43223 else
43224   rm -f conf$$.dir
43225   mkdir conf$$.dir
43226 fi
43227 echo >conf$$.file
43228 if ln -s conf$$.file conf$$ 2>/dev/null; then
43229   as_ln_s='ln -s'
43230   # ... but there are two gotchas:
43231   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43232   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43233   # In both cases, we have to default to `cp -p'.
43234   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43235     as_ln_s='cp -p'
43236 elif ln conf$$.file conf$$ 2>/dev/null; then
43237   as_ln_s=ln
43238 else
43239   as_ln_s='cp -p'
43240 fi
43241 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43242 rmdir conf$$.dir 2>/dev/null
43243
43244 if mkdir -p . 2>/dev/null; then
43245   as_mkdir_p=:
43246 else
43247   test -d ./-p && rmdir ./-p
43248   as_mkdir_p=false
43249 fi
43250
43251 if test -x / >/dev/null 2>&1; then
43252   as_test_x='test -x'
43253 else
43254   if ls -dL / >/dev/null 2>&1; then
43255     as_ls_L_option=L
43256   else
43257     as_ls_L_option=
43258   fi
43259   as_test_x='
43260     eval sh -c '\''
43261       if test -d "$1"; then
43262         test -d "$1/.";
43263       else
43264         case $1 in
43265         -*)set "./$1";;
43266         esac;
43267         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43268         ???[sx]*):;;*)false;;esac;fi
43269     '\'' sh
43270   '
43271 fi
43272 as_executable_p=$as_test_x
43273
43274 # Sed expression to map a string onto a valid CPP name.
43275 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43276
43277 # Sed expression to map a string onto a valid variable name.
43278 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43279
43280
43281 exec 6>&1
43282
43283 # Save the log message, to keep $[0] and so on meaningful, and to
43284 # report actual input values of CONFIG_FILES etc. instead of their
43285 # values after options handling.
43286 ac_log="
43287 This file was extended by $as_me, which was
43288 generated by GNU Autoconf 2.61.  Invocation command line was
43289
43290   CONFIG_FILES    = $CONFIG_FILES
43291   CONFIG_HEADERS  = $CONFIG_HEADERS
43292   CONFIG_LINKS    = $CONFIG_LINKS
43293   CONFIG_COMMANDS = $CONFIG_COMMANDS
43294   $ $0 $@
43295
43296 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43297 "
43298
43299 _ACEOF
43300
43301 cat >>$CONFIG_STATUS <<_ACEOF
43302 # Files that config.status was made for.
43303 config_files="$ac_config_files"
43304 config_headers="$ac_config_headers"
43305 config_commands="$ac_config_commands"
43306
43307 _ACEOF
43308
43309 cat >>$CONFIG_STATUS <<\_ACEOF
43310 ac_cs_usage="\
43311 \`$as_me' instantiates files from templates according to the
43312 current configuration.
43313
43314 Usage: $0 [OPTIONS] [FILE]...
43315
43316   -h, --help       print this help, then exit
43317   -V, --version    print version number and configuration settings, then exit
43318   -q, --quiet      do not print progress messages
43319   -d, --debug      don't remove temporary files
43320       --recheck    update $as_me by reconfiguring in the same conditions
43321   --file=FILE[:TEMPLATE]
43322                    instantiate the configuration file FILE
43323   --header=FILE[:TEMPLATE]
43324                    instantiate the configuration header FILE
43325
43326 Configuration files:
43327 $config_files
43328
43329 Configuration headers:
43330 $config_headers
43331
43332 Configuration commands:
43333 $config_commands
43334
43335 Report bugs to <bug-autoconf@gnu.org>."
43336
43337 _ACEOF
43338 cat >>$CONFIG_STATUS <<_ACEOF
43339 ac_cs_version="\\
43340 config.status
43341 configured by $0, generated by GNU Autoconf 2.61,
43342   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43343
43344 Copyright (C) 2006 Free Software Foundation, Inc.
43345 This config.status script is free software; the Free Software Foundation
43346 gives unlimited permission to copy, distribute and modify it."
43347
43348 ac_pwd='$ac_pwd'
43349 srcdir='$srcdir'
43350 INSTALL='$INSTALL'
43351 _ACEOF
43352
43353 cat >>$CONFIG_STATUS <<\_ACEOF
43354 # If no file are specified by the user, then we need to provide default
43355 # value.  By we need to know if files were specified by the user.
43356 ac_need_defaults=:
43357 while test $# != 0
43358 do
43359   case $1 in
43360   --*=*)
43361     ac_option=`expr "X$1" : 'X\([^=]*\)='`
43362     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43363     ac_shift=:
43364     ;;
43365   *)
43366     ac_option=$1
43367     ac_optarg=$2
43368     ac_shift=shift
43369     ;;
43370   esac
43371
43372   case $ac_option in
43373   # Handling of the options.
43374   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43375     ac_cs_recheck=: ;;
43376   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43377     echo "$ac_cs_version"; exit ;;
43378   --debug | --debu | --deb | --de | --d | -d )
43379     debug=: ;;
43380   --file | --fil | --fi | --f )
43381     $ac_shift
43382     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43383     ac_need_defaults=false;;
43384   --header | --heade | --head | --hea )
43385     $ac_shift
43386     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43387     ac_need_defaults=false;;
43388   --he | --h)
43389     # Conflict between --help and --header
43390     { echo "$as_me: error: ambiguous option: $1
43391 Try \`$0 --help' for more information." >&2
43392    { (exit 1); exit 1; }; };;
43393   --help | --hel | -h )
43394     echo "$ac_cs_usage"; exit ;;
43395   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43396   | -silent | --silent | --silen | --sile | --sil | --si | --s)
43397     ac_cs_silent=: ;;
43398
43399   # This is an error.
43400   -*) { echo "$as_me: error: unrecognized option: $1
43401 Try \`$0 --help' for more information." >&2
43402    { (exit 1); exit 1; }; } ;;
43403
43404   *) ac_config_targets="$ac_config_targets $1"
43405      ac_need_defaults=false ;;
43406
43407   esac
43408   shift
43409 done
43410
43411 ac_configure_extra_args=
43412
43413 if $ac_cs_silent; then
43414   exec 6>/dev/null
43415   ac_configure_extra_args="$ac_configure_extra_args --silent"
43416 fi
43417
43418 _ACEOF
43419 cat >>$CONFIG_STATUS <<_ACEOF
43420 if \$ac_cs_recheck; then
43421   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43422   CONFIG_SHELL=$SHELL
43423   export CONFIG_SHELL
43424   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43425 fi
43426
43427 _ACEOF
43428 cat >>$CONFIG_STATUS <<\_ACEOF
43429 exec 5>>config.log
43430 {
43431   echo
43432   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43433 ## Running $as_me. ##
43434 _ASBOX
43435   echo "$ac_log"
43436 } >&5
43437
43438 _ACEOF
43439 cat >>$CONFIG_STATUS <<_ACEOF
43440 #
43441 # INIT-COMMANDS
43442 #
43443
43444
43445 # The HP-UX ksh and POSIX shell print the target directory to stdout
43446 # if CDPATH is set.
43447 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43448
43449 sed_quote_subst='$sed_quote_subst'
43450 double_quote_subst='$double_quote_subst'
43451 delay_variable_subst='$delay_variable_subst'
43452 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
43453 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
43454 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
43455 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
43456 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
43457 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
43458 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
43459 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
43460 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
43461 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
43462 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
43463 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
43464 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
43465 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
43466 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
43467 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
43468 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
43469 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
43470 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
43471 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
43472 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
43473 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
43474 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
43475 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
43476 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
43477 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
43478 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
43479 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43480 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
43481 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
43482 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
43483 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
43484 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43485 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
43486 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
43487 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43488 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43489 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43490 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
43491 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43492 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
43493 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
43494 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
43495 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
43496 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"`'
43497 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"`'
43498 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
43499 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
43500 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
43501 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
43502 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
43503 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
43504 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
43505 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
43506 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
43507 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
43508 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
43509 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
43510 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
43511 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
43512 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
43513 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
43514 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43515 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43516 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
43517 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
43518 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43519 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43520 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
43521 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43522 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43523 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43524 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43525 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43526 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43527 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
43528 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43529 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43530 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43531 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
43532 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
43533 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
43534 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
43535 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
43536 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43537 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
43538 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
43539 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
43540 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
43541 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
43542 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43543 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43544 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43545 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43546 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
43547 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
43548 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
43549 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
43550 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
43551 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43552 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43553 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
43554 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43555 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
43556 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43557 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43558 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43559 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43560 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
43561 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
43562 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43563 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43564 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
43565 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
43566 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
43567 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
43568 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
43569 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
43570 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
43571 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43572 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43573 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
43574 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
43575 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
43576 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43577 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43578 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43579 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43580 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43581 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43582 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43583 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43584 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43585 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43586 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43587 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43588 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43589 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43590 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43591 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43592 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43593 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43594 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43595 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43596 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43597 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43598 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43599 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43600 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43601 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43602 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43603 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43604 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43605 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43606 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43607 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43608 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43609 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43610 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43611 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43612 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43613 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43614 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43615 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43616 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43617 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43618 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43619 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43620 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43621 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43622 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43623
43624 LTCC='$LTCC'
43625 LTCFLAGS='$LTCFLAGS'
43626 compiler='$compiler_DEFAULT'
43627
43628 # Quote evaled strings.
43629 for var in SED \
43630 GREP \
43631 EGREP \
43632 FGREP \
43633 LD \
43634 NM \
43635 LN_S \
43636 lt_SP2NL \
43637 lt_NL2SP \
43638 reload_flag \
43639 OBJDUMP \
43640 deplibs_check_method \
43641 file_magic_cmd \
43642 AR \
43643 AR_FLAGS \
43644 STRIP \
43645 RANLIB \
43646 CC \
43647 CFLAGS \
43648 compiler \
43649 lt_cv_sys_global_symbol_pipe \
43650 lt_cv_sys_global_symbol_to_cdecl \
43651 lt_cv_sys_global_symbol_to_c_name_address \
43652 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
43653 SHELL \
43654 ECHO \
43655 lt_prog_compiler_no_builtin_flag \
43656 lt_prog_compiler_wl \
43657 lt_prog_compiler_pic \
43658 lt_prog_compiler_static \
43659 lt_cv_prog_compiler_c_o \
43660 need_locks \
43661 DSYMUTIL \
43662 NMEDIT \
43663 LIPO \
43664 OTOOL \
43665 OTOOL64 \
43666 shrext_cmds \
43667 export_dynamic_flag_spec \
43668 whole_archive_flag_spec \
43669 compiler_needs_object \
43670 with_gnu_ld \
43671 allow_undefined_flag \
43672 no_undefined_flag \
43673 hardcode_libdir_flag_spec \
43674 hardcode_libdir_flag_spec_ld \
43675 hardcode_libdir_separator \
43676 fix_srcfile_path \
43677 exclude_expsyms \
43678 include_expsyms \
43679 file_list_spec \
43680 variables_saved_for_relink \
43681 libname_spec \
43682 library_names_spec \
43683 soname_spec \
43684 finish_eval \
43685 old_striplib \
43686 striplib \
43687 compiler_lib_search_dirs \
43688 predep_objects \
43689 postdep_objects \
43690 predeps \
43691 postdeps \
43692 compiler_lib_search_path \
43693 LD_CXX \
43694 compiler_CXX \
43695 lt_prog_compiler_no_builtin_flag_CXX \
43696 lt_prog_compiler_wl_CXX \
43697 lt_prog_compiler_pic_CXX \
43698 lt_prog_compiler_static_CXX \
43699 lt_cv_prog_compiler_c_o_CXX \
43700 export_dynamic_flag_spec_CXX \
43701 whole_archive_flag_spec_CXX \
43702 compiler_needs_object_CXX \
43703 with_gnu_ld_CXX \
43704 allow_undefined_flag_CXX \
43705 no_undefined_flag_CXX \
43706 hardcode_libdir_flag_spec_CXX \
43707 hardcode_libdir_flag_spec_ld_CXX \
43708 hardcode_libdir_separator_CXX \
43709 fix_srcfile_path_CXX \
43710 exclude_expsyms_CXX \
43711 include_expsyms_CXX \
43712 file_list_spec_CXX \
43713 compiler_lib_search_dirs_CXX \
43714 predep_objects_CXX \
43715 postdep_objects_CXX \
43716 predeps_CXX \
43717 postdeps_CXX \
43718 compiler_lib_search_path_CXX; do
43719     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43720     *[\\\\\\\`\\"\\\$]*)
43721       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
43722       ;;
43723     *)
43724       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43725       ;;
43726     esac
43727 done
43728
43729 # Double-quote double-evaled strings.
43730 for var in reload_cmds \
43731 old_postinstall_cmds \
43732 old_postuninstall_cmds \
43733 old_archive_cmds \
43734 extract_expsyms_cmds \
43735 old_archive_from_new_cmds \
43736 old_archive_from_expsyms_cmds \
43737 archive_cmds \
43738 archive_expsym_cmds \
43739 module_cmds \
43740 module_expsym_cmds \
43741 export_symbols_cmds \
43742 prelink_cmds \
43743 postinstall_cmds \
43744 postuninstall_cmds \
43745 finish_cmds \
43746 sys_lib_search_path_spec \
43747 sys_lib_dlsearch_path_spec \
43748 old_archive_cmds_CXX \
43749 old_archive_from_new_cmds_CXX \
43750 old_archive_from_expsyms_cmds_CXX \
43751 archive_cmds_CXX \
43752 archive_expsym_cmds_CXX \
43753 module_cmds_CXX \
43754 module_expsym_cmds_CXX \
43755 export_symbols_cmds_CXX \
43756 prelink_cmds_CXX; do
43757     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43758     *[\\\\\\\`\\"\\\$]*)
43759       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
43760       ;;
43761     *)
43762       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43763       ;;
43764     esac
43765 done
43766
43767 # Fix-up fallback echo if it was mangled by the above quoting rules.
43768 case \$lt_ECHO in
43769 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
43770   ;;
43771 esac
43772
43773 ac_aux_dir='$ac_aux_dir'
43774 xsi_shell='$xsi_shell'
43775 lt_shell_append='$lt_shell_append'
43776
43777 # See if we are running on zsh, and set the options which allow our
43778 # commands through without removal of \ escapes INIT.
43779 if test -n "\${ZSH_VERSION+set}" ; then
43780    setopt NO_GLOB_SUBST
43781 fi
43782
43783
43784     PACKAGE='$PACKAGE'
43785     VERSION='$VERSION'
43786     TIMESTAMP='$TIMESTAMP'
43787     RM='$RM'
43788     ofile='$ofile'
43789
43790
43791
43792
43793
43794 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
43795     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
43796     # from automake.
43797     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
43798     # Capture the value of LINGUAS because we need it to compute CATALOGS.
43799     LINGUAS="${LINGUAS-%UNSET%}"
43800
43801
43802 _ACEOF
43803
43804 cat >>$CONFIG_STATUS <<\_ACEOF
43805
43806 # Handling of arguments.
43807 for ac_config_target in $ac_config_targets
43808 do
43809   case $ac_config_target in
43810     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
43811     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
43812     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
43813     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
43814     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43815     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
43816     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
43817     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
43818     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
43819     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
43820     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
43821     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
43822     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
43823     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
43824     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
43825     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
43826     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
43827     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
43828     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
43829     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
43830     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
43831     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
43832     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
43833     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
43834     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
43835     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
43836     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
43837     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
43838     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
43839     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
43840     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
43841     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
43842     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
43843     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
43844     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
43845     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
43846     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
43847     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
43848     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
43849     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
43850     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
43851     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
43852     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
43853     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
43854     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
43855     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
43856     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
43857     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
43858     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
43859     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
43860     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
43861     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
43862     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
43863     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
43864     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
43865     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
43866     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
43867     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
43868     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
43869     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
43870     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
43871     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
43872     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
43873     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
43874     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
43875     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
43876     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
43877     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
43878     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
43879     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
43880     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
43881     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
43882     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
43883     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
43884     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
43885     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
43886     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
43887     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
43888     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
43889     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
43890     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
43891     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
43892     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
43893     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
43894     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
43895     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
43896     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
43897     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
43898     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
43899     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
43900     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
43901     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
43902     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
43903     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
43904     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
43905     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
43906     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
43907     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
43908     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
43909     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
43910     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
43911     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
43912     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
43913     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
43914     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
43915     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
43916     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
43917     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
43918     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
43919     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
43920     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
43921     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
43922     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
43923     "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
43924     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
43925     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
43926     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
43927     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
43928     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
43929     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43930
43931   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43932 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43933    { (exit 1); exit 1; }; };;
43934   esac
43935 done
43936
43937
43938 # If the user did not use the arguments to specify the items to instantiate,
43939 # then the envvar interface is used.  Set only those that are not.
43940 # We use the long form for the default assignment because of an extremely
43941 # bizarre bug on SunOS 4.1.3.
43942 if $ac_need_defaults; then
43943   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43944   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43945   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43946 fi
43947
43948 # Have a temporary directory for convenience.  Make it in the build tree
43949 # simply because there is no reason against having it here, and in addition,
43950 # creating and moving files from /tmp can sometimes cause problems.
43951 # Hook for its removal unless debugging.
43952 # Note that there is a small window in which the directory will not be cleaned:
43953 # after its creation but before its name has been assigned to `$tmp'.
43954 $debug ||
43955 {
43956   tmp=
43957   trap 'exit_status=$?
43958   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43959 ' 0
43960   trap '{ (exit 1); exit 1; }' 1 2 13 15
43961 }
43962 # Create a (secure) tmp directory for tmp files.
43963
43964 {
43965   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43966   test -n "$tmp" && test -d "$tmp"
43967 }  ||
43968 {
43969   tmp=./conf$$-$RANDOM
43970   (umask 077 && mkdir "$tmp")
43971 } ||
43972 {
43973    echo "$me: cannot create a temporary directory in ." >&2
43974    { (exit 1); exit 1; }
43975 }
43976
43977 #
43978 # Set up the sed scripts for CONFIG_FILES section.
43979 #
43980
43981 # No need to generate the scripts if there are no CONFIG_FILES.
43982 # This happens for instance when ./config.status config.h
43983 if test -n "$CONFIG_FILES"; then
43984
43985 _ACEOF
43986
43987 # Create sed commands to just substitute file output variables.
43988
43989 # Remaining file output variables are in a fragment that also has non-file
43990 # output varibles.
43991
43992
43993
43994 ac_delim='%!_!# '
43995 for ac_last_try in false false false false false :; do
43996   cat >conf$$subs.sed <<_ACEOF
43997 SHELL!$SHELL$ac_delim
43998 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43999 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
44000 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
44001 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
44002 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
44003 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
44004 exec_prefix!$exec_prefix$ac_delim
44005 prefix!$prefix$ac_delim
44006 program_transform_name!$program_transform_name$ac_delim
44007 bindir!$bindir$ac_delim
44008 sbindir!$sbindir$ac_delim
44009 libexecdir!$libexecdir$ac_delim
44010 datarootdir!$datarootdir$ac_delim
44011 datadir!$datadir$ac_delim
44012 sysconfdir!$sysconfdir$ac_delim
44013 sharedstatedir!$sharedstatedir$ac_delim
44014 localstatedir!$localstatedir$ac_delim
44015 includedir!$includedir$ac_delim
44016 oldincludedir!$oldincludedir$ac_delim
44017 docdir!$docdir$ac_delim
44018 infodir!$infodir$ac_delim
44019 htmldir!$htmldir$ac_delim
44020 dvidir!$dvidir$ac_delim
44021 pdfdir!$pdfdir$ac_delim
44022 psdir!$psdir$ac_delim
44023 libdir!$libdir$ac_delim
44024 localedir!$localedir$ac_delim
44025 mandir!$mandir$ac_delim
44026 DEFS!$DEFS$ac_delim
44027 ECHO_C!$ECHO_C$ac_delim
44028 ECHO_N!$ECHO_N$ac_delim
44029 ECHO_T!$ECHO_T$ac_delim
44030 LIBS!$LIBS$ac_delim
44031 build_alias!$build_alias$ac_delim
44032 host_alias!$host_alias$ac_delim
44033 target_alias!$target_alias$ac_delim
44034 BUILD_DIR!$BUILD_DIR$ac_delim
44035 TOP_DIR!$TOP_DIR$ac_delim
44036 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
44037 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
44038 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
44039 TRUEPRG!$TRUEPRG$ac_delim
44040 FALSEPRG!$FALSEPRG$ac_delim
44041 VERSION!$VERSION$ac_delim
44042 DATE!$DATE$ac_delim
44043 LSMDATE!$LSMDATE$ac_delim
44044 BACULA!$BACULA$ac_delim
44045 post_host!$post_host$ac_delim
44046 CC!$CC$ac_delim
44047 CFLAGS!$CFLAGS$ac_delim
44048 LDFLAGS!$LDFLAGS$ac_delim
44049 CPPFLAGS!$CPPFLAGS$ac_delim
44050 ac_ct_CC!$ac_ct_CC$ac_delim
44051 EXEEXT!$EXEEXT$ac_delim
44052 OBJEXT!$OBJEXT$ac_delim
44053 CXX!$CXX$ac_delim
44054 CXXFLAGS!$CXXFLAGS$ac_delim
44055 ac_ct_CXX!$ac_ct_CXX$ac_delim
44056 CPP!$CPP$ac_delim
44057 GREP!$GREP$ac_delim
44058 EGREP!$EGREP$ac_delim
44059 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
44060 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
44061 INSTALL_DATA!$INSTALL_DATA$ac_delim
44062 MV!$MV$ac_delim
44063 REMOVE!$REMOVE$ac_delim
44064 CP!$CP$ac_delim
44065 SED!$SED$ac_delim
44066 ECHO!$ECHO$ac_delim
44067 CMP!$CMP$ac_delim
44068 TBL!$TBL$ac_delim
44069 AR!$AR$ac_delim
44070 OPENSSL!$OPENSSL$ac_delim
44071 MTX!$MTX$ac_delim
44072 DD!$DD$ac_delim
44073 MKISOFS!$MKISOFS$ac_delim
44074 PYTHON!$PYTHON$ac_delim
44075 GROWISOFS!$GROWISOFS$ac_delim
44076 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
44077 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
44078 PKGCONFIG!$PKGCONFIG$ac_delim
44079 QMAKE!$QMAKE$ac_delim
44080 QMAKEQT4!$QMAKEQT4$ac_delim
44081 GMAKE!$GMAKE$ac_delim
44082 WXCONFIG!$WXCONFIG$ac_delim
44083 WXFLAGS!$WXFLAGS$ac_delim
44084 CDRECORD!$CDRECORD$ac_delim
44085 PIDOF!$PIDOF$ac_delim
44086 AWK!$AWK$ac_delim
44087 ARFLAGS!$ARFLAGS$ac_delim
44088 MAKE_SHELL!$MAKE_SHELL$ac_delim
44089 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
44090 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
44091 _ACEOF
44092
44093   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
44094     break
44095   elif $ac_last_try; then
44096     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44097 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44098    { (exit 1); exit 1; }; }
44099   else
44100     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44101   fi
44102 done
44103
44104 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44105 if test -n "$ac_eof"; then
44106   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44107   ac_eof=`expr $ac_eof + 1`
44108 fi
44109
44110 cat >>$CONFIG_STATUS <<_ACEOF
44111 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
44112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44113 /^[      ]*@MCOMMON@[    ]*$/{
44114 r $MCOMMON
44115 d
44116 }
44117 _ACEOF
44118 sed '
44119 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44120 s/^/s,@/; s/!/@,|#_!!_#|/
44121 :n
44122 t n
44123 s/'"$ac_delim"'$/,g/; t
44124 s/$/\\/; p
44125 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44126 ' >>$CONFIG_STATUS <conf$$subs.sed
44127 rm -f conf$$subs.sed
44128 cat >>$CONFIG_STATUS <<_ACEOF
44129 CEOF$ac_eof
44130 _ACEOF
44131
44132
44133 ac_delim='%!_!# '
44134 for ac_last_try in false false false false false :; do
44135   cat >conf$$subs.sed <<_ACEOF
44136 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
44137 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
44138 LIBTOOL!$LIBTOOL$ac_delim
44139 build!$build$ac_delim
44140 build_cpu!$build_cpu$ac_delim
44141 build_vendor!$build_vendor$ac_delim
44142 build_os!$build_os$ac_delim
44143 host!$host$ac_delim
44144 host_cpu!$host_cpu$ac_delim
44145 host_vendor!$host_vendor$ac_delim
44146 host_os!$host_os$ac_delim
44147 FGREP!$FGREP$ac_delim
44148 LD!$LD$ac_delim
44149 DUMPBIN!$DUMPBIN$ac_delim
44150 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
44151 NM!$NM$ac_delim
44152 LN_S!$LN_S$ac_delim
44153 OBJDUMP!$OBJDUMP$ac_delim
44154 STRIP!$STRIP$ac_delim
44155 RANLIB!$RANLIB$ac_delim
44156 lt_ECHO!$lt_ECHO$ac_delim
44157 DSYMUTIL!$DSYMUTIL$ac_delim
44158 NMEDIT!$NMEDIT$ac_delim
44159 LIPO!$LIPO$ac_delim
44160 OTOOL!$OTOOL$ac_delim
44161 OTOOL64!$OTOOL64$ac_delim
44162 CXXCPP!$CXXCPP$ac_delim
44163 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
44164 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
44165 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
44166 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
44167 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
44168 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
44169 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
44170 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
44171 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
44172 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
44173 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
44174 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
44175 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
44176 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
44177 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
44178 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
44179 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
44180 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
44181 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
44182 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
44183 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
44184 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
44185 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
44186 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
44187 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
44188 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
44189 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
44190 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
44191 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
44192 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
44193 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
44194 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
44195 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
44196 SET_MAKE!$SET_MAKE$ac_delim
44197 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
44198 USE_NLS!$USE_NLS$ac_delim
44199 MSGFMT!$MSGFMT$ac_delim
44200 GMSGFMT!$GMSGFMT$ac_delim
44201 XGETTEXT!$XGETTEXT$ac_delim
44202 MSGMERGE!$MSGMERGE$ac_delim
44203 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
44204 LIBICONV!$LIBICONV$ac_delim
44205 LTLIBICONV!$LTLIBICONV$ac_delim
44206 INTLLIBS!$INTLLIBS$ac_delim
44207 LIBINTL!$LIBINTL$ac_delim
44208 LTLIBINTL!$LTLIBINTL$ac_delim
44209 POSUB!$POSUB$ac_delim
44210 GLIBC2!$GLIBC2$ac_delim
44211 ALLOCA!$ALLOCA$ac_delim
44212 GLIBC21!$GLIBC21$ac_delim
44213 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
44214 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
44215 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
44216 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
44217 INTLBISON!$INTLBISON$ac_delim
44218 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
44219 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
44220 CATOBJEXT!$CATOBJEXT$ac_delim
44221 DATADIRNAME!$DATADIRNAME$ac_delim
44222 INSTOBJEXT!$INSTOBJEXT$ac_delim
44223 GENCAT!$GENCAT$ac_delim
44224 INTLOBJS!$INTLOBJS$ac_delim
44225 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
44226 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
44227 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
44228 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
44229 GNOME_LIBS!$GNOME_LIBS$ac_delim
44230 GNOME_DIR!$GNOME_DIR$ac_delim
44231 BAT_DIR!$BAT_DIR$ac_delim
44232 QWT_INC!$QWT_INC$ac_delim
44233 _ACEOF
44234
44235   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
44236     break
44237   elif $ac_last_try; then
44238     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44239 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44240    { (exit 1); exit 1; }; }
44241   else
44242     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44243   fi
44244 done
44245
44246 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44247 if test -n "$ac_eof"; then
44248   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44249   ac_eof=`expr $ac_eof + 1`
44250 fi
44251
44252 cat >>$CONFIG_STATUS <<_ACEOF
44253 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
44254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44255 _ACEOF
44256 sed '
44257 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44258 s/^/s,@/; s/!/@,|#_!!_#|/
44259 :n
44260 t n
44261 s/'"$ac_delim"'$/,g/; t
44262 s/$/\\/; p
44263 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44264 ' >>$CONFIG_STATUS <conf$$subs.sed
44265 rm -f conf$$subs.sed
44266 cat >>$CONFIG_STATUS <<_ACEOF
44267 CEOF$ac_eof
44268 _ACEOF
44269
44270
44271 ac_delim='%!_!# '
44272 for ac_last_try in false false false false false :; do
44273   cat >conf$$subs.sed <<_ACEOF
44274 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
44275 QWT_LIB!$QWT_LIB$ac_delim
44276 QWT!$QWT$ac_delim
44277 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
44278 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
44279 WX_DIR!$WX_DIR$ac_delim
44280 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
44281 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
44282 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
44283 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
44284 STATIC_FD!$STATIC_FD$ac_delim
44285 STATIC_SD!$STATIC_SD$ac_delim
44286 STATIC_DIR!$STATIC_DIR$ac_delim
44287 STATIC_CONS!$STATIC_CONS$ac_delim
44288 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
44289 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
44290 ALL_DIRS!$ALL_DIRS$ac_delim
44291 DIRD_DIR!$DIRD_DIR$ac_delim
44292 DIR_TOOLS!$DIR_TOOLS$ac_delim
44293 STORED_DIR!$STORED_DIR$ac_delim
44294 CONS_INC!$CONS_INC$ac_delim
44295 CONS_OBJ!$CONS_OBJ$ac_delim
44296 CONS_SRC!$CONS_SRC$ac_delim
44297 CONS_LIBS!$CONS_LIBS$ac_delim
44298 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
44299 READLINE_SRC!$READLINE_SRC$ac_delim
44300 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
44301 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
44302 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
44303 OPENSSL_INC!$OPENSSL_INC$ac_delim
44304 working_dir!$working_dir$ac_delim
44305 archivedir!$archivedir$ac_delim
44306 basename!$basename$ac_delim
44307 hostname!$hostname$ac_delim
44308 scriptdir!$scriptdir$ac_delim
44309 bsrdir!$bsrdir$ac_delim
44310 logdir!$logdir$ac_delim
44311 plugindir!$plugindir$ac_delim
44312 dump_email!$dump_email$ac_delim
44313 job_email!$job_email$ac_delim
44314 smtp_host!$smtp_host$ac_delim
44315 piddir!$piddir$ac_delim
44316 subsysdir!$subsysdir$ac_delim
44317 baseport!$baseport$ac_delim
44318 dir_port!$dir_port$ac_delim
44319 fd_port!$fd_port$ac_delim
44320 sd_port!$sd_port$ac_delim
44321 dir_password!$dir_password$ac_delim
44322 fd_password!$fd_password$ac_delim
44323 sd_password!$sd_password$ac_delim
44324 mon_dir_password!$mon_dir_password$ac_delim
44325 mon_fd_password!$mon_fd_password$ac_delim
44326 mon_sd_password!$mon_sd_password$ac_delim
44327 db_name!$db_name$ac_delim
44328 db_user!$db_user$ac_delim
44329 db_password!$db_password$ac_delim
44330 db_port!$db_port$ac_delim
44331 dir_user!$dir_user$ac_delim
44332 dir_group!$dir_group$ac_delim
44333 sd_user!$sd_user$ac_delim
44334 sd_group!$sd_group$ac_delim
44335 fd_user!$fd_user$ac_delim
44336 fd_group!$fd_group$ac_delim
44337 SBINPERM!$SBINPERM$ac_delim
44338 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
44339 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
44340 SQL_BINDIR!$SQL_BINDIR$ac_delim
44341 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
44342 uncomment_dbi!$uncomment_dbi$ac_delim
44343 DB_PROG!$DB_PROG$ac_delim
44344 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
44345 cats!$cats$ac_delim
44346 DB_TYPE!$DB_TYPE$ac_delim
44347 GETCONF!$GETCONF$ac_delim
44348 XMKMF!$XMKMF$ac_delim
44349 X_CFLAGS!$X_CFLAGS$ac_delim
44350 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
44351 X_LIBS!$X_LIBS$ac_delim
44352 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
44353 LIBOBJS!$LIBOBJS$ac_delim
44354 FDLIBS!$FDLIBS$ac_delim
44355 DEBUG!$DEBUG$ac_delim
44356 DINCLUDE!$DINCLUDE$ac_delim
44357 DLIB!$DLIB$ac_delim
44358 DB_LIBS!$DB_LIBS$ac_delim
44359 WCFLAGS!$WCFLAGS$ac_delim
44360 WLDFLAGS!$WLDFLAGS$ac_delim
44361 WRAPLIBS!$WRAPLIBS$ac_delim
44362 OBJLIST!$OBJLIST$ac_delim
44363 TAPEDRIVE!$TAPEDRIVE$ac_delim
44364 PSCMD!$PSCMD$ac_delim
44365 WIN32!$WIN32$ac_delim
44366 MACOSX!$MACOSX$ac_delim
44367 DISTNAME!$DISTNAME$ac_delim
44368 DISTVER!$DISTVER$ac_delim
44369 LTLIBOBJS!$LTLIBOBJS$ac_delim
44370 _ACEOF
44371
44372   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
44373     break
44374   elif $ac_last_try; then
44375     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44376 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44377    { (exit 1); exit 1; }; }
44378   else
44379     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44380   fi
44381 done
44382
44383 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44384 if test -n "$ac_eof"; then
44385   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44386   ac_eof=`expr $ac_eof + 1`
44387 fi
44388
44389 cat >>$CONFIG_STATUS <<_ACEOF
44390 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
44391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44392 _ACEOF
44393 sed '
44394 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44395 s/^/s,@/; s/!/@,|#_!!_#|/
44396 :n
44397 t n
44398 s/'"$ac_delim"'$/,g/; t
44399 s/$/\\/; p
44400 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44401 ' >>$CONFIG_STATUS <conf$$subs.sed
44402 rm -f conf$$subs.sed
44403 cat >>$CONFIG_STATUS <<_ACEOF
44404 CEOF$ac_eof
44405 _ACEOF
44406
44407
44408 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44409 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44410 # trailing colons and then remove the whole line if VPATH becomes empty
44411 # (actually we leave an empty line to preserve line numbers).
44412 if test "x$srcdir" = x.; then
44413   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44414 s/:*\$(srcdir):*/:/
44415 s/:*\${srcdir}:*/:/
44416 s/:*@srcdir@:*/:/
44417 s/^\([^=]*=[     ]*\):*/\1/
44418 s/:*$//
44419 s/^[^=]*=[       ]*$//
44420 }'
44421 fi
44422
44423 cat >>$CONFIG_STATUS <<\_ACEOF
44424 fi # test -n "$CONFIG_FILES"
44425
44426
44427 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
44428 do
44429   case $ac_tag in
44430   :[FHLC]) ac_mode=$ac_tag; continue;;
44431   esac
44432   case $ac_mode$ac_tag in
44433   :[FHL]*:*);;
44434   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
44435 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
44436    { (exit 1); exit 1; }; };;
44437   :[FH]-) ac_tag=-:-;;
44438   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44439   esac
44440   ac_save_IFS=$IFS
44441   IFS=:
44442   set x $ac_tag
44443   IFS=$ac_save_IFS
44444   shift
44445   ac_file=$1
44446   shift
44447
44448   case $ac_mode in
44449   :L) ac_source=$1;;
44450   :[FH])
44451     ac_file_inputs=
44452     for ac_f
44453     do
44454       case $ac_f in
44455       -) ac_f="$tmp/stdin";;
44456       *) # Look for the file first in the build tree, then in the source tree
44457          # (if the path is not absolute).  The absolute path cannot be DOS-style,
44458          # because $ac_f cannot contain `:'.
44459          test -f "$ac_f" ||
44460            case $ac_f in
44461            [\\/$]*) false;;
44462            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44463            esac ||
44464            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44465 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44466    { (exit 1); exit 1; }; };;
44467       esac
44468       ac_file_inputs="$ac_file_inputs $ac_f"
44469     done
44470
44471     # Let's still pretend it is `configure' which instantiates (i.e., don't
44472     # use $as_me), people would be surprised to read:
44473     #    /* config.h.  Generated by config.status.  */
44474     configure_input="Generated from "`IFS=:
44475           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44476     if test x"$ac_file" != x-; then
44477       configure_input="$ac_file.  $configure_input"
44478       { echo "$as_me:$LINENO: creating $ac_file" >&5
44479 echo "$as_me: creating $ac_file" >&6;}
44480     fi
44481
44482     case $ac_tag in
44483     *:-:* | *:-) cat >"$tmp/stdin";;
44484     esac
44485     ;;
44486   esac
44487
44488   ac_dir=`$as_dirname -- "$ac_file" ||
44489 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44490          X"$ac_file" : 'X\(//\)[^/]' \| \
44491          X"$ac_file" : 'X\(//\)$' \| \
44492          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44493 echo X"$ac_file" |
44494     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44495             s//\1/
44496             q
44497           }
44498           /^X\(\/\/\)[^/].*/{
44499             s//\1/
44500             q
44501           }
44502           /^X\(\/\/\)$/{
44503             s//\1/
44504             q
44505           }
44506           /^X\(\/\).*/{
44507             s//\1/
44508             q
44509           }
44510           s/.*/./; q'`
44511   { as_dir="$ac_dir"
44512   case $as_dir in #(
44513   -*) as_dir=./$as_dir;;
44514   esac
44515   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44516     as_dirs=
44517     while :; do
44518       case $as_dir in #(
44519       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44520       *) as_qdir=$as_dir;;
44521       esac
44522       as_dirs="'$as_qdir' $as_dirs"
44523       as_dir=`$as_dirname -- "$as_dir" ||
44524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44525          X"$as_dir" : 'X\(//\)[^/]' \| \
44526          X"$as_dir" : 'X\(//\)$' \| \
44527          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44528 echo X"$as_dir" |
44529     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44530             s//\1/
44531             q
44532           }
44533           /^X\(\/\/\)[^/].*/{
44534             s//\1/
44535             q
44536           }
44537           /^X\(\/\/\)$/{
44538             s//\1/
44539             q
44540           }
44541           /^X\(\/\).*/{
44542             s//\1/
44543             q
44544           }
44545           s/.*/./; q'`
44546       test -d "$as_dir" && break
44547     done
44548     test -z "$as_dirs" || eval "mkdir $as_dirs"
44549   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44550 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44551    { (exit 1); exit 1; }; }; }
44552   ac_builddir=.
44553
44554 case "$ac_dir" in
44555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44556 *)
44557   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44558   # A ".." for each directory in $ac_dir_suffix.
44559   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44560   case $ac_top_builddir_sub in
44561   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44562   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44563   esac ;;
44564 esac
44565 ac_abs_top_builddir=$ac_pwd
44566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44567 # for backward compatibility:
44568 ac_top_builddir=$ac_top_build_prefix
44569
44570 case $srcdir in
44571   .)  # We are building in place.
44572     ac_srcdir=.
44573     ac_top_srcdir=$ac_top_builddir_sub
44574     ac_abs_top_srcdir=$ac_pwd ;;
44575   [\\/]* | ?:[\\/]* )  # Absolute name.
44576     ac_srcdir=$srcdir$ac_dir_suffix;
44577     ac_top_srcdir=$srcdir
44578     ac_abs_top_srcdir=$srcdir ;;
44579   *) # Relative name.
44580     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44581     ac_top_srcdir=$ac_top_build_prefix$srcdir
44582     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44583 esac
44584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44585
44586
44587   case $ac_mode in
44588   :F)
44589   #
44590   # CONFIG_FILE
44591   #
44592
44593   case $INSTALL in
44594   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44595   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44596   esac
44597 _ACEOF
44598
44599 cat >>$CONFIG_STATUS <<\_ACEOF
44600 # If the template does not know about datarootdir, expand it.
44601 # FIXME: This hack should be removed a few years after 2.60.
44602 ac_datarootdir_hack=; ac_datarootdir_seen=
44603
44604 case `sed -n '/datarootdir/ {
44605   p
44606   q
44607 }
44608 /@datadir@/p
44609 /@docdir@/p
44610 /@infodir@/p
44611 /@localedir@/p
44612 /@mandir@/p
44613 ' $ac_file_inputs` in
44614 *datarootdir*) ac_datarootdir_seen=yes;;
44615 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44616   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44617 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44618 _ACEOF
44619 cat >>$CONFIG_STATUS <<_ACEOF
44620   ac_datarootdir_hack='
44621   s&@datadir@&$datadir&g
44622   s&@docdir@&$docdir&g
44623   s&@infodir@&$infodir&g
44624   s&@localedir@&$localedir&g
44625   s&@mandir@&$mandir&g
44626     s&\\\${datarootdir}&$datarootdir&g' ;;
44627 esac
44628 _ACEOF
44629
44630 # Neutralize VPATH when `$srcdir' = `.'.
44631 # Shell code in configure.ac might set extrasub.
44632 # FIXME: do we really want to maintain this feature?
44633 cat >>$CONFIG_STATUS <<_ACEOF
44634   sed "$ac_vpsub
44635 $extrasub
44636 _ACEOF
44637 cat >>$CONFIG_STATUS <<\_ACEOF
44638 :t
44639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44640 s&@configure_input@&$configure_input&;t t
44641 s&@top_builddir@&$ac_top_builddir_sub&;t t
44642 s&@srcdir@&$ac_srcdir&;t t
44643 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44644 s&@top_srcdir@&$ac_top_srcdir&;t t
44645 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44646 s&@builddir@&$ac_builddir&;t t
44647 s&@abs_builddir@&$ac_abs_builddir&;t t
44648 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44649 s&@INSTALL@&$ac_INSTALL&;t t
44650 $ac_datarootdir_hack
44651 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed 's/|#_!!_#|//g' >$tmp/out
44652
44653 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44654   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44655   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44656   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44657 which seems to be undefined.  Please make sure it is defined." >&5
44658 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44659 which seems to be undefined.  Please make sure it is defined." >&2;}
44660
44661   rm -f "$tmp/stdin"
44662   case $ac_file in
44663   -) cat "$tmp/out"; rm -f "$tmp/out";;
44664   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44665   esac
44666  ;;
44667   :H)
44668   #
44669   # CONFIG_HEADER
44670   #
44671 _ACEOF
44672
44673 # Transform confdefs.h into a sed script `conftest.defines', that
44674 # substitutes the proper values into config.h.in to produce config.h.
44675 rm -f conftest.defines conftest.tail
44676 # First, append a space to every undef/define line, to ease matching.
44677 echo 's/$/ /' >conftest.defines
44678 # Then, protect against being on the right side of a sed subst, or in
44679 # an unquoted here document, in config.status.  If some macros were
44680 # called several times there might be several #defines for the same
44681 # symbol, which is useless.  But do not sort them, since the last
44682 # AC_DEFINE must be honored.
44683 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44684 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44685 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44686 # PARAMS is the parameter list in the macro definition--in most cases, it's
44687 # just an empty string.
44688 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
44689 ac_dB='\\)[      (].*,\\1define\\2'
44690 ac_dC=' '
44691 ac_dD=' ,'
44692
44693 uniq confdefs.h |
44694   sed -n '
44695         t rset
44696         :rset
44697         s/^[     ]*#[    ]*define[       ][      ]*//
44698         t ok
44699         d
44700         :ok
44701         s/[\\&,]/\\&/g
44702         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44703         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44704   ' >>conftest.defines
44705
44706 # Remove the space that was appended to ease matching.
44707 # Then replace #undef with comments.  This is necessary, for
44708 # example, in the case of _POSIX_SOURCE, which is predefined and required
44709 # on some systems where configure will not decide to define it.
44710 # (The regexp can be short, since the line contains either #define or #undef.)
44711 echo 's/ $//
44712 s,^[     #]*u.*,/* & */,' >>conftest.defines
44713
44714 # Break up conftest.defines:
44715 ac_max_sed_lines=50
44716
44717 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44718 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44719 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44720 # et cetera.
44721 ac_in='$ac_file_inputs'
44722 ac_out='"$tmp/out1"'
44723 ac_nxt='"$tmp/out2"'
44724
44725 while :
44726 do
44727   # Write a here document:
44728     cat >>$CONFIG_STATUS <<_ACEOF
44729     # First, check the format of the line:
44730     cat >"\$tmp/defines.sed" <<\\CEOF
44731 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
44732 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
44733 b
44734 :def
44735 _ACEOF
44736   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44737   echo 'CEOF
44738     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44739   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44740   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44741   grep . conftest.tail >/dev/null || break
44742   rm -f conftest.defines
44743   mv conftest.tail conftest.defines
44744 done
44745 rm -f conftest.defines conftest.tail
44746
44747 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44748 cat >>$CONFIG_STATUS <<\_ACEOF
44749   if test x"$ac_file" != x-; then
44750     echo "/* $configure_input  */" >"$tmp/config.h"
44751     cat "$ac_result" >>"$tmp/config.h"
44752     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44753       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44754 echo "$as_me: $ac_file is unchanged" >&6;}
44755     else
44756       rm -f $ac_file
44757       mv "$tmp/config.h" $ac_file
44758     fi
44759   else
44760     echo "/* $configure_input  */"
44761     cat "$ac_result"
44762   fi
44763   rm -f "$tmp/out12"
44764  ;;
44765
44766   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44767 echo "$as_me: executing $ac_file commands" >&6;}
44768  ;;
44769   esac
44770
44771
44772   case $ac_file$ac_mode in
44773     "libtool":C)
44774
44775     # See if we are running on zsh, and set the options which allow our
44776     # commands through without removal of \ escapes.
44777     if test -n "${ZSH_VERSION+set}" ; then
44778       setopt NO_GLOB_SUBST
44779     fi
44780
44781     cfgfile="${ofile}T"
44782     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
44783     $RM "$cfgfile"
44784
44785     cat <<_LT_EOF >> "$cfgfile"
44786 #! $SHELL
44787
44788 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
44789 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
44790 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44791 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
44792 #
44793 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
44794 #                 2006, 2007, 2008 Free Software Foundation, Inc.
44795 #   Written by Gordon Matzigkeit, 1996
44796 #
44797 #   This file is part of GNU Libtool.
44798 #
44799 # GNU Libtool is free software; you can redistribute it and/or
44800 # modify it under the terms of the GNU General Public License as
44801 # published by the Free Software Foundation; either version 2 of
44802 # the License, or (at your option) any later version.
44803 #
44804 # As a special exception to the GNU General Public License,
44805 # if you distribute this file as part of a program or library that
44806 # is built using GNU Libtool, you may include this file under the
44807 # same distribution terms that you use for the rest of that program.
44808 #
44809 # GNU Libtool is distributed in the hope that it will be useful,
44810 # but WITHOUT ANY WARRANTY; without even the implied warranty of
44811 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
44812 # GNU General Public License for more details.
44813 #
44814 # You should have received a copy of the GNU General Public License
44815 # along with GNU Libtool; see the file COPYING.  If not, a copy
44816 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
44817 # obtained by writing to the Free Software Foundation, Inc.,
44818 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
44819
44820
44821 # The names of the tagged configurations supported by this script.
44822 available_tags="CXX "
44823
44824 # ### BEGIN LIBTOOL CONFIG
44825
44826 # Which release of libtool.m4 was used?
44827 macro_version=$macro_version
44828 macro_revision=$macro_revision
44829
44830 # Whether or not to build shared libraries.
44831 build_libtool_libs=$enable_shared
44832
44833 # Whether or not to build static libraries.
44834 build_old_libs=$enable_static
44835
44836 # What type of objects to build.
44837 pic_mode=$pic_mode
44838
44839 # Whether or not to optimize for fast installation.
44840 fast_install=$enable_fast_install
44841
44842 # The host system.
44843 host_alias=$host_alias
44844 host=$host
44845 host_os=$host_os
44846
44847 # The build system.
44848 build_alias=$build_alias
44849 build=$build
44850 build_os=$build_os
44851
44852 # A sed program that does not truncate output.
44853 SED=$lt_SED
44854
44855 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
44856 Xsed="\$SED -e 1s/^X//"
44857
44858 # A grep program that handles long lines.
44859 GREP=$lt_GREP
44860
44861 # An ERE matcher.
44862 EGREP=$lt_EGREP
44863
44864 # A literal string matcher.
44865 FGREP=$lt_FGREP
44866
44867 # A BSD- or MS-compatible name lister.
44868 NM=$lt_NM
44869
44870 # Whether we need soft or hard links.
44871 LN_S=$lt_LN_S
44872
44873 # What is the maximum length of a command?
44874 max_cmd_len=$max_cmd_len
44875
44876 # Object file suffix (normally "o").
44877 objext=$ac_objext
44878
44879 # Executable file suffix (normally "").
44880 exeext=$exeext
44881
44882 # whether the shell understands "unset".
44883 lt_unset=$lt_unset
44884
44885 # turn spaces into newlines.
44886 SP2NL=$lt_lt_SP2NL
44887
44888 # turn newlines into spaces.
44889 NL2SP=$lt_lt_NL2SP
44890
44891 # How to create reloadable object files.
44892 reload_flag=$lt_reload_flag
44893 reload_cmds=$lt_reload_cmds
44894
44895 # An object symbol dumper.
44896 OBJDUMP=$lt_OBJDUMP
44897
44898 # Method to check whether dependent libraries are shared objects.
44899 deplibs_check_method=$lt_deplibs_check_method
44900
44901 # Command to use when deplibs_check_method == "file_magic".
44902 file_magic_cmd=$lt_file_magic_cmd
44903
44904 # The archiver.
44905 AR=$lt_AR
44906 AR_FLAGS=$lt_AR_FLAGS
44907
44908 # A symbol stripping program.
44909 STRIP=$lt_STRIP
44910
44911 # Commands used to install an old-style archive.
44912 RANLIB=$lt_RANLIB
44913 old_postinstall_cmds=$lt_old_postinstall_cmds
44914 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44915
44916 # A C compiler.
44917 LTCC=$lt_CC
44918
44919 # LTCC compiler flags.
44920 LTCFLAGS=$lt_CFLAGS
44921
44922 # Take the output of nm and produce a listing of raw symbols and C names.
44923 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44924
44925 # Transform the output of nm in a proper C declaration.
44926 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44927
44928 # Transform the output of nm in a C name address pair.
44929 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44930
44931 # Transform the output of nm in a C name address pair when lib prefix is needed.
44932 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
44933
44934 # The name of the directory that contains temporary libtool files.
44935 objdir=$objdir
44936
44937 # Shell to use when invoking shell scripts.
44938 SHELL=$lt_SHELL
44939
44940 # An echo program that does not interpret backslashes.
44941 ECHO=$lt_ECHO
44942
44943 # Used to examine libraries when file_magic_cmd begins with "file".
44944 MAGIC_CMD=$MAGIC_CMD
44945
44946 # Must we lock files when doing compilation?
44947 need_locks=$lt_need_locks
44948
44949 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
44950 DSYMUTIL=$lt_DSYMUTIL
44951
44952 # Tool to change global to local symbols on Mac OS X.
44953 NMEDIT=$lt_NMEDIT
44954
44955 # Tool to manipulate fat objects and archives on Mac OS X.
44956 LIPO=$lt_LIPO
44957
44958 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
44959 OTOOL=$lt_OTOOL
44960
44961 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
44962 OTOOL64=$lt_OTOOL64
44963
44964 # Old archive suffix (normally "a").
44965 libext=$libext
44966
44967 # Shared library suffix (normally ".so").
44968 shrext_cmds=$lt_shrext_cmds
44969
44970 # The commands to extract the exported symbol list from a shared archive.
44971 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44972
44973 # Variables whose values should be saved in libtool wrapper scripts and
44974 # restored at link time.
44975 variables_saved_for_relink=$lt_variables_saved_for_relink
44976
44977 # Do we need the "lib" prefix for modules?
44978 need_lib_prefix=$need_lib_prefix
44979
44980 # Do we need a version for libraries?
44981 need_version=$need_version
44982
44983 # Library versioning type.
44984 version_type=$version_type
44985
44986 # Shared library runtime path variable.
44987 runpath_var=$runpath_var
44988
44989 # Shared library path variable.
44990 shlibpath_var=$shlibpath_var
44991
44992 # Is shlibpath searched before the hard-coded library search path?
44993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44994
44995 # Format of library name prefix.
44996 libname_spec=$lt_libname_spec
44997
44998 # List of archive names.  First name is the real one, the rest are links.
44999 # The last name is the one that the linker finds with -lNAME
45000 library_names_spec=$lt_library_names_spec
45001
45002 # The coded name of the library, if different from the real name.
45003 soname_spec=$lt_soname_spec
45004
45005 # Command to use after installation of a shared archive.
45006 postinstall_cmds=$lt_postinstall_cmds
45007
45008 # Command to use after uninstallation of a shared archive.
45009 postuninstall_cmds=$lt_postuninstall_cmds
45010
45011 # Commands used to finish a libtool library installation in a directory.
45012 finish_cmds=$lt_finish_cmds
45013
45014 # As "finish_cmds", except a single script fragment to be evaled but
45015 # not shown.
45016 finish_eval=$lt_finish_eval
45017
45018 # Whether we should hardcode library paths into libraries.
45019 hardcode_into_libs=$hardcode_into_libs
45020
45021 # Compile-time system search path for libraries.
45022 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
45023
45024 # Run-time system search path for libraries.
45025 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
45026
45027 # Whether dlopen is supported.
45028 dlopen_support=$enable_dlopen
45029
45030 # Whether dlopen of programs is supported.
45031 dlopen_self=$enable_dlopen_self
45032
45033 # Whether dlopen of statically linked programs is supported.
45034 dlopen_self_static=$enable_dlopen_self_static
45035
45036 # Commands to strip libraries.
45037 old_striplib=$lt_old_striplib
45038 striplib=$lt_striplib
45039
45040
45041 # The linker used to build libraries.
45042 LD=$lt_LD
45043
45044 # Commands used to build an old-style archive.
45045 old_archive_cmds=$lt_old_archive_cmds
45046
45047 # A language specific compiler.
45048 CC=$lt_compiler
45049
45050 # Is the compiler the GNU compiler?
45051 with_gcc=$GCC
45052
45053 # Compiler flag to turn off builtin functions.
45054 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
45055
45056 # How to pass a linker flag through the compiler.
45057 wl=$lt_lt_prog_compiler_wl
45058
45059 # Additional compiler flags for building library objects.
45060 pic_flag=$lt_lt_prog_compiler_pic
45061
45062 # Compiler flag to prevent dynamic linking.
45063 link_static_flag=$lt_lt_prog_compiler_static
45064
45065 # Does compiler simultaneously support -c and -o options?
45066 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45067
45068 # Whether or not to add -lc for building shared libraries.
45069 build_libtool_need_lc=$archive_cmds_need_lc
45070
45071 # Whether or not to disallow shared libs when runtime libs are static.
45072 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
45073
45074 # Compiler flag to allow reflexive dlopens.
45075 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
45076
45077 # Compiler flag to generate shared objects directly from archives.
45078 whole_archive_flag_spec=$lt_whole_archive_flag_spec
45079
45080 # Whether the compiler copes with passing no objects directly.
45081 compiler_needs_object=$lt_compiler_needs_object
45082
45083 # Create an old-style archive from a shared archive.
45084 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
45085
45086 # Create a temporary old-style archive to link instead of a shared archive.
45087 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
45088
45089 # Commands used to build a shared archive.
45090 archive_cmds=$lt_archive_cmds
45091 archive_expsym_cmds=$lt_archive_expsym_cmds
45092
45093 # Commands used to build a loadable module if different from building
45094 # a shared archive.
45095 module_cmds=$lt_module_cmds
45096 module_expsym_cmds=$lt_module_expsym_cmds
45097
45098 # Whether we are building with GNU ld or not.
45099 with_gnu_ld=$lt_with_gnu_ld
45100
45101 # Flag that allows shared libraries with undefined symbols to be built.
45102 allow_undefined_flag=$lt_allow_undefined_flag
45103
45104 # Flag that enforces no undefined symbols.
45105 no_undefined_flag=$lt_no_undefined_flag
45106
45107 # Flag to hardcode \$libdir into a binary during linking.
45108 # This must work even if \$libdir does not exist
45109 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
45110
45111 # If ld is used when linking, flag to hardcode \$libdir into a binary
45112 # during linking.  This must work even if \$libdir does not exist.
45113 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
45114
45115 # Whether we need a single "-rpath" flag with a separated argument.
45116 hardcode_libdir_separator=$lt_hardcode_libdir_separator
45117
45118 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45119 # DIR into the resulting binary.
45120 hardcode_direct=$hardcode_direct
45121
45122 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45123 # DIR into the resulting binary and the resulting library dependency is
45124 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45125 # library is relocated.
45126 hardcode_direct_absolute=$hardcode_direct_absolute
45127
45128 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45129 # into the resulting binary.
45130 hardcode_minus_L=$hardcode_minus_L
45131
45132 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45133 # into the resulting binary.
45134 hardcode_shlibpath_var=$hardcode_shlibpath_var
45135
45136 # Set to "yes" if building a shared library automatically hardcodes DIR
45137 # into the library and all subsequent libraries and executables linked
45138 # against it.
45139 hardcode_automatic=$hardcode_automatic
45140
45141 # Set to yes if linker adds runtime paths of dependent libraries
45142 # to runtime path list.
45143 inherit_rpath=$inherit_rpath
45144
45145 # Whether libtool must link a program against all its dependency libraries.
45146 link_all_deplibs=$link_all_deplibs
45147
45148 # Fix the shell variable \$srcfile for the compiler.
45149 fix_srcfile_path=$lt_fix_srcfile_path
45150
45151 # Set to "yes" if exported symbols are required.
45152 always_export_symbols=$always_export_symbols
45153
45154 # The commands to list exported symbols.
45155 export_symbols_cmds=$lt_export_symbols_cmds
45156
45157 # Symbols that should not be listed in the preloaded symbols.
45158 exclude_expsyms=$lt_exclude_expsyms
45159
45160 # Symbols that must always be exported.
45161 include_expsyms=$lt_include_expsyms
45162
45163 # Commands necessary for linking programs (against libraries) with templates.
45164 prelink_cmds=$lt_prelink_cmds
45165
45166 # Specify filename containing input files.
45167 file_list_spec=$lt_file_list_spec
45168
45169 # How to hardcode a shared library path into an executable.
45170 hardcode_action=$hardcode_action
45171
45172 # The directories searched by this compiler when creating a shared library.
45173 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
45174
45175 # Dependencies to place before and after the objects being linked to
45176 # create a shared library.
45177 predep_objects=$lt_predep_objects
45178 postdep_objects=$lt_postdep_objects
45179 predeps=$lt_predeps
45180 postdeps=$lt_postdeps
45181
45182 # The library search path used internally by the compiler when linking
45183 # a shared library.
45184 compiler_lib_search_path=$lt_compiler_lib_search_path
45185
45186 # ### END LIBTOOL CONFIG
45187
45188 _LT_EOF
45189
45190   case $host_os in
45191   aix3*)
45192     cat <<\_LT_EOF >> "$cfgfile"
45193 # AIX sometimes has problems with the GCC collect2 program.  For some
45194 # reason, if we set the COLLECT_NAMES environment variable, the problems
45195 # vanish in a puff of smoke.
45196 if test "X${COLLECT_NAMES+set}" != Xset; then
45197   COLLECT_NAMES=
45198   export COLLECT_NAMES
45199 fi
45200 _LT_EOF
45201     ;;
45202   esac
45203
45204
45205 ltmain="$ac_aux_dir/ltmain.sh"
45206
45207
45208   # We use sed instead of cat because bash on DJGPP gets confused if
45209   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
45210   # text mode, it properly converts lines to CR/LF.  This bash problem
45211   # is reportedly fixed, but why not run on old versions too?
45212   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
45213     || (rm -f "$cfgfile"; exit 1)
45214
45215   case $xsi_shell in
45216   yes)
45217     cat << \_LT_EOF >> "$cfgfile"
45218
45219 # func_dirname file append nondir_replacement
45220 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45221 # otherwise set result to NONDIR_REPLACEMENT.
45222 func_dirname ()
45223 {
45224   case ${1} in
45225     */*) func_dirname_result="${1%/*}${2}" ;;
45226     *  ) func_dirname_result="${3}" ;;
45227   esac
45228 }
45229
45230 # func_basename file
45231 func_basename ()
45232 {
45233   func_basename_result="${1##*/}"
45234 }
45235
45236 # func_dirname_and_basename file append nondir_replacement
45237 # perform func_basename and func_dirname in a single function
45238 # call:
45239 #   dirname:  Compute the dirname of FILE.  If nonempty,
45240 #             add APPEND to the result, otherwise set result
45241 #             to NONDIR_REPLACEMENT.
45242 #             value returned in "$func_dirname_result"
45243 #   basename: Compute filename of FILE.
45244 #             value retuned in "$func_basename_result"
45245 # Implementation must be kept synchronized with func_dirname
45246 # and func_basename. For efficiency, we do not delegate to
45247 # those functions but instead duplicate the functionality here.
45248 func_dirname_and_basename ()
45249 {
45250   case ${1} in
45251     */*) func_dirname_result="${1%/*}${2}" ;;
45252     *  ) func_dirname_result="${3}" ;;
45253   esac
45254   func_basename_result="${1##*/}"
45255 }
45256
45257 # func_stripname prefix suffix name
45258 # strip PREFIX and SUFFIX off of NAME.
45259 # PREFIX and SUFFIX must not contain globbing or regex special
45260 # characters, hashes, percent signs, but SUFFIX may contain a leading
45261 # dot (in which case that matches only a dot).
45262 func_stripname ()
45263 {
45264   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
45265   # positional parameters, so assign one to ordinary parameter first.
45266   func_stripname_result=${3}
45267   func_stripname_result=${func_stripname_result#"${1}"}
45268   func_stripname_result=${func_stripname_result%"${2}"}
45269 }
45270
45271 # func_opt_split
45272 func_opt_split ()
45273 {
45274   func_opt_split_opt=${1%%=*}
45275   func_opt_split_arg=${1#*=}
45276 }
45277
45278 # func_lo2o object
45279 func_lo2o ()
45280 {
45281   case ${1} in
45282     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
45283     *)    func_lo2o_result=${1} ;;
45284   esac
45285 }
45286
45287 # func_xform libobj-or-source
45288 func_xform ()
45289 {
45290   func_xform_result=${1%.*}.lo
45291 }
45292
45293 # func_arith arithmetic-term...
45294 func_arith ()
45295 {
45296   func_arith_result=$(( $* ))
45297 }
45298
45299 # func_len string
45300 # STRING may not start with a hyphen.
45301 func_len ()
45302 {
45303   func_len_result=${#1}
45304 }
45305
45306 _LT_EOF
45307     ;;
45308   *) # Bourne compatible functions.
45309     cat << \_LT_EOF >> "$cfgfile"
45310
45311 # func_dirname file append nondir_replacement
45312 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45313 # otherwise set result to NONDIR_REPLACEMENT.
45314 func_dirname ()
45315 {
45316   # Extract subdirectory from the argument.
45317   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
45318   if test "X$func_dirname_result" = "X${1}"; then
45319     func_dirname_result="${3}"
45320   else
45321     func_dirname_result="$func_dirname_result${2}"
45322   fi
45323 }
45324
45325 # func_basename file
45326 func_basename ()
45327 {
45328   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
45329 }
45330
45331
45332 # func_stripname prefix suffix name
45333 # strip PREFIX and SUFFIX off of NAME.
45334 # PREFIX and SUFFIX must not contain globbing or regex special
45335 # characters, hashes, percent signs, but SUFFIX may contain a leading
45336 # dot (in which case that matches only a dot).
45337 # func_strip_suffix prefix name
45338 func_stripname ()
45339 {
45340   case ${2} in
45341     .*) func_stripname_result=`$ECHO "X${3}" \
45342            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
45343     *)  func_stripname_result=`$ECHO "X${3}" \
45344            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
45345   esac
45346 }
45347
45348 # sed scripts:
45349 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
45350 my_sed_long_arg='1s/^-[^=]*=//'
45351
45352 # func_opt_split
45353 func_opt_split ()
45354 {
45355   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
45356   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
45357 }
45358
45359 # func_lo2o object
45360 func_lo2o ()
45361 {
45362   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
45363 }
45364
45365 # func_xform libobj-or-source
45366 func_xform ()
45367 {
45368   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
45369 }
45370
45371 # func_arith arithmetic-term...
45372 func_arith ()
45373 {
45374   func_arith_result=`expr "$@"`
45375 }
45376
45377 # func_len string
45378 # STRING may not start with a hyphen.
45379 func_len ()
45380 {
45381   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
45382 }
45383
45384 _LT_EOF
45385 esac
45386
45387 case $lt_shell_append in
45388   yes)
45389     cat << \_LT_EOF >> "$cfgfile"
45390
45391 # func_append var value
45392 # Append VALUE to the end of shell variable VAR.
45393 func_append ()
45394 {
45395   eval "$1+=\$2"
45396 }
45397 _LT_EOF
45398     ;;
45399   *)
45400     cat << \_LT_EOF >> "$cfgfile"
45401
45402 # func_append var value
45403 # Append VALUE to the end of shell variable VAR.
45404 func_append ()
45405 {
45406   eval "$1=\$$1\$2"
45407 }
45408
45409 _LT_EOF
45410     ;;
45411   esac
45412
45413
45414   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
45415     || (rm -f "$cfgfile"; exit 1)
45416
45417   mv -f "$cfgfile" "$ofile" ||
45418     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45419   chmod +x "$ofile"
45420
45421
45422     cat <<_LT_EOF >> "$ofile"
45423
45424 # ### BEGIN LIBTOOL TAG CONFIG: CXX
45425
45426 # The linker used to build libraries.
45427 LD=$lt_LD_CXX
45428
45429 # Commands used to build an old-style archive.
45430 old_archive_cmds=$lt_old_archive_cmds_CXX
45431
45432 # A language specific compiler.
45433 CC=$lt_compiler_CXX
45434
45435 # Is the compiler the GNU compiler?
45436 with_gcc=$GCC_CXX
45437
45438 # Compiler flag to turn off builtin functions.
45439 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
45440
45441 # How to pass a linker flag through the compiler.
45442 wl=$lt_lt_prog_compiler_wl_CXX
45443
45444 # Additional compiler flags for building library objects.
45445 pic_flag=$lt_lt_prog_compiler_pic_CXX
45446
45447 # Compiler flag to prevent dynamic linking.
45448 link_static_flag=$lt_lt_prog_compiler_static_CXX
45449
45450 # Does compiler simultaneously support -c and -o options?
45451 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
45452
45453 # Whether or not to add -lc for building shared libraries.
45454 build_libtool_need_lc=$archive_cmds_need_lc_CXX
45455
45456 # Whether or not to disallow shared libs when runtime libs are static.
45457 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
45458
45459 # Compiler flag to allow reflexive dlopens.
45460 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
45461
45462 # Compiler flag to generate shared objects directly from archives.
45463 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
45464
45465 # Whether the compiler copes with passing no objects directly.
45466 compiler_needs_object=$lt_compiler_needs_object_CXX
45467
45468 # Create an old-style archive from a shared archive.
45469 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
45470
45471 # Create a temporary old-style archive to link instead of a shared archive.
45472 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
45473
45474 # Commands used to build a shared archive.
45475 archive_cmds=$lt_archive_cmds_CXX
45476 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
45477
45478 # Commands used to build a loadable module if different from building
45479 # a shared archive.
45480 module_cmds=$lt_module_cmds_CXX
45481 module_expsym_cmds=$lt_module_expsym_cmds_CXX
45482
45483 # Whether we are building with GNU ld or not.
45484 with_gnu_ld=$lt_with_gnu_ld_CXX
45485
45486 # Flag that allows shared libraries with undefined symbols to be built.
45487 allow_undefined_flag=$lt_allow_undefined_flag_CXX
45488
45489 # Flag that enforces no undefined symbols.
45490 no_undefined_flag=$lt_no_undefined_flag_CXX
45491
45492 # Flag to hardcode \$libdir into a binary during linking.
45493 # This must work even if \$libdir does not exist
45494 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
45495
45496 # If ld is used when linking, flag to hardcode \$libdir into a binary
45497 # during linking.  This must work even if \$libdir does not exist.
45498 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
45499
45500 # Whether we need a single "-rpath" flag with a separated argument.
45501 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
45502
45503 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45504 # DIR into the resulting binary.
45505 hardcode_direct=$hardcode_direct_CXX
45506
45507 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45508 # DIR into the resulting binary and the resulting library dependency is
45509 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45510 # library is relocated.
45511 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
45512
45513 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45514 # into the resulting binary.
45515 hardcode_minus_L=$hardcode_minus_L_CXX
45516
45517 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45518 # into the resulting binary.
45519 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
45520
45521 # Set to "yes" if building a shared library automatically hardcodes DIR
45522 # into the library and all subsequent libraries and executables linked
45523 # against it.
45524 hardcode_automatic=$hardcode_automatic_CXX
45525
45526 # Set to yes if linker adds runtime paths of dependent libraries
45527 # to runtime path list.
45528 inherit_rpath=$inherit_rpath_CXX
45529
45530 # Whether libtool must link a program against all its dependency libraries.
45531 link_all_deplibs=$link_all_deplibs_CXX
45532
45533 # Fix the shell variable \$srcfile for the compiler.
45534 fix_srcfile_path=$lt_fix_srcfile_path_CXX
45535
45536 # Set to "yes" if exported symbols are required.
45537 always_export_symbols=$always_export_symbols_CXX
45538
45539 # The commands to list exported symbols.
45540 export_symbols_cmds=$lt_export_symbols_cmds_CXX
45541
45542 # Symbols that should not be listed in the preloaded symbols.
45543 exclude_expsyms=$lt_exclude_expsyms_CXX
45544
45545 # Symbols that must always be exported.
45546 include_expsyms=$lt_include_expsyms_CXX
45547
45548 # Commands necessary for linking programs (against libraries) with templates.
45549 prelink_cmds=$lt_prelink_cmds_CXX
45550
45551 # Specify filename containing input files.
45552 file_list_spec=$lt_file_list_spec_CXX
45553
45554 # How to hardcode a shared library path into an executable.
45555 hardcode_action=$hardcode_action_CXX
45556
45557 # The directories searched by this compiler when creating a shared library.
45558 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
45559
45560 # Dependencies to place before and after the objects being linked to
45561 # create a shared library.
45562 predep_objects=$lt_predep_objects_CXX
45563 postdep_objects=$lt_postdep_objects_CXX
45564 predeps=$lt_predeps_CXX
45565 postdeps=$lt_postdeps_CXX
45566
45567 # The library search path used internally by the compiler when linking
45568 # a shared library.
45569 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
45570
45571 # ### END LIBTOOL TAG CONFIG: CXX
45572 _LT_EOF
45573
45574  ;;
45575     "default-1":C)
45576     for ac_file in $CONFIG_FILES; do
45577       # Support "outfile[:infile[:infile...]]"
45578       case "$ac_file" in
45579         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
45580       esac
45581       # PO directories have a Makefile.in generated from Makefile.in.in.
45582       case "$ac_file" in */Makefile.in)
45583         # Adjust a relative srcdir.
45584         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
45585         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
45586         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
45587         # In autoconf-2.13 it is called $ac_given_srcdir.
45588         # In autoconf-2.50 it is called $srcdir.
45589         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
45590         case "$ac_given_srcdir" in
45591           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
45592           /*) top_srcdir="$ac_given_srcdir" ;;
45593           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
45594         esac
45595         # Treat a directory as a PO directory if and only if it has a
45596         # POTFILES.in file. This allows packages to have multiple PO
45597         # directories under different names or in different locations.
45598         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
45599           rm -f "$ac_dir/POTFILES"
45600           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
45601           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
45602           POMAKEFILEDEPS="POTFILES.in"
45603           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
45604           # on $ac_dir but don't depend on user-specified configuration
45605           # parameters.
45606           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
45607             # The LINGUAS file contains the set of available languages.
45608             if test -n "$OBSOLETE_ALL_LINGUAS"; then
45609               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
45610             fi
45611             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
45612             # Hide the ALL_LINGUAS assigment from automake.
45613             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
45614             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
45615           else
45616             # The set of available languages was given in configure.in.
45617             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
45618           fi
45619           # Compute POFILES
45620           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
45621           # Compute UPDATEPOFILES
45622           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
45623           # Compute DUMMYPOFILES
45624           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
45625           # Compute GMOFILES
45626           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
45627           case "$ac_given_srcdir" in
45628             .) srcdirpre= ;;
45629             *) srcdirpre='$(srcdir)/' ;;
45630           esac
45631           POFILES=
45632           UPDATEPOFILES=
45633           DUMMYPOFILES=
45634           GMOFILES=
45635           for lang in $ALL_LINGUAS; do
45636             POFILES="$POFILES $srcdirpre$lang.po"
45637             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
45638             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
45639             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
45640           done
45641           # CATALOGS depends on both $ac_dir and the user's LINGUAS
45642           # environment variable.
45643           INST_LINGUAS=
45644           if test -n "$ALL_LINGUAS"; then
45645             for presentlang in $ALL_LINGUAS; do
45646               useit=no
45647               if test "%UNSET%" != "$LINGUAS"; then
45648                 desiredlanguages="$LINGUAS"
45649               else
45650                 desiredlanguages="$ALL_LINGUAS"
45651               fi
45652               for desiredlang in $desiredlanguages; do
45653                 # Use the presentlang catalog if desiredlang is
45654                 #   a. equal to presentlang, or
45655                 #   b. a variant of presentlang (because in this case,
45656                 #      presentlang can be used as a fallback for messages
45657                 #      which are not translated in the desiredlang catalog).
45658                 case "$desiredlang" in
45659                   "$presentlang"*) useit=yes;;
45660                 esac
45661               done
45662               if test $useit = yes; then
45663                 INST_LINGUAS="$INST_LINGUAS $presentlang"
45664               fi
45665             done
45666           fi
45667           CATALOGS=
45668           if test -n "$INST_LINGUAS"; then
45669             for lang in $INST_LINGUAS; do
45670               CATALOGS="$CATALOGS $lang.gmo"
45671             done
45672           fi
45673           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
45674           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"
45675           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
45676             if test -f "$f"; then
45677               case "$f" in
45678                 *.orig | *.bak | *~) ;;
45679                 *) cat "$f" >> "$ac_dir/Makefile" ;;
45680               esac
45681             fi
45682           done
45683         fi
45684         ;;
45685       esac
45686     done ;;
45687     "default":C)
45688  ;;
45689
45690   esac
45691 done # for ac_tag
45692
45693
45694 { (exit 0); exit 0; }
45695 _ACEOF
45696 chmod +x $CONFIG_STATUS
45697 ac_clean_files=$ac_clean_files_save
45698
45699
45700 # configure is writing to config.log, and then calls config.status.
45701 # config.status does its own redirection, appending to config.log.
45702 # Unfortunately, on DOS this fails, as config.log is still kept open
45703 # by configure, so config.status won't be able to write to it; its
45704 # output is simply discarded.  So we exec the FD to /dev/null,
45705 # effectively closing config.log, so it can be properly (re)opened and
45706 # appended to by config.status.  When coming back to configure, we
45707 # need to make the FD available again.
45708 if test "$no_create" != yes; then
45709   ac_cs_success=:
45710   ac_config_status_args=
45711   test "$silent" = yes &&
45712     ac_config_status_args="$ac_config_status_args --quiet"
45713   exec 5>/dev/null
45714   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45715   exec 5>>config.log
45716   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45717   # would make configure fail if this is the last instruction.
45718   $ac_cs_success || { (exit 1); exit 1; }
45719 fi
45720
45721
45722 if test "${support_bat}" = "yes" ; then
45723    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
45724       { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
45725 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
45726    { (exit 1); exit 1; }; }
45727    fi
45728
45729    QMAKEBIN="qmake"
45730
45731    if test "x$QMAKEQT4" != "xnone"; then
45732        QMAKEBIN=qmake-qt4
45733    fi
45734
45735    cd src/qt-console
45736    echo "Creating bat Makefile"
45737    touch bat
45738    chmod 755 bat
45739    $QMAKEBIN
45740    make clean
45741    cd ${BUILD_DIR}
45742 fi
45743
45744 if test X"$GCC" = "Xyes" ; then
45745   echo "Doing make of dependencies"
45746   ${MAKE:-make} depend
45747 fi
45748
45749 cd src/qt-console
45750 chmod 755 install_conf_file build-depkgs-qt-console
45751 cd ${BUILD_DIR}
45752
45753 cd scripts
45754 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
45755 chmod 755 dvd-handler dvd-simulator
45756 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
45757 cd ..
45758
45759 c=updatedb
45760 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
45761 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
45762
45763 c=src/cats
45764
45765 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
45766 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
45767
45768 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
45769 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
45770
45771 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
45772 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
45773
45774 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
45775 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
45776
45777 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
45778 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
45779
45780 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
45781 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
45782
45783 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
45784 chmod 755 $c/sqlite
45785 chmod 755 $c/mysql
45786
45787 chmod 755 src/win32/build-depkgs-mingw32
45788
45789 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
45790    largefile_support="yes"
45791 fi
45792
45793 if test X"$GCC" = "Xyes" ; then
45794                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45795    if test "x${CCVERSION}" = "x" ; then
45796       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45797    fi
45798    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45799    if test x"${CXXVERSION}" = x ; then
45800       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45801    fi
45802 fi
45803
45804 # clean up any old junk
45805 echo " "
45806 echo "Cleaning up"
45807 echo " "
45808 make clean
45809
45810 if test "x${db_type}" = "xInternal" ; then
45811    echo " "
45812    echo " "
45813    echo "You have not specified either --enable-client-only or one of the"
45814    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
45815    echo "  This is not permitted. Please reconfigure."
45816    echo " "
45817    echo "Aborting the configuration ..."
45818    echo " "
45819    echo " "
45820    exit 1
45821 fi
45822
45823 echo "
45824 Configuration on `date`:
45825
45826    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
45827    Bacula version:          ${BACULA} ${VERSION} (${DATE})
45828    Source code location:    ${srcdir}
45829    Install binaries:        ${sbindir}
45830    Install libraries:       ${libdir}
45831    Install config files:    ${sysconfdir}
45832    Scripts directory:       ${scriptdir}
45833    Archive directory:       ${archivedir}
45834    Working directory:       ${working_dir}
45835    PID directory:           ${piddir}
45836    Subsys directory:        ${subsysdir}
45837    Man directory:           ${mandir}
45838    Data directory:          ${datarootdir}
45839    Plugin directory:        ${plugindir}
45840    C Compiler:              ${CC} ${CCVERSION}
45841    C++ Compiler:            ${CXX} ${CXXVERSION}
45842    Compiler flags:          ${WCFLAGS} ${CFLAGS}
45843    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
45844    Libraries:               ${LIBS}
45845    Statically Linked Tools: ${support_static_tools}
45846    Statically Linked FD:    ${support_static_fd}
45847    Statically Linked SD:    ${support_static_sd}
45848    Statically Linked DIR:   ${support_static_dir}
45849    Statically Linked CONS:  ${support_static_cons}
45850    Database type:           ${db_type}
45851    Database port:           ${db_port}
45852    Database lib:            ${DB_LIBS}
45853    Database name:           ${db_name}
45854    Database user:           ${db_user}
45855
45856    Job Output Email:        ${job_email}
45857    Traceback Email:         ${dump_email}
45858    SMTP Host Address:       ${smtp_host}
45859
45860    Director Port:           ${dir_port}
45861    File daemon Port:        ${fd_port}
45862    Storage daemon Port:     ${sd_port}
45863
45864    Director User:           ${dir_user}
45865    Director Group:          ${dir_group}
45866    Storage Daemon User:     ${sd_user}
45867    Storage DaemonGroup:     ${sd_group}
45868    File Daemon User:        ${fd_user}
45869    File Daemon Group:       ${fd_group}
45870
45871    SQL binaries Directory   ${SQL_BINDIR}
45872
45873    Large file support:      $largefile_support
45874    Bacula conio support:    ${got_conio} ${CONS_LIBS}
45875    readline support:        ${got_readline} ${PRTREADLINE_SRC}
45876    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
45877    TLS support:             ${support_tls}
45878    Encryption support:      ${support_crypto}
45879    ZLIB support:            ${have_zlib}
45880    enable-smartalloc:       ${support_smartalloc}
45881    enable-lockmgr:          ${support_lockmgr}
45882    bat support:             ${support_bat} ${QWT_LDFLAGS}
45883    enable-gnome:            ${support_gnome} ${gnome_version}
45884    enable-bwx-console:      ${support_wx_console} ${wx_version}
45885    enable-tray-monitor:     ${support_tray_monitor}
45886    client-only:             ${build_client_only}
45887    build-dird:              ${build_dird}
45888    build-stored:            ${build_stored}
45889    ACL support:             ${have_acl}
45890    XATTR support:           ${have_xattr}
45891    Python support:          ${support_python} ${PYTHON_LIBS}
45892    Batch insert enabled:    ${support_batch_insert}
45893
45894   " > config.out
45895
45896 cat config.out