]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
tweak drop_bacula_xxx script ouput
[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 CAP_LIBS
1037 FDLIBS
1038 DEBUG
1039 DINCLUDE
1040 DLIB
1041 DB_LIBS
1042 WCFLAGS
1043 WLDFLAGS
1044 WRAPLIBS
1045 OBJLIST
1046 TAPEDRIVE
1047 PSCMD
1048 WIN32
1049 MACOSX
1050 DISTNAME
1051 DISTVER
1052 LTLIBOBJS'
1053 ac_subst_files='MCOMMON'
1054       ac_precious_vars='build_alias
1055 host_alias
1056 target_alias
1057 CC
1058 CFLAGS
1059 LDFLAGS
1060 LIBS
1061 CPPFLAGS
1062 CXX
1063 CXXFLAGS
1064 CCC
1065 CPP
1066 WXCONFIG
1067 WXFLAGS
1068 CXXCPP
1069 XMKMF'
1070
1071
1072 # Initialize some variables set by options.
1073 ac_init_help=
1074 ac_init_version=false
1075 # The variables have the same names as the options, with
1076 # dashes changed to underlines.
1077 cache_file=/dev/null
1078 exec_prefix=NONE
1079 no_create=
1080 no_recursion=
1081 prefix=NONE
1082 program_prefix=NONE
1083 program_suffix=NONE
1084 program_transform_name=s,x,x,
1085 silent=
1086 site=
1087 srcdir=
1088 verbose=
1089 x_includes=NONE
1090 x_libraries=NONE
1091
1092 # Installation directory options.
1093 # These are left unexpanded so users can "make install exec_prefix=/foo"
1094 # and all the variables that are supposed to be based on exec_prefix
1095 # by default will actually change.
1096 # Use braces instead of parens because sh, perl, etc. also accept them.
1097 # (The list follows the same order as the GNU Coding Standards.)
1098 bindir='${exec_prefix}/bin'
1099 sbindir='${exec_prefix}/sbin'
1100 libexecdir='${exec_prefix}/libexec'
1101 datarootdir='${prefix}/share'
1102 datadir='${datarootdir}'
1103 sysconfdir='${prefix}/etc'
1104 sharedstatedir='${prefix}/com'
1105 localstatedir='${prefix}/var'
1106 includedir='${prefix}/include'
1107 oldincludedir='/usr/include'
1108 docdir='${datarootdir}/doc/${PACKAGE}'
1109 infodir='${datarootdir}/info'
1110 htmldir='${docdir}'
1111 dvidir='${docdir}'
1112 pdfdir='${docdir}'
1113 psdir='${docdir}'
1114 libdir='${exec_prefix}/lib'
1115 localedir='${datarootdir}/locale'
1116 mandir='${datarootdir}/man'
1117
1118 ac_prev=
1119 ac_dashdash=
1120 for ac_option
1121 do
1122   # If the previous option needs an argument, assign it.
1123   if test -n "$ac_prev"; then
1124     eval $ac_prev=\$ac_option
1125     ac_prev=
1126     continue
1127   fi
1128
1129   case $ac_option in
1130   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1131   *)    ac_optarg=yes ;;
1132   esac
1133
1134   # Accept the important Cygnus configure options, so we can diagnose typos.
1135
1136   case $ac_dashdash$ac_option in
1137   --)
1138     ac_dashdash=yes ;;
1139
1140   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1141     ac_prev=bindir ;;
1142   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1143     bindir=$ac_optarg ;;
1144
1145   -build | --build | --buil | --bui | --bu)
1146     ac_prev=build_alias ;;
1147   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1148     build_alias=$ac_optarg ;;
1149
1150   -cache-file | --cache-file | --cache-fil | --cache-fi \
1151   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1152     ac_prev=cache_file ;;
1153   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1154   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1155     cache_file=$ac_optarg ;;
1156
1157   --config-cache | -C)
1158     cache_file=config.cache ;;
1159
1160   -datadir | --datadir | --datadi | --datad)
1161     ac_prev=datadir ;;
1162   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1163     datadir=$ac_optarg ;;
1164
1165   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1166   | --dataroo | --dataro | --datar)
1167     ac_prev=datarootdir ;;
1168   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1169   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1170     datarootdir=$ac_optarg ;;
1171
1172   -disable-* | --disable-*)
1173     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1174     # Reject names that are not valid shell variable names.
1175     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1177    { (exit 1); exit 1; }; }
1178     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1179     eval enable_$ac_feature=no ;;
1180
1181   -docdir | --docdir | --docdi | --doc | --do)
1182     ac_prev=docdir ;;
1183   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1184     docdir=$ac_optarg ;;
1185
1186   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1187     ac_prev=dvidir ;;
1188   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1189     dvidir=$ac_optarg ;;
1190
1191   -enable-* | --enable-*)
1192     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1193     # Reject names that are not valid shell variable names.
1194     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1196    { (exit 1); exit 1; }; }
1197     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1198     eval enable_$ac_feature=\$ac_optarg ;;
1199
1200   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1201   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1202   | --exec | --exe | --ex)
1203     ac_prev=exec_prefix ;;
1204   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1205   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1206   | --exec=* | --exe=* | --ex=*)
1207     exec_prefix=$ac_optarg ;;
1208
1209   -gas | --gas | --ga | --g)
1210     # Obsolete; use --with-gas.
1211     with_gas=yes ;;
1212
1213   -help | --help | --hel | --he | -h)
1214     ac_init_help=long ;;
1215   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1216     ac_init_help=recursive ;;
1217   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1218     ac_init_help=short ;;
1219
1220   -host | --host | --hos | --ho)
1221     ac_prev=host_alias ;;
1222   -host=* | --host=* | --hos=* | --ho=*)
1223     host_alias=$ac_optarg ;;
1224
1225   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1226     ac_prev=htmldir ;;
1227   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1228   | --ht=*)
1229     htmldir=$ac_optarg ;;
1230
1231   -includedir | --includedir | --includedi | --included | --include \
1232   | --includ | --inclu | --incl | --inc)
1233     ac_prev=includedir ;;
1234   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1235   | --includ=* | --inclu=* | --incl=* | --inc=*)
1236     includedir=$ac_optarg ;;
1237
1238   -infodir | --infodir | --infodi | --infod | --info | --inf)
1239     ac_prev=infodir ;;
1240   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1241     infodir=$ac_optarg ;;
1242
1243   -libdir | --libdir | --libdi | --libd)
1244     ac_prev=libdir ;;
1245   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1246     libdir=$ac_optarg ;;
1247
1248   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1249   | --libexe | --libex | --libe)
1250     ac_prev=libexecdir ;;
1251   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1252   | --libexe=* | --libex=* | --libe=*)
1253     libexecdir=$ac_optarg ;;
1254
1255   -localedir | --localedir | --localedi | --localed | --locale)
1256     ac_prev=localedir ;;
1257   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1258     localedir=$ac_optarg ;;
1259
1260   -localstatedir | --localstatedir | --localstatedi | --localstated \
1261   | --localstate | --localstat | --localsta | --localst | --locals)
1262     ac_prev=localstatedir ;;
1263   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1264   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1265     localstatedir=$ac_optarg ;;
1266
1267   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1268     ac_prev=mandir ;;
1269   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1270     mandir=$ac_optarg ;;
1271
1272   -nfp | --nfp | --nf)
1273     # Obsolete; use --without-fp.
1274     with_fp=no ;;
1275
1276   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1277   | --no-cr | --no-c | -n)
1278     no_create=yes ;;
1279
1280   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1281   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1282     no_recursion=yes ;;
1283
1284   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1285   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1286   | --oldin | --oldi | --old | --ol | --o)
1287     ac_prev=oldincludedir ;;
1288   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1289   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1290   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1291     oldincludedir=$ac_optarg ;;
1292
1293   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1294     ac_prev=prefix ;;
1295   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1296     prefix=$ac_optarg ;;
1297
1298   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1299   | --program-pre | --program-pr | --program-p)
1300     ac_prev=program_prefix ;;
1301   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1302   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1303     program_prefix=$ac_optarg ;;
1304
1305   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1306   | --program-suf | --program-su | --program-s)
1307     ac_prev=program_suffix ;;
1308   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1309   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1310     program_suffix=$ac_optarg ;;
1311
1312   -program-transform-name | --program-transform-name \
1313   | --program-transform-nam | --program-transform-na \
1314   | --program-transform-n | --program-transform- \
1315   | --program-transform | --program-transfor \
1316   | --program-transfo | --program-transf \
1317   | --program-trans | --program-tran \
1318   | --progr-tra | --program-tr | --program-t)
1319     ac_prev=program_transform_name ;;
1320   -program-transform-name=* | --program-transform-name=* \
1321   | --program-transform-nam=* | --program-transform-na=* \
1322   | --program-transform-n=* | --program-transform-=* \
1323   | --program-transform=* | --program-transfor=* \
1324   | --program-transfo=* | --program-transf=* \
1325   | --program-trans=* | --program-tran=* \
1326   | --progr-tra=* | --program-tr=* | --program-t=*)
1327     program_transform_name=$ac_optarg ;;
1328
1329   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1330     ac_prev=pdfdir ;;
1331   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1332     pdfdir=$ac_optarg ;;
1333
1334   -psdir | --psdir | --psdi | --psd | --ps)
1335     ac_prev=psdir ;;
1336   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1337     psdir=$ac_optarg ;;
1338
1339   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1340   | -silent | --silent | --silen | --sile | --sil)
1341     silent=yes ;;
1342
1343   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1344     ac_prev=sbindir ;;
1345   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1346   | --sbi=* | --sb=*)
1347     sbindir=$ac_optarg ;;
1348
1349   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1350   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1351   | --sharedst | --shareds | --shared | --share | --shar \
1352   | --sha | --sh)
1353     ac_prev=sharedstatedir ;;
1354   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1355   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1356   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1357   | --sha=* | --sh=*)
1358     sharedstatedir=$ac_optarg ;;
1359
1360   -site | --site | --sit)
1361     ac_prev=site ;;
1362   -site=* | --site=* | --sit=*)
1363     site=$ac_optarg ;;
1364
1365   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1366     ac_prev=srcdir ;;
1367   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1368     srcdir=$ac_optarg ;;
1369
1370   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1371   | --syscon | --sysco | --sysc | --sys | --sy)
1372     ac_prev=sysconfdir ;;
1373   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1374   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1375     sysconfdir=$ac_optarg ;;
1376
1377   -target | --target | --targe | --targ | --tar | --ta | --t)
1378     ac_prev=target_alias ;;
1379   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1380     target_alias=$ac_optarg ;;
1381
1382   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1383     verbose=yes ;;
1384
1385   -version | --version | --versio | --versi | --vers | -V)
1386     ac_init_version=: ;;
1387
1388   -with-* | --with-*)
1389     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1390     # Reject names that are not valid shell variable names.
1391     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1392       { echo "$as_me: error: invalid package name: $ac_package" >&2
1393    { (exit 1); exit 1; }; }
1394     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1395     eval with_$ac_package=\$ac_optarg ;;
1396
1397   -without-* | --without-*)
1398     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1399     # Reject names that are not valid shell variable names.
1400     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1401       { echo "$as_me: error: invalid package name: $ac_package" >&2
1402    { (exit 1); exit 1; }; }
1403     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1404     eval with_$ac_package=no ;;
1405
1406   --x)
1407     # Obsolete; use --with-x.
1408     with_x=yes ;;
1409
1410   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1411   | --x-incl | --x-inc | --x-in | --x-i)
1412     ac_prev=x_includes ;;
1413   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1414   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1415     x_includes=$ac_optarg ;;
1416
1417   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1418   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1419     ac_prev=x_libraries ;;
1420   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1421   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1422     x_libraries=$ac_optarg ;;
1423
1424   -*) { echo "$as_me: error: unrecognized option: $ac_option
1425 Try \`$0 --help' for more information." >&2
1426    { (exit 1); exit 1; }; }
1427     ;;
1428
1429   *=*)
1430     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1431     # Reject names that are not valid shell variable names.
1432     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1433       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1434    { (exit 1); exit 1; }; }
1435     eval $ac_envvar=\$ac_optarg
1436     export $ac_envvar ;;
1437
1438   *)
1439     # FIXME: should be removed in autoconf 3.0.
1440     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1441     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1442       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1443     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1444     ;;
1445
1446   esac
1447 done
1448
1449 if test -n "$ac_prev"; then
1450   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1451   { echo "$as_me: error: missing argument to $ac_option" >&2
1452    { (exit 1); exit 1; }; }
1453 fi
1454
1455 # Be sure to have absolute directory names.
1456 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1457                 datadir sysconfdir sharedstatedir localstatedir includedir \
1458                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1459                 libdir localedir mandir
1460 do
1461   eval ac_val=\$$ac_var
1462   case $ac_val in
1463     [\\/$]* | ?:[\\/]* )  continue;;
1464     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1465   esac
1466   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1467    { (exit 1); exit 1; }; }
1468 done
1469
1470 # There might be people who depend on the old broken behavior: `$host'
1471 # used to hold the argument of --host etc.
1472 # FIXME: To remove some day.
1473 build=$build_alias
1474 host=$host_alias
1475 target=$target_alias
1476
1477 # FIXME: To remove some day.
1478 if test "x$host_alias" != x; then
1479   if test "x$build_alias" = x; then
1480     cross_compiling=maybe
1481     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1482     If a cross compiler is detected then cross compile mode will be used." >&2
1483   elif test "x$build_alias" != "x$host_alias"; then
1484     cross_compiling=yes
1485   fi
1486 fi
1487
1488 ac_tool_prefix=
1489 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1490
1491 test "$silent" = yes && exec 6>/dev/null
1492
1493
1494 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1495 ac_ls_di=`ls -di .` &&
1496 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1497   { echo "$as_me: error: Working directory cannot be determined" >&2
1498    { (exit 1); exit 1; }; }
1499 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1500   { echo "$as_me: error: pwd does not report name of working directory" >&2
1501    { (exit 1); exit 1; }; }
1502
1503
1504 # Find the source files, if location was not specified.
1505 if test -z "$srcdir"; then
1506   ac_srcdir_defaulted=yes
1507   # Try the directory containing this script, then the parent directory.
1508   ac_confdir=`$as_dirname -- "$0" ||
1509 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1510          X"$0" : 'X\(//\)[^/]' \| \
1511          X"$0" : 'X\(//\)$' \| \
1512          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1513 echo X"$0" |
1514     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\/\)[^/].*/{
1519             s//\1/
1520             q
1521           }
1522           /^X\(\/\/\)$/{
1523             s//\1/
1524             q
1525           }
1526           /^X\(\/\).*/{
1527             s//\1/
1528             q
1529           }
1530           s/.*/./; q'`
1531   srcdir=$ac_confdir
1532   if test ! -r "$srcdir/$ac_unique_file"; then
1533     srcdir=..
1534   fi
1535 else
1536   ac_srcdir_defaulted=no
1537 fi
1538 if test ! -r "$srcdir/$ac_unique_file"; then
1539   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1540   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1541    { (exit 1); exit 1; }; }
1542 fi
1543 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1544 ac_abs_confdir=`(
1545         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1546    { (exit 1); exit 1; }; }
1547         pwd)`
1548 # When building in place, set srcdir=.
1549 if test "$ac_abs_confdir" = "$ac_pwd"; then
1550   srcdir=.
1551 fi
1552 # Remove unnecessary trailing slashes from srcdir.
1553 # Double slashes in file names in object file debugging info
1554 # mess up M-x gdb in Emacs.
1555 case $srcdir in
1556 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1557 esac
1558 for ac_var in $ac_precious_vars; do
1559   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1560   eval ac_env_${ac_var}_value=\$${ac_var}
1561   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1562   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1563 done
1564
1565 #
1566 # Report the --help message.
1567 #
1568 if test "$ac_init_help" = "long"; then
1569   # Omit some internal or obsolete options to make the list less imposing.
1570   # This message is too long to be a string in the A/UX 3.1 sh.
1571   cat <<_ACEOF
1572 \`configure' configures this package to adapt to many kinds of systems.
1573
1574 Usage: $0 [OPTION]... [VAR=VALUE]...
1575
1576 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1577 VAR=VALUE.  See below for descriptions of some of the useful variables.
1578
1579 Defaults for the options are specified in brackets.
1580
1581 Configuration:
1582   -h, --help              display this help and exit
1583       --help=short        display options specific to this package
1584       --help=recursive    display the short help of all the included packages
1585   -V, --version           display version information and exit
1586   -q, --quiet, --silent   do not print \`checking...' messages
1587       --cache-file=FILE   cache test results in FILE [disabled]
1588   -C, --config-cache      alias for \`--cache-file=config.cache'
1589   -n, --no-create         do not create output files
1590       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1591
1592 Installation directories:
1593   --prefix=PREFIX         install architecture-independent files in PREFIX
1594                           [$ac_default_prefix]
1595   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1596                           [PREFIX]
1597
1598 By default, \`make install' will install all the files in
1599 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1600 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1601 for instance \`--prefix=\$HOME'.
1602
1603 For better control, use the options below.
1604
1605 Fine tuning of the installation directories:
1606   --bindir=DIR           user executables [EPREFIX/bin]
1607   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1608   --libexecdir=DIR       program executables [EPREFIX/libexec]
1609   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1610   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1611   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1612   --libdir=DIR           object code libraries [EPREFIX/lib]
1613   --includedir=DIR       C header files [PREFIX/include]
1614   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1615   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1616   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1617   --infodir=DIR          info documentation [DATAROOTDIR/info]
1618   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1619   --mandir=DIR           man documentation [DATAROOTDIR/man]
1620   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1621   --htmldir=DIR          html documentation [DOCDIR]
1622   --dvidir=DIR           dvi documentation [DOCDIR]
1623   --pdfdir=DIR           pdf documentation [DOCDIR]
1624   --psdir=DIR            ps documentation [DOCDIR]
1625 _ACEOF
1626
1627   cat <<\_ACEOF
1628
1629 X features:
1630   --x-includes=DIR    X include files are in DIR
1631   --x-libraries=DIR   X library files are in DIR
1632
1633 System types:
1634   --build=BUILD     configure for building on BUILD [guessed]
1635   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1636 _ACEOF
1637 fi
1638
1639 if test -n "$ac_init_help"; then
1640
1641   cat <<\_ACEOF
1642
1643 Optional Features:
1644   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1645   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1646   --enable-libtool        enable building using GNU libtool [default=yes]
1647   --enable-shared[=PKGS]  build shared libraries [default=yes]
1648   --enable-static[=PKGS]  build static libraries [default=no]
1649   --enable-fast-install[=PKGS]
1650                           optimize for fast installation [default=yes]
1651   --disable-libtool-lock  avoid locking (might break parallel builds)
1652   --enable-includes       enable installing of include files [default=no]
1653   --disable-nls           do not use Native Language Support
1654   --disable-rpath         do not hardcode runtime library paths
1655   --enable-gnome          enable build of bgnome-console GUI [default=no]
1656   --enable-bat            enable build of bat Qt4 GUI [default=no]
1657   --enable-bwx-console    enable build of wxWidgets console [default=no]
1658   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1659                           KDE [default=no]
1660   --enable-smartalloc     enable smartalloc debugging support [default=no]
1661   --enable-lockmgr        enable lock manager support [default=no]
1662   --enable-static-tools   enable static tape tools [default=no]
1663   --enable-static-fd      enable static File daemon [default=no]
1664   --enable-static-sd      enable static Storage daemon [default=no]
1665   --enable-static-dir     enable static Director [default=no]
1666   --enable-static-cons    enable static Console [default=no]
1667   --enable-client-only    build client (File daemon) only [default=no]
1668   --enable-build-dird     enable building of dird (Director) [default=yes]
1669   --enable-build-stored   enable building of stored (Storage daemon)
1670                           [default=yes]
1671   --disable-conio         disable conio support [default=no]
1672   --enable-ipv6           enable ipv6 support [default=yes]
1673   --disable-readline      disable readline support [default=yes]
1674   --enable-batch-insert   enable the DB batch insert code [default=no]
1675   --disable-largefile     omit support for large files
1676   --disable-acl           disable acl support [default=auto]
1677   --disable-xattr         disable xattr support [default=auto]
1678
1679 Optional Packages:
1680   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1681   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1682   --with-pic              try to use only PIC/non-PIC objects [default=use
1683                           both]
1684   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1685   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1686   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1687   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1688   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1689   --without-libintl-prefix     don't search for libintl in includedir and libdir
1690   --with-included-gettext use the GNU gettext library included here
1691   --with-qwt[=DIR]        specify qwt library directory
1692   --with-readline[=DIR]   specify readline library directory
1693   --with-python[=DIR]     Include Python support. DIR is the Python base
1694                           install directory, default is to search through a
1695                           number of common places for the Python files.
1696   --with-tcp-wrappers[=DIR]
1697                           enable tcpwrappers support
1698   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1699   --with-working-dir=PATH specify path of Bacula working directory
1700   --with-archivedir=PATH  specify path of SD archive directory
1701   --with-basename=RESNAME specify base resource name for daemons
1702   --with-hostname=RESNAME specify host name for daemons
1703   --with-scriptdir=PATH   specify path of Bacula scripts directory
1704   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1705   --with-logdir=PATH      specify path of Bacula logs directory
1706   --with-plugindir=PATH   specify path of Bacula plugins directory
1707   --with-dump-email=EMAIL dump email address
1708   --with-job-email=EMAIL  job output email address
1709   --with-smtp-host=HOST   SMTP mail host address
1710   --with-pid-dir=PATH     specify location of Bacula pid files
1711   --with-subsys-dir=PATH  specify location of Bacula subsys file
1712   --with-baseport=PORT    specify base port address for daemons
1713   --with-dir-password=PASSWORD
1714                           specify Director's password
1715   --with-fd-password=PASSWORD
1716                           specify Client's password
1717   --with-sd-password=PASSWORD
1718                           specify Storage daemon's password
1719   --with-mon-dir-password=PASSWORD
1720                           specify Director's password used by the monitor
1721   --with-mon-fd-password=PASSWORD
1722                           specify Client's password used by the monitor
1723   --with-mon-sd-password=PASSWORD
1724                           specify Storage daemon's password used by the
1725                           monitor
1726   --with-db-name=DBNAME   specify database name [default=bacula]
1727   --with-db-user=UNAME    specify database user [default=bacula]
1728   --with-db-password=PWD  specify database password [default=*none*]
1729   --with-db-port=DBPORT   specify a database port [default=null]
1730   --with-dir-user=USER    specify user for Director daemon
1731   --with-dir-group=GROUP  specify group for Director daemon
1732   --with-sd-user=USER     specify user for Storage daemon
1733   --with-sd-group=GROUP   specify group for Storage daemon
1734   --with-fd-user=USER     specify user for File daemon
1735   --with-fd-group=GROUP   specify group for File daemon
1736   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1737   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1738                           base install directory, [default=/usr/local/pgsql]
1739   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1740                           directory, default is to search through a number of
1741                           common places for the MySQL files.
1742   --with-embedded-mysql[=DIR]
1743                           Include MySQL support. DIR is the MySQL base install
1744                           directory, default is to search through a number of
1745                           common places for the MySQL files.
1746   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1747                           install directory, default is to search through a
1748                           number of common places for the SQLite3 files.
1749   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1750                           install directory, default is to search through a
1751                           number of common places for the SQLite files.
1752   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1753                           directory, default is to search through a number of
1754                           common places for the DBI files.
1755   --with-dbi-driver[=DRIVER]
1756                           Suport for DBI driver. DRIVER is the one DBI driver
1757                           like Mysql, Postgresql, others. Default is to not
1758                           configure any driver.
1759   --with-x                use the X Window System
1760
1761 Some influential environment variables:
1762   CC          C compiler command
1763   CFLAGS      C compiler flags
1764   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1765               nonstandard directory <lib dir>
1766   LIBS        libraries to pass to the linker, e.g. -l<library>
1767   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1768               you have headers in a nonstandard directory <include dir>
1769   CXX         C++ compiler command
1770   CXXFLAGS    C++ compiler flags
1771   CPP         C preprocessor
1772   WXCONFIG    wx-config command. On some systems, you must set it to
1773               wx-config-2.6 to use wxWidgets 2.6.
1774   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1775   CXXCPP      C++ preprocessor
1776   XMKMF       Path to xmkmf, Makefile generator for X Window System
1777
1778 Use these variables to override the choices made by `configure' or to help
1779 it to find libraries and programs with nonstandard names/locations.
1780
1781 _ACEOF
1782 ac_status=$?
1783 fi
1784
1785 if test "$ac_init_help" = "recursive"; then
1786   # If there are subdirs, report their specific --help.
1787   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1788     test -d "$ac_dir" || continue
1789     ac_builddir=.
1790
1791 case "$ac_dir" in
1792 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1793 *)
1794   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1795   # A ".." for each directory in $ac_dir_suffix.
1796   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1797   case $ac_top_builddir_sub in
1798   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1799   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1800   esac ;;
1801 esac
1802 ac_abs_top_builddir=$ac_pwd
1803 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1804 # for backward compatibility:
1805 ac_top_builddir=$ac_top_build_prefix
1806
1807 case $srcdir in
1808   .)  # We are building in place.
1809     ac_srcdir=.
1810     ac_top_srcdir=$ac_top_builddir_sub
1811     ac_abs_top_srcdir=$ac_pwd ;;
1812   [\\/]* | ?:[\\/]* )  # Absolute name.
1813     ac_srcdir=$srcdir$ac_dir_suffix;
1814     ac_top_srcdir=$srcdir
1815     ac_abs_top_srcdir=$srcdir ;;
1816   *) # Relative name.
1817     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1818     ac_top_srcdir=$ac_top_build_prefix$srcdir
1819     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1820 esac
1821 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1822
1823     cd "$ac_dir" || { ac_status=$?; continue; }
1824     # Check for guested configure.
1825     if test -f "$ac_srcdir/configure.gnu"; then
1826       echo &&
1827       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1828     elif test -f "$ac_srcdir/configure"; then
1829       echo &&
1830       $SHELL "$ac_srcdir/configure" --help=recursive
1831     else
1832       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1833     fi || ac_status=$?
1834     cd "$ac_pwd" || { ac_status=$?; break; }
1835   done
1836 fi
1837
1838 test -n "$ac_init_help" && exit $ac_status
1839 if $ac_init_version; then
1840   cat <<\_ACEOF
1841 configure
1842 generated by GNU Autoconf 2.61
1843
1844 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1845 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1846 This configure script is free software; the Free Software Foundation
1847 gives unlimited permission to copy, distribute and modify it.
1848 _ACEOF
1849   exit
1850 fi
1851 cat >config.log <<_ACEOF
1852 This file contains any messages produced by compilers while
1853 running configure, to aid debugging if configure makes a mistake.
1854
1855 It was created by $as_me, which was
1856 generated by GNU Autoconf 2.61.  Invocation command line was
1857
1858   $ $0 $@
1859
1860 _ACEOF
1861 exec 5>>config.log
1862 {
1863 cat <<_ASUNAME
1864 ## --------- ##
1865 ## Platform. ##
1866 ## --------- ##
1867
1868 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1869 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1870 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1871 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1872 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1873
1874 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1875 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1876
1877 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1878 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1879 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1880 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1881 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1882 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1883 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1884
1885 _ASUNAME
1886
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 for as_dir in $PATH
1889 do
1890   IFS=$as_save_IFS
1891   test -z "$as_dir" && as_dir=.
1892   echo "PATH: $as_dir"
1893 done
1894 IFS=$as_save_IFS
1895
1896 } >&5
1897
1898 cat >&5 <<_ACEOF
1899
1900
1901 ## ----------- ##
1902 ## Core tests. ##
1903 ## ----------- ##
1904
1905 _ACEOF
1906
1907
1908 # Keep a trace of the command line.
1909 # Strip out --no-create and --no-recursion so they do not pile up.
1910 # Strip out --silent because we don't want to record it for future runs.
1911 # Also quote any args containing shell meta-characters.
1912 # Make two passes to allow for proper duplicate-argument suppression.
1913 ac_configure_args=
1914 ac_configure_args0=
1915 ac_configure_args1=
1916 ac_must_keep_next=false
1917 for ac_pass in 1 2
1918 do
1919   for ac_arg
1920   do
1921     case $ac_arg in
1922     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1923     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1924     | -silent | --silent | --silen | --sile | --sil)
1925       continue ;;
1926     *\'*)
1927       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1928     esac
1929     case $ac_pass in
1930     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1931     2)
1932       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1933       if test $ac_must_keep_next = true; then
1934         ac_must_keep_next=false # Got value, back to normal.
1935       else
1936         case $ac_arg in
1937           *=* | --config-cache | -C | -disable-* | --disable-* \
1938           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1939           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1940           | -with-* | --with-* | -without-* | --without-* | --x)
1941             case "$ac_configure_args0 " in
1942               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1943             esac
1944             ;;
1945           -* ) ac_must_keep_next=true ;;
1946         esac
1947       fi
1948       ac_configure_args="$ac_configure_args '$ac_arg'"
1949       ;;
1950     esac
1951   done
1952 done
1953 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1954 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1955
1956 # When interrupted or exit'd, cleanup temporary files, and complete
1957 # config.log.  We remove comments because anyway the quotes in there
1958 # would cause problems or look ugly.
1959 # WARNING: Use '\'' to represent an apostrophe within the trap.
1960 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1961 trap 'exit_status=$?
1962   # Save into config.log some information that might help in debugging.
1963   {
1964     echo
1965
1966     cat <<\_ASBOX
1967 ## ---------------- ##
1968 ## Cache variables. ##
1969 ## ---------------- ##
1970 _ASBOX
1971     echo
1972     # The following way of writing the cache mishandles newlines in values,
1973 (
1974   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1975     eval ac_val=\$$ac_var
1976     case $ac_val in #(
1977     *${as_nl}*)
1978       case $ac_var in #(
1979       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1980 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1981       esac
1982       case $ac_var in #(
1983       _ | IFS | as_nl) ;; #(
1984       *) $as_unset $ac_var ;;
1985       esac ;;
1986     esac
1987   done
1988   (set) 2>&1 |
1989     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1990     *${as_nl}ac_space=\ *)
1991       sed -n \
1992         "s/'\''/'\''\\\\'\'''\''/g;
1993           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1994       ;; #(
1995     *)
1996       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1997       ;;
1998     esac |
1999     sort
2000 )
2001     echo
2002
2003     cat <<\_ASBOX
2004 ## ----------------- ##
2005 ## Output variables. ##
2006 ## ----------------- ##
2007 _ASBOX
2008     echo
2009     for ac_var in $ac_subst_vars
2010     do
2011       eval ac_val=\$$ac_var
2012       case $ac_val in
2013       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014       esac
2015       echo "$ac_var='\''$ac_val'\''"
2016     done | sort
2017     echo
2018
2019     if test -n "$ac_subst_files"; then
2020       cat <<\_ASBOX
2021 ## ------------------- ##
2022 ## File substitutions. ##
2023 ## ------------------- ##
2024 _ASBOX
2025       echo
2026       for ac_var in $ac_subst_files
2027       do
2028         eval ac_val=\$$ac_var
2029         case $ac_val in
2030         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031         esac
2032         echo "$ac_var='\''$ac_val'\''"
2033       done | sort
2034       echo
2035     fi
2036
2037     if test -s confdefs.h; then
2038       cat <<\_ASBOX
2039 ## ----------- ##
2040 ## confdefs.h. ##
2041 ## ----------- ##
2042 _ASBOX
2043       echo
2044       cat confdefs.h
2045       echo
2046     fi
2047     test "$ac_signal" != 0 &&
2048       echo "$as_me: caught signal $ac_signal"
2049     echo "$as_me: exit $exit_status"
2050   } >&5
2051   rm -f core *.core core.conftest.* &&
2052     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2053     exit $exit_status
2054 ' 0
2055 for ac_signal in 1 2 13 15; do
2056   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2057 done
2058 ac_signal=0
2059
2060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2061 rm -f -r conftest* confdefs.h
2062
2063 # Predefined preprocessor variables.
2064
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_NAME "$PACKAGE_NAME"
2067 _ACEOF
2068
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2072 _ACEOF
2073
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2077 _ACEOF
2078
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_STRING "$PACKAGE_STRING"
2082 _ACEOF
2083
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2087 _ACEOF
2088
2089
2090 # Let the site file select an alternate cache file if it wants to.
2091 # Prefer explicitly selected file to automatically selected ones.
2092 if test -n "$CONFIG_SITE"; then
2093   set x "$CONFIG_SITE"
2094 elif test "x$prefix" != xNONE; then
2095   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2096 else
2097   set x "$ac_default_prefix/share/config.site" \
2098         "$ac_default_prefix/etc/config.site"
2099 fi
2100 shift
2101 for ac_site_file
2102 do
2103   if test -r "$ac_site_file"; then
2104     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2105 echo "$as_me: loading site script $ac_site_file" >&6;}
2106     sed 's/^/| /' "$ac_site_file" >&5
2107     . "$ac_site_file"
2108   fi
2109 done
2110
2111 if test -r "$cache_file"; then
2112   # Some versions of bash will fail to source /dev/null (special
2113   # files actually), so we avoid doing that.
2114   if test -f "$cache_file"; then
2115     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2116 echo "$as_me: loading cache $cache_file" >&6;}
2117     case $cache_file in
2118       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2119       *)                      . "./$cache_file";;
2120     esac
2121   fi
2122 else
2123   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2124 echo "$as_me: creating cache $cache_file" >&6;}
2125   >$cache_file
2126 fi
2127
2128 # Check that the precious variables saved in the cache have kept the same
2129 # value.
2130 ac_cache_corrupted=false
2131 for ac_var in $ac_precious_vars; do
2132   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2133   eval ac_new_set=\$ac_env_${ac_var}_set
2134   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2135   eval ac_new_val=\$ac_env_${ac_var}_value
2136   case $ac_old_set,$ac_new_set in
2137     set,)
2138       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2139 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2140       ac_cache_corrupted=: ;;
2141     ,set)
2142       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2143 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2144       ac_cache_corrupted=: ;;
2145     ,);;
2146     *)
2147       if test "x$ac_old_val" != "x$ac_new_val"; then
2148         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2149 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2150         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2151 echo "$as_me:   former value:  $ac_old_val" >&2;}
2152         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2153 echo "$as_me:   current value: $ac_new_val" >&2;}
2154         ac_cache_corrupted=:
2155       fi;;
2156   esac
2157   # Pass precious variables to config.status.
2158   if test "$ac_new_set" = set; then
2159     case $ac_new_val in
2160     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2161     *) ac_arg=$ac_var=$ac_new_val ;;
2162     esac
2163     case " $ac_configure_args " in
2164       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2165       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2166     esac
2167   fi
2168 done
2169 if $ac_cache_corrupted; then
2170   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2171 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2172   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2173 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2174    { (exit 1); exit 1; }; }
2175 fi
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193 ac_ext=c
2194 ac_cpp='$CPP $CPPFLAGS'
2195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2198
2199
2200 BUILD_DIR=`pwd`
2201 cd ..
2202 TOP_DIR=`pwd`
2203 cd ${BUILD_DIR}
2204
2205
2206 ac_aux_dir=
2207 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2208   if test -f "$ac_dir/install-sh"; then
2209     ac_aux_dir=$ac_dir
2210     ac_install_sh="$ac_aux_dir/install-sh -c"
2211     break
2212   elif test -f "$ac_dir/install.sh"; then
2213     ac_aux_dir=$ac_dir
2214     ac_install_sh="$ac_aux_dir/install.sh -c"
2215     break
2216   elif test -f "$ac_dir/shtool"; then
2217     ac_aux_dir=$ac_dir
2218     ac_install_sh="$ac_aux_dir/shtool install -c"
2219     break
2220   fi
2221 done
2222 if test -z "$ac_aux_dir"; then
2223   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2224 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2225    { (exit 1); exit 1; }; }
2226 fi
2227
2228 # These three variables are undocumented and unsupported,
2229 # and are intended to be withdrawn in a future Autoconf release.
2230 # They can cause serious problems if a builder's source tree is in a directory
2231 # whose full name contains unusual characters.
2232 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2233 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2234 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2235
2236
2237 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2238
2239
2240 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2241 WIN32MAINDIR=${BUILD_DIR}
2242 WIN32TOPDIR=${TOP_DIR}
2243
2244
2245
2246
2247
2248
2249
2250 for ac_prog in true
2251 do
2252   # Extract the first word of "$ac_prog", so it can be a program name with args.
2253 set dummy $ac_prog; ac_word=$2
2254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2256 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2257   echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259   case $TRUEPRG in
2260   [\\/]* | ?:[\\/]*)
2261   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2262   ;;
2263   *)
2264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH
2266 do
2267   IFS=$as_save_IFS
2268   test -z "$as_dir" && as_dir=.
2269   for ac_exec_ext in '' $ac_executable_extensions; do
2270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273     break 2
2274   fi
2275 done
2276 done
2277 IFS=$as_save_IFS
2278
2279   ;;
2280 esac
2281 fi
2282 TRUEPRG=$ac_cv_path_TRUEPRG
2283 if test -n "$TRUEPRG"; then
2284   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2285 echo "${ECHO_T}$TRUEPRG" >&6; }
2286 else
2287   { echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6; }
2289 fi
2290
2291
2292   test -n "$TRUEPRG" && break
2293 done
2294 test -n "$TRUEPRG" || TRUEPRG=":"
2295
2296 for ac_prog in false
2297 do
2298   # Extract the first word of "$ac_prog", so it can be a program name with args.
2299 set dummy $ac_prog; ac_word=$2
2300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2302 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   case $FALSEPRG in
2306   [\\/]* | ?:[\\/]*)
2307   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2308   ;;
2309   *)
2310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2312 do
2313   IFS=$as_save_IFS
2314   test -z "$as_dir" && as_dir=.
2315   for ac_exec_ext in '' $ac_executable_extensions; do
2316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2317     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319     break 2
2320   fi
2321 done
2322 done
2323 IFS=$as_save_IFS
2324
2325   ;;
2326 esac
2327 fi
2328 FALSEPRG=$ac_cv_path_FALSEPRG
2329 if test -n "$FALSEPRG"; then
2330   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2331 echo "${ECHO_T}$FALSEPRG" >&6; }
2332 else
2333   { echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6; }
2335 fi
2336
2337
2338   test -n "$FALSEPRG" && break
2339 done
2340 test -n "$FALSEPRG" || FALSEPRG=":"
2341
2342
2343
2344 post_host=
2345 if test "x$BACULA" != x; then
2346    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2347 fi
2348 BACULA=${BACULA:-Bacula}
2349 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2350 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2351 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2352 echo "configuring for ${BACULA} $VERSION ($DATE)"
2353
2354
2355 ac_ext=c
2356 ac_cpp='$CPP $CPPFLAGS'
2357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360 if test -n "$ac_tool_prefix"; then
2361   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2362 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2365 if test "${ac_cv_prog_CC+set}" = set; then
2366   echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368   if test -n "$CC"; then
2369   ac_cv_prog_CC="$CC" # Let the user override the test.
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2373 do
2374   IFS=$as_save_IFS
2375   test -z "$as_dir" && as_dir=.
2376   for ac_exec_ext in '' $ac_executable_extensions; do
2377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2378     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380     break 2
2381   fi
2382 done
2383 done
2384 IFS=$as_save_IFS
2385
2386 fi
2387 fi
2388 CC=$ac_cv_prog_CC
2389 if test -n "$CC"; then
2390   { echo "$as_me:$LINENO: result: $CC" >&5
2391 echo "${ECHO_T}$CC" >&6; }
2392 else
2393   { echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6; }
2395 fi
2396
2397
2398 fi
2399 if test -z "$ac_cv_prog_CC"; then
2400   ac_ct_CC=$CC
2401   # Extract the first word of "gcc", so it can be a program name with args.
2402 set dummy gcc; ac_word=$2
2403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2406   echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408   if test -n "$ac_ct_CC"; then
2409   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414   IFS=$as_save_IFS
2415   test -z "$as_dir" && as_dir=.
2416   for ac_exec_ext in '' $ac_executable_extensions; do
2417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2418     ac_cv_prog_ac_ct_CC="gcc"
2419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420     break 2
2421   fi
2422 done
2423 done
2424 IFS=$as_save_IFS
2425
2426 fi
2427 fi
2428 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2429 if test -n "$ac_ct_CC"; then
2430   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2431 echo "${ECHO_T}$ac_ct_CC" >&6; }
2432 else
2433   { echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6; }
2435 fi
2436
2437   if test "x$ac_ct_CC" = x; then
2438     CC=""
2439   else
2440     case $cross_compiling:$ac_tool_warned in
2441 yes:)
2442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2443 whose name does not start with the host triplet.  If you think this
2444 configuration is useful to you, please write to autoconf@gnu.org." >&5
2445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2446 whose name does not start with the host triplet.  If you think this
2447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2448 ac_tool_warned=yes ;;
2449 esac
2450     CC=$ac_ct_CC
2451   fi
2452 else
2453   CC="$ac_cv_prog_CC"
2454 fi
2455
2456 if test -z "$CC"; then
2457           if test -n "$ac_tool_prefix"; then
2458     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}cc; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_CC+set}" = set; then
2463   echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465   if test -n "$CC"; then
2466   ac_cv_prog_CC="$CC" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471   IFS=$as_save_IFS
2472   test -z "$as_dir" && as_dir=.
2473   for ac_exec_ext in '' $ac_executable_extensions; do
2474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475     ac_cv_prog_CC="${ac_tool_prefix}cc"
2476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477     break 2
2478   fi
2479 done
2480 done
2481 IFS=$as_save_IFS
2482
2483 fi
2484 fi
2485 CC=$ac_cv_prog_CC
2486 if test -n "$CC"; then
2487   { echo "$as_me:$LINENO: result: $CC" >&5
2488 echo "${ECHO_T}$CC" >&6; }
2489 else
2490   { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2492 fi
2493
2494
2495   fi
2496 fi
2497 if test -z "$CC"; then
2498   # Extract the first word of "cc", so it can be a program name with args.
2499 set dummy cc; ac_word=$2
2500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_CC+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   if test -n "$CC"; then
2506   ac_cv_prog_CC="$CC" # Let the user override the test.
2507 else
2508   ac_prog_rejected=no
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514   for ac_exec_ext in '' $ac_executable_extensions; do
2515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2517        ac_prog_rejected=yes
2518        continue
2519      fi
2520     ac_cv_prog_CC="cc"
2521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523   fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 if test $ac_prog_rejected = yes; then
2529   # We found a bogon in the path, so make sure we never use it.
2530   set dummy $ac_cv_prog_CC
2531   shift
2532   if test $# != 0; then
2533     # We chose a different compiler from the bogus one.
2534     # However, it has the same basename, so the bogon will be chosen
2535     # first if we set CC to just the basename; use the full file name.
2536     shift
2537     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2538   fi
2539 fi
2540 fi
2541 fi
2542 CC=$ac_cv_prog_CC
2543 if test -n "$CC"; then
2544   { echo "$as_me:$LINENO: result: $CC" >&5
2545 echo "${ECHO_T}$CC" >&6; }
2546 else
2547   { echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6; }
2549 fi
2550
2551
2552 fi
2553 if test -z "$CC"; then
2554   if test -n "$ac_tool_prefix"; then
2555   for ac_prog in cl.exe
2556   do
2557     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2558 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_CC+set}" = set; then
2562   echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564   if test -n "$CC"; then
2565   ac_cv_prog_CC="$CC" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2569 do
2570   IFS=$as_save_IFS
2571   test -z "$as_dir" && as_dir=.
2572   for ac_exec_ext in '' $ac_executable_extensions; do
2573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576     break 2
2577   fi
2578 done
2579 done
2580 IFS=$as_save_IFS
2581
2582 fi
2583 fi
2584 CC=$ac_cv_prog_CC
2585 if test -n "$CC"; then
2586   { echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6; }
2588 else
2589   { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2591 fi
2592
2593
2594     test -n "$CC" && break
2595   done
2596 fi
2597 if test -z "$CC"; then
2598   ac_ct_CC=$CC
2599   for ac_prog in cl.exe
2600 do
2601   # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2606   echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608   if test -n "$ac_ct_CC"; then
2609   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616   for ac_exec_ext in '' $ac_executable_extensions; do
2617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618     ac_cv_prog_ac_ct_CC="$ac_prog"
2619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620     break 2
2621   fi
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627 fi
2628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2629 if test -n "$ac_ct_CC"; then
2630   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2631 echo "${ECHO_T}$ac_ct_CC" >&6; }
2632 else
2633   { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2635 fi
2636
2637
2638   test -n "$ac_ct_CC" && break
2639 done
2640
2641   if test "x$ac_ct_CC" = x; then
2642     CC=""
2643   else
2644     case $cross_compiling:$ac_tool_warned in
2645 yes:)
2646 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2647 whose name does not start with the host triplet.  If you think this
2648 configuration is useful to you, please write to autoconf@gnu.org." >&5
2649 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2650 whose name does not start with the host triplet.  If you think this
2651 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2652 ac_tool_warned=yes ;;
2653 esac
2654     CC=$ac_ct_CC
2655   fi
2656 fi
2657
2658 fi
2659
2660
2661 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2662 See \`config.log' for more details." >&5
2663 echo "$as_me: error: no acceptable C compiler found in \$PATH
2664 See \`config.log' for more details." >&2;}
2665    { (exit 1); exit 1; }; }
2666
2667 # Provide some information about the compiler.
2668 echo "$as_me:$LINENO: checking for C compiler version" >&5
2669 ac_compiler=`set X $ac_compile; echo $2`
2670 { (ac_try="$ac_compiler --version >&5"
2671 case "(($ac_try" in
2672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673   *) ac_try_echo=$ac_try;;
2674 esac
2675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676   (eval "$ac_compiler --version >&5") 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); }
2680 { (ac_try="$ac_compiler -v >&5"
2681 case "(($ac_try" in
2682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683   *) ac_try_echo=$ac_try;;
2684 esac
2685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686   (eval "$ac_compiler -v >&5") 2>&5
2687   ac_status=$?
2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689   (exit $ac_status); }
2690 { (ac_try="$ac_compiler -V >&5"
2691 case "(($ac_try" in
2692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693   *) ac_try_echo=$ac_try;;
2694 esac
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696   (eval "$ac_compiler -V >&5") 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }
2700
2701 cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h.  */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h.  */
2707
2708 int
2709 main ()
2710 {
2711
2712   ;
2713   return 0;
2714 }
2715 _ACEOF
2716 ac_clean_files_save=$ac_clean_files
2717 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2718 # Try to create an executable without -o first, disregard a.out.
2719 # It will help us diagnose broken compilers, and finding out an intuition
2720 # of exeext.
2721 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2722 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2723 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2724 #
2725 # List of possible output files, starting from the most likely.
2726 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2727 # only as a last resort.  b.out is created by i960 compilers.
2728 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2729 #
2730 # The IRIX 6 linker writes into existing files which may not be
2731 # executable, retaining their permissions.  Remove them first so a
2732 # subsequent execution test works.
2733 ac_rmfiles=
2734 for ac_file in $ac_files
2735 do
2736   case $ac_file in
2737     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2738     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2739   esac
2740 done
2741 rm -f $ac_rmfiles
2742
2743 if { (ac_try="$ac_link_default"
2744 case "(($ac_try" in
2745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746   *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749   (eval "$ac_link_default") 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; then
2753   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2754 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2755 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2756 # so that the user can short-circuit this test for compilers unknown to
2757 # Autoconf.
2758 for ac_file in $ac_files ''
2759 do
2760   test -f "$ac_file" || continue
2761   case $ac_file in
2762     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2763         ;;
2764     [ab].out )
2765         # We found the default executable, but exeext='' is most
2766         # certainly right.
2767         break;;
2768     *.* )
2769         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2770         then :; else
2771            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2772         fi
2773         # We set ac_cv_exeext here because the later test for it is not
2774         # safe: cross compilers may not add the suffix if given an `-o'
2775         # argument, so we may need to know it at that point already.
2776         # Even if this section looks crufty: it has the advantage of
2777         # actually working.
2778         break;;
2779     * )
2780         break;;
2781   esac
2782 done
2783 test "$ac_cv_exeext" = no && ac_cv_exeext=
2784
2785 else
2786   ac_file=''
2787 fi
2788
2789 { echo "$as_me:$LINENO: result: $ac_file" >&5
2790 echo "${ECHO_T}$ac_file" >&6; }
2791 if test -z "$ac_file"; then
2792   echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2796 See \`config.log' for more details." >&5
2797 echo "$as_me: error: C compiler cannot create executables
2798 See \`config.log' for more details." >&2;}
2799    { (exit 77); exit 77; }; }
2800 fi
2801
2802 ac_exeext=$ac_cv_exeext
2803
2804 # Check that the compiler produces executables we can run.  If not, either
2805 # the compiler is broken, or we cross compile.
2806 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2807 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2808 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2809 # If not cross compiling, check that we can run a simple program.
2810 if test "$cross_compiling" != yes; then
2811   if { ac_try='./$ac_file'
2812   { (case "(($ac_try" in
2813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814   *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817   (eval "$ac_try") 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); }; }; then
2821     cross_compiling=no
2822   else
2823     if test "$cross_compiling" = maybe; then
2824         cross_compiling=yes
2825     else
2826         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2827 If you meant to cross compile, use \`--host'.
2828 See \`config.log' for more details." >&5
2829 echo "$as_me: error: cannot run C compiled programs.
2830 If you meant to cross compile, use \`--host'.
2831 See \`config.log' for more details." >&2;}
2832    { (exit 1); exit 1; }; }
2833     fi
2834   fi
2835 fi
2836 { echo "$as_me:$LINENO: result: yes" >&5
2837 echo "${ECHO_T}yes" >&6; }
2838
2839 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2840 ac_clean_files=$ac_clean_files_save
2841 # Check that the compiler produces executables we can run.  If not, either
2842 # the compiler is broken, or we cross compile.
2843 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2844 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2845 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2846 echo "${ECHO_T}$cross_compiling" >&6; }
2847
2848 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2849 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2850 if { (ac_try="$ac_link"
2851 case "(($ac_try" in
2852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853   *) ac_try_echo=$ac_try;;
2854 esac
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856   (eval "$ac_link") 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }; then
2860   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2861 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2862 # work properly (i.e., refer to `conftest.exe'), while it won't with
2863 # `rm'.
2864 for ac_file in conftest.exe conftest conftest.*; do
2865   test -f "$ac_file" || continue
2866   case $ac_file in
2867     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2868     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869           break;;
2870     * ) break;;
2871   esac
2872 done
2873 else
2874   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2875 See \`config.log' for more details." >&5
2876 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2877 See \`config.log' for more details." >&2;}
2878    { (exit 1); exit 1; }; }
2879 fi
2880
2881 rm -f conftest$ac_cv_exeext
2882 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2883 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2884
2885 rm -f conftest.$ac_ext
2886 EXEEXT=$ac_cv_exeext
2887 ac_exeext=$EXEEXT
2888 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2889 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2890 if test "${ac_cv_objext+set}" = set; then
2891   echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893   cat >conftest.$ac_ext <<_ACEOF
2894 /* confdefs.h.  */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h.  */
2899
2900 int
2901 main ()
2902 {
2903
2904   ;
2905   return 0;
2906 }
2907 _ACEOF
2908 rm -f conftest.o conftest.obj
2909 if { (ac_try="$ac_compile"
2910 case "(($ac_try" in
2911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912   *) ac_try_echo=$ac_try;;
2913 esac
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915   (eval "$ac_compile") 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }; then
2919   for ac_file in conftest.o conftest.obj conftest.*; do
2920   test -f "$ac_file" || continue;
2921   case $ac_file in
2922     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2923     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2924        break;;
2925   esac
2926 done
2927 else
2928   echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2932 See \`config.log' for more details." >&5
2933 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2934 See \`config.log' for more details." >&2;}
2935    { (exit 1); exit 1; }; }
2936 fi
2937
2938 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2939 fi
2940 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2941 echo "${ECHO_T}$ac_cv_objext" >&6; }
2942 OBJEXT=$ac_cv_objext
2943 ac_objext=$OBJEXT
2944 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2945 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2946 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2947   echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949   cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h.  */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h.  */
2955
2956 int
2957 main ()
2958 {
2959 #ifndef __GNUC__
2960        choke me
2961 #endif
2962
2963   ;
2964   return 0;
2965 }
2966 _ACEOF
2967 rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2969 case "(($ac_try" in
2970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971   *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974   (eval "$ac_compile") 2>conftest.er1
2975   ac_status=$?
2976   grep -v '^ *+' conftest.er1 >conftest.err
2977   rm -f conftest.er1
2978   cat conftest.err >&5
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); } && {
2981          test -z "$ac_c_werror_flag" ||
2982          test ! -s conftest.err
2983        } && test -s conftest.$ac_objext; then
2984   ac_compiler_gnu=yes
2985 else
2986   echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2988
2989         ac_compiler_gnu=no
2990 fi
2991
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2994
2995 fi
2996 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2997 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2998 GCC=`test $ac_compiler_gnu = yes && echo yes`
2999 ac_test_CFLAGS=${CFLAGS+set}
3000 ac_save_CFLAGS=$CFLAGS
3001 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3002 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_cc_g+set}" = set; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006   ac_save_c_werror_flag=$ac_c_werror_flag
3007    ac_c_werror_flag=yes
3008    ac_cv_prog_cc_g=no
3009    CFLAGS="-g"
3010    cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h.  */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h.  */
3016
3017 int
3018 main ()
3019 {
3020
3021   ;
3022   return 0;
3023 }
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3027 case "(($ac_try" in
3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029   *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032   (eval "$ac_compile") 2>conftest.er1
3033   ac_status=$?
3034   grep -v '^ *+' conftest.er1 >conftest.err
3035   rm -f conftest.er1
3036   cat conftest.err >&5
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); } && {
3039          test -z "$ac_c_werror_flag" ||
3040          test ! -s conftest.err
3041        } && test -s conftest.$ac_objext; then
3042   ac_cv_prog_cc_g=yes
3043 else
3044   echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047         CFLAGS=""
3048       cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h.  */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h.  */
3054
3055 int
3056 main ()
3057 {
3058
3059   ;
3060   return 0;
3061 }
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3065 case "(($ac_try" in
3066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067   *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070   (eval "$ac_compile") 2>conftest.er1
3071   ac_status=$?
3072   grep -v '^ *+' conftest.er1 >conftest.err
3073   rm -f conftest.er1
3074   cat conftest.err >&5
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); } && {
3077          test -z "$ac_c_werror_flag" ||
3078          test ! -s conftest.err
3079        } && test -s conftest.$ac_objext; then
3080   :
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085         ac_c_werror_flag=$ac_save_c_werror_flag
3086          CFLAGS="-g"
3087          cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h.  */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h.  */
3093
3094 int
3095 main ()
3096 {
3097
3098   ;
3099   return 0;
3100 }
3101 _ACEOF
3102 rm -f conftest.$ac_objext
3103 if { (ac_try="$ac_compile"
3104 case "(($ac_try" in
3105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106   *) ac_try_echo=$ac_try;;
3107 esac
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109   (eval "$ac_compile") 2>conftest.er1
3110   ac_status=$?
3111   grep -v '^ *+' conftest.er1 >conftest.err
3112   rm -f conftest.er1
3113   cat conftest.err >&5
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); } && {
3116          test -z "$ac_c_werror_flag" ||
3117          test ! -s conftest.err
3118        } && test -s conftest.$ac_objext; then
3119   ac_cv_prog_cc_g=yes
3120 else
3121   echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124
3125 fi
3126
3127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3128 fi
3129
3130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3131 fi
3132
3133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134    ac_c_werror_flag=$ac_save_c_werror_flag
3135 fi
3136 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3137 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3138 if test "$ac_test_CFLAGS" = set; then
3139   CFLAGS=$ac_save_CFLAGS
3140 elif test $ac_cv_prog_cc_g = yes; then
3141   if test "$GCC" = yes; then
3142     CFLAGS="-g -O2"
3143   else
3144     CFLAGS="-g"
3145   fi
3146 else
3147   if test "$GCC" = yes; then
3148     CFLAGS="-O2"
3149   else
3150     CFLAGS=
3151   fi
3152 fi
3153 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3154 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3155 if test "${ac_cv_prog_cc_c89+set}" = set; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   ac_cv_prog_cc_c89=no
3159 ac_save_CC=$CC
3160 cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h.  */
3166 #include <stdarg.h>
3167 #include <stdio.h>
3168 #include <sys/types.h>
3169 #include <sys/stat.h>
3170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3171 struct buf { int x; };
3172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3173 static char *e (p, i)
3174      char **p;
3175      int i;
3176 {
3177   return p[i];
3178 }
3179 static char *f (char * (*g) (char **, int), char **p, ...)
3180 {
3181   char *s;
3182   va_list v;
3183   va_start (v,p);
3184   s = g (p, va_arg (v,int));
3185   va_end (v);
3186   return s;
3187 }
3188
3189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3190    function prototypes and stuff, but not '\xHH' hex character constants.
3191    These don't provoke an error unfortunately, instead are silently treated
3192    as 'x'.  The following induces an error, until -std is added to get
3193    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3194    array size at least.  It's necessary to write '\x00'==0 to get something
3195    that's true only with -std.  */
3196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3197
3198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3199    inside strings and character constants.  */
3200 #define FOO(x) 'x'
3201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3202
3203 int test (int i, double x);
3204 struct s1 {int (*f) (int a);};
3205 struct s2 {int (*f) (double a);};
3206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3207 int argc;
3208 char **argv;
3209 int
3210 main ()
3211 {
3212 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3213   ;
3214   return 0;
3215 }
3216 _ACEOF
3217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3218         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3219 do
3220   CC="$ac_save_CC $ac_arg"
3221   rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3223 case "(($ac_try" in
3224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225   *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228   (eval "$ac_compile") 2>conftest.er1
3229   ac_status=$?
3230   grep -v '^ *+' conftest.er1 >conftest.err
3231   rm -f conftest.er1
3232   cat conftest.err >&5
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); } && {
3235          test -z "$ac_c_werror_flag" ||
3236          test ! -s conftest.err
3237        } && test -s conftest.$ac_objext; then
3238   ac_cv_prog_cc_c89=$ac_arg
3239 else
3240   echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243
3244 fi
3245
3246 rm -f core conftest.err conftest.$ac_objext
3247   test "x$ac_cv_prog_cc_c89" != "xno" && break
3248 done
3249 rm -f conftest.$ac_ext
3250 CC=$ac_save_CC
3251
3252 fi
3253 # AC_CACHE_VAL
3254 case "x$ac_cv_prog_cc_c89" in
3255   x)
3256     { echo "$as_me:$LINENO: result: none needed" >&5
3257 echo "${ECHO_T}none needed" >&6; } ;;
3258   xno)
3259     { echo "$as_me:$LINENO: result: unsupported" >&5
3260 echo "${ECHO_T}unsupported" >&6; } ;;
3261   *)
3262     CC="$CC $ac_cv_prog_cc_c89"
3263     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3264 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3265 esac
3266
3267
3268 ac_ext=c
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273
3274 ac_ext=cpp
3275 ac_cpp='$CXXCPP $CPPFLAGS'
3276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3279 if test -z "$CXX"; then
3280   if test -n "$CCC"; then
3281     CXX=$CCC
3282   else
3283     if test -n "$ac_tool_prefix"; then
3284   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3285   do
3286     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3290 if test "${ac_cv_prog_CXX+set}" = set; then
3291   echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293   if test -n "$CXX"; then
3294   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3295 else
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299   IFS=$as_save_IFS
3300   test -z "$as_dir" && as_dir=.
3301   for ac_exec_ext in '' $ac_executable_extensions; do
3302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305     break 2
3306   fi
3307 done
3308 done
3309 IFS=$as_save_IFS
3310
3311 fi
3312 fi
3313 CXX=$ac_cv_prog_CXX
3314 if test -n "$CXX"; then
3315   { echo "$as_me:$LINENO: result: $CXX" >&5
3316 echo "${ECHO_T}$CXX" >&6; }
3317 else
3318   { echo "$as_me:$LINENO: result: no" >&5
3319 echo "${ECHO_T}no" >&6; }
3320 fi
3321
3322
3323     test -n "$CXX" && break
3324   done
3325 fi
3326 if test -z "$CXX"; then
3327   ac_ct_CXX=$CXX
3328   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3329 do
3330   # Extract the first word of "$ac_prog", so it can be a program name with args.
3331 set dummy $ac_prog; ac_word=$2
3332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3334 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   if test -n "$ac_ct_CXX"; then
3338   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3342 do
3343   IFS=$as_save_IFS
3344   test -z "$as_dir" && as_dir=.
3345   for ac_exec_ext in '' $ac_executable_extensions; do
3346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3347     ac_cv_prog_ac_ct_CXX="$ac_prog"
3348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349     break 2
3350   fi
3351 done
3352 done
3353 IFS=$as_save_IFS
3354
3355 fi
3356 fi
3357 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3358 if test -n "$ac_ct_CXX"; then
3359   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3360 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3361 else
3362   { echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6; }
3364 fi
3365
3366
3367   test -n "$ac_ct_CXX" && break
3368 done
3369
3370   if test "x$ac_ct_CXX" = x; then
3371     CXX="g++"
3372   else
3373     case $cross_compiling:$ac_tool_warned in
3374 yes:)
3375 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3376 whose name does not start with the host triplet.  If you think this
3377 configuration is useful to you, please write to autoconf@gnu.org." >&5
3378 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3379 whose name does not start with the host triplet.  If you think this
3380 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3381 ac_tool_warned=yes ;;
3382 esac
3383     CXX=$ac_ct_CXX
3384   fi
3385 fi
3386
3387   fi
3388 fi
3389 # Provide some information about the compiler.
3390 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3391 ac_compiler=`set X $ac_compile; echo $2`
3392 { (ac_try="$ac_compiler --version >&5"
3393 case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398   (eval "$ac_compiler --version >&5") 2>&5
3399   ac_status=$?
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); }
3402 { (ac_try="$ac_compiler -v >&5"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408   (eval "$ac_compiler -v >&5") 2>&5
3409   ac_status=$?
3410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411   (exit $ac_status); }
3412 { (ac_try="$ac_compiler -V >&5"
3413 case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418   (eval "$ac_compiler -V >&5") 2>&5
3419   ac_status=$?
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); }
3422
3423 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3424 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3425 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428   cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h.  */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h.  */
3434
3435 int
3436 main ()
3437 {
3438 #ifndef __GNUC__
3439        choke me
3440 #endif
3441
3442   ;
3443   return 0;
3444 }
3445 _ACEOF
3446 rm -f conftest.$ac_objext
3447 if { (ac_try="$ac_compile"
3448 case "(($ac_try" in
3449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450   *) ac_try_echo=$ac_try;;
3451 esac
3452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453   (eval "$ac_compile") 2>conftest.er1
3454   ac_status=$?
3455   grep -v '^ *+' conftest.er1 >conftest.err
3456   rm -f conftest.er1
3457   cat conftest.err >&5
3458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459   (exit $ac_status); } && {
3460          test -z "$ac_cxx_werror_flag" ||
3461          test ! -s conftest.err
3462        } && test -s conftest.$ac_objext; then
3463   ac_compiler_gnu=yes
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468         ac_compiler_gnu=no
3469 fi
3470
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3473
3474 fi
3475 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3476 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3477 GXX=`test $ac_compiler_gnu = yes && echo yes`
3478 ac_test_CXXFLAGS=${CXXFLAGS+set}
3479 ac_save_CXXFLAGS=$CXXFLAGS
3480 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3481 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3482 if test "${ac_cv_prog_cxx_g+set}" = set; then
3483   echo $ECHO_N "(cached) $ECHO_C" >&6
3484 else
3485   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3486    ac_cxx_werror_flag=yes
3487    ac_cv_prog_cxx_g=no
3488    CXXFLAGS="-g"
3489    cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h.  */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h.  */
3495
3496 int
3497 main ()
3498 {
3499
3500   ;
3501   return 0;
3502 }
3503 _ACEOF
3504 rm -f conftest.$ac_objext
3505 if { (ac_try="$ac_compile"
3506 case "(($ac_try" in
3507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508   *) ac_try_echo=$ac_try;;
3509 esac
3510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3511   (eval "$ac_compile") 2>conftest.er1
3512   ac_status=$?
3513   grep -v '^ *+' conftest.er1 >conftest.err
3514   rm -f conftest.er1
3515   cat conftest.err >&5
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); } && {
3518          test -z "$ac_cxx_werror_flag" ||
3519          test ! -s conftest.err
3520        } && test -s conftest.$ac_objext; then
3521   ac_cv_prog_cxx_g=yes
3522 else
3523   echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3525
3526         CXXFLAGS=""
3527       cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h.  */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h.  */
3533
3534 int
3535 main ()
3536 {
3537
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3544 case "(($ac_try" in
3545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546   *) ac_try_echo=$ac_try;;
3547 esac
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549   (eval "$ac_compile") 2>conftest.er1
3550   ac_status=$?
3551   grep -v '^ *+' conftest.er1 >conftest.err
3552   rm -f conftest.er1
3553   cat conftest.err >&5
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); } && {
3556          test -z "$ac_cxx_werror_flag" ||
3557          test ! -s conftest.err
3558        } && test -s conftest.$ac_objext; then
3559   :
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3565          CXXFLAGS="-g"
3566          cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h.  */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h.  */
3572
3573 int
3574 main ()
3575 {
3576
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 rm -f conftest.$ac_objext
3582 if { (ac_try="$ac_compile"
3583 case "(($ac_try" in
3584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585   *) ac_try_echo=$ac_try;;
3586 esac
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588   (eval "$ac_compile") 2>conftest.er1
3589   ac_status=$?
3590   grep -v '^ *+' conftest.er1 >conftest.err
3591   rm -f conftest.er1
3592   cat conftest.err >&5
3593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594   (exit $ac_status); } && {
3595          test -z "$ac_cxx_werror_flag" ||
3596          test ! -s conftest.err
3597        } && test -s conftest.$ac_objext; then
3598   ac_cv_prog_cxx_g=yes
3599 else
3600   echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3602
3603
3604 fi
3605
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 fi
3608
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 fi
3611
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3614 fi
3615 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3616 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3617 if test "$ac_test_CXXFLAGS" = set; then
3618   CXXFLAGS=$ac_save_CXXFLAGS
3619 elif test $ac_cv_prog_cxx_g = yes; then
3620   if test "$GXX" = yes; then
3621     CXXFLAGS="-g -O2"
3622   else
3623     CXXFLAGS="-g"
3624   fi
3625 else
3626   if test "$GXX" = yes; then
3627     CXXFLAGS="-O2"
3628   else
3629     CXXFLAGS=
3630   fi
3631 fi
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637
3638 if test "x$CC" != xcc; then
3639   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3640 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3641 else
3642   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3643 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3644 fi
3645 set dummy $CC; ac_cc=`echo $2 |
3646                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3647 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3648   echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650   cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h.  */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h.  */
3656
3657 int
3658 main ()
3659 {
3660
3661   ;
3662   return 0;
3663 }
3664 _ACEOF
3665 # Make sure it works both with $CC and with simple cc.
3666 # We do the test twice because some compilers refuse to overwrite an
3667 # existing .o file with -o, though they will create one.
3668 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3669 rm -f conftest2.*
3670 if { (case "(($ac_try" in
3671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672   *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675   (eval "$ac_try") 2>&5
3676   ac_status=$?
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); } &&
3679    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681   *) ac_try_echo=$ac_try;;
3682 esac
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684   (eval "$ac_try") 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); };
3688 then
3689   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3690   if test "x$CC" != xcc; then
3691     # Test first that cc exists at all.
3692     if { ac_try='cc -c conftest.$ac_ext >&5'
3693   { (case "(($ac_try" in
3694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695   *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698   (eval "$ac_try") 2>&5
3699   ac_status=$?
3700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701   (exit $ac_status); }; }; then
3702       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3703       rm -f conftest2.*
3704       if { (case "(($ac_try" in
3705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706   *) ac_try_echo=$ac_try;;
3707 esac
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709   (eval "$ac_try") 2>&5
3710   ac_status=$?
3711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712   (exit $ac_status); } &&
3713          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715   *) ac_try_echo=$ac_try;;
3716 esac
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718   (eval "$ac_try") 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); };
3722       then
3723         # cc works too.
3724         :
3725       else
3726         # cc exists but doesn't like -o.
3727         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3728       fi
3729     fi
3730   fi
3731 else
3732   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3733 fi
3734 rm -f core conftest*
3735
3736 fi
3737 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3738   { echo "$as_me:$LINENO: result: yes" >&5
3739 echo "${ECHO_T}yes" >&6; }
3740 else
3741   { echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; }
3743
3744 cat >>confdefs.h <<\_ACEOF
3745 #define NO_MINUS_C_MINUS_O 1
3746 _ACEOF
3747
3748 fi
3749
3750 ac_ext=c
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3756 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3757 # On Suns, sometimes $CPP names a directory.
3758 if test -n "$CPP" && test -d "$CPP"; then
3759   CPP=
3760 fi
3761 if test -z "$CPP"; then
3762   if test "${ac_cv_prog_CPP+set}" = set; then
3763   echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765       # Double quotes because CPP needs to be expanded
3766     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3767     do
3768       ac_preproc_ok=false
3769 for ac_c_preproc_warn_flag in '' yes
3770 do
3771   # Use a header file that comes with gcc, so configuring glibc
3772   # with a fresh cross-compiler works.
3773   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3774   # <limits.h> exists even on freestanding compilers.
3775   # On the NeXT, cc -E runs the code through the compiler's parser,
3776   # not just through cpp. "Syntax error" is here to catch this case.
3777   cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h.  */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h.  */
3783 #ifdef __STDC__
3784 # include <limits.h>
3785 #else
3786 # include <assert.h>
3787 #endif
3788                      Syntax error
3789 _ACEOF
3790 if { (ac_try="$ac_cpp conftest.$ac_ext"
3791 case "(($ac_try" in
3792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793   *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3797   ac_status=$?
3798   grep -v '^ *+' conftest.er1 >conftest.err
3799   rm -f conftest.er1
3800   cat conftest.err >&5
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); } >/dev/null && {
3803          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3804          test ! -s conftest.err
3805        }; then
3806   :
3807 else
3808   echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811   # Broken: fails on valid input.
3812 continue
3813 fi
3814
3815 rm -f conftest.err conftest.$ac_ext
3816
3817   # OK, works on sane cases.  Now check whether nonexistent headers
3818   # can be detected and how.
3819   cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h.  */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h.  */
3825 #include <ac_nonexistent.h>
3826 _ACEOF
3827 if { (ac_try="$ac_cpp conftest.$ac_ext"
3828 case "(($ac_try" in
3829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830   *) ac_try_echo=$ac_try;;
3831 esac
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3834   ac_status=$?
3835   grep -v '^ *+' conftest.er1 >conftest.err
3836   rm -f conftest.er1
3837   cat conftest.err >&5
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); } >/dev/null && {
3840          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3841          test ! -s conftest.err
3842        }; then
3843   # Broken: success on invalid input.
3844 continue
3845 else
3846   echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849   # Passes both tests.
3850 ac_preproc_ok=:
3851 break
3852 fi
3853
3854 rm -f conftest.err conftest.$ac_ext
3855
3856 done
3857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3858 rm -f conftest.err conftest.$ac_ext
3859 if $ac_preproc_ok; then
3860   break
3861 fi
3862
3863     done
3864     ac_cv_prog_CPP=$CPP
3865
3866 fi
3867   CPP=$ac_cv_prog_CPP
3868 else
3869   ac_cv_prog_CPP=$CPP
3870 fi
3871 { echo "$as_me:$LINENO: result: $CPP" >&5
3872 echo "${ECHO_T}$CPP" >&6; }
3873 ac_preproc_ok=false
3874 for ac_c_preproc_warn_flag in '' yes
3875 do
3876   # Use a header file that comes with gcc, so configuring glibc
3877   # with a fresh cross-compiler works.
3878   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3879   # <limits.h> exists even on freestanding compilers.
3880   # On the NeXT, cc -E runs the code through the compiler's parser,
3881   # not just through cpp. "Syntax error" is here to catch this case.
3882   cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h.  */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h.  */
3888 #ifdef __STDC__
3889 # include <limits.h>
3890 #else
3891 # include <assert.h>
3892 #endif
3893                      Syntax error
3894 _ACEOF
3895 if { (ac_try="$ac_cpp conftest.$ac_ext"
3896 case "(($ac_try" in
3897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898   *) ac_try_echo=$ac_try;;
3899 esac
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3902   ac_status=$?
3903   grep -v '^ *+' conftest.er1 >conftest.err
3904   rm -f conftest.er1
3905   cat conftest.err >&5
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); } >/dev/null && {
3908          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3909          test ! -s conftest.err
3910        }; then
3911   :
3912 else
3913   echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916   # Broken: fails on valid input.
3917 continue
3918 fi
3919
3920 rm -f conftest.err conftest.$ac_ext
3921
3922   # OK, works on sane cases.  Now check whether nonexistent headers
3923   # can be detected and how.
3924   cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h.  */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h.  */
3930 #include <ac_nonexistent.h>
3931 _ACEOF
3932 if { (ac_try="$ac_cpp conftest.$ac_ext"
3933 case "(($ac_try" in
3934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935   *) ac_try_echo=$ac_try;;
3936 esac
3937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3938   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3939   ac_status=$?
3940   grep -v '^ *+' conftest.er1 >conftest.err
3941   rm -f conftest.er1
3942   cat conftest.err >&5
3943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); } >/dev/null && {
3945          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3946          test ! -s conftest.err
3947        }; then
3948   # Broken: success on invalid input.
3949 continue
3950 else
3951   echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3953
3954   # Passes both tests.
3955 ac_preproc_ok=:
3956 break
3957 fi
3958
3959 rm -f conftest.err conftest.$ac_ext
3960
3961 done
3962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3963 rm -f conftest.err conftest.$ac_ext
3964 if $ac_preproc_ok; then
3965   :
3966 else
3967   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3968 See \`config.log' for more details." >&5
3969 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3970 See \`config.log' for more details." >&2;}
3971    { (exit 1); exit 1; }; }
3972 fi
3973
3974 ac_ext=c
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979
3980
3981 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3982 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3983 if test "${ac_cv_path_GREP+set}" = set; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986   # Extract the first word of "grep ggrep" to use in msg output
3987 if test -z "$GREP"; then
3988 set dummy grep ggrep; ac_prog_name=$2
3989 if test "${ac_cv_path_GREP+set}" = set; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   ac_path_GREP_found=false
3993 # Loop through the user's path and test for each of PROGNAME-LIST
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3996 do
3997   IFS=$as_save_IFS
3998   test -z "$as_dir" && as_dir=.
3999   for ac_prog in grep ggrep; do
4000   for ac_exec_ext in '' $ac_executable_extensions; do
4001     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4002     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4003     # Check for GNU ac_path_GREP and select it if it is found.
4004   # Check for GNU $ac_path_GREP
4005 case `"$ac_path_GREP" --version 2>&1` in
4006 *GNU*)
4007   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4008 *)
4009   ac_count=0
4010   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4011   while :
4012   do
4013     cat "conftest.in" "conftest.in" >"conftest.tmp"
4014     mv "conftest.tmp" "conftest.in"
4015     cp "conftest.in" "conftest.nl"
4016     echo 'GREP' >> "conftest.nl"
4017     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4018     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4019     ac_count=`expr $ac_count + 1`
4020     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4021       # Best one so far, save it but keep looking for a better one
4022       ac_cv_path_GREP="$ac_path_GREP"
4023       ac_path_GREP_max=$ac_count
4024     fi
4025     # 10*(2^10) chars as input seems more than enough
4026     test $ac_count -gt 10 && break
4027   done
4028   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4029 esac
4030
4031
4032     $ac_path_GREP_found && break 3
4033   done
4034 done
4035
4036 done
4037 IFS=$as_save_IFS
4038
4039
4040 fi
4041
4042 GREP="$ac_cv_path_GREP"
4043 if test -z "$GREP"; then
4044   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4045 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4046    { (exit 1); exit 1; }; }
4047 fi
4048
4049 else
4050   ac_cv_path_GREP=$GREP
4051 fi
4052
4053
4054 fi
4055 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4056 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4057  GREP="$ac_cv_path_GREP"
4058
4059
4060 { echo "$as_me:$LINENO: checking for egrep" >&5
4061 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4062 if test "${ac_cv_path_EGREP+set}" = set; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4066    then ac_cv_path_EGREP="$GREP -E"
4067    else
4068      # Extract the first word of "egrep" to use in msg output
4069 if test -z "$EGREP"; then
4070 set dummy egrep; ac_prog_name=$2
4071 if test "${ac_cv_path_EGREP+set}" = set; then
4072   echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074   ac_path_EGREP_found=false
4075 # Loop through the user's path and test for each of PROGNAME-LIST
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4078 do
4079   IFS=$as_save_IFS
4080   test -z "$as_dir" && as_dir=.
4081   for ac_prog in egrep; do
4082   for ac_exec_ext in '' $ac_executable_extensions; do
4083     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4084     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4085     # Check for GNU ac_path_EGREP and select it if it is found.
4086   # Check for GNU $ac_path_EGREP
4087 case `"$ac_path_EGREP" --version 2>&1` in
4088 *GNU*)
4089   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4090 *)
4091   ac_count=0
4092   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4093   while :
4094   do
4095     cat "conftest.in" "conftest.in" >"conftest.tmp"
4096     mv "conftest.tmp" "conftest.in"
4097     cp "conftest.in" "conftest.nl"
4098     echo 'EGREP' >> "conftest.nl"
4099     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101     ac_count=`expr $ac_count + 1`
4102     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4103       # Best one so far, save it but keep looking for a better one
4104       ac_cv_path_EGREP="$ac_path_EGREP"
4105       ac_path_EGREP_max=$ac_count
4106     fi
4107     # 10*(2^10) chars as input seems more than enough
4108     test $ac_count -gt 10 && break
4109   done
4110   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4111 esac
4112
4113
4114     $ac_path_EGREP_found && break 3
4115   done
4116 done
4117
4118 done
4119 IFS=$as_save_IFS
4120
4121
4122 fi
4123
4124 EGREP="$ac_cv_path_EGREP"
4125 if test -z "$EGREP"; then
4126   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4127 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4128    { (exit 1); exit 1; }; }
4129 fi
4130
4131 else
4132   ac_cv_path_EGREP=$EGREP
4133 fi
4134
4135
4136    fi
4137 fi
4138 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4139 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4140  EGREP="$ac_cv_path_EGREP"
4141
4142
4143 if test $ac_cv_c_compiler_gnu = yes; then
4144     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4145 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4146 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4147   echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149     ac_pattern="Autoconf.*'x'"
4150   cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h.  */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h.  */
4156 #include <sgtty.h>
4157 Autoconf TIOCGETP
4158 _ACEOF
4159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4160   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4161   ac_cv_prog_gcc_traditional=yes
4162 else
4163   ac_cv_prog_gcc_traditional=no
4164 fi
4165 rm -f conftest*
4166
4167
4168   if test $ac_cv_prog_gcc_traditional = no; then
4169     cat >conftest.$ac_ext <<_ACEOF
4170 /* confdefs.h.  */
4171 _ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h.  */
4175 #include <termio.h>
4176 Autoconf TCGETA
4177 _ACEOF
4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4180   ac_cv_prog_gcc_traditional=yes
4181 fi
4182 rm -f conftest*
4183
4184   fi
4185 fi
4186 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4187 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4188   if test $ac_cv_prog_gcc_traditional = yes; then
4189     CC="$CC -traditional"
4190   fi
4191 fi
4192
4193 BASECC=`basename $CC`
4194 have_gcc=no
4195 if test "x$BASECC" = xgcc; then
4196    cat >>confdefs.h <<\_ACEOF
4197 #define HAVE_GCC 1
4198 _ACEOF
4199
4200    have_gcc=yes
4201 fi
4202 # Extract the first word of "$CXX", so it can be a program name with args.
4203 set dummy $CXX; ac_word=$2
4204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206 if test "${ac_cv_path_CXX+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   case $CXX in
4210   [\\/]* | ?:[\\/]*)
4211   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4212   ;;
4213   *)
4214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
4217   IFS=$as_save_IFS
4218   test -z "$as_dir" && as_dir=.
4219   for ac_exec_ext in '' $ac_executable_extensions; do
4220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223     break 2
4224   fi
4225 done
4226 done
4227 IFS=$as_save_IFS
4228
4229   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4230   ;;
4231 esac
4232 fi
4233 CXX=$ac_cv_path_CXX
4234 if test -n "$CXX"; then
4235   { echo "$as_me:$LINENO: result: $CXX" >&5
4236 echo "${ECHO_T}$CXX" >&6; }
4237 else
4238   { echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6; }
4240 fi
4241
4242
4243 if test ! -e $CXX; then
4244    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4245 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4246    { (exit 1); exit 1; }; }
4247 fi
4248
4249 # Find a good install program.  We prefer a C program (faster),
4250 # so one script is as good as another.  But avoid the broken or
4251 # incompatible versions:
4252 # SysV /etc/install, /usr/sbin/install
4253 # SunOS /usr/etc/install
4254 # IRIX /sbin/install
4255 # AIX /bin/install
4256 # AmigaOS /C/install, which installs bootblocks on floppy discs
4257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4260 # OS/2's system install, which has a completely different semantic
4261 # ./install, which can be erroneously created by make from ./install.sh.
4262 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4263 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4264 if test -z "$INSTALL"; then
4265 if test "${ac_cv_path_install+set}" = set; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4270 do
4271   IFS=$as_save_IFS
4272   test -z "$as_dir" && as_dir=.
4273   # Account for people who put trailing slashes in PATH elements.
4274 case $as_dir/ in
4275   ./ | .// | /cC/* | \
4276   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4277   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4278   /usr/ucb/* ) ;;
4279   *)
4280     # OSF1 and SCO ODT 3.0 have their own names for install.
4281     # Don't use installbsd from OSF since it installs stuff as root
4282     # by default.
4283     for ac_prog in ginstall scoinst install; do
4284       for ac_exec_ext in '' $ac_executable_extensions; do
4285         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4286           if test $ac_prog = install &&
4287             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4288             # AIX install.  It has an incompatible calling convention.
4289             :
4290           elif test $ac_prog = install &&
4291             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4292             # program-specific install script used by HP pwplus--don't use.
4293             :
4294           else
4295             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4296             break 3
4297           fi
4298         fi
4299       done
4300     done
4301     ;;
4302 esac
4303 done
4304 IFS=$as_save_IFS
4305
4306
4307 fi
4308   if test "${ac_cv_path_install+set}" = set; then
4309     INSTALL=$ac_cv_path_install
4310   else
4311     # As a last resort, use the slow shell script.  Don't cache a
4312     # value for INSTALL within a source directory, because that will
4313     # break other packages using the cache if that directory is
4314     # removed, or if the value is a relative name.
4315     INSTALL=$ac_install_sh
4316   fi
4317 fi
4318 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4319 echo "${ECHO_T}$INSTALL" >&6; }
4320
4321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4322 # It thinks the first close brace ends the variable substitution.
4323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4324
4325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4326
4327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4328
4329 # Extract the first word of "mv", so it can be a program name with args.
4330 set dummy mv; ac_word=$2
4331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4333 if test "${ac_cv_path_MV+set}" = set; then
4334   echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336   case $MV in
4337   [\\/]* | ?:[\\/]*)
4338   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4339   ;;
4340   *)
4341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH
4343 do
4344   IFS=$as_save_IFS
4345   test -z "$as_dir" && as_dir=.
4346   for ac_exec_ext in '' $ac_executable_extensions; do
4347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4348     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4350     break 2
4351   fi
4352 done
4353 done
4354 IFS=$as_save_IFS
4355
4356   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4357   ;;
4358 esac
4359 fi
4360 MV=$ac_cv_path_MV
4361 if test -n "$MV"; then
4362   { echo "$as_me:$LINENO: result: $MV" >&5
4363 echo "${ECHO_T}$MV" >&6; }
4364 else
4365   { echo "$as_me:$LINENO: result: no" >&5
4366 echo "${ECHO_T}no" >&6; }
4367 fi
4368
4369
4370 # Extract the first word of "rm", so it can be a program name with args.
4371 set dummy rm; ac_word=$2
4372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4374 if test "${ac_cv_path_REMOVE+set}" = set; then
4375   echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377   case $REMOVE in
4378   [\\/]* | ?:[\\/]*)
4379   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4380   ;;
4381   *)
4382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4384 do
4385   IFS=$as_save_IFS
4386   test -z "$as_dir" && as_dir=.
4387   for ac_exec_ext in '' $ac_executable_extensions; do
4388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4389     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391     break 2
4392   fi
4393 done
4394 done
4395 IFS=$as_save_IFS
4396
4397   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4398   ;;
4399 esac
4400 fi
4401 REMOVE=$ac_cv_path_REMOVE
4402 if test -n "$REMOVE"; then
4403   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4404 echo "${ECHO_T}$REMOVE" >&6; }
4405 else
4406   { echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6; }
4408 fi
4409
4410
4411 # Extract the first word of "cp", so it can be a program name with args.
4412 set dummy cp; ac_word=$2
4413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4415 if test "${ac_cv_path_CP+set}" = set; then
4416   echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418   case $CP in
4419   [\\/]* | ?:[\\/]*)
4420   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4421   ;;
4422   *)
4423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426   IFS=$as_save_IFS
4427   test -z "$as_dir" && as_dir=.
4428   for ac_exec_ext in '' $ac_executable_extensions; do
4429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432     break 2
4433   fi
4434 done
4435 done
4436 IFS=$as_save_IFS
4437
4438   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4439   ;;
4440 esac
4441 fi
4442 CP=$ac_cv_path_CP
4443 if test -n "$CP"; then
4444   { echo "$as_me:$LINENO: result: $CP" >&5
4445 echo "${ECHO_T}$CP" >&6; }
4446 else
4447   { echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6; }
4449 fi
4450
4451
4452 # Extract the first word of "sed", so it can be a program name with args.
4453 set dummy sed; ac_word=$2
4454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4456 if test "${ac_cv_path_SED+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459   case $SED in
4460   [\\/]* | ?:[\\/]*)
4461   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4462   ;;
4463   *)
4464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4466 do
4467   IFS=$as_save_IFS
4468   test -z "$as_dir" && as_dir=.
4469   for ac_exec_ext in '' $ac_executable_extensions; do
4470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473     break 2
4474   fi
4475 done
4476 done
4477 IFS=$as_save_IFS
4478
4479   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4480   ;;
4481 esac
4482 fi
4483 SED=$ac_cv_path_SED
4484 if test -n "$SED"; then
4485   { echo "$as_me:$LINENO: result: $SED" >&5
4486 echo "${ECHO_T}$SED" >&6; }
4487 else
4488   { echo "$as_me:$LINENO: result: no" >&5
4489 echo "${ECHO_T}no" >&6; }
4490 fi
4491
4492
4493 # Extract the first word of "echo", so it can be a program name with args.
4494 set dummy echo; ac_word=$2
4495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4497 if test "${ac_cv_path_ECHO+set}" = set; then
4498   echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500   case $ECHO in
4501   [\\/]* | ?:[\\/]*)
4502   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4503   ;;
4504   *)
4505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4507 do
4508   IFS=$as_save_IFS
4509   test -z "$as_dir" && as_dir=.
4510   for ac_exec_ext in '' $ac_executable_extensions; do
4511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514     break 2
4515   fi
4516 done
4517 done
4518 IFS=$as_save_IFS
4519
4520   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4521   ;;
4522 esac
4523 fi
4524 ECHO=$ac_cv_path_ECHO
4525 if test -n "$ECHO"; then
4526   { echo "$as_me:$LINENO: result: $ECHO" >&5
4527 echo "${ECHO_T}$ECHO" >&6; }
4528 else
4529   { echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6; }
4531 fi
4532
4533
4534 # Extract the first word of "cmp", so it can be a program name with args.
4535 set dummy cmp; ac_word=$2
4536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4538 if test "${ac_cv_path_CMP+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   case $CMP in
4542   [\\/]* | ?:[\\/]*)
4543   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4544   ;;
4545   *)
4546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4548 do
4549   IFS=$as_save_IFS
4550   test -z "$as_dir" && as_dir=.
4551   for ac_exec_ext in '' $ac_executable_extensions; do
4552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555     break 2
4556   fi
4557 done
4558 done
4559 IFS=$as_save_IFS
4560
4561   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4562   ;;
4563 esac
4564 fi
4565 CMP=$ac_cv_path_CMP
4566 if test -n "$CMP"; then
4567   { echo "$as_me:$LINENO: result: $CMP" >&5
4568 echo "${ECHO_T}$CMP" >&6; }
4569 else
4570   { echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6; }
4572 fi
4573
4574
4575 # Extract the first word of "tbl", so it can be a program name with args.
4576 set dummy tbl; ac_word=$2
4577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4579 if test "${ac_cv_path_TBL+set}" = set; then
4580   echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582   case $TBL in
4583   [\\/]* | ?:[\\/]*)
4584   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4585   ;;
4586   *)
4587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590   IFS=$as_save_IFS
4591   test -z "$as_dir" && as_dir=.
4592   for ac_exec_ext in '' $ac_executable_extensions; do
4593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596     break 2
4597   fi
4598 done
4599 done
4600 IFS=$as_save_IFS
4601
4602   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4603   ;;
4604 esac
4605 fi
4606 TBL=$ac_cv_path_TBL
4607 if test -n "$TBL"; then
4608   { echo "$as_me:$LINENO: result: $TBL" >&5
4609 echo "${ECHO_T}$TBL" >&6; }
4610 else
4611   { echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6; }
4613 fi
4614
4615
4616 # Extract the first word of "ar", so it can be a program name with args.
4617 set dummy ar; ac_word=$2
4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620 if test "${ac_cv_path_AR+set}" = set; then
4621   echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623   case $AR in
4624   [\\/]* | ?:[\\/]*)
4625   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4626   ;;
4627   *)
4628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633   for ac_exec_ext in '' $ac_executable_extensions; do
4634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640 done
4641 IFS=$as_save_IFS
4642
4643   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4644   ;;
4645 esac
4646 fi
4647 AR=$ac_cv_path_AR
4648 if test -n "$AR"; then
4649   { echo "$as_me:$LINENO: result: $AR" >&5
4650 echo "${ECHO_T}$AR" >&6; }
4651 else
4652   { echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6; }
4654 fi
4655
4656
4657 # Extract the first word of "openssl", so it can be a program name with args.
4658 set dummy openssl; ac_word=$2
4659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4661 if test "${ac_cv_path_OPENSSL+set}" = set; then
4662   echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664   case $OPENSSL in
4665   [\\/]* | ?:[\\/]*)
4666   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4667   ;;
4668   *)
4669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674   for ac_exec_ext in '' $ac_executable_extensions; do
4675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681 done
4682 IFS=$as_save_IFS
4683
4684   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4685   ;;
4686 esac
4687 fi
4688 OPENSSL=$ac_cv_path_OPENSSL
4689 if test -n "$OPENSSL"; then
4690   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4691 echo "${ECHO_T}$OPENSSL" >&6; }
4692 else
4693   { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4695 fi
4696
4697
4698 # Extract the first word of "mtx", so it can be a program name with args.
4699 set dummy mtx; ac_word=$2
4700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4702 if test "${ac_cv_path_MTX+set}" = set; then
4703   echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705   case $MTX in
4706   [\\/]* | ?:[\\/]*)
4707   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4708   ;;
4709   *)
4710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4712 do
4713   IFS=$as_save_IFS
4714   test -z "$as_dir" && as_dir=.
4715   for ac_exec_ext in '' $ac_executable_extensions; do
4716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719     break 2
4720   fi
4721 done
4722 done
4723 IFS=$as_save_IFS
4724
4725   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4726   ;;
4727 esac
4728 fi
4729 MTX=$ac_cv_path_MTX
4730 if test -n "$MTX"; then
4731   { echo "$as_me:$LINENO: result: $MTX" >&5
4732 echo "${ECHO_T}$MTX" >&6; }
4733 else
4734   { echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6; }
4736 fi
4737
4738
4739 # Extract the first word of "dd", so it can be a program name with args.
4740 set dummy dd; ac_word=$2
4741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4743 if test "${ac_cv_path_DD+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   case $DD in
4747   [\\/]* | ?:[\\/]*)
4748   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4749   ;;
4750   *)
4751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754   IFS=$as_save_IFS
4755   test -z "$as_dir" && as_dir=.
4756   for ac_exec_ext in '' $ac_executable_extensions; do
4757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4758     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760     break 2
4761   fi
4762 done
4763 done
4764 IFS=$as_save_IFS
4765
4766   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4767   ;;
4768 esac
4769 fi
4770 DD=$ac_cv_path_DD
4771 if test -n "$DD"; then
4772   { echo "$as_me:$LINENO: result: $DD" >&5
4773 echo "${ECHO_T}$DD" >&6; }
4774 else
4775   { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4777 fi
4778
4779
4780 # Extract the first word of "mkisofs", so it can be a program name with args.
4781 set dummy mkisofs; ac_word=$2
4782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4784 if test "${ac_cv_path_MKISOFS+set}" = set; then
4785   echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787   case $MKISOFS in
4788   [\\/]* | ?:[\\/]*)
4789   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4790   ;;
4791   *)
4792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795   IFS=$as_save_IFS
4796   test -z "$as_dir" && as_dir=.
4797   for ac_exec_ext in '' $ac_executable_extensions; do
4798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801     break 2
4802   fi
4803 done
4804 done
4805 IFS=$as_save_IFS
4806
4807   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4808   ;;
4809 esac
4810 fi
4811 MKISOFS=$ac_cv_path_MKISOFS
4812 if test -n "$MKISOFS"; then
4813   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4814 echo "${ECHO_T}$MKISOFS" >&6; }
4815 else
4816   { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4818 fi
4819
4820
4821 # Extract the first word of "python", so it can be a program name with args.
4822 set dummy python; ac_word=$2
4823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4825 if test "${ac_cv_path_PYTHON+set}" = set; then
4826   echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828   case $PYTHON in
4829   [\\/]* | ?:[\\/]*)
4830   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4831   ;;
4832   *)
4833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838   for ac_exec_ext in '' $ac_executable_extensions; do
4839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4840     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842     break 2
4843   fi
4844 done
4845 done
4846 IFS=$as_save_IFS
4847
4848   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4849   ;;
4850 esac
4851 fi
4852 PYTHON=$ac_cv_path_PYTHON
4853 if test -n "$PYTHON"; then
4854   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4855 echo "${ECHO_T}$PYTHON" >&6; }
4856 else
4857   { echo "$as_me:$LINENO: result: no" >&5
4858 echo "${ECHO_T}no" >&6; }
4859 fi
4860
4861
4862 # Extract the first word of "growisofs", so it can be a program name with args.
4863 set dummy growisofs; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4867   echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869   case $GROWISOFS in
4870   [\\/]* | ?:[\\/]*)
4871   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4872   ;;
4873   *)
4874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877   IFS=$as_save_IFS
4878   test -z "$as_dir" && as_dir=.
4879   for ac_exec_ext in '' $ac_executable_extensions; do
4880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883     break 2
4884   fi
4885 done
4886 done
4887 IFS=$as_save_IFS
4888
4889   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4890   ;;
4891 esac
4892 fi
4893 GROWISOFS=$ac_cv_path_GROWISOFS
4894 if test -n "$GROWISOFS"; then
4895   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4896 echo "${ECHO_T}$GROWISOFS" >&6; }
4897 else
4898   { echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6; }
4900 fi
4901
4902
4903 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4904 set dummy dvd+rw-mediainfo; ac_word=$2
4905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4907 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4908   echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910   case $DVDRWMEDIAINFO in
4911   [\\/]* | ?:[\\/]*)
4912   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4913   ;;
4914   *)
4915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4917 do
4918   IFS=$as_save_IFS
4919   test -z "$as_dir" && as_dir=.
4920   for ac_exec_ext in '' $ac_executable_extensions; do
4921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924     break 2
4925   fi
4926 done
4927 done
4928 IFS=$as_save_IFS
4929
4930   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4931   ;;
4932 esac
4933 fi
4934 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4935 if test -n "$DVDRWMEDIAINFO"; then
4936   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4937 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4938 else
4939   { echo "$as_me:$LINENO: result: no" >&5
4940 echo "${ECHO_T}no" >&6; }
4941 fi
4942
4943
4944 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4945 set dummy dvd+rw-format; ac_word=$2
4946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4948 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951   case $DVDRWFORMAT in
4952   [\\/]* | ?:[\\/]*)
4953   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4954   ;;
4955   *)
4956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4958 do
4959   IFS=$as_save_IFS
4960   test -z "$as_dir" && as_dir=.
4961   for ac_exec_ext in '' $ac_executable_extensions; do
4962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965     break 2
4966   fi
4967 done
4968 done
4969 IFS=$as_save_IFS
4970
4971   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4972   ;;
4973 esac
4974 fi
4975 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4976 if test -n "$DVDRWFORMAT"; then
4977   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4978 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4979 else
4980   { echo "$as_me:$LINENO: result: no" >&5
4981 echo "${ECHO_T}no" >&6; }
4982 fi
4983
4984
4985 # Extract the first word of "pkg-config", so it can be a program name with args.
4986 set dummy pkg-config; ac_word=$2
4987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4989 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4990   echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992   case $PKGCONFIG in
4993   [\\/]* | ?:[\\/]*)
4994   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4995   ;;
4996   *)
4997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
4999 do
5000   IFS=$as_save_IFS
5001   test -z "$as_dir" && as_dir=.
5002   for ac_exec_ext in '' $ac_executable_extensions; do
5003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5004     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5006     break 2
5007   fi
5008 done
5009 done
5010 IFS=$as_save_IFS
5011
5012   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5013   ;;
5014 esac
5015 fi
5016 PKGCONFIG=$ac_cv_path_PKGCONFIG
5017 if test -n "$PKGCONFIG"; then
5018   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5019 echo "${ECHO_T}$PKGCONFIG" >&6; }
5020 else
5021   { echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6; }
5023 fi
5024
5025
5026 # Extract the first word of "qmake", so it can be a program name with args.
5027 set dummy qmake; ac_word=$2
5028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5030 if test "${ac_cv_path_QMAKE+set}" = set; then
5031   echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033   case $QMAKE in
5034   [\\/]* | ?:[\\/]*)
5035   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5036   ;;
5037   *)
5038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041   IFS=$as_save_IFS
5042   test -z "$as_dir" && as_dir=.
5043   for ac_exec_ext in '' $ac_executable_extensions; do
5044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047     break 2
5048   fi
5049 done
5050 done
5051 IFS=$as_save_IFS
5052
5053   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5054   ;;
5055 esac
5056 fi
5057 QMAKE=$ac_cv_path_QMAKE
5058 if test -n "$QMAKE"; then
5059   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5060 echo "${ECHO_T}$QMAKE" >&6; }
5061 else
5062   { echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6; }
5064 fi
5065
5066
5067 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5068 set dummy qmake-qt4; ac_word=$2
5069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5071 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5072   echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074   case $QMAKEQT4 in
5075   [\\/]* | ?:[\\/]*)
5076   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5077   ;;
5078   *)
5079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH
5081 do
5082   IFS=$as_save_IFS
5083   test -z "$as_dir" && as_dir=.
5084   for ac_exec_ext in '' $ac_executable_extensions; do
5085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5088     break 2
5089   fi
5090 done
5091 done
5092 IFS=$as_save_IFS
5093
5094   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5095   ;;
5096 esac
5097 fi
5098 QMAKEQT4=$ac_cv_path_QMAKEQT4
5099 if test -n "$QMAKEQT4"; then
5100   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5101 echo "${ECHO_T}$QMAKEQT4" >&6; }
5102 else
5103   { echo "$as_me:$LINENO: result: no" >&5
5104 echo "${ECHO_T}no" >&6; }
5105 fi
5106
5107
5108 # Extract the first word of "gmake", so it can be a program name with args.
5109 set dummy gmake; ac_word=$2
5110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5112 if test "${ac_cv_path_GMAKE+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115   case $GMAKE in
5116   [\\/]* | ?:[\\/]*)
5117   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5118   ;;
5119   *)
5120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5122 do
5123   IFS=$as_save_IFS
5124   test -z "$as_dir" && as_dir=.
5125   for ac_exec_ext in '' $ac_executable_extensions; do
5126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5129     break 2
5130   fi
5131 done
5132 done
5133 IFS=$as_save_IFS
5134
5135   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5136   ;;
5137 esac
5138 fi
5139 GMAKE=$ac_cv_path_GMAKE
5140 if test -n "$GMAKE"; then
5141   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5142 echo "${ECHO_T}$GMAKE" >&6; }
5143 else
5144   { echo "$as_me:$LINENO: result: no" >&5
5145 echo "${ECHO_T}no" >&6; }
5146 fi
5147
5148
5149
5150 if test "x$WXCONFIG" = x; then
5151    WXCONFIG=wx-config
5152 fi
5153 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5154 set dummy ${WXCONFIG}; ac_word=$2
5155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5157 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5158   echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160   case $WXCONFIG in
5161   [\\/]* | ?:[\\/]*)
5162   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5163   ;;
5164   *)
5165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168   IFS=$as_save_IFS
5169   test -z "$as_dir" && as_dir=.
5170   for ac_exec_ext in '' $ac_executable_extensions; do
5171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5172     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174     break 2
5175   fi
5176 done
5177 done
5178 IFS=$as_save_IFS
5179
5180   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5181   ;;
5182 esac
5183 fi
5184 WXCONFIG=$ac_cv_path_WXCONFIG
5185 if test -n "$WXCONFIG"; then
5186   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5187 echo "${ECHO_T}$WXCONFIG" >&6; }
5188 else
5189   { echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6; }
5191 fi
5192
5193
5194
5195 # Extract the first word of "cdrecord", so it can be a program name with args.
5196 set dummy cdrecord; ac_word=$2
5197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5199 if test "${ac_cv_path_CDRECORD+set}" = set; then
5200   echo $ECHO_N "(cached) $ECHO_C" >&6
5201 else
5202   case $CDRECORD in
5203   [\\/]* | ?:[\\/]*)
5204   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5205   ;;
5206   *)
5207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5209 do
5210   IFS=$as_save_IFS
5211   test -z "$as_dir" && as_dir=.
5212   for ac_exec_ext in '' $ac_executable_extensions; do
5213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5214     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216     break 2
5217   fi
5218 done
5219 done
5220 IFS=$as_save_IFS
5221
5222   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5223   ;;
5224 esac
5225 fi
5226 CDRECORD=$ac_cv_path_CDRECORD
5227 if test -n "$CDRECORD"; then
5228   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5229 echo "${ECHO_T}$CDRECORD" >&6; }
5230 else
5231   { echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6; }
5233 fi
5234
5235
5236 # Extract the first word of "pidof", so it can be a program name with args.
5237 set dummy pidof; ac_word=$2
5238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5240 if test "${ac_cv_path_PIDOF+set}" = set; then
5241   echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243   case $PIDOF in
5244   [\\/]* | ?:[\\/]*)
5245   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5246   ;;
5247   *)
5248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251   IFS=$as_save_IFS
5252   test -z "$as_dir" && as_dir=.
5253   for ac_exec_ext in '' $ac_executable_extensions; do
5254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257     break 2
5258   fi
5259 done
5260 done
5261 IFS=$as_save_IFS
5262
5263   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5264   ;;
5265 esac
5266 fi
5267 PIDOF=$ac_cv_path_PIDOF
5268 if test -n "$PIDOF"; then
5269   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5270 echo "${ECHO_T}$PIDOF" >&6; }
5271 else
5272   { echo "$as_me:$LINENO: result: no" >&5
5273 echo "${ECHO_T}no" >&6; }
5274 fi
5275
5276
5277 for ac_prog in gawk mawk nawk awk
5278 do
5279   # Extract the first word of "$ac_prog", so it can be a program name with args.
5280 set dummy $ac_prog; ac_word=$2
5281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5283 if test "${ac_cv_prog_AWK+set}" = set; then
5284   echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286   if test -n "$AWK"; then
5287   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5288 else
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5291 do
5292   IFS=$as_save_IFS
5293   test -z "$as_dir" && as_dir=.
5294   for ac_exec_ext in '' $ac_executable_extensions; do
5295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296     ac_cv_prog_AWK="$ac_prog"
5297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298     break 2
5299   fi
5300 done
5301 done
5302 IFS=$as_save_IFS
5303
5304 fi
5305 fi
5306 AWK=$ac_cv_prog_AWK
5307 if test -n "$AWK"; then
5308   { echo "$as_me:$LINENO: result: $AWK" >&5
5309 echo "${ECHO_T}$AWK" >&6; }
5310 else
5311   { echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6; }
5313 fi
5314
5315
5316   test -n "$AWK" && break
5317 done
5318
5319 # Some AWK programs fail, so test it and warn the user
5320 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5321       { if ((prog == $2) || (("(" prog ")") == $2) ||
5322       (("" prog "") == $2) ||
5323       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5324 else
5325   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5326    The regex engine of $AWK is too broken to be used you
5327    might want to install GNU AWK.
5328    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5329 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5330    The regex engine of $AWK is too broken to be used you
5331    might want to install GNU AWK.
5332    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5333    { (exit 1); exit 1; }; }
5334 fi
5335 THE_AWK=$AWK
5336 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5337 set dummy $THE_AWK; ac_word=$2
5338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5340 if test "${ac_cv_path_AWK+set}" = set; then
5341   echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343   case $AWK in
5344   [\\/]* | ?:[\\/]*)
5345   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5346   ;;
5347   *)
5348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351   IFS=$as_save_IFS
5352   test -z "$as_dir" && as_dir=.
5353   for ac_exec_ext in '' $ac_executable_extensions; do
5354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357     break 2
5358   fi
5359 done
5360 done
5361 IFS=$as_save_IFS
5362
5363   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5364   ;;
5365 esac
5366 fi
5367 AWK=$ac_cv_path_AWK
5368 if test -n "$AWK"; then
5369   { echo "$as_me:$LINENO: result: $AWK" >&5
5370 echo "${ECHO_T}$AWK" >&6; }
5371 else
5372   { echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6; }
5374 fi
5375
5376
5377
5378
5379 test -n "$ARFLAG" || ARFLAGS="cr"
5380
5381
5382 MAKE_SHELL=/bin/sh
5383
5384
5385
5386
5387
5388
5389
5390 # Check whether --enable-libtool was given.
5391 if test "${enable_libtool+set}" = set; then
5392   enableval=$enable_libtool;
5393        if test x$enableval = xno; then
5394           use_libtool=no
5395        fi
5396
5397
5398 fi
5399
5400 case `pwd` in
5401   *\ * | *\     *)
5402     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5403 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5404 esac
5405
5406
5407
5408 macro_version='2.2.6'
5409 macro_revision='1.3012'
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423 ltmain="$ac_aux_dir/ltmain.sh"
5424
5425 # Make sure we can run config.sub.
5426 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5427   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5428 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5429    { (exit 1); exit 1; }; }
5430
5431 { echo "$as_me:$LINENO: checking build system type" >&5
5432 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5433 if test "${ac_cv_build+set}" = set; then
5434   echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436   ac_build_alias=$build_alias
5437 test "x$ac_build_alias" = x &&
5438   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5439 test "x$ac_build_alias" = x &&
5440   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5441 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5442    { (exit 1); exit 1; }; }
5443 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5444   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5445 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5446    { (exit 1); exit 1; }; }
5447
5448 fi
5449 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5450 echo "${ECHO_T}$ac_cv_build" >&6; }
5451 case $ac_cv_build in
5452 *-*-*) ;;
5453 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5454 echo "$as_me: error: invalid value of canonical build" >&2;}
5455    { (exit 1); exit 1; }; };;
5456 esac
5457 build=$ac_cv_build
5458 ac_save_IFS=$IFS; IFS='-'
5459 set x $ac_cv_build
5460 shift
5461 build_cpu=$1
5462 build_vendor=$2
5463 shift; shift
5464 # Remember, the first character of IFS is used to create $*,
5465 # except with old shells:
5466 build_os=$*
5467 IFS=$ac_save_IFS
5468 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5469
5470
5471 { echo "$as_me:$LINENO: checking host system type" >&5
5472 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5473 if test "${ac_cv_host+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   if test "x$host_alias" = x; then
5477   ac_cv_host=$ac_cv_build
5478 else
5479   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5480     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5481 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5482    { (exit 1); exit 1; }; }
5483 fi
5484
5485 fi
5486 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5487 echo "${ECHO_T}$ac_cv_host" >&6; }
5488 case $ac_cv_host in
5489 *-*-*) ;;
5490 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5491 echo "$as_me: error: invalid value of canonical host" >&2;}
5492    { (exit 1); exit 1; }; };;
5493 esac
5494 host=$ac_cv_host
5495 ac_save_IFS=$IFS; IFS='-'
5496 set x $ac_cv_host
5497 shift
5498 host_cpu=$1
5499 host_vendor=$2
5500 shift; shift
5501 # Remember, the first character of IFS is used to create $*,
5502 # except with old shells:
5503 host_os=$*
5504 IFS=$ac_save_IFS
5505 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5506
5507
5508 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5509 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5510 if test "${ac_cv_path_SED+set}" = set; then
5511   echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5514      for ac_i in 1 2 3 4 5 6 7; do
5515        ac_script="$ac_script$as_nl$ac_script"
5516      done
5517      echo "$ac_script" | sed 99q >conftest.sed
5518      $as_unset ac_script || ac_script=
5519      # Extract the first word of "sed gsed" to use in msg output
5520 if test -z "$SED"; then
5521 set dummy sed gsed; ac_prog_name=$2
5522 if test "${ac_cv_path_SED+set}" = set; then
5523   echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525   ac_path_SED_found=false
5526 # Loop through the user's path and test for each of PROGNAME-LIST
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530   IFS=$as_save_IFS
5531   test -z "$as_dir" && as_dir=.
5532   for ac_prog in sed gsed; do
5533   for ac_exec_ext in '' $ac_executable_extensions; do
5534     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5535     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5536     # Check for GNU ac_path_SED and select it if it is found.
5537   # Check for GNU $ac_path_SED
5538 case `"$ac_path_SED" --version 2>&1` in
5539 *GNU*)
5540   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5541 *)
5542   ac_count=0
5543   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5544   while :
5545   do
5546     cat "conftest.in" "conftest.in" >"conftest.tmp"
5547     mv "conftest.tmp" "conftest.in"
5548     cp "conftest.in" "conftest.nl"
5549     echo '' >> "conftest.nl"
5550     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5551     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5552     ac_count=`expr $ac_count + 1`
5553     if test $ac_count -gt ${ac_path_SED_max-0}; then
5554       # Best one so far, save it but keep looking for a better one
5555       ac_cv_path_SED="$ac_path_SED"
5556       ac_path_SED_max=$ac_count
5557     fi
5558     # 10*(2^10) chars as input seems more than enough
5559     test $ac_count -gt 10 && break
5560   done
5561   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5562 esac
5563
5564
5565     $ac_path_SED_found && break 3
5566   done
5567 done
5568
5569 done
5570 IFS=$as_save_IFS
5571
5572
5573 fi
5574
5575 SED="$ac_cv_path_SED"
5576 if test -z "$SED"; then
5577   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5578 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5579    { (exit 1); exit 1; }; }
5580 fi
5581
5582 else
5583   ac_cv_path_SED=$SED
5584 fi
5585
5586 fi
5587 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5588 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5589  SED="$ac_cv_path_SED"
5590   rm -f conftest.sed
5591
5592 test -z "$SED" && SED=sed
5593 Xsed="$SED -e 1s/^X//"
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605 { echo "$as_me:$LINENO: checking for fgrep" >&5
5606 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5607 if test "${ac_cv_path_FGREP+set}" = set; then
5608   echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5611    then ac_cv_path_FGREP="$GREP -F"
5612    else
5613      # Extract the first word of "fgrep" to use in msg output
5614 if test -z "$FGREP"; then
5615 set dummy fgrep; ac_prog_name=$2
5616 if test "${ac_cv_path_FGREP+set}" = set; then
5617   echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619   ac_path_FGREP_found=false
5620 # Loop through the user's path and test for each of PROGNAME-LIST
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5623 do
5624   IFS=$as_save_IFS
5625   test -z "$as_dir" && as_dir=.
5626   for ac_prog in fgrep; do
5627   for ac_exec_ext in '' $ac_executable_extensions; do
5628     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5629     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5630     # Check for GNU ac_path_FGREP and select it if it is found.
5631   # Check for GNU $ac_path_FGREP
5632 case `"$ac_path_FGREP" --version 2>&1` in
5633 *GNU*)
5634   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5635 *)
5636   ac_count=0
5637   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5638   while :
5639   do
5640     cat "conftest.in" "conftest.in" >"conftest.tmp"
5641     mv "conftest.tmp" "conftest.in"
5642     cp "conftest.in" "conftest.nl"
5643     echo 'FGREP' >> "conftest.nl"
5644     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5645     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5646     ac_count=`expr $ac_count + 1`
5647     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5648       # Best one so far, save it but keep looking for a better one
5649       ac_cv_path_FGREP="$ac_path_FGREP"
5650       ac_path_FGREP_max=$ac_count
5651     fi
5652     # 10*(2^10) chars as input seems more than enough
5653     test $ac_count -gt 10 && break
5654   done
5655   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5656 esac
5657
5658
5659     $ac_path_FGREP_found && break 3
5660   done
5661 done
5662
5663 done
5664 IFS=$as_save_IFS
5665
5666
5667 fi
5668
5669 FGREP="$ac_cv_path_FGREP"
5670 if test -z "$FGREP"; then
5671   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5672 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5673    { (exit 1); exit 1; }; }
5674 fi
5675
5676 else
5677   ac_cv_path_FGREP=$FGREP
5678 fi
5679
5680
5681    fi
5682 fi
5683 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5684 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5685  FGREP="$ac_cv_path_FGREP"
5686
5687
5688 test -z "$GREP" && GREP=grep
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708 # Check whether --with-gnu-ld was given.
5709 if test "${with_gnu_ld+set}" = set; then
5710   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5711 else
5712   with_gnu_ld=no
5713 fi
5714
5715 ac_prog=ld
5716 if test "$GCC" = yes; then
5717   # Check if gcc -print-prog-name=ld gives a path.
5718   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5719 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5720   case $host in
5721   *-*-mingw*)
5722     # gcc leaves a trailing carriage return which upsets mingw
5723     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5724   *)
5725     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5726   esac
5727   case $ac_prog in
5728     # Accept absolute paths.
5729     [\\/]* | ?:[\\/]*)
5730       re_direlt='/[^/][^/]*/\.\./'
5731       # Canonicalize the pathname of ld
5732       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5733       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5734         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5735       done
5736       test -z "$LD" && LD="$ac_prog"
5737       ;;
5738   "")
5739     # If it fails, then pretend we aren't using GCC.
5740     ac_prog=ld
5741     ;;
5742   *)
5743     # If it is relative, then search for the first ld in PATH.
5744     with_gnu_ld=unknown
5745     ;;
5746   esac
5747 elif test "$with_gnu_ld" = yes; then
5748   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5749 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5750 else
5751   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5752 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5753 fi
5754 if test "${lt_cv_path_LD+set}" = set; then
5755   echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757   if test -z "$LD"; then
5758   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5759   for ac_dir in $PATH; do
5760     IFS="$lt_save_ifs"
5761     test -z "$ac_dir" && ac_dir=.
5762     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5763       lt_cv_path_LD="$ac_dir/$ac_prog"
5764       # Check to see if the program is GNU ld.  I'd rather use --version,
5765       # but apparently some variants of GNU ld only accept -v.
5766       # Break only if it was the GNU/non-GNU ld that we prefer.
5767       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5768       *GNU* | *'with BFD'*)
5769         test "$with_gnu_ld" != no && break
5770         ;;
5771       *)
5772         test "$with_gnu_ld" != yes && break
5773         ;;
5774       esac
5775     fi
5776   done
5777   IFS="$lt_save_ifs"
5778 else
5779   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5780 fi
5781 fi
5782
5783 LD="$lt_cv_path_LD"
5784 if test -n "$LD"; then
5785   { echo "$as_me:$LINENO: result: $LD" >&5
5786 echo "${ECHO_T}$LD" >&6; }
5787 else
5788   { echo "$as_me:$LINENO: result: no" >&5
5789 echo "${ECHO_T}no" >&6; }
5790 fi
5791 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5792 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5793    { (exit 1); exit 1; }; }
5794 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5795 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5796 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5800 case `$LD -v 2>&1 </dev/null` in
5801 *GNU* | *'with BFD'*)
5802   lt_cv_prog_gnu_ld=yes
5803   ;;
5804 *)
5805   lt_cv_prog_gnu_ld=no
5806   ;;
5807 esac
5808 fi
5809 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5810 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5811 with_gnu_ld=$lt_cv_prog_gnu_ld
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5822 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5823 if test "${lt_cv_path_NM+set}" = set; then
5824   echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826   if test -n "$NM"; then
5827   # Let the user override the test.
5828   lt_cv_path_NM="$NM"
5829 else
5830   lt_nm_to_check="${ac_tool_prefix}nm"
5831   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5832     lt_nm_to_check="$lt_nm_to_check nm"
5833   fi
5834   for lt_tmp_nm in $lt_nm_to_check; do
5835     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5836     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5837       IFS="$lt_save_ifs"
5838       test -z "$ac_dir" && ac_dir=.
5839       tmp_nm="$ac_dir/$lt_tmp_nm"
5840       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5841         # Check to see if the nm accepts a BSD-compat flag.
5842         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5843         #   nm: unknown option "B" ignored
5844         # Tru64's nm complains that /dev/null is an invalid object file
5845         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5846         */dev/null* | *'Invalid file or object type'*)
5847           lt_cv_path_NM="$tmp_nm -B"
5848           break
5849           ;;
5850         *)
5851           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5852           */dev/null*)
5853             lt_cv_path_NM="$tmp_nm -p"
5854             break
5855             ;;
5856           *)
5857             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5858             continue # so that we can try to find one that supports BSD flags
5859             ;;
5860           esac
5861           ;;
5862         esac
5863       fi
5864     done
5865     IFS="$lt_save_ifs"
5866   done
5867   : ${lt_cv_path_NM=no}
5868 fi
5869 fi
5870 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5871 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5872 if test "$lt_cv_path_NM" != "no"; then
5873   NM="$lt_cv_path_NM"
5874 else
5875   # Didn't find any BSD compatible name lister, look for dumpbin.
5876   if test -n "$ac_tool_prefix"; then
5877   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5878   do
5879     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5884   echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886   if test -n "$DUMPBIN"; then
5887   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892   IFS=$as_save_IFS
5893   test -z "$as_dir" && as_dir=.
5894   for ac_exec_ext in '' $ac_executable_extensions; do
5895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898     break 2
5899   fi
5900 done
5901 done
5902 IFS=$as_save_IFS
5903
5904 fi
5905 fi
5906 DUMPBIN=$ac_cv_prog_DUMPBIN
5907 if test -n "$DUMPBIN"; then
5908   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5909 echo "${ECHO_T}$DUMPBIN" >&6; }
5910 else
5911   { echo "$as_me:$LINENO: result: no" >&5
5912 echo "${ECHO_T}no" >&6; }
5913 fi
5914
5915
5916     test -n "$DUMPBIN" && break
5917   done
5918 fi
5919 if test -z "$DUMPBIN"; then
5920   ac_ct_DUMPBIN=$DUMPBIN
5921   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5922 do
5923   # Extract the first word of "$ac_prog", so it can be a program name with args.
5924 set dummy $ac_prog; ac_word=$2
5925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5927 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930   if test -n "$ac_ct_DUMPBIN"; then
5931   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936   IFS=$as_save_IFS
5937   test -z "$as_dir" && as_dir=.
5938   for ac_exec_ext in '' $ac_executable_extensions; do
5939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942     break 2
5943   fi
5944 done
5945 done
5946 IFS=$as_save_IFS
5947
5948 fi
5949 fi
5950 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5951 if test -n "$ac_ct_DUMPBIN"; then
5952   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5953 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5954 else
5955   { echo "$as_me:$LINENO: result: no" >&5
5956 echo "${ECHO_T}no" >&6; }
5957 fi
5958
5959
5960   test -n "$ac_ct_DUMPBIN" && break
5961 done
5962
5963   if test "x$ac_ct_DUMPBIN" = x; then
5964     DUMPBIN=":"
5965   else
5966     case $cross_compiling:$ac_tool_warned in
5967 yes:)
5968 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5969 whose name does not start with the host triplet.  If you think this
5970 configuration is useful to you, please write to autoconf@gnu.org." >&5
5971 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5972 whose name does not start with the host triplet.  If you think this
5973 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5974 ac_tool_warned=yes ;;
5975 esac
5976     DUMPBIN=$ac_ct_DUMPBIN
5977   fi
5978 fi
5979
5980
5981   if test "$DUMPBIN" != ":"; then
5982     NM="$DUMPBIN"
5983   fi
5984 fi
5985 test -z "$NM" && NM=nm
5986
5987
5988
5989
5990
5991
5992 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5993 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5994 if test "${lt_cv_nm_interface+set}" = set; then
5995   echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997   lt_cv_nm_interface="BSD nm"
5998   echo "int some_variable = 0;" > conftest.$ac_ext
5999   (eval echo "\"\$as_me:5999: $ac_compile\"" >&5)
6000   (eval "$ac_compile" 2>conftest.err)
6001   cat conftest.err >&5
6002   (eval echo "\"\$as_me:6002: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6003   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6004   cat conftest.err >&5
6005   (eval echo "\"\$as_me:6005: output\"" >&5)
6006   cat conftest.out >&5
6007   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6008     lt_cv_nm_interface="MS dumpbin"
6009   fi
6010   rm -f conftest*
6011 fi
6012 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6013 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6014
6015 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6016 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6017 LN_S=$as_ln_s
6018 if test "$LN_S" = "ln -s"; then
6019   { echo "$as_me:$LINENO: result: yes" >&5
6020 echo "${ECHO_T}yes" >&6; }
6021 else
6022   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6023 echo "${ECHO_T}no, using $LN_S" >&6; }
6024 fi
6025
6026 # find the maximum length of command line arguments
6027 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6028 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6029 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032     i=0
6033   teststring="ABCD"
6034
6035   case $build_os in
6036   msdosdjgpp*)
6037     # On DJGPP, this test can blow up pretty badly due to problems in libc
6038     # (any single argument exceeding 2000 bytes causes a buffer overrun
6039     # during glob expansion).  Even if it were fixed, the result of this
6040     # check would be larger than it should be.
6041     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6042     ;;
6043
6044   gnu*)
6045     # Under GNU Hurd, this test is not required because there is
6046     # no limit to the length of command line arguments.
6047     # Libtool will interpret -1 as no limit whatsoever
6048     lt_cv_sys_max_cmd_len=-1;
6049     ;;
6050
6051   cygwin* | mingw* | cegcc*)
6052     # On Win9x/ME, this test blows up -- it succeeds, but takes
6053     # about 5 minutes as the teststring grows exponentially.
6054     # Worse, since 9x/ME are not pre-emptively multitasking,
6055     # you end up with a "frozen" computer, even though with patience
6056     # the test eventually succeeds (with a max line length of 256k).
6057     # Instead, let's just punt: use the minimum linelength reported by
6058     # all of the supported platforms: 8192 (on NT/2K/XP).
6059     lt_cv_sys_max_cmd_len=8192;
6060     ;;
6061
6062   amigaos*)
6063     # On AmigaOS with pdksh, this test takes hours, literally.
6064     # So we just punt and use a minimum line length of 8192.
6065     lt_cv_sys_max_cmd_len=8192;
6066     ;;
6067
6068   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6069     # This has been around since 386BSD, at least.  Likely further.
6070     if test -x /sbin/sysctl; then
6071       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6072     elif test -x /usr/sbin/sysctl; then
6073       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6074     else
6075       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6076     fi
6077     # And add a safety zone
6078     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6079     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6080     ;;
6081
6082   interix*)
6083     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6084     lt_cv_sys_max_cmd_len=196608
6085     ;;
6086
6087   osf*)
6088     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6089     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6090     # nice to cause kernel panics so lets avoid the loop below.
6091     # First set a reasonable default.
6092     lt_cv_sys_max_cmd_len=16384
6093     #
6094     if test -x /sbin/sysconfig; then
6095       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6096         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6097       esac
6098     fi
6099     ;;
6100   sco3.2v5*)
6101     lt_cv_sys_max_cmd_len=102400
6102     ;;
6103   sysv5* | sco5v6* | sysv4.2uw2*)
6104     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6105     if test -n "$kargmax"; then
6106       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6107     else
6108       lt_cv_sys_max_cmd_len=32768
6109     fi
6110     ;;
6111   *)
6112     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6113     if test -n "$lt_cv_sys_max_cmd_len"; then
6114       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6115       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6116     else
6117       # Make teststring a little bigger before we do anything with it.
6118       # a 1K string should be a reasonable start.
6119       for i in 1 2 3 4 5 6 7 8 ; do
6120         teststring=$teststring$teststring
6121       done
6122       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6123       # If test is not a shell built-in, we'll probably end up computing a
6124       # maximum length that is only half of the actual maximum length, but
6125       # we can't tell.
6126       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6127                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6128               test $i != 17 # 1/2 MB should be enough
6129       do
6130         i=`expr $i + 1`
6131         teststring=$teststring$teststring
6132       done
6133       # Only check the string length outside the loop.
6134       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6135       teststring=
6136       # Add a significant safety factor because C++ compilers can tack on
6137       # massive amounts of additional arguments before passing them to the
6138       # linker.  It appears as though 1/2 is a usable value.
6139       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6140     fi
6141     ;;
6142   esac
6143
6144 fi
6145
6146 if test -n $lt_cv_sys_max_cmd_len ; then
6147   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6148 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6149 else
6150   { echo "$as_me:$LINENO: result: none" >&5
6151 echo "${ECHO_T}none" >&6; }
6152 fi
6153 max_cmd_len=$lt_cv_sys_max_cmd_len
6154
6155
6156
6157
6158
6159
6160 : ${CP="cp -f"}
6161 : ${MV="mv -f"}
6162 : ${RM="rm -f"}
6163
6164 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6165 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6166 # Try some XSI features
6167 xsi_shell=no
6168 ( _lt_dummy="a/b/c"
6169   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6170       = c,a/b,, \
6171     && eval 'test $(( 1 + 1 )) -eq 2 \
6172     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6173   && xsi_shell=yes
6174 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6175 echo "${ECHO_T}$xsi_shell" >&6; }
6176
6177
6178 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6179 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6180 lt_shell_append=no
6181 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6182     >/dev/null 2>&1 \
6183   && lt_shell_append=yes
6184 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6185 echo "${ECHO_T}$lt_shell_append" >&6; }
6186
6187
6188 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6189   lt_unset=unset
6190 else
6191   lt_unset=false
6192 fi
6193
6194
6195
6196
6197
6198 # test EBCDIC or ASCII
6199 case `echo X|tr X '\101'` in
6200  A) # ASCII based system
6201     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6202   lt_SP2NL='tr \040 \012'
6203   lt_NL2SP='tr \015\012 \040\040'
6204   ;;
6205  *) # EBCDIC based system
6206   lt_SP2NL='tr \100 \n'
6207   lt_NL2SP='tr \r\n \100\100'
6208   ;;
6209 esac
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6220 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6221 if test "${lt_cv_ld_reload_flag+set}" = set; then
6222   echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224   lt_cv_ld_reload_flag='-r'
6225 fi
6226 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6227 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6228 reload_flag=$lt_cv_ld_reload_flag
6229 case $reload_flag in
6230 "" | " "*) ;;
6231 *) reload_flag=" $reload_flag" ;;
6232 esac
6233 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6234 case $host_os in
6235   darwin*)
6236     if test "$GCC" = yes; then
6237       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6238     else
6239       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6240     fi
6241     ;;
6242 esac
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252 if test -n "$ac_tool_prefix"; then
6253   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6254 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6257 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6258   echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260   if test -n "$OBJDUMP"; then
6261   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266   IFS=$as_save_IFS
6267   test -z "$as_dir" && as_dir=.
6268   for ac_exec_ext in '' $ac_executable_extensions; do
6269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272     break 2
6273   fi
6274 done
6275 done
6276 IFS=$as_save_IFS
6277
6278 fi
6279 fi
6280 OBJDUMP=$ac_cv_prog_OBJDUMP
6281 if test -n "$OBJDUMP"; then
6282   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6283 echo "${ECHO_T}$OBJDUMP" >&6; }
6284 else
6285   { echo "$as_me:$LINENO: result: no" >&5
6286 echo "${ECHO_T}no" >&6; }
6287 fi
6288
6289
6290 fi
6291 if test -z "$ac_cv_prog_OBJDUMP"; then
6292   ac_ct_OBJDUMP=$OBJDUMP
6293   # Extract the first word of "objdump", so it can be a program name with args.
6294 set dummy objdump; ac_word=$2
6295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6297 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6298   echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300   if test -n "$ac_ct_OBJDUMP"; then
6301   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6305 do
6306   IFS=$as_save_IFS
6307   test -z "$as_dir" && as_dir=.
6308   for ac_exec_ext in '' $ac_executable_extensions; do
6309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312     break 2
6313   fi
6314 done
6315 done
6316 IFS=$as_save_IFS
6317
6318 fi
6319 fi
6320 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6321 if test -n "$ac_ct_OBJDUMP"; then
6322   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6323 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6324 else
6325   { echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6; }
6327 fi
6328
6329   if test "x$ac_ct_OBJDUMP" = x; then
6330     OBJDUMP="false"
6331   else
6332     case $cross_compiling:$ac_tool_warned in
6333 yes:)
6334 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6335 whose name does not start with the host triplet.  If you think this
6336 configuration is useful to you, please write to autoconf@gnu.org." >&5
6337 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6338 whose name does not start with the host triplet.  If you think this
6339 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6340 ac_tool_warned=yes ;;
6341 esac
6342     OBJDUMP=$ac_ct_OBJDUMP
6343   fi
6344 else
6345   OBJDUMP="$ac_cv_prog_OBJDUMP"
6346 fi
6347
6348 test -z "$OBJDUMP" && OBJDUMP=objdump
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6359 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6360 if test "${lt_cv_deplibs_check_method+set}" = set; then
6361   echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363   lt_cv_file_magic_cmd='$MAGIC_CMD'
6364 lt_cv_file_magic_test_file=
6365 lt_cv_deplibs_check_method='unknown'
6366 # Need to set the preceding variable on all platforms that support
6367 # interlibrary dependencies.
6368 # 'none' -- dependencies not supported.
6369 # `unknown' -- same as none, but documents that we really don't know.
6370 # 'pass_all' -- all dependencies passed with no checks.
6371 # 'test_compile' -- check by making test program.
6372 # 'file_magic [[regex]]' -- check by looking for files in library path
6373 # which responds to the $file_magic_cmd with a given extended regex.
6374 # If you have `file' or equivalent on your system and you're not sure
6375 # whether `pass_all' will *always* work, you probably want this one.
6376
6377 case $host_os in
6378 aix[4-9]*)
6379   lt_cv_deplibs_check_method=pass_all
6380   ;;
6381
6382 beos*)
6383   lt_cv_deplibs_check_method=pass_all
6384   ;;
6385
6386 bsdi[45]*)
6387   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6388   lt_cv_file_magic_cmd='/usr/bin/file -L'
6389   lt_cv_file_magic_test_file=/shlib/libc.so
6390   ;;
6391
6392 cygwin*)
6393   # func_win32_libid is a shell function defined in ltmain.sh
6394   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6395   lt_cv_file_magic_cmd='func_win32_libid'
6396   ;;
6397
6398 mingw* | pw32*)
6399   # Base MSYS/MinGW do not provide the 'file' command needed by
6400   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6401   # unless we find 'file', for example because we are cross-compiling.
6402   if ( file / ) >/dev/null 2>&1; then
6403     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6404     lt_cv_file_magic_cmd='func_win32_libid'
6405   else
6406     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6407     lt_cv_file_magic_cmd='$OBJDUMP -f'
6408   fi
6409   ;;
6410
6411 cegcc)
6412   # use the weaker test based on 'objdump'. See mingw*.
6413   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6414   lt_cv_file_magic_cmd='$OBJDUMP -f'
6415   ;;
6416
6417 darwin* | rhapsody*)
6418   lt_cv_deplibs_check_method=pass_all
6419   ;;
6420
6421 freebsd* | dragonfly*)
6422   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6423     case $host_cpu in
6424     i*86 )
6425       # Not sure whether the presence of OpenBSD here was a mistake.
6426       # Let's accept both of them until this is cleared up.
6427       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6428       lt_cv_file_magic_cmd=/usr/bin/file
6429       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6430       ;;
6431     esac
6432   else
6433     lt_cv_deplibs_check_method=pass_all
6434   fi
6435   ;;
6436
6437 gnu*)
6438   lt_cv_deplibs_check_method=pass_all
6439   ;;
6440
6441 hpux10.20* | hpux11*)
6442   lt_cv_file_magic_cmd=/usr/bin/file
6443   case $host_cpu in
6444   ia64*)
6445     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6446     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6447     ;;
6448   hppa*64*)
6449     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]'
6450     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6451     ;;
6452   *)
6453     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6454     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6455     ;;
6456   esac
6457   ;;
6458
6459 interix[3-9]*)
6460   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6461   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6462   ;;
6463
6464 irix5* | irix6* | nonstopux*)
6465   case $LD in
6466   *-32|*"-32 ") libmagic=32-bit;;
6467   *-n32|*"-n32 ") libmagic=N32;;
6468   *-64|*"-64 ") libmagic=64-bit;;
6469   *) libmagic=never-match;;
6470   esac
6471   lt_cv_deplibs_check_method=pass_all
6472   ;;
6473
6474 # This must be Linux ELF.
6475 linux* | k*bsd*-gnu)
6476   lt_cv_deplibs_check_method=pass_all
6477   ;;
6478
6479 netbsd*)
6480   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6481     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6482   else
6483     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6484   fi
6485   ;;
6486
6487 newos6*)
6488   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6489   lt_cv_file_magic_cmd=/usr/bin/file
6490   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6491   ;;
6492
6493 *nto* | *qnx*)
6494   lt_cv_deplibs_check_method=pass_all
6495   ;;
6496
6497 openbsd*)
6498   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6499     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6500   else
6501     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6502   fi
6503   ;;
6504
6505 osf3* | osf4* | osf5*)
6506   lt_cv_deplibs_check_method=pass_all
6507   ;;
6508
6509 rdos*)
6510   lt_cv_deplibs_check_method=pass_all
6511   ;;
6512
6513 solaris*)
6514   lt_cv_deplibs_check_method=pass_all
6515   ;;
6516
6517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6518   lt_cv_deplibs_check_method=pass_all
6519   ;;
6520
6521 sysv4 | sysv4.3*)
6522   case $host_vendor in
6523   motorola)
6524     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]'
6525     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6526     ;;
6527   ncr)
6528     lt_cv_deplibs_check_method=pass_all
6529     ;;
6530   sequent)
6531     lt_cv_file_magic_cmd='/bin/file'
6532     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6533     ;;
6534   sni)
6535     lt_cv_file_magic_cmd='/bin/file'
6536     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6537     lt_cv_file_magic_test_file=/lib/libc.so
6538     ;;
6539   siemens)
6540     lt_cv_deplibs_check_method=pass_all
6541     ;;
6542   pc)
6543     lt_cv_deplibs_check_method=pass_all
6544     ;;
6545   esac
6546   ;;
6547
6548 tpf*)
6549   lt_cv_deplibs_check_method=pass_all
6550   ;;
6551 esac
6552
6553 fi
6554 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6555 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6556 file_magic_cmd=$lt_cv_file_magic_cmd
6557 deplibs_check_method=$lt_cv_deplibs_check_method
6558 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571 if test -n "$ac_tool_prefix"; then
6572   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6573 set dummy ${ac_tool_prefix}ar; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_prog_AR+set}" = set; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   if test -n "$AR"; then
6580   ac_cv_prog_AR="$AR" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585   IFS=$as_save_IFS
6586   test -z "$as_dir" && as_dir=.
6587   for ac_exec_ext in '' $ac_executable_extensions; do
6588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589     ac_cv_prog_AR="${ac_tool_prefix}ar"
6590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591     break 2
6592   fi
6593 done
6594 done
6595 IFS=$as_save_IFS
6596
6597 fi
6598 fi
6599 AR=$ac_cv_prog_AR
6600 if test -n "$AR"; then
6601   { echo "$as_me:$LINENO: result: $AR" >&5
6602 echo "${ECHO_T}$AR" >&6; }
6603 else
6604   { echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6; }
6606 fi
6607
6608
6609 fi
6610 if test -z "$ac_cv_prog_AR"; then
6611   ac_ct_AR=$AR
6612   # Extract the first word of "ar", so it can be a program name with args.
6613 set dummy ar; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619   if test -n "$ac_ct_AR"; then
6620   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625   IFS=$as_save_IFS
6626   test -z "$as_dir" && as_dir=.
6627   for ac_exec_ext in '' $ac_executable_extensions; do
6628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6629     ac_cv_prog_ac_ct_AR="ar"
6630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631     break 2
6632   fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6636
6637 fi
6638 fi
6639 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6640 if test -n "$ac_ct_AR"; then
6641   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6642 echo "${ECHO_T}$ac_ct_AR" >&6; }
6643 else
6644   { echo "$as_me:$LINENO: result: no" >&5
6645 echo "${ECHO_T}no" >&6; }
6646 fi
6647
6648   if test "x$ac_ct_AR" = x; then
6649     AR="false"
6650   else
6651     case $cross_compiling:$ac_tool_warned in
6652 yes:)
6653 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6654 whose name does not start with the host triplet.  If you think this
6655 configuration is useful to you, please write to autoconf@gnu.org." >&5
6656 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6657 whose name does not start with the host triplet.  If you think this
6658 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6659 ac_tool_warned=yes ;;
6660 esac
6661     AR=$ac_ct_AR
6662   fi
6663 else
6664   AR="$ac_cv_prog_AR"
6665 fi
6666
6667 test -z "$AR" && AR=ar
6668 test -z "$AR_FLAGS" && AR_FLAGS=cru
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680 if test -n "$ac_tool_prefix"; then
6681   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6682 set dummy ${ac_tool_prefix}strip; ac_word=$2
6683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685 if test "${ac_cv_prog_STRIP+set}" = set; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688   if test -n "$STRIP"; then
6689   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694   IFS=$as_save_IFS
6695   test -z "$as_dir" && as_dir=.
6696   for ac_exec_ext in '' $ac_executable_extensions; do
6697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700     break 2
6701   fi
6702 done
6703 done
6704 IFS=$as_save_IFS
6705
6706 fi
6707 fi
6708 STRIP=$ac_cv_prog_STRIP
6709 if test -n "$STRIP"; then
6710   { echo "$as_me:$LINENO: result: $STRIP" >&5
6711 echo "${ECHO_T}$STRIP" >&6; }
6712 else
6713   { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6715 fi
6716
6717
6718 fi
6719 if test -z "$ac_cv_prog_STRIP"; then
6720   ac_ct_STRIP=$STRIP
6721   # Extract the first word of "strip", so it can be a program name with args.
6722 set dummy strip; ac_word=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6726   echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728   if test -n "$ac_ct_STRIP"; then
6729   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734   IFS=$as_save_IFS
6735   test -z "$as_dir" && as_dir=.
6736   for ac_exec_ext in '' $ac_executable_extensions; do
6737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738     ac_cv_prog_ac_ct_STRIP="strip"
6739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740     break 2
6741   fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6745
6746 fi
6747 fi
6748 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6749 if test -n "$ac_ct_STRIP"; then
6750   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6751 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6752 else
6753   { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6755 fi
6756
6757   if test "x$ac_ct_STRIP" = x; then
6758     STRIP=":"
6759   else
6760     case $cross_compiling:$ac_tool_warned in
6761 yes:)
6762 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6763 whose name does not start with the host triplet.  If you think this
6764 configuration is useful to you, please write to autoconf@gnu.org." >&5
6765 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6766 whose name does not start with the host triplet.  If you think this
6767 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6768 ac_tool_warned=yes ;;
6769 esac
6770     STRIP=$ac_ct_STRIP
6771   fi
6772 else
6773   STRIP="$ac_cv_prog_STRIP"
6774 fi
6775
6776 test -z "$STRIP" && STRIP=:
6777
6778
6779
6780
6781
6782
6783 if test -n "$ac_tool_prefix"; then
6784   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6785 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788 if test "${ac_cv_prog_RANLIB+set}" = set; then
6789   echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791   if test -n "$RANLIB"; then
6792   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797   IFS=$as_save_IFS
6798   test -z "$as_dir" && as_dir=.
6799   for ac_exec_ext in '' $ac_executable_extensions; do
6800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803     break 2
6804   fi
6805 done
6806 done
6807 IFS=$as_save_IFS
6808
6809 fi
6810 fi
6811 RANLIB=$ac_cv_prog_RANLIB
6812 if test -n "$RANLIB"; then
6813   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6814 echo "${ECHO_T}$RANLIB" >&6; }
6815 else
6816   { echo "$as_me:$LINENO: result: no" >&5
6817 echo "${ECHO_T}no" >&6; }
6818 fi
6819
6820
6821 fi
6822 if test -z "$ac_cv_prog_RANLIB"; then
6823   ac_ct_RANLIB=$RANLIB
6824   # Extract the first word of "ranlib", so it can be a program name with args.
6825 set dummy ranlib; ac_word=$2
6826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6828 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6829   echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831   if test -n "$ac_ct_RANLIB"; then
6832   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837   IFS=$as_save_IFS
6838   test -z "$as_dir" && as_dir=.
6839   for ac_exec_ext in '' $ac_executable_extensions; do
6840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841     ac_cv_prog_ac_ct_RANLIB="ranlib"
6842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843     break 2
6844   fi
6845 done
6846 done
6847 IFS=$as_save_IFS
6848
6849 fi
6850 fi
6851 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6852 if test -n "$ac_ct_RANLIB"; then
6853   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6854 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6855 else
6856   { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6858 fi
6859
6860   if test "x$ac_ct_RANLIB" = x; then
6861     RANLIB=":"
6862   else
6863     case $cross_compiling:$ac_tool_warned in
6864 yes:)
6865 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6866 whose name does not start with the host triplet.  If you think this
6867 configuration is useful to you, please write to autoconf@gnu.org." >&5
6868 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6869 whose name does not start with the host triplet.  If you think this
6870 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6871 ac_tool_warned=yes ;;
6872 esac
6873     RANLIB=$ac_ct_RANLIB
6874   fi
6875 else
6876   RANLIB="$ac_cv_prog_RANLIB"
6877 fi
6878
6879 test -z "$RANLIB" && RANLIB=:
6880
6881
6882
6883
6884
6885
6886 # Determine commands to create old-style static archives.
6887 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6888 old_postinstall_cmds='chmod 644 $oldlib'
6889 old_postuninstall_cmds=
6890
6891 if test -n "$RANLIB"; then
6892   case $host_os in
6893   openbsd*)
6894     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6895     ;;
6896   *)
6897     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6898     ;;
6899   esac
6900   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6901 fi
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
6936 # If no C compiler was specified, use CC.
6937 LTCC=${LTCC-"$CC"}
6938
6939 # If no C compiler flags were specified, use CFLAGS.
6940 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6941
6942 # Allow CC to be a program name with arguments.
6943 compiler=$CC
6944
6945
6946 # Check for command to grab the raw symbol name followed by C symbol from nm.
6947 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6948 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6949 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6950   echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952
6953 # These are sane defaults that work on at least a few old systems.
6954 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6955
6956 # Character class describing NM global symbol codes.
6957 symcode='[BCDEGRST]'
6958
6959 # Regexp to match symbols that can be accessed directly from C.
6960 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6961
6962 # Define system-specific variables.
6963 case $host_os in
6964 aix*)
6965   symcode='[BCDT]'
6966   ;;
6967 cygwin* | mingw* | pw32* | cegcc*)
6968   symcode='[ABCDGISTW]'
6969   ;;
6970 hpux*)
6971   if test "$host_cpu" = ia64; then
6972     symcode='[ABCDEGRST]'
6973   fi
6974   ;;
6975 irix* | nonstopux*)
6976   symcode='[BCDEGRST]'
6977   ;;
6978 osf*)
6979   symcode='[BCDEGQRST]'
6980   ;;
6981 solaris*)
6982   symcode='[BDRT]'
6983   ;;
6984 sco3.2v5*)
6985   symcode='[DT]'
6986   ;;
6987 sysv4.2uw2*)
6988   symcode='[DT]'
6989   ;;
6990 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6991   symcode='[ABDT]'
6992   ;;
6993 sysv4)
6994   symcode='[DFNSTU]'
6995   ;;
6996 esac
6997
6998 # If we're using GNU nm, then use its standard symbol codes.
6999 case `$NM -V 2>&1` in
7000 *GNU* | *'with BFD'*)
7001   symcode='[ABCDGIRSTW]' ;;
7002 esac
7003
7004 # Transform an extracted symbol line into a proper C declaration.
7005 # Some systems (esp. on ia64) link data and code symbols differently,
7006 # so use this general approach.
7007 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7008
7009 # Transform an extracted symbol line into symbol name and symbol address
7010 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7011 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'"
7012
7013 # Handle CRLF in mingw tool chain
7014 opt_cr=
7015 case $build_os in
7016 mingw*)
7017   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7018   ;;
7019 esac
7020
7021 # Try without a prefix underscore, then with it.
7022 for ac_symprfx in "" "_"; do
7023
7024   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7025   symxfrm="\\1 $ac_symprfx\\2 \\2"
7026
7027   # Write the raw and C identifiers.
7028   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7029     # Fake it for dumpbin and say T for any non-static function
7030     # and D for any global variable.
7031     # Also find C++ and __fastcall symbols from MSVC++,
7032     # which start with @ or ?.
7033     lt_cv_sys_global_symbol_pipe="$AWK '"\
7034 "     {last_section=section; section=\$ 3};"\
7035 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7036 "     \$ 0!~/External *\|/{next};"\
7037 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7038 "     {if(hide[section]) next};"\
7039 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7040 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7041 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7042 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7043 "     ' prfx=^$ac_symprfx"
7044   else
7045     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7046   fi
7047
7048   # Check to see that the pipe works correctly.
7049   pipe_works=no
7050
7051   rm -f conftest*
7052   cat > conftest.$ac_ext <<_LT_EOF
7053 #ifdef __cplusplus
7054 extern "C" {
7055 #endif
7056 char nm_test_var;
7057 void nm_test_func(void);
7058 void nm_test_func(void){}
7059 #ifdef __cplusplus
7060 }
7061 #endif
7062 int main(){nm_test_var='a';nm_test_func();return(0);}
7063 _LT_EOF
7064
7065   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066   (eval $ac_compile) 2>&5
7067   ac_status=$?
7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); }; then
7070     # Now try to grab the symbols.
7071     nlist=conftest.nm
7072     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7073   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7074   ac_status=$?
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); } && test -s "$nlist"; then
7077       # Try sorting and uniquifying the output.
7078       if sort "$nlist" | uniq > "$nlist"T; then
7079         mv -f "$nlist"T "$nlist"
7080       else
7081         rm -f "$nlist"T
7082       fi
7083
7084       # Make sure that we snagged all the symbols we need.
7085       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7086         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7087           cat <<_LT_EOF > conftest.$ac_ext
7088 #ifdef __cplusplus
7089 extern "C" {
7090 #endif
7091
7092 _LT_EOF
7093           # Now generate the symbol file.
7094           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7095
7096           cat <<_LT_EOF >> conftest.$ac_ext
7097
7098 /* The mapping between symbol names and symbols.  */
7099 const struct {
7100   const char *name;
7101   void       *address;
7102 }
7103 lt__PROGRAM__LTX_preloaded_symbols[] =
7104 {
7105   { "@PROGRAM@", (void *) 0 },
7106 _LT_EOF
7107           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7108           cat <<\_LT_EOF >> conftest.$ac_ext
7109   {0, (void *) 0}
7110 };
7111
7112 /* This works around a problem in FreeBSD linker */
7113 #ifdef FREEBSD_WORKAROUND
7114 static const void *lt_preloaded_setup() {
7115   return lt__PROGRAM__LTX_preloaded_symbols;
7116 }
7117 #endif
7118
7119 #ifdef __cplusplus
7120 }
7121 #endif
7122 _LT_EOF
7123           # Now try linking the two files.
7124           mv conftest.$ac_objext conftstm.$ac_objext
7125           lt_save_LIBS="$LIBS"
7126           lt_save_CFLAGS="$CFLAGS"
7127           LIBS="conftstm.$ac_objext"
7128           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7129           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7130   (eval $ac_link) 2>&5
7131   ac_status=$?
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7134             pipe_works=yes
7135           fi
7136           LIBS="$lt_save_LIBS"
7137           CFLAGS="$lt_save_CFLAGS"
7138         else
7139           echo "cannot find nm_test_func in $nlist" >&5
7140         fi
7141       else
7142         echo "cannot find nm_test_var in $nlist" >&5
7143       fi
7144     else
7145       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7146     fi
7147   else
7148     echo "$progname: failed program was:" >&5
7149     cat conftest.$ac_ext >&5
7150   fi
7151   rm -rf conftest* conftst*
7152
7153   # Do not use the global_symbol_pipe unless it works.
7154   if test "$pipe_works" = yes; then
7155     break
7156   else
7157     lt_cv_sys_global_symbol_pipe=
7158   fi
7159 done
7160
7161 fi
7162
7163 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7164   lt_cv_sys_global_symbol_to_cdecl=
7165 fi
7166 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7167   { echo "$as_me:$LINENO: result: failed" >&5
7168 echo "${ECHO_T}failed" >&6; }
7169 else
7170   { echo "$as_me:$LINENO: result: ok" >&5
7171 echo "${ECHO_T}ok" >&6; }
7172 fi
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195 # Check whether --enable-libtool-lock was given.
7196 if test "${enable_libtool_lock+set}" = set; then
7197   enableval=$enable_libtool_lock;
7198 fi
7199
7200 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7201
7202 # Some flags need to be propagated to the compiler or linker for good
7203 # libtool support.
7204 case $host in
7205 ia64-*-hpux*)
7206   # Find out which ABI we are using.
7207   echo 'int i;' > conftest.$ac_ext
7208   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7209   (eval $ac_compile) 2>&5
7210   ac_status=$?
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); }; then
7213     case `/usr/bin/file conftest.$ac_objext` in
7214       *ELF-32*)
7215         HPUX_IA64_MODE="32"
7216         ;;
7217       *ELF-64*)
7218         HPUX_IA64_MODE="64"
7219         ;;
7220     esac
7221   fi
7222   rm -rf conftest*
7223   ;;
7224 *-*-irix6*)
7225   # Find out which ABI we are using.
7226   echo '#line 7226 "configure"' > conftest.$ac_ext
7227   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7228   (eval $ac_compile) 2>&5
7229   ac_status=$?
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); }; then
7232     if test "$lt_cv_prog_gnu_ld" = yes; then
7233       case `/usr/bin/file conftest.$ac_objext` in
7234         *32-bit*)
7235           LD="${LD-ld} -melf32bsmip"
7236           ;;
7237         *N32*)
7238           LD="${LD-ld} -melf32bmipn32"
7239           ;;
7240         *64-bit*)
7241           LD="${LD-ld} -melf64bmip"
7242         ;;
7243       esac
7244     else
7245       case `/usr/bin/file conftest.$ac_objext` in
7246         *32-bit*)
7247           LD="${LD-ld} -32"
7248           ;;
7249         *N32*)
7250           LD="${LD-ld} -n32"
7251           ;;
7252         *64-bit*)
7253           LD="${LD-ld} -64"
7254           ;;
7255       esac
7256     fi
7257   fi
7258   rm -rf conftest*
7259   ;;
7260
7261 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7262 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7263   # Find out which ABI we are using.
7264   echo 'int i;' > conftest.$ac_ext
7265   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7266   (eval $ac_compile) 2>&5
7267   ac_status=$?
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); }; then
7270     case `/usr/bin/file conftest.o` in
7271       *32-bit*)
7272         case $host in
7273           x86_64-*kfreebsd*-gnu)
7274             LD="${LD-ld} -m elf_i386_fbsd"
7275             ;;
7276           x86_64-*linux*)
7277             LD="${LD-ld} -m elf_i386"
7278             ;;
7279           ppc64-*linux*|powerpc64-*linux*)
7280             LD="${LD-ld} -m elf32ppclinux"
7281             ;;
7282           s390x-*linux*)
7283             LD="${LD-ld} -m elf_s390"
7284             ;;
7285           sparc64-*linux*)
7286             LD="${LD-ld} -m elf32_sparc"
7287             ;;
7288         esac
7289         ;;
7290       *64-bit*)
7291         case $host in
7292           x86_64-*kfreebsd*-gnu)
7293             LD="${LD-ld} -m elf_x86_64_fbsd"
7294             ;;
7295           x86_64-*linux*)
7296             LD="${LD-ld} -m elf_x86_64"
7297             ;;
7298           ppc*-*linux*|powerpc*-*linux*)
7299             LD="${LD-ld} -m elf64ppc"
7300             ;;
7301           s390*-*linux*|s390*-*tpf*)
7302             LD="${LD-ld} -m elf64_s390"
7303             ;;
7304           sparc*-*linux*)
7305             LD="${LD-ld} -m elf64_sparc"
7306             ;;
7307         esac
7308         ;;
7309     esac
7310   fi
7311   rm -rf conftest*
7312   ;;
7313
7314 *-*-sco3.2v5*)
7315   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7316   SAVE_CFLAGS="$CFLAGS"
7317   CFLAGS="$CFLAGS -belf"
7318   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7319 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7320 if test "${lt_cv_cc_needs_belf+set}" = set; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323   ac_ext=c
7324 ac_cpp='$CPP $CPPFLAGS'
7325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7328
7329      cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h.  */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h.  */
7335
7336 int
7337 main ()
7338 {
7339
7340   ;
7341   return 0;
7342 }
7343 _ACEOF
7344 rm -f conftest.$ac_objext conftest$ac_exeext
7345 if { (ac_try="$ac_link"
7346 case "(($ac_try" in
7347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348   *) ac_try_echo=$ac_try;;
7349 esac
7350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7351   (eval "$ac_link") 2>conftest.er1
7352   ac_status=$?
7353   grep -v '^ *+' conftest.er1 >conftest.err
7354   rm -f conftest.er1
7355   cat conftest.err >&5
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); } && {
7358          test -z "$ac_c_werror_flag" ||
7359          test ! -s conftest.err
7360        } && test -s conftest$ac_exeext &&
7361        $as_test_x conftest$ac_exeext; then
7362   lt_cv_cc_needs_belf=yes
7363 else
7364   echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.$ac_ext >&5
7366
7367         lt_cv_cc_needs_belf=no
7368 fi
7369
7370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7371       conftest$ac_exeext conftest.$ac_ext
7372      ac_ext=c
7373 ac_cpp='$CPP $CPPFLAGS'
7374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7377
7378 fi
7379 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7380 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7381   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7382     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7383     CFLAGS="$SAVE_CFLAGS"
7384   fi
7385   ;;
7386 sparc*-*solaris*)
7387   # Find out which ABI we are using.
7388   echo 'int i;' > conftest.$ac_ext
7389   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7390   (eval $ac_compile) 2>&5
7391   ac_status=$?
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); }; then
7394     case `/usr/bin/file conftest.o` in
7395     *64-bit*)
7396       case $lt_cv_prog_gnu_ld in
7397       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7398       *)
7399         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7400           LD="${LD-ld} -64"
7401         fi
7402         ;;
7403       esac
7404       ;;
7405     esac
7406   fi
7407   rm -rf conftest*
7408   ;;
7409 esac
7410
7411 need_locks="$enable_libtool_lock"
7412
7413
7414   case $host_os in
7415     rhapsody* | darwin*)
7416     if test -n "$ac_tool_prefix"; then
7417   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7418 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7421 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7422   echo $ECHO_N "(cached) $ECHO_C" >&6
7423 else
7424   if test -n "$DSYMUTIL"; then
7425   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430   IFS=$as_save_IFS
7431   test -z "$as_dir" && as_dir=.
7432   for ac_exec_ext in '' $ac_executable_extensions; do
7433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436     break 2
7437   fi
7438 done
7439 done
7440 IFS=$as_save_IFS
7441
7442 fi
7443 fi
7444 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7445 if test -n "$DSYMUTIL"; then
7446   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7447 echo "${ECHO_T}$DSYMUTIL" >&6; }
7448 else
7449   { echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6; }
7451 fi
7452
7453
7454 fi
7455 if test -z "$ac_cv_prog_DSYMUTIL"; then
7456   ac_ct_DSYMUTIL=$DSYMUTIL
7457   # Extract the first word of "dsymutil", so it can be a program name with args.
7458 set dummy dsymutil; ac_word=$2
7459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   if test -n "$ac_ct_DSYMUTIL"; then
7465   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7466 else
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7469 do
7470   IFS=$as_save_IFS
7471   test -z "$as_dir" && as_dir=.
7472   for ac_exec_ext in '' $ac_executable_extensions; do
7473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476     break 2
7477   fi
7478 done
7479 done
7480 IFS=$as_save_IFS
7481
7482 fi
7483 fi
7484 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7485 if test -n "$ac_ct_DSYMUTIL"; then
7486   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7487 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7488 else
7489   { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7491 fi
7492
7493   if test "x$ac_ct_DSYMUTIL" = x; then
7494     DSYMUTIL=":"
7495   else
7496     case $cross_compiling:$ac_tool_warned in
7497 yes:)
7498 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7499 whose name does not start with the host triplet.  If you think this
7500 configuration is useful to you, please write to autoconf@gnu.org." >&5
7501 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7502 whose name does not start with the host triplet.  If you think this
7503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7504 ac_tool_warned=yes ;;
7505 esac
7506     DSYMUTIL=$ac_ct_DSYMUTIL
7507   fi
7508 else
7509   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7510 fi
7511
7512     if test -n "$ac_tool_prefix"; then
7513   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7514 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7517 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7518   echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520   if test -n "$NMEDIT"; then
7521   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7522 else
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526   IFS=$as_save_IFS
7527   test -z "$as_dir" && as_dir=.
7528   for ac_exec_ext in '' $ac_executable_extensions; do
7529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7530     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532     break 2
7533   fi
7534 done
7535 done
7536 IFS=$as_save_IFS
7537
7538 fi
7539 fi
7540 NMEDIT=$ac_cv_prog_NMEDIT
7541 if test -n "$NMEDIT"; then
7542   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7543 echo "${ECHO_T}$NMEDIT" >&6; }
7544 else
7545   { echo "$as_me:$LINENO: result: no" >&5
7546 echo "${ECHO_T}no" >&6; }
7547 fi
7548
7549
7550 fi
7551 if test -z "$ac_cv_prog_NMEDIT"; then
7552   ac_ct_NMEDIT=$NMEDIT
7553   # Extract the first word of "nmedit", so it can be a program name with args.
7554 set dummy nmedit; ac_word=$2
7555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7557 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7558   echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560   if test -n "$ac_ct_NMEDIT"; then
7561   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7562 else
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566   IFS=$as_save_IFS
7567   test -z "$as_dir" && as_dir=.
7568   for ac_exec_ext in '' $ac_executable_extensions; do
7569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7570     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572     break 2
7573   fi
7574 done
7575 done
7576 IFS=$as_save_IFS
7577
7578 fi
7579 fi
7580 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7581 if test -n "$ac_ct_NMEDIT"; then
7582   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7583 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7584 else
7585   { echo "$as_me:$LINENO: result: no" >&5
7586 echo "${ECHO_T}no" >&6; }
7587 fi
7588
7589   if test "x$ac_ct_NMEDIT" = x; then
7590     NMEDIT=":"
7591   else
7592     case $cross_compiling:$ac_tool_warned in
7593 yes:)
7594 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7595 whose name does not start with the host triplet.  If you think this
7596 configuration is useful to you, please write to autoconf@gnu.org." >&5
7597 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7598 whose name does not start with the host triplet.  If you think this
7599 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7600 ac_tool_warned=yes ;;
7601 esac
7602     NMEDIT=$ac_ct_NMEDIT
7603   fi
7604 else
7605   NMEDIT="$ac_cv_prog_NMEDIT"
7606 fi
7607
7608     if test -n "$ac_tool_prefix"; then
7609   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7610 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_prog_LIPO+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   if test -n "$LIPO"; then
7617   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7618 else
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7621 do
7622   IFS=$as_save_IFS
7623   test -z "$as_dir" && as_dir=.
7624   for ac_exec_ext in '' $ac_executable_extensions; do
7625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7626     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628     break 2
7629   fi
7630 done
7631 done
7632 IFS=$as_save_IFS
7633
7634 fi
7635 fi
7636 LIPO=$ac_cv_prog_LIPO
7637 if test -n "$LIPO"; then
7638   { echo "$as_me:$LINENO: result: $LIPO" >&5
7639 echo "${ECHO_T}$LIPO" >&6; }
7640 else
7641   { echo "$as_me:$LINENO: result: no" >&5
7642 echo "${ECHO_T}no" >&6; }
7643 fi
7644
7645
7646 fi
7647 if test -z "$ac_cv_prog_LIPO"; then
7648   ac_ct_LIPO=$LIPO
7649   # Extract the first word of "lipo", so it can be a program name with args.
7650 set dummy lipo; ac_word=$2
7651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7653 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7654   echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656   if test -n "$ac_ct_LIPO"; then
7657   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7658 else
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH
7661 do
7662   IFS=$as_save_IFS
7663   test -z "$as_dir" && as_dir=.
7664   for ac_exec_ext in '' $ac_executable_extensions; do
7665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7666     ac_cv_prog_ac_ct_LIPO="lipo"
7667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668     break 2
7669   fi
7670 done
7671 done
7672 IFS=$as_save_IFS
7673
7674 fi
7675 fi
7676 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7677 if test -n "$ac_ct_LIPO"; then
7678   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7679 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7680 else
7681   { echo "$as_me:$LINENO: result: no" >&5
7682 echo "${ECHO_T}no" >&6; }
7683 fi
7684
7685   if test "x$ac_ct_LIPO" = x; then
7686     LIPO=":"
7687   else
7688     case $cross_compiling:$ac_tool_warned in
7689 yes:)
7690 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7691 whose name does not start with the host triplet.  If you think this
7692 configuration is useful to you, please write to autoconf@gnu.org." >&5
7693 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7694 whose name does not start with the host triplet.  If you think this
7695 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7696 ac_tool_warned=yes ;;
7697 esac
7698     LIPO=$ac_ct_LIPO
7699   fi
7700 else
7701   LIPO="$ac_cv_prog_LIPO"
7702 fi
7703
7704     if test -n "$ac_tool_prefix"; then
7705   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7706 set dummy ${ac_tool_prefix}otool; ac_word=$2
7707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7709 if test "${ac_cv_prog_OTOOL+set}" = set; then
7710   echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712   if test -n "$OTOOL"; then
7713   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718   IFS=$as_save_IFS
7719   test -z "$as_dir" && as_dir=.
7720   for ac_exec_ext in '' $ac_executable_extensions; do
7721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7722     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724     break 2
7725   fi
7726 done
7727 done
7728 IFS=$as_save_IFS
7729
7730 fi
7731 fi
7732 OTOOL=$ac_cv_prog_OTOOL
7733 if test -n "$OTOOL"; then
7734   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7735 echo "${ECHO_T}$OTOOL" >&6; }
7736 else
7737   { echo "$as_me:$LINENO: result: no" >&5
7738 echo "${ECHO_T}no" >&6; }
7739 fi
7740
7741
7742 fi
7743 if test -z "$ac_cv_prog_OTOOL"; then
7744   ac_ct_OTOOL=$OTOOL
7745   # Extract the first word of "otool", so it can be a program name with args.
7746 set dummy otool; ac_word=$2
7747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7749 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7750   echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752   if test -n "$ac_ct_OTOOL"; then
7753   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7754 else
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7757 do
7758   IFS=$as_save_IFS
7759   test -z "$as_dir" && as_dir=.
7760   for ac_exec_ext in '' $ac_executable_extensions; do
7761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7762     ac_cv_prog_ac_ct_OTOOL="otool"
7763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7764     break 2
7765   fi
7766 done
7767 done
7768 IFS=$as_save_IFS
7769
7770 fi
7771 fi
7772 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7773 if test -n "$ac_ct_OTOOL"; then
7774   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7775 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7776 else
7777   { echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6; }
7779 fi
7780
7781   if test "x$ac_ct_OTOOL" = x; then
7782     OTOOL=":"
7783   else
7784     case $cross_compiling:$ac_tool_warned in
7785 yes:)
7786 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7787 whose name does not start with the host triplet.  If you think this
7788 configuration is useful to you, please write to autoconf@gnu.org." >&5
7789 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7790 whose name does not start with the host triplet.  If you think this
7791 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7792 ac_tool_warned=yes ;;
7793 esac
7794     OTOOL=$ac_ct_OTOOL
7795   fi
7796 else
7797   OTOOL="$ac_cv_prog_OTOOL"
7798 fi
7799
7800     if test -n "$ac_tool_prefix"; then
7801   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7802 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7805 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7806   echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808   if test -n "$OTOOL64"; then
7809   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814   IFS=$as_save_IFS
7815   test -z "$as_dir" && as_dir=.
7816   for ac_exec_ext in '' $ac_executable_extensions; do
7817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7818     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820     break 2
7821   fi
7822 done
7823 done
7824 IFS=$as_save_IFS
7825
7826 fi
7827 fi
7828 OTOOL64=$ac_cv_prog_OTOOL64
7829 if test -n "$OTOOL64"; then
7830   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7831 echo "${ECHO_T}$OTOOL64" >&6; }
7832 else
7833   { echo "$as_me:$LINENO: result: no" >&5
7834 echo "${ECHO_T}no" >&6; }
7835 fi
7836
7837
7838 fi
7839 if test -z "$ac_cv_prog_OTOOL64"; then
7840   ac_ct_OTOOL64=$OTOOL64
7841   # Extract the first word of "otool64", so it can be a program name with args.
7842 set dummy otool64; ac_word=$2
7843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7845 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   if test -n "$ac_ct_OTOOL64"; then
7849   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854   IFS=$as_save_IFS
7855   test -z "$as_dir" && as_dir=.
7856   for ac_exec_ext in '' $ac_executable_extensions; do
7857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858     ac_cv_prog_ac_ct_OTOOL64="otool64"
7859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7860     break 2
7861   fi
7862 done
7863 done
7864 IFS=$as_save_IFS
7865
7866 fi
7867 fi
7868 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7869 if test -n "$ac_ct_OTOOL64"; then
7870   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7871 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7872 else
7873   { echo "$as_me:$LINENO: result: no" >&5
7874 echo "${ECHO_T}no" >&6; }
7875 fi
7876
7877   if test "x$ac_ct_OTOOL64" = x; then
7878     OTOOL64=":"
7879   else
7880     case $cross_compiling:$ac_tool_warned in
7881 yes:)
7882 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7883 whose name does not start with the host triplet.  If you think this
7884 configuration is useful to you, please write to autoconf@gnu.org." >&5
7885 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7886 whose name does not start with the host triplet.  If you think this
7887 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7888 ac_tool_warned=yes ;;
7889 esac
7890     OTOOL64=$ac_ct_OTOOL64
7891   fi
7892 else
7893   OTOOL64="$ac_cv_prog_OTOOL64"
7894 fi
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
7922     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7923 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7924 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7925   echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927   lt_cv_apple_cc_single_mod=no
7928       if test -z "${LT_MULTI_MODULE}"; then
7929         # By default we will add the -single_module flag. You can override
7930         # by either setting the environment variable LT_MULTI_MODULE
7931         # non-empty at configure time, or by adding -multi_module to the
7932         # link flags.
7933         rm -rf libconftest.dylib*
7934         echo "int foo(void){return 1;}" > conftest.c
7935         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7936 -dynamiclib -Wl,-single_module conftest.c" >&5
7937         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7938           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7939         _lt_result=$?
7940         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7941           lt_cv_apple_cc_single_mod=yes
7942         else
7943           cat conftest.err >&5
7944         fi
7945         rm -rf libconftest.dylib*
7946         rm -f conftest.*
7947       fi
7948 fi
7949 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7950 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7951     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7952 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7953 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   lt_cv_ld_exported_symbols_list=no
7957       save_LDFLAGS=$LDFLAGS
7958       echo "_main" > conftest.sym
7959       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7960       cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h.  */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h.  */
7966
7967 int
7968 main ()
7969 {
7970
7971   ;
7972   return 0;
7973 }
7974 _ACEOF
7975 rm -f conftest.$ac_objext conftest$ac_exeext
7976 if { (ac_try="$ac_link"
7977 case "(($ac_try" in
7978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979   *) ac_try_echo=$ac_try;;
7980 esac
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982   (eval "$ac_link") 2>conftest.er1
7983   ac_status=$?
7984   grep -v '^ *+' conftest.er1 >conftest.err
7985   rm -f conftest.er1
7986   cat conftest.err >&5
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); } && {
7989          test -z "$ac_c_werror_flag" ||
7990          test ! -s conftest.err
7991        } && test -s conftest$ac_exeext &&
7992        $as_test_x conftest$ac_exeext; then
7993   lt_cv_ld_exported_symbols_list=yes
7994 else
7995   echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7997
7998         lt_cv_ld_exported_symbols_list=no
7999 fi
8000
8001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8002       conftest$ac_exeext conftest.$ac_ext
8003         LDFLAGS="$save_LDFLAGS"
8004
8005 fi
8006 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8007 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8008     case $host_os in
8009     rhapsody* | darwin1.[012])
8010       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8011     darwin1.*)
8012       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8013     darwin*) # darwin 5.x on
8014       # if running on 10.5 or later, the deployment target defaults
8015       # to the OS version, if on x86, and 10.4, the deployment
8016       # target defaults to 10.4. Don't you love it?
8017       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8018         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8019           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8020         10.[012]*)
8021           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8022         10.*)
8023           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8024       esac
8025     ;;
8026   esac
8027     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8028       _lt_dar_single_mod='$single_module'
8029     fi
8030     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8031       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8032     else
8033       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8034     fi
8035     if test "$DSYMUTIL" != ":"; then
8036       _lt_dsymutil='~$DSYMUTIL $lib || :'
8037     else
8038       _lt_dsymutil=
8039     fi
8040     ;;
8041   esac
8042
8043 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8044 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8045 if test "${ac_cv_header_stdc+set}" = set; then
8046   echo $ECHO_N "(cached) $ECHO_C" >&6
8047 else
8048   cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h.  */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h.  */
8054 #include <stdlib.h>
8055 #include <stdarg.h>
8056 #include <string.h>
8057 #include <float.h>
8058
8059 int
8060 main ()
8061 {
8062
8063   ;
8064   return 0;
8065 }
8066 _ACEOF
8067 rm -f conftest.$ac_objext
8068 if { (ac_try="$ac_compile"
8069 case "(($ac_try" in
8070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071   *) ac_try_echo=$ac_try;;
8072 esac
8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074   (eval "$ac_compile") 2>conftest.er1
8075   ac_status=$?
8076   grep -v '^ *+' conftest.er1 >conftest.err
8077   rm -f conftest.er1
8078   cat conftest.err >&5
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); } && {
8081          test -z "$ac_c_werror_flag" ||
8082          test ! -s conftest.err
8083        } && test -s conftest.$ac_objext; then
8084   ac_cv_header_stdc=yes
8085 else
8086   echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8088
8089         ac_cv_header_stdc=no
8090 fi
8091
8092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093
8094 if test $ac_cv_header_stdc = yes; then
8095   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8096   cat >conftest.$ac_ext <<_ACEOF
8097 /* confdefs.h.  */
8098 _ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h.  */
8102 #include <string.h>
8103
8104 _ACEOF
8105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8106   $EGREP "memchr" >/dev/null 2>&1; then
8107   :
8108 else
8109   ac_cv_header_stdc=no
8110 fi
8111 rm -f conftest*
8112
8113 fi
8114
8115 if test $ac_cv_header_stdc = yes; then
8116   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8117   cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h.  */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h.  */
8123 #include <stdlib.h>
8124
8125 _ACEOF
8126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8127   $EGREP "free" >/dev/null 2>&1; then
8128   :
8129 else
8130   ac_cv_header_stdc=no
8131 fi
8132 rm -f conftest*
8133
8134 fi
8135
8136 if test $ac_cv_header_stdc = yes; then
8137   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8138   if test "$cross_compiling" = yes; then
8139   :
8140 else
8141   cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h.  */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h.  */
8147 #include <ctype.h>
8148 #include <stdlib.h>
8149 #if ((' ' & 0x0FF) == 0x020)
8150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8152 #else
8153 # define ISLOWER(c) \
8154                    (('a' <= (c) && (c) <= 'i') \
8155                      || ('j' <= (c) && (c) <= 'r') \
8156                      || ('s' <= (c) && (c) <= 'z'))
8157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8158 #endif
8159
8160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8161 int
8162 main ()
8163 {
8164   int i;
8165   for (i = 0; i < 256; i++)
8166     if (XOR (islower (i), ISLOWER (i))
8167         || toupper (i) != TOUPPER (i))
8168       return 2;
8169   return 0;
8170 }
8171 _ACEOF
8172 rm -f conftest$ac_exeext
8173 if { (ac_try="$ac_link"
8174 case "(($ac_try" in
8175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176   *) ac_try_echo=$ac_try;;
8177 esac
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179   (eval "$ac_link") 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8183   { (case "(($ac_try" in
8184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185   *) ac_try_echo=$ac_try;;
8186 esac
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188   (eval "$ac_try") 2>&5
8189   ac_status=$?
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); }; }; then
8192   :
8193 else
8194   echo "$as_me: program exited with status $ac_status" >&5
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198 ( exit $ac_status )
8199 ac_cv_header_stdc=no
8200 fi
8201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8202 fi
8203
8204
8205 fi
8206 fi
8207 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8208 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8209 if test $ac_cv_header_stdc = yes; then
8210
8211 cat >>confdefs.h <<\_ACEOF
8212 #define STDC_HEADERS 1
8213 _ACEOF
8214
8215 fi
8216
8217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8228                   inttypes.h stdint.h unistd.h
8229 do
8230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8234   echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8236   cat >conftest.$ac_ext <<_ACEOF
8237 /* confdefs.h.  */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h.  */
8242 $ac_includes_default
8243
8244 #include <$ac_header>
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (ac_try="$ac_compile"
8248 case "(($ac_try" in
8249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250   *) ac_try_echo=$ac_try;;
8251 esac
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253   (eval "$ac_compile") 2>conftest.er1
8254   ac_status=$?
8255   grep -v '^ *+' conftest.er1 >conftest.err
8256   rm -f conftest.er1
8257   cat conftest.err >&5
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); } && {
8260          test -z "$ac_c_werror_flag" ||
8261          test ! -s conftest.err
8262        } && test -s conftest.$ac_objext; then
8263   eval "$as_ac_Header=yes"
8264 else
8265   echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8267
8268         eval "$as_ac_Header=no"
8269 fi
8270
8271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8272 fi
8273 ac_res=`eval echo '${'$as_ac_Header'}'`
8274                { echo "$as_me:$LINENO: result: $ac_res" >&5
8275 echo "${ECHO_T}$ac_res" >&6; }
8276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8277   cat >>confdefs.h <<_ACEOF
8278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8279 _ACEOF
8280
8281 fi
8282
8283 done
8284
8285
8286
8287 for ac_header in dlfcn.h
8288 do
8289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8293   echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295   cat >conftest.$ac_ext <<_ACEOF
8296 /* confdefs.h.  */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h.  */
8301 $ac_includes_default
8302
8303 #include <$ac_header>
8304 _ACEOF
8305 rm -f conftest.$ac_objext
8306 if { (ac_try="$ac_compile"
8307 case "(($ac_try" in
8308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309   *) ac_try_echo=$ac_try;;
8310 esac
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312   (eval "$ac_compile") 2>conftest.er1
8313   ac_status=$?
8314   grep -v '^ *+' conftest.er1 >conftest.err
8315   rm -f conftest.er1
8316   cat conftest.err >&5
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); } && {
8319          test -z "$ac_c_werror_flag" ||
8320          test ! -s conftest.err
8321        } && test -s conftest.$ac_objext; then
8322   eval "$as_ac_Header=yes"
8323 else
8324   echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327         eval "$as_ac_Header=no"
8328 fi
8329
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 fi
8332 ac_res=`eval echo '${'$as_ac_Header'}'`
8333                { echo "$as_me:$LINENO: result: $ac_res" >&5
8334 echo "${ECHO_T}$ac_res" >&6; }
8335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8336   cat >>confdefs.h <<_ACEOF
8337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8338 _ACEOF
8339
8340 fi
8341
8342 done
8343
8344
8345
8346 ac_ext=cpp
8347 ac_cpp='$CXXCPP $CPPFLAGS'
8348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8351 if test -z "$CXX"; then
8352   if test -n "$CCC"; then
8353     CXX=$CCC
8354   else
8355     if test -n "$ac_tool_prefix"; then
8356   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8357   do
8358     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8362 if test "${ac_cv_prog_CXX+set}" = set; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365   if test -n "$CXX"; then
8366   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8367 else
8368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 for as_dir in $PATH
8370 do
8371   IFS=$as_save_IFS
8372   test -z "$as_dir" && as_dir=.
8373   for ac_exec_ext in '' $ac_executable_extensions; do
8374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8375     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8377     break 2
8378   fi
8379 done
8380 done
8381 IFS=$as_save_IFS
8382
8383 fi
8384 fi
8385 CXX=$ac_cv_prog_CXX
8386 if test -n "$CXX"; then
8387   { echo "$as_me:$LINENO: result: $CXX" >&5
8388 echo "${ECHO_T}$CXX" >&6; }
8389 else
8390   { echo "$as_me:$LINENO: result: no" >&5
8391 echo "${ECHO_T}no" >&6; }
8392 fi
8393
8394
8395     test -n "$CXX" && break
8396   done
8397 fi
8398 if test -z "$CXX"; then
8399   ac_ct_CXX=$CXX
8400   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8401 do
8402   # Extract the first word of "$ac_prog", so it can be a program name with args.
8403 set dummy $ac_prog; ac_word=$2
8404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8406 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8407   echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409   if test -n "$ac_ct_CXX"; then
8410   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8411 else
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8414 do
8415   IFS=$as_save_IFS
8416   test -z "$as_dir" && as_dir=.
8417   for ac_exec_ext in '' $ac_executable_extensions; do
8418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419     ac_cv_prog_ac_ct_CXX="$ac_prog"
8420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8421     break 2
8422   fi
8423 done
8424 done
8425 IFS=$as_save_IFS
8426
8427 fi
8428 fi
8429 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8430 if test -n "$ac_ct_CXX"; then
8431   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8432 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8433 else
8434   { echo "$as_me:$LINENO: result: no" >&5
8435 echo "${ECHO_T}no" >&6; }
8436 fi
8437
8438
8439   test -n "$ac_ct_CXX" && break
8440 done
8441
8442   if test "x$ac_ct_CXX" = x; then
8443     CXX="g++"
8444   else
8445     case $cross_compiling:$ac_tool_warned in
8446 yes:)
8447 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8448 whose name does not start with the host triplet.  If you think this
8449 configuration is useful to you, please write to autoconf@gnu.org." >&5
8450 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8451 whose name does not start with the host triplet.  If you think this
8452 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8453 ac_tool_warned=yes ;;
8454 esac
8455     CXX=$ac_ct_CXX
8456   fi
8457 fi
8458
8459   fi
8460 fi
8461 # Provide some information about the compiler.
8462 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8463 ac_compiler=`set X $ac_compile; echo $2`
8464 { (ac_try="$ac_compiler --version >&5"
8465 case "(($ac_try" in
8466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467   *) ac_try_echo=$ac_try;;
8468 esac
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470   (eval "$ac_compiler --version >&5") 2>&5
8471   ac_status=$?
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); }
8474 { (ac_try="$ac_compiler -v >&5"
8475 case "(($ac_try" in
8476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477   *) ac_try_echo=$ac_try;;
8478 esac
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480   (eval "$ac_compiler -v >&5") 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }
8484 { (ac_try="$ac_compiler -V >&5"
8485 case "(($ac_try" in
8486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487   *) ac_try_echo=$ac_try;;
8488 esac
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490   (eval "$ac_compiler -V >&5") 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); }
8494
8495 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8496 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8497 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8498   echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500   cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506
8507 int
8508 main ()
8509 {
8510 #ifndef __GNUC__
8511        choke me
8512 #endif
8513
8514   ;
8515   return 0;
8516 }
8517 _ACEOF
8518 rm -f conftest.$ac_objext
8519 if { (ac_try="$ac_compile"
8520 case "(($ac_try" in
8521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522   *) ac_try_echo=$ac_try;;
8523 esac
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525   (eval "$ac_compile") 2>conftest.er1
8526   ac_status=$?
8527   grep -v '^ *+' conftest.er1 >conftest.err
8528   rm -f conftest.er1
8529   cat conftest.err >&5
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); } && {
8532          test -z "$ac_cxx_werror_flag" ||
8533          test ! -s conftest.err
8534        } && test -s conftest.$ac_objext; then
8535   ac_compiler_gnu=yes
8536 else
8537   echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540         ac_compiler_gnu=no
8541 fi
8542
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8545
8546 fi
8547 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8548 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8549 GXX=`test $ac_compiler_gnu = yes && echo yes`
8550 ac_test_CXXFLAGS=${CXXFLAGS+set}
8551 ac_save_CXXFLAGS=$CXXFLAGS
8552 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8553 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8554 if test "${ac_cv_prog_cxx_g+set}" = set; then
8555   echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8558    ac_cxx_werror_flag=yes
8559    ac_cv_prog_cxx_g=no
8560    CXXFLAGS="-g"
8561    cat >conftest.$ac_ext <<_ACEOF
8562 /* confdefs.h.  */
8563 _ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h.  */
8567
8568 int
8569 main ()
8570 {
8571
8572   ;
8573   return 0;
8574 }
8575 _ACEOF
8576 rm -f conftest.$ac_objext
8577 if { (ac_try="$ac_compile"
8578 case "(($ac_try" in
8579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580   *) ac_try_echo=$ac_try;;
8581 esac
8582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8583   (eval "$ac_compile") 2>conftest.er1
8584   ac_status=$?
8585   grep -v '^ *+' conftest.er1 >conftest.err
8586   rm -f conftest.er1
8587   cat conftest.err >&5
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); } && {
8590          test -z "$ac_cxx_werror_flag" ||
8591          test ! -s conftest.err
8592        } && test -s conftest.$ac_objext; then
8593   ac_cv_prog_cxx_g=yes
8594 else
8595   echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8597
8598         CXXFLAGS=""
8599       cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h.  */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h.  */
8605
8606 int
8607 main ()
8608 {
8609
8610   ;
8611   return 0;
8612 }
8613 _ACEOF
8614 rm -f conftest.$ac_objext
8615 if { (ac_try="$ac_compile"
8616 case "(($ac_try" in
8617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618   *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621   (eval "$ac_compile") 2>conftest.er1
8622   ac_status=$?
8623   grep -v '^ *+' conftest.er1 >conftest.err
8624   rm -f conftest.er1
8625   cat conftest.err >&5
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); } && {
8628          test -z "$ac_cxx_werror_flag" ||
8629          test ! -s conftest.err
8630        } && test -s conftest.$ac_objext; then
8631   :
8632 else
8633   echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8635
8636         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8637          CXXFLAGS="-g"
8638          cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h.  */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h.  */
8644
8645 int
8646 main ()
8647 {
8648
8649   ;
8650   return 0;
8651 }
8652 _ACEOF
8653 rm -f conftest.$ac_objext
8654 if { (ac_try="$ac_compile"
8655 case "(($ac_try" in
8656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657   *) ac_try_echo=$ac_try;;
8658 esac
8659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8660   (eval "$ac_compile") 2>conftest.er1
8661   ac_status=$?
8662   grep -v '^ *+' conftest.er1 >conftest.err
8663   rm -f conftest.er1
8664   cat conftest.err >&5
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); } && {
8667          test -z "$ac_cxx_werror_flag" ||
8668          test ! -s conftest.err
8669        } && test -s conftest.$ac_objext; then
8670   ac_cv_prog_cxx_g=yes
8671 else
8672   echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8674
8675
8676 fi
8677
8678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 fi
8680
8681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 fi
8683
8684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8686 fi
8687 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8688 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8689 if test "$ac_test_CXXFLAGS" = set; then
8690   CXXFLAGS=$ac_save_CXXFLAGS
8691 elif test $ac_cv_prog_cxx_g = yes; then
8692   if test "$GXX" = yes; then
8693     CXXFLAGS="-g -O2"
8694   else
8695     CXXFLAGS="-g"
8696   fi
8697 else
8698   if test "$GXX" = yes; then
8699     CXXFLAGS="-O2"
8700   else
8701     CXXFLAGS=
8702   fi
8703 fi
8704 ac_ext=c
8705 ac_cpp='$CPP $CPPFLAGS'
8706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8709
8710 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8711     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8712     (test "X$CXX" != "Xg++"))) ; then
8713   ac_ext=cpp
8714 ac_cpp='$CXXCPP $CPPFLAGS'
8715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8718 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8719 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8720 if test -z "$CXXCPP"; then
8721   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8722   echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724       # Double quotes because CXXCPP needs to be expanded
8725     for CXXCPP in "$CXX -E" "/lib/cpp"
8726     do
8727       ac_preproc_ok=false
8728 for ac_cxx_preproc_warn_flag in '' yes
8729 do
8730   # Use a header file that comes with gcc, so configuring glibc
8731   # with a fresh cross-compiler works.
8732   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8733   # <limits.h> exists even on freestanding compilers.
8734   # On the NeXT, cc -E runs the code through the compiler's parser,
8735   # not just through cpp. "Syntax error" is here to catch this case.
8736   cat >conftest.$ac_ext <<_ACEOF
8737 /* confdefs.h.  */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h.  */
8742 #ifdef __STDC__
8743 # include <limits.h>
8744 #else
8745 # include <assert.h>
8746 #endif
8747                      Syntax error
8748 _ACEOF
8749 if { (ac_try="$ac_cpp conftest.$ac_ext"
8750 case "(($ac_try" in
8751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752   *) ac_try_echo=$ac_try;;
8753 esac
8754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8756   ac_status=$?
8757   grep -v '^ *+' conftest.er1 >conftest.err
8758   rm -f conftest.er1
8759   cat conftest.err >&5
8760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761   (exit $ac_status); } >/dev/null && {
8762          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8763          test ! -s conftest.err
8764        }; then
8765   :
8766 else
8767   echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8769
8770   # Broken: fails on valid input.
8771 continue
8772 fi
8773
8774 rm -f conftest.err conftest.$ac_ext
8775
8776   # OK, works on sane cases.  Now check whether nonexistent headers
8777   # can be detected and how.
8778   cat >conftest.$ac_ext <<_ACEOF
8779 /* confdefs.h.  */
8780 _ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h.  */
8784 #include <ac_nonexistent.h>
8785 _ACEOF
8786 if { (ac_try="$ac_cpp conftest.$ac_ext"
8787 case "(($ac_try" in
8788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789   *) ac_try_echo=$ac_try;;
8790 esac
8791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8793   ac_status=$?
8794   grep -v '^ *+' conftest.er1 >conftest.err
8795   rm -f conftest.er1
8796   cat conftest.err >&5
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); } >/dev/null && {
8799          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8800          test ! -s conftest.err
8801        }; then
8802   # Broken: success on invalid input.
8803 continue
8804 else
8805   echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.$ac_ext >&5
8807
8808   # Passes both tests.
8809 ac_preproc_ok=:
8810 break
8811 fi
8812
8813 rm -f conftest.err conftest.$ac_ext
8814
8815 done
8816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8817 rm -f conftest.err conftest.$ac_ext
8818 if $ac_preproc_ok; then
8819   break
8820 fi
8821
8822     done
8823     ac_cv_prog_CXXCPP=$CXXCPP
8824
8825 fi
8826   CXXCPP=$ac_cv_prog_CXXCPP
8827 else
8828   ac_cv_prog_CXXCPP=$CXXCPP
8829 fi
8830 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8831 echo "${ECHO_T}$CXXCPP" >&6; }
8832 ac_preproc_ok=false
8833 for ac_cxx_preproc_warn_flag in '' yes
8834 do
8835   # Use a header file that comes with gcc, so configuring glibc
8836   # with a fresh cross-compiler works.
8837   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8838   # <limits.h> exists even on freestanding compilers.
8839   # On the NeXT, cc -E runs the code through the compiler's parser,
8840   # not just through cpp. "Syntax error" is here to catch this case.
8841   cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h.  */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h.  */
8847 #ifdef __STDC__
8848 # include <limits.h>
8849 #else
8850 # include <assert.h>
8851 #endif
8852                      Syntax error
8853 _ACEOF
8854 if { (ac_try="$ac_cpp conftest.$ac_ext"
8855 case "(($ac_try" in
8856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857   *) ac_try_echo=$ac_try;;
8858 esac
8859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8861   ac_status=$?
8862   grep -v '^ *+' conftest.er1 >conftest.err
8863   rm -f conftest.er1
8864   cat conftest.err >&5
8865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866   (exit $ac_status); } >/dev/null && {
8867          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8868          test ! -s conftest.err
8869        }; then
8870   :
8871 else
8872   echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8874
8875   # Broken: fails on valid input.
8876 continue
8877 fi
8878
8879 rm -f conftest.err conftest.$ac_ext
8880
8881   # OK, works on sane cases.  Now check whether nonexistent headers
8882   # can be detected and how.
8883   cat >conftest.$ac_ext <<_ACEOF
8884 /* confdefs.h.  */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h.  */
8889 #include <ac_nonexistent.h>
8890 _ACEOF
8891 if { (ac_try="$ac_cpp conftest.$ac_ext"
8892 case "(($ac_try" in
8893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894   *) ac_try_echo=$ac_try;;
8895 esac
8896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8898   ac_status=$?
8899   grep -v '^ *+' conftest.er1 >conftest.err
8900   rm -f conftest.er1
8901   cat conftest.err >&5
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } >/dev/null && {
8904          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8905          test ! -s conftest.err
8906        }; then
8907   # Broken: success on invalid input.
8908 continue
8909 else
8910   echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8912
8913   # Passes both tests.
8914 ac_preproc_ok=:
8915 break
8916 fi
8917
8918 rm -f conftest.err conftest.$ac_ext
8919
8920 done
8921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8922 rm -f conftest.err conftest.$ac_ext
8923 if $ac_preproc_ok; then
8924   :
8925 else
8926   _lt_caught_CXX_error=yes
8927 fi
8928
8929 ac_ext=c
8930 ac_cpp='$CPP $CPPFLAGS'
8931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8934
8935 else
8936   _lt_caught_CXX_error=yes
8937 fi
8938
8939
8940
8941
8942
8943 # Set options
8944 # Check whether --enable-shared was given.
8945 if test "${enable_shared+set}" = set; then
8946   enableval=$enable_shared; p=${PACKAGE-default}
8947     case $enableval in
8948     yes) enable_shared=yes ;;
8949     no) enable_shared=no ;;
8950     *)
8951       enable_shared=no
8952       # Look at the argument we got.  We use all the common list separators.
8953       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8954       for pkg in $enableval; do
8955         IFS="$lt_save_ifs"
8956         if test "X$pkg" = "X$p"; then
8957           enable_shared=yes
8958         fi
8959       done
8960       IFS="$lt_save_ifs"
8961       ;;
8962     esac
8963 else
8964   enable_shared=yes
8965 fi
8966
8967
8968
8969
8970
8971
8972
8973 # Check whether --enable-static was given.
8974 if test "${enable_static+set}" = set; then
8975   enableval=$enable_static; p=${PACKAGE-default}
8976     case $enableval in
8977     yes) enable_static=yes ;;
8978     no) enable_static=no ;;
8979     *)
8980      enable_static=no
8981       # Look at the argument we got.  We use all the common list separators.
8982       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8983       for pkg in $enableval; do
8984         IFS="$lt_save_ifs"
8985         if test "X$pkg" = "X$p"; then
8986           enable_static=yes
8987         fi
8988       done
8989       IFS="$lt_save_ifs"
8990       ;;
8991     esac
8992 else
8993   enable_static=no
8994 fi
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005         enable_dlopen=no
9006
9007
9008   enable_win32_dll=no
9009
9010
9011
9012
9013
9014 # Check whether --with-pic was given.
9015 if test "${with_pic+set}" = set; then
9016   withval=$with_pic; pic_mode="$withval"
9017 else
9018   pic_mode=default
9019 fi
9020
9021
9022 test -z "$pic_mode" && pic_mode=default
9023
9024
9025
9026
9027
9028
9029
9030   # Check whether --enable-fast-install was given.
9031 if test "${enable_fast_install+set}" = set; then
9032   enableval=$enable_fast_install; p=${PACKAGE-default}
9033     case $enableval in
9034     yes) enable_fast_install=yes ;;
9035     no) enable_fast_install=no ;;
9036     *)
9037       enable_fast_install=no
9038       # Look at the argument we got.  We use all the common list separators.
9039       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9040       for pkg in $enableval; do
9041         IFS="$lt_save_ifs"
9042         if test "X$pkg" = "X$p"; then
9043           enable_fast_install=yes
9044         fi
9045       done
9046       IFS="$lt_save_ifs"
9047       ;;
9048     esac
9049 else
9050   enable_fast_install=yes
9051 fi
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063 # This can be used to rebuild libtool when needed
9064 LIBTOOL_DEPS="$ltmain"
9065
9066 # Always use our own libtool.
9067 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
9093 test -z "$LN_S" && LN_S="ln -s"
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108 if test -n "${ZSH_VERSION+set}" ; then
9109    setopt NO_GLOB_SUBST
9110 fi
9111
9112 { echo "$as_me:$LINENO: checking for objdir" >&5
9113 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9114 if test "${lt_cv_objdir+set}" = set; then
9115   echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117   rm -f .libs 2>/dev/null
9118 mkdir .libs 2>/dev/null
9119 if test -d .libs; then
9120   lt_cv_objdir=.libs
9121 else
9122   # MS-DOS does not allow filenames that begin with a dot.
9123   lt_cv_objdir=_libs
9124 fi
9125 rmdir .libs 2>/dev/null
9126 fi
9127 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9128 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9129 objdir=$lt_cv_objdir
9130
9131
9132
9133
9134
9135 cat >>confdefs.h <<_ACEOF
9136 #define LT_OBJDIR "$lt_cv_objdir/"
9137 _ACEOF
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155 case $host_os in
9156 aix3*)
9157   # AIX sometimes has problems with the GCC collect2 program.  For some
9158   # reason, if we set the COLLECT_NAMES environment variable, the problems
9159   # vanish in a puff of smoke.
9160   if test "X${COLLECT_NAMES+set}" != Xset; then
9161     COLLECT_NAMES=
9162     export COLLECT_NAMES
9163   fi
9164   ;;
9165 esac
9166
9167 # Sed substitution that helps us do robust quoting.  It backslashifies
9168 # metacharacters that are still active within double-quoted strings.
9169 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9170
9171 # Same as above, but do not quote variable references.
9172 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9173
9174 # Sed substitution to delay expansion of an escaped shell variable in a
9175 # double_quote_subst'ed string.
9176 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9177
9178 # Sed substitution to delay expansion of an escaped single quote.
9179 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9180
9181 # Sed substitution to avoid accidental globbing in evaled expressions
9182 no_glob_subst='s/\*/\\\*/g'
9183
9184 # Global variables:
9185 ofile=libtool
9186 can_build_shared=yes
9187
9188 # All known linkers require a `.a' archive for static linking (except MSVC,
9189 # which needs '.lib').
9190 libext=a
9191
9192 with_gnu_ld="$lt_cv_prog_gnu_ld"
9193
9194 old_CC="$CC"
9195 old_CFLAGS="$CFLAGS"
9196
9197 # Set sane defaults for various variables
9198 test -z "$CC" && CC=cc
9199 test -z "$LTCC" && LTCC=$CC
9200 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9201 test -z "$LD" && LD=ld
9202 test -z "$ac_objext" && ac_objext=o
9203
9204 for cc_temp in $compiler""; do
9205   case $cc_temp in
9206     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9207     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9208     \-*) ;;
9209     *) break;;
9210   esac
9211 done
9212 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9213
9214
9215 # Only perform the check for file, if the check method requires it
9216 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9217 case $deplibs_check_method in
9218 file_magic*)
9219   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9220     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9221 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9222 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9223   echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225   case $MAGIC_CMD in
9226 [\\/*] |  ?:[\\/]*)
9227   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9228   ;;
9229 *)
9230   lt_save_MAGIC_CMD="$MAGIC_CMD"
9231   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9232   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9233   for ac_dir in $ac_dummy; do
9234     IFS="$lt_save_ifs"
9235     test -z "$ac_dir" && ac_dir=.
9236     if test -f $ac_dir/${ac_tool_prefix}file; then
9237       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9238       if test -n "$file_magic_test_file"; then
9239         case $deplibs_check_method in
9240         "file_magic "*)
9241           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9242           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9243           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9244             $EGREP "$file_magic_regex" > /dev/null; then
9245             :
9246           else
9247             cat <<_LT_EOF 1>&2
9248
9249 *** Warning: the command libtool uses to detect shared libraries,
9250 *** $file_magic_cmd, produces output that libtool cannot recognize.
9251 *** The result is that libtool may fail to recognize shared libraries
9252 *** as such.  This will affect the creation of libtool libraries that
9253 *** depend on shared libraries, but programs linked with such libtool
9254 *** libraries will work regardless of this problem.  Nevertheless, you
9255 *** may want to report the problem to your system manager and/or to
9256 *** bug-libtool@gnu.org
9257
9258 _LT_EOF
9259           fi ;;
9260         esac
9261       fi
9262       break
9263     fi
9264   done
9265   IFS="$lt_save_ifs"
9266   MAGIC_CMD="$lt_save_MAGIC_CMD"
9267   ;;
9268 esac
9269 fi
9270
9271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9272 if test -n "$MAGIC_CMD"; then
9273   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9274 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9275 else
9276   { echo "$as_me:$LINENO: result: no" >&5
9277 echo "${ECHO_T}no" >&6; }
9278 fi
9279
9280
9281
9282
9283
9284 if test -z "$lt_cv_path_MAGIC_CMD"; then
9285   if test -n "$ac_tool_prefix"; then
9286     { echo "$as_me:$LINENO: checking for file" >&5
9287 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9288 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9289   echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291   case $MAGIC_CMD in
9292 [\\/*] |  ?:[\\/]*)
9293   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9294   ;;
9295 *)
9296   lt_save_MAGIC_CMD="$MAGIC_CMD"
9297   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9298   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9299   for ac_dir in $ac_dummy; do
9300     IFS="$lt_save_ifs"
9301     test -z "$ac_dir" && ac_dir=.
9302     if test -f $ac_dir/file; then
9303       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9304       if test -n "$file_magic_test_file"; then
9305         case $deplibs_check_method in
9306         "file_magic "*)
9307           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9308           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9309           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9310             $EGREP "$file_magic_regex" > /dev/null; then
9311             :
9312           else
9313             cat <<_LT_EOF 1>&2
9314
9315 *** Warning: the command libtool uses to detect shared libraries,
9316 *** $file_magic_cmd, produces output that libtool cannot recognize.
9317 *** The result is that libtool may fail to recognize shared libraries
9318 *** as such.  This will affect the creation of libtool libraries that
9319 *** depend on shared libraries, but programs linked with such libtool
9320 *** libraries will work regardless of this problem.  Nevertheless, you
9321 *** may want to report the problem to your system manager and/or to
9322 *** bug-libtool@gnu.org
9323
9324 _LT_EOF
9325           fi ;;
9326         esac
9327       fi
9328       break
9329     fi
9330   done
9331   IFS="$lt_save_ifs"
9332   MAGIC_CMD="$lt_save_MAGIC_CMD"
9333   ;;
9334 esac
9335 fi
9336
9337 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9338 if test -n "$MAGIC_CMD"; then
9339   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9340 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9341 else
9342   { echo "$as_me:$LINENO: result: no" >&5
9343 echo "${ECHO_T}no" >&6; }
9344 fi
9345
9346
9347   else
9348     MAGIC_CMD=:
9349   fi
9350 fi
9351
9352   fi
9353   ;;
9354 esac
9355
9356 # Use C for the default configuration in the libtool script
9357
9358 lt_save_CC="$CC"
9359 ac_ext=c
9360 ac_cpp='$CPP $CPPFLAGS'
9361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9364
9365
9366 # Source file extension for C test sources.
9367 ac_ext=c
9368
9369 # Object file extension for compiled C test sources.
9370 objext=o
9371 objext=$objext
9372
9373 # Code to be used in simple compile tests
9374 lt_simple_compile_test_code="int some_variable = 0;"
9375
9376 # Code to be used in simple link tests
9377 lt_simple_link_test_code='int main(){return(0);}'
9378
9379
9380
9381
9382
9383
9384
9385 # If no C compiler was specified, use CC.
9386 LTCC=${LTCC-"$CC"}
9387
9388 # If no C compiler flags were specified, use CFLAGS.
9389 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9390
9391 # Allow CC to be a program name with arguments.
9392 compiler=$CC
9393
9394 # Save the default compiler, since it gets overwritten when the other
9395 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9396 compiler_DEFAULT=$CC
9397
9398 # save warnings/boilerplate of simple test code
9399 ac_outfile=conftest.$ac_objext
9400 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9401 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9402 _lt_compiler_boilerplate=`cat conftest.err`
9403 $RM conftest*
9404
9405 ac_outfile=conftest.$ac_objext
9406 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9407 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9408 _lt_linker_boilerplate=`cat conftest.err`
9409 $RM -r conftest*
9410
9411
9412 ## CAVEAT EMPTOR:
9413 ## There is no encapsulation within the following macros, do not change
9414 ## the running order or otherwise move them around unless you know exactly
9415 ## what you are doing...
9416 if test -n "$compiler"; then
9417
9418 lt_prog_compiler_no_builtin_flag=
9419
9420 if test "$GCC" = yes; then
9421   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9422
9423   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9424 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9425 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9426   echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428   lt_cv_prog_compiler_rtti_exceptions=no
9429    ac_outfile=conftest.$ac_objext
9430    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9431    lt_compiler_flag="-fno-rtti -fno-exceptions"
9432    # Insert the option either (1) after the last *FLAGS variable, or
9433    # (2) before a word containing "conftest.", or (3) at the end.
9434    # Note that $ac_compile itself does not contain backslashes and begins
9435    # with a dollar sign (not a hyphen), so the echo should work correctly.
9436    # The option is referenced via a variable to avoid confusing sed.
9437    lt_compile=`echo "$ac_compile" | $SED \
9438    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9439    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9440    -e 's:$: $lt_compiler_flag:'`
9441    (eval echo "\"\$as_me:9441: $lt_compile\"" >&5)
9442    (eval "$lt_compile" 2>conftest.err)
9443    ac_status=$?
9444    cat conftest.err >&5
9445    echo "$as_me:9445: \$? = $ac_status" >&5
9446    if (exit $ac_status) && test -s "$ac_outfile"; then
9447      # The compiler can only warn and ignore the option if not recognized
9448      # So say no if there are warnings other than the usual output.
9449      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9450      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9451      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9452        lt_cv_prog_compiler_rtti_exceptions=yes
9453      fi
9454    fi
9455    $RM conftest*
9456
9457 fi
9458 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9459 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9460
9461 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9462     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9463 else
9464     :
9465 fi
9466
9467 fi
9468
9469
9470
9471
9472
9473
9474   lt_prog_compiler_wl=
9475 lt_prog_compiler_pic=
9476 lt_prog_compiler_static=
9477
9478 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9479 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9480
9481   if test "$GCC" = yes; then
9482     lt_prog_compiler_wl='-Wl,'
9483     lt_prog_compiler_static='-static'
9484
9485     case $host_os in
9486       aix*)
9487       # All AIX code is PIC.
9488       if test "$host_cpu" = ia64; then
9489         # AIX 5 now supports IA64 processor
9490         lt_prog_compiler_static='-Bstatic'
9491       fi
9492       ;;
9493
9494     amigaos*)
9495       case $host_cpu in
9496       powerpc)
9497             # see comment about AmigaOS4 .so support
9498             lt_prog_compiler_pic='-fPIC'
9499         ;;
9500       m68k)
9501             # FIXME: we need at least 68020 code to build shared libraries, but
9502             # adding the `-m68020' flag to GCC prevents building anything better,
9503             # like `-m68040'.
9504             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9505         ;;
9506       esac
9507       ;;
9508
9509     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9510       # PIC is the default for these OSes.
9511       ;;
9512
9513     mingw* | cygwin* | pw32* | os2* | cegcc*)
9514       # This hack is so that the source file can tell whether it is being
9515       # built for inclusion in a dll (and should export symbols for example).
9516       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9517       # (--disable-auto-import) libraries
9518       lt_prog_compiler_pic='-DDLL_EXPORT'
9519       ;;
9520
9521     darwin* | rhapsody*)
9522       # PIC is the default on this platform
9523       # Common symbols not allowed in MH_DYLIB files
9524       lt_prog_compiler_pic='-fno-common'
9525       ;;
9526
9527     hpux*)
9528       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9529       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9530       # sets the default TLS model and affects inlining.
9531       case $host_cpu in
9532       hppa*64*)
9533         # +Z the default
9534         ;;
9535       *)
9536         lt_prog_compiler_pic='-fPIC'
9537         ;;
9538       esac
9539       ;;
9540
9541     interix[3-9]*)
9542       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9543       # Instead, we relocate shared libraries at runtime.
9544       ;;
9545
9546     msdosdjgpp*)
9547       # Just because we use GCC doesn't mean we suddenly get shared libraries
9548       # on systems that don't support them.
9549       lt_prog_compiler_can_build_shared=no
9550       enable_shared=no
9551       ;;
9552
9553     *nto* | *qnx*)
9554       # QNX uses GNU C++, but need to define -shared option too, otherwise
9555       # it will coredump.
9556       lt_prog_compiler_pic='-fPIC -shared'
9557       ;;
9558
9559     sysv4*MP*)
9560       if test -d /usr/nec; then
9561         lt_prog_compiler_pic=-Kconform_pic
9562       fi
9563       ;;
9564
9565     *)
9566       lt_prog_compiler_pic='-fPIC'
9567       ;;
9568     esac
9569   else
9570     # PORTME Check for flag to pass linker flags through the system compiler.
9571     case $host_os in
9572     aix*)
9573       lt_prog_compiler_wl='-Wl,'
9574       if test "$host_cpu" = ia64; then
9575         # AIX 5 now supports IA64 processor
9576         lt_prog_compiler_static='-Bstatic'
9577       else
9578         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9579       fi
9580       ;;
9581
9582     mingw* | cygwin* | pw32* | os2* | cegcc*)
9583       # This hack is so that the source file can tell whether it is being
9584       # built for inclusion in a dll (and should export symbols for example).
9585       lt_prog_compiler_pic='-DDLL_EXPORT'
9586       ;;
9587
9588     hpux9* | hpux10* | hpux11*)
9589       lt_prog_compiler_wl='-Wl,'
9590       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9591       # not for PA HP-UX.
9592       case $host_cpu in
9593       hppa*64*|ia64*)
9594         # +Z the default
9595         ;;
9596       *)
9597         lt_prog_compiler_pic='+Z'
9598         ;;
9599       esac
9600       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9601       lt_prog_compiler_static='${wl}-a ${wl}archive'
9602       ;;
9603
9604     irix5* | irix6* | nonstopux*)
9605       lt_prog_compiler_wl='-Wl,'
9606       # PIC (with -KPIC) is the default.
9607       lt_prog_compiler_static='-non_shared'
9608       ;;
9609
9610     linux* | k*bsd*-gnu)
9611       case $cc_basename in
9612       # old Intel for x86_64 which still supported -KPIC.
9613       ecc*)
9614         lt_prog_compiler_wl='-Wl,'
9615         lt_prog_compiler_pic='-KPIC'
9616         lt_prog_compiler_static='-static'
9617         ;;
9618       # icc used to be incompatible with GCC.
9619       # ICC 10 doesn't accept -KPIC any more.
9620       icc* | ifort*)
9621         lt_prog_compiler_wl='-Wl,'
9622         lt_prog_compiler_pic='-fPIC'
9623         lt_prog_compiler_static='-static'
9624         ;;
9625       # Lahey Fortran 8.1.
9626       lf95*)
9627         lt_prog_compiler_wl='-Wl,'
9628         lt_prog_compiler_pic='--shared'
9629         lt_prog_compiler_static='--static'
9630         ;;
9631       pgcc* | pgf77* | pgf90* | pgf95*)
9632         # Portland Group compilers (*not* the Pentium gcc compiler,
9633         # which looks to be a dead project)
9634         lt_prog_compiler_wl='-Wl,'
9635         lt_prog_compiler_pic='-fpic'
9636         lt_prog_compiler_static='-Bstatic'
9637         ;;
9638       ccc*)
9639         lt_prog_compiler_wl='-Wl,'
9640         # All Alpha code is PIC.
9641         lt_prog_compiler_static='-non_shared'
9642         ;;
9643       xl*)
9644         # IBM XL C 8.0/Fortran 10.1 on PPC
9645         lt_prog_compiler_wl='-Wl,'
9646         lt_prog_compiler_pic='-qpic'
9647         lt_prog_compiler_static='-qstaticlink'
9648         ;;
9649       *)
9650         case `$CC -V 2>&1 | sed 5q` in
9651         *Sun\ C*)
9652           # Sun C 5.9
9653           lt_prog_compiler_pic='-KPIC'
9654           lt_prog_compiler_static='-Bstatic'
9655           lt_prog_compiler_wl='-Wl,'
9656           ;;
9657         *Sun\ F*)
9658           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9659           lt_prog_compiler_pic='-KPIC'
9660           lt_prog_compiler_static='-Bstatic'
9661           lt_prog_compiler_wl=''
9662           ;;
9663         esac
9664         ;;
9665       esac
9666       ;;
9667
9668     newsos6)
9669       lt_prog_compiler_pic='-KPIC'
9670       lt_prog_compiler_static='-Bstatic'
9671       ;;
9672
9673     *nto* | *qnx*)
9674       # QNX uses GNU C++, but need to define -shared option too, otherwise
9675       # it will coredump.
9676       lt_prog_compiler_pic='-fPIC -shared'
9677       ;;
9678
9679     osf3* | osf4* | osf5*)
9680       lt_prog_compiler_wl='-Wl,'
9681       # All OSF/1 code is PIC.
9682       lt_prog_compiler_static='-non_shared'
9683       ;;
9684
9685     rdos*)
9686       lt_prog_compiler_static='-non_shared'
9687       ;;
9688
9689     solaris*)
9690       lt_prog_compiler_pic='-KPIC'
9691       lt_prog_compiler_static='-Bstatic'
9692       case $cc_basename in
9693       f77* | f90* | f95*)
9694         lt_prog_compiler_wl='-Qoption ld ';;
9695       *)
9696         lt_prog_compiler_wl='-Wl,';;
9697       esac
9698       ;;
9699
9700     sunos4*)
9701       lt_prog_compiler_wl='-Qoption ld '
9702       lt_prog_compiler_pic='-PIC'
9703       lt_prog_compiler_static='-Bstatic'
9704       ;;
9705
9706     sysv4 | sysv4.2uw2* | sysv4.3*)
9707       lt_prog_compiler_wl='-Wl,'
9708       lt_prog_compiler_pic='-KPIC'
9709       lt_prog_compiler_static='-Bstatic'
9710       ;;
9711
9712     sysv4*MP*)
9713       if test -d /usr/nec ;then
9714         lt_prog_compiler_pic='-Kconform_pic'
9715         lt_prog_compiler_static='-Bstatic'
9716       fi
9717       ;;
9718
9719     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9720       lt_prog_compiler_wl='-Wl,'
9721       lt_prog_compiler_pic='-KPIC'
9722       lt_prog_compiler_static='-Bstatic'
9723       ;;
9724
9725     unicos*)
9726       lt_prog_compiler_wl='-Wl,'
9727       lt_prog_compiler_can_build_shared=no
9728       ;;
9729
9730     uts4*)
9731       lt_prog_compiler_pic='-pic'
9732       lt_prog_compiler_static='-Bstatic'
9733       ;;
9734
9735     *)
9736       lt_prog_compiler_can_build_shared=no
9737       ;;
9738     esac
9739   fi
9740
9741 case $host_os in
9742   # For platforms which do not support PIC, -DPIC is meaningless:
9743   *djgpp*)
9744     lt_prog_compiler_pic=
9745     ;;
9746   *)
9747     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9748     ;;
9749 esac
9750 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9751 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9752
9753
9754
9755
9756
9757
9758 #
9759 # Check to make sure the PIC flag actually works.
9760 #
9761 if test -n "$lt_prog_compiler_pic"; then
9762   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9763 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9764 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9765   echo $ECHO_N "(cached) $ECHO_C" >&6
9766 else
9767   lt_cv_prog_compiler_pic_works=no
9768    ac_outfile=conftest.$ac_objext
9769    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9770    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9771    # Insert the option either (1) after the last *FLAGS variable, or
9772    # (2) before a word containing "conftest.", or (3) at the end.
9773    # Note that $ac_compile itself does not contain backslashes and begins
9774    # with a dollar sign (not a hyphen), so the echo should work correctly.
9775    # The option is referenced via a variable to avoid confusing sed.
9776    lt_compile=`echo "$ac_compile" | $SED \
9777    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9778    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9779    -e 's:$: $lt_compiler_flag:'`
9780    (eval echo "\"\$as_me:9780: $lt_compile\"" >&5)
9781    (eval "$lt_compile" 2>conftest.err)
9782    ac_status=$?
9783    cat conftest.err >&5
9784    echo "$as_me:9784: \$? = $ac_status" >&5
9785    if (exit $ac_status) && test -s "$ac_outfile"; then
9786      # The compiler can only warn and ignore the option if not recognized
9787      # So say no if there are warnings other than the usual output.
9788      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9789      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9790      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9791        lt_cv_prog_compiler_pic_works=yes
9792      fi
9793    fi
9794    $RM conftest*
9795
9796 fi
9797 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9798 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9799
9800 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9801     case $lt_prog_compiler_pic in
9802      "" | " "*) ;;
9803      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9804      esac
9805 else
9806     lt_prog_compiler_pic=
9807      lt_prog_compiler_can_build_shared=no
9808 fi
9809
9810 fi
9811
9812
9813
9814
9815
9816
9817 #
9818 # Check to make sure the static flag actually works.
9819 #
9820 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9821 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9822 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9823 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9824   echo $ECHO_N "(cached) $ECHO_C" >&6
9825 else
9826   lt_cv_prog_compiler_static_works=no
9827    save_LDFLAGS="$LDFLAGS"
9828    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9829    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9830    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9831      # The linker can only warn and ignore the option if not recognized
9832      # So say no if there are warnings
9833      if test -s conftest.err; then
9834        # Append any errors to the config.log.
9835        cat conftest.err 1>&5
9836        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9837        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9838        if diff conftest.exp conftest.er2 >/dev/null; then
9839          lt_cv_prog_compiler_static_works=yes
9840        fi
9841      else
9842        lt_cv_prog_compiler_static_works=yes
9843      fi
9844    fi
9845    $RM -r conftest*
9846    LDFLAGS="$save_LDFLAGS"
9847
9848 fi
9849 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9850 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9851
9852 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9853     :
9854 else
9855     lt_prog_compiler_static=
9856 fi
9857
9858
9859
9860
9861
9862
9863
9864   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9865 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9866 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869   lt_cv_prog_compiler_c_o=no
9870    $RM -r conftest 2>/dev/null
9871    mkdir conftest
9872    cd conftest
9873    mkdir out
9874    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9875
9876    lt_compiler_flag="-o out/conftest2.$ac_objext"
9877    # Insert the option either (1) after the last *FLAGS variable, or
9878    # (2) before a word containing "conftest.", or (3) at the end.
9879    # Note that $ac_compile itself does not contain backslashes and begins
9880    # with a dollar sign (not a hyphen), so the echo should work correctly.
9881    lt_compile=`echo "$ac_compile" | $SED \
9882    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9883    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9884    -e 's:$: $lt_compiler_flag:'`
9885    (eval echo "\"\$as_me:9885: $lt_compile\"" >&5)
9886    (eval "$lt_compile" 2>out/conftest.err)
9887    ac_status=$?
9888    cat out/conftest.err >&5
9889    echo "$as_me:9889: \$? = $ac_status" >&5
9890    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9891    then
9892      # The compiler can only warn and ignore the option if not recognized
9893      # So say no if there are warnings
9894      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9895      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9896      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9897        lt_cv_prog_compiler_c_o=yes
9898      fi
9899    fi
9900    chmod u+w . 2>&5
9901    $RM conftest*
9902    # SGI C++ compiler will create directory out/ii_files/ for
9903    # template instantiation
9904    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9905    $RM out/* && rmdir out
9906    cd ..
9907    $RM -r conftest
9908    $RM conftest*
9909
9910 fi
9911 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9912 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9913
9914
9915
9916
9917
9918
9919   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9920 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9921 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9922   echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924   lt_cv_prog_compiler_c_o=no
9925    $RM -r conftest 2>/dev/null
9926    mkdir conftest
9927    cd conftest
9928    mkdir out
9929    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9930
9931    lt_compiler_flag="-o out/conftest2.$ac_objext"
9932    # Insert the option either (1) after the last *FLAGS variable, or
9933    # (2) before a word containing "conftest.", or (3) at the end.
9934    # Note that $ac_compile itself does not contain backslashes and begins
9935    # with a dollar sign (not a hyphen), so the echo should work correctly.
9936    lt_compile=`echo "$ac_compile" | $SED \
9937    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9938    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9939    -e 's:$: $lt_compiler_flag:'`
9940    (eval echo "\"\$as_me:9940: $lt_compile\"" >&5)
9941    (eval "$lt_compile" 2>out/conftest.err)
9942    ac_status=$?
9943    cat out/conftest.err >&5
9944    echo "$as_me:9944: \$? = $ac_status" >&5
9945    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9946    then
9947      # The compiler can only warn and ignore the option if not recognized
9948      # So say no if there are warnings
9949      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9950      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9951      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9952        lt_cv_prog_compiler_c_o=yes
9953      fi
9954    fi
9955    chmod u+w . 2>&5
9956    $RM conftest*
9957    # SGI C++ compiler will create directory out/ii_files/ for
9958    # template instantiation
9959    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9960    $RM out/* && rmdir out
9961    cd ..
9962    $RM -r conftest
9963    $RM conftest*
9964
9965 fi
9966 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9967 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9968
9969
9970
9971
9972 hard_links="nottested"
9973 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9974   # do not overwrite the value of need_locks provided by the user
9975   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9976 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9977   hard_links=yes
9978   $RM conftest*
9979   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9980   touch conftest.a
9981   ln conftest.a conftest.b 2>&5 || hard_links=no
9982   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9983   { echo "$as_me:$LINENO: result: $hard_links" >&5
9984 echo "${ECHO_T}$hard_links" >&6; }
9985   if test "$hard_links" = no; then
9986     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9987 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9988     need_locks=warn
9989   fi
9990 else
9991   need_locks=no
9992 fi
9993
9994
9995
9996
9997
9998
9999   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10000 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10001
10002   runpath_var=
10003   allow_undefined_flag=
10004   always_export_symbols=no
10005   archive_cmds=
10006   archive_expsym_cmds=
10007   compiler_needs_object=no
10008   enable_shared_with_static_runtimes=no
10009   export_dynamic_flag_spec=
10010   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10011   hardcode_automatic=no
10012   hardcode_direct=no
10013   hardcode_direct_absolute=no
10014   hardcode_libdir_flag_spec=
10015   hardcode_libdir_flag_spec_ld=
10016   hardcode_libdir_separator=
10017   hardcode_minus_L=no
10018   hardcode_shlibpath_var=unsupported
10019   inherit_rpath=no
10020   link_all_deplibs=unknown
10021   module_cmds=
10022   module_expsym_cmds=
10023   old_archive_from_new_cmds=
10024   old_archive_from_expsyms_cmds=
10025   thread_safe_flag_spec=
10026   whole_archive_flag_spec=
10027   # include_expsyms should be a list of space-separated symbols to be *always*
10028   # included in the symbol list
10029   include_expsyms=
10030   # exclude_expsyms can be an extended regexp of symbols to exclude
10031   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10032   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10033   # as well as any symbol that contains `d'.
10034   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10035   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10036   # platforms (ab)use it in PIC code, but their linkers get confused if
10037   # the symbol is explicitly referenced.  Since portable code cannot
10038   # rely on this symbol name, it's probably fine to never include it in
10039   # preloaded symbol tables.
10040   # Exclude shared library initialization/finalization symbols.
10041   extract_expsyms_cmds=
10042
10043   case $host_os in
10044   cygwin* | mingw* | pw32* | cegcc*)
10045     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10046     # When not using gcc, we currently assume that we are using
10047     # Microsoft Visual C++.
10048     if test "$GCC" != yes; then
10049       with_gnu_ld=no
10050     fi
10051     ;;
10052   interix*)
10053     # we just hope/assume this is gcc and not c89 (= MSVC++)
10054     with_gnu_ld=yes
10055     ;;
10056   openbsd*)
10057     with_gnu_ld=no
10058     ;;
10059   esac
10060
10061   ld_shlibs=yes
10062   if test "$with_gnu_ld" = yes; then
10063     # If archive_cmds runs LD, not CC, wlarc should be empty
10064     wlarc='${wl}'
10065
10066     # Set some defaults for GNU ld with shared library support. These
10067     # are reset later if shared libraries are not supported. Putting them
10068     # here allows them to be overridden if necessary.
10069     runpath_var=LD_RUN_PATH
10070     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10071     export_dynamic_flag_spec='${wl}--export-dynamic'
10072     # ancient GNU ld didn't support --whole-archive et. al.
10073     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10074       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10075     else
10076       whole_archive_flag_spec=
10077     fi
10078     supports_anon_versioning=no
10079     case `$LD -v 2>&1` in
10080       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10081       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10082       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10083       *\ 2.11.*) ;; # other 2.11 versions
10084       *) supports_anon_versioning=yes ;;
10085     esac
10086
10087     # See if GNU ld supports shared libraries.
10088     case $host_os in
10089     aix[3-9]*)
10090       # On AIX/PPC, the GNU linker is very broken
10091       if test "$host_cpu" != ia64; then
10092         ld_shlibs=no
10093         cat <<_LT_EOF 1>&2
10094
10095 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10096 *** to be unable to reliably create shared libraries on AIX.
10097 *** Therefore, libtool is disabling shared libraries support.  If you
10098 *** really care for shared libraries, you may want to modify your PATH
10099 *** so that a non-GNU linker is found, and then restart.
10100
10101 _LT_EOF
10102       fi
10103       ;;
10104
10105     amigaos*)
10106       case $host_cpu in
10107       powerpc)
10108             # see comment about AmigaOS4 .so support
10109             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10110             archive_expsym_cmds=''
10111         ;;
10112       m68k)
10113             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)'
10114             hardcode_libdir_flag_spec='-L$libdir'
10115             hardcode_minus_L=yes
10116         ;;
10117       esac
10118       ;;
10119
10120     beos*)
10121       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10122         allow_undefined_flag=unsupported
10123         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10124         # support --undefined.  This deserves some investigation.  FIXME
10125         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10126       else
10127         ld_shlibs=no
10128       fi
10129       ;;
10130
10131     cygwin* | mingw* | pw32* | cegcc*)
10132       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10133       # as there is no search path for DLLs.
10134       hardcode_libdir_flag_spec='-L$libdir'
10135       allow_undefined_flag=unsupported
10136       always_export_symbols=no
10137       enable_shared_with_static_runtimes=yes
10138       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10139
10140       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10141         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10142         # If the export-symbols file already is a .def file (1st line
10143         # is EXPORTS), use it as is; otherwise, prepend...
10144         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10145           cp $export_symbols $output_objdir/$soname.def;
10146         else
10147           echo EXPORTS > $output_objdir/$soname.def;
10148           cat $export_symbols >> $output_objdir/$soname.def;
10149         fi~
10150         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10151       else
10152         ld_shlibs=no
10153       fi
10154       ;;
10155
10156     interix[3-9]*)
10157       hardcode_direct=no
10158       hardcode_shlibpath_var=no
10159       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10160       export_dynamic_flag_spec='${wl}-E'
10161       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10162       # Instead, shared libraries are loaded at an image base (0x10000000 by
10163       # default) and relocated if they conflict, which is a slow very memory
10164       # consuming and fragmenting process.  To avoid this, we pick a random,
10165       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10166       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10167       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10168       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'
10169       ;;
10170
10171     gnu* | linux* | tpf* | k*bsd*-gnu)
10172       tmp_diet=no
10173       if test "$host_os" = linux-dietlibc; then
10174         case $cc_basename in
10175           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10176         esac
10177       fi
10178       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10179          && test "$tmp_diet" = no
10180       then
10181         tmp_addflag=
10182         tmp_sharedflag='-shared'
10183         case $cc_basename,$host_cpu in
10184         pgcc*)                          # Portland Group C compiler
10185           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'
10186           tmp_addflag=' $pic_flag'
10187           ;;
10188         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10189           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'
10190           tmp_addflag=' $pic_flag -Mnomain' ;;
10191         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10192           tmp_addflag=' -i_dynamic' ;;
10193         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10194           tmp_addflag=' -i_dynamic -nofor_main' ;;
10195         ifc* | ifort*)                  # Intel Fortran compiler
10196           tmp_addflag=' -nofor_main' ;;
10197         lf95*)                          # Lahey Fortran 8.1
10198           whole_archive_flag_spec=
10199           tmp_sharedflag='--shared' ;;
10200         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10201           tmp_sharedflag='-qmkshrobj'
10202           tmp_addflag= ;;
10203         esac
10204         case `$CC -V 2>&1 | sed 5q` in
10205         *Sun\ C*)                       # Sun C 5.9
10206           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'
10207           compiler_needs_object=yes
10208           tmp_sharedflag='-G' ;;
10209         *Sun\ F*)                       # Sun Fortran 8.3
10210           tmp_sharedflag='-G' ;;
10211         esac
10212         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10213
10214         if test "x$supports_anon_versioning" = xyes; then
10215           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10216             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10217             echo "local: *; };" >> $output_objdir/$libname.ver~
10218             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10219         fi
10220
10221         case $cc_basename in
10222         xlf*)
10223           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10224           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10225           hardcode_libdir_flag_spec=
10226           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10227           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10228           if test "x$supports_anon_versioning" = xyes; then
10229             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10230               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10231               echo "local: *; };" >> $output_objdir/$libname.ver~
10232               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10233           fi
10234           ;;
10235         esac
10236       else
10237         ld_shlibs=no
10238       fi
10239       ;;
10240
10241     netbsd*)
10242       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10243         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10244         wlarc=
10245       else
10246         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10247         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10248       fi
10249       ;;
10250
10251     solaris*)
10252       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10253         ld_shlibs=no
10254         cat <<_LT_EOF 1>&2
10255
10256 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10257 *** create shared libraries on Solaris systems.  Therefore, libtool
10258 *** is disabling shared libraries support.  We urge you to upgrade GNU
10259 *** binutils to release 2.9.1 or newer.  Another option is to modify
10260 *** your PATH or compiler configuration so that the native linker is
10261 *** used, and then restart.
10262
10263 _LT_EOF
10264       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10265         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10266         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10267       else
10268         ld_shlibs=no
10269       fi
10270       ;;
10271
10272     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10273       case `$LD -v 2>&1` in
10274         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10275         ld_shlibs=no
10276         cat <<_LT_EOF 1>&2
10277
10278 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10279 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10280 *** is disabling shared libraries support.  We urge you to upgrade GNU
10281 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10282 *** your PATH or compiler configuration so that the native linker is
10283 *** used, and then restart.
10284
10285 _LT_EOF
10286         ;;
10287         *)
10288           # For security reasons, it is highly recommended that you always
10289           # use absolute paths for naming shared libraries, and exclude the
10290           # DT_RUNPATH tag from executables and libraries.  But doing so
10291           # requires that you compile everything twice, which is a pain.
10292           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10293             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10294             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10295             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10296           else
10297             ld_shlibs=no
10298           fi
10299         ;;
10300       esac
10301       ;;
10302
10303     sunos4*)
10304       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10305       wlarc=
10306       hardcode_direct=yes
10307       hardcode_shlibpath_var=no
10308       ;;
10309
10310     *)
10311       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10312         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10313         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10314       else
10315         ld_shlibs=no
10316       fi
10317       ;;
10318     esac
10319
10320     if test "$ld_shlibs" = no; then
10321       runpath_var=
10322       hardcode_libdir_flag_spec=
10323       export_dynamic_flag_spec=
10324       whole_archive_flag_spec=
10325     fi
10326   else
10327     # PORTME fill in a description of your system's linker (not GNU ld)
10328     case $host_os in
10329     aix3*)
10330       allow_undefined_flag=unsupported
10331       always_export_symbols=yes
10332       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'
10333       # Note: this linker hardcodes the directories in LIBPATH if there
10334       # are no directories specified by -L.
10335       hardcode_minus_L=yes
10336       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10337         # Neither direct hardcoding nor static linking is supported with a
10338         # broken collect2.
10339         hardcode_direct=unsupported
10340       fi
10341       ;;
10342
10343     aix[4-9]*)
10344       if test "$host_cpu" = ia64; then
10345         # On IA64, the linker does run time linking by default, so we don't
10346         # have to do anything special.
10347         aix_use_runtimelinking=no
10348         exp_sym_flag='-Bexport'
10349         no_entry_flag=""
10350       else
10351         # If we're using GNU nm, then we don't want the "-C" option.
10352         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10353         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10354           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'
10355         else
10356           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'
10357         fi
10358         aix_use_runtimelinking=no
10359
10360         # Test if we are trying to use run time linking or normal
10361         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10362         # need to do runtime linking.
10363         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10364           for ld_flag in $LDFLAGS; do
10365           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10366             aix_use_runtimelinking=yes
10367             break
10368           fi
10369           done
10370           ;;
10371         esac
10372
10373         exp_sym_flag='-bexport'
10374         no_entry_flag='-bnoentry'
10375       fi
10376
10377       # When large executables or shared objects are built, AIX ld can
10378       # have problems creating the table of contents.  If linking a library
10379       # or program results in "error TOC overflow" add -mminimal-toc to
10380       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10381       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10382
10383       archive_cmds=''
10384       hardcode_direct=yes
10385       hardcode_direct_absolute=yes
10386       hardcode_libdir_separator=':'
10387       link_all_deplibs=yes
10388       file_list_spec='${wl}-f,'
10389
10390       if test "$GCC" = yes; then
10391         case $host_os in aix4.[012]|aix4.[012].*)
10392         # We only want to do this on AIX 4.2 and lower, the check
10393         # below for broken collect2 doesn't work under 4.3+
10394           collect2name=`${CC} -print-prog-name=collect2`
10395           if test -f "$collect2name" &&
10396            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10397           then
10398           # We have reworked collect2
10399           :
10400           else
10401           # We have old collect2
10402           hardcode_direct=unsupported
10403           # It fails to find uninstalled libraries when the uninstalled
10404           # path is not listed in the libpath.  Setting hardcode_minus_L
10405           # to unsupported forces relinking
10406           hardcode_minus_L=yes
10407           hardcode_libdir_flag_spec='-L$libdir'
10408           hardcode_libdir_separator=
10409           fi
10410           ;;
10411         esac
10412         shared_flag='-shared'
10413         if test "$aix_use_runtimelinking" = yes; then
10414           shared_flag="$shared_flag "'${wl}-G'
10415         fi
10416       else
10417         # not using gcc
10418         if test "$host_cpu" = ia64; then
10419         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10420         # chokes on -Wl,-G. The following line is correct:
10421           shared_flag='-G'
10422         else
10423           if test "$aix_use_runtimelinking" = yes; then
10424             shared_flag='${wl}-G'
10425           else
10426             shared_flag='${wl}-bM:SRE'
10427           fi
10428         fi
10429       fi
10430
10431       export_dynamic_flag_spec='${wl}-bexpall'
10432       # It seems that -bexpall does not export symbols beginning with
10433       # underscore (_), so it is better to generate a list of symbols to export.
10434       always_export_symbols=yes
10435       if test "$aix_use_runtimelinking" = yes; then
10436         # Warning - without using the other runtime loading flags (-brtl),
10437         # -berok will link without error, but may produce a broken library.
10438         allow_undefined_flag='-berok'
10439         # Determine the default libpath from the value encoded in an
10440         # empty executable.
10441         cat >conftest.$ac_ext <<_ACEOF
10442 /* confdefs.h.  */
10443 _ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h.  */
10447
10448 int
10449 main ()
10450 {
10451
10452   ;
10453   return 0;
10454 }
10455 _ACEOF
10456 rm -f conftest.$ac_objext conftest$ac_exeext
10457 if { (ac_try="$ac_link"
10458 case "(($ac_try" in
10459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460   *) ac_try_echo=$ac_try;;
10461 esac
10462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463   (eval "$ac_link") 2>conftest.er1
10464   ac_status=$?
10465   grep -v '^ *+' conftest.er1 >conftest.err
10466   rm -f conftest.er1
10467   cat conftest.err >&5
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); } && {
10470          test -z "$ac_c_werror_flag" ||
10471          test ! -s conftest.err
10472        } && test -s conftest$ac_exeext &&
10473        $as_test_x conftest$ac_exeext; then
10474
10475 lt_aix_libpath_sed='
10476     /Import File Strings/,/^$/ {
10477         /^0/ {
10478             s/^0  *\(.*\)$/\1/
10479             p
10480         }
10481     }'
10482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10483 # Check for a 64-bit object if we didn't find anything.
10484 if test -z "$aix_libpath"; then
10485   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10486 fi
10487 else
10488   echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10490
10491
10492 fi
10493
10494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10495       conftest$ac_exeext conftest.$ac_ext
10496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10497
10498         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10499         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"
10500       else
10501         if test "$host_cpu" = ia64; then
10502           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10503           allow_undefined_flag="-z nodefs"
10504           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"
10505         else
10506          # Determine the default libpath from the value encoded in an
10507          # empty executable.
10508          cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h.  */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h.  */
10514
10515 int
10516 main ()
10517 {
10518
10519   ;
10520   return 0;
10521 }
10522 _ACEOF
10523 rm -f conftest.$ac_objext conftest$ac_exeext
10524 if { (ac_try="$ac_link"
10525 case "(($ac_try" in
10526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527   *) ac_try_echo=$ac_try;;
10528 esac
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530   (eval "$ac_link") 2>conftest.er1
10531   ac_status=$?
10532   grep -v '^ *+' conftest.er1 >conftest.err
10533   rm -f conftest.er1
10534   cat conftest.err >&5
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); } && {
10537          test -z "$ac_c_werror_flag" ||
10538          test ! -s conftest.err
10539        } && test -s conftest$ac_exeext &&
10540        $as_test_x conftest$ac_exeext; then
10541
10542 lt_aix_libpath_sed='
10543     /Import File Strings/,/^$/ {
10544         /^0/ {
10545             s/^0  *\(.*\)$/\1/
10546             p
10547         }
10548     }'
10549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10550 # Check for a 64-bit object if we didn't find anything.
10551 if test -z "$aix_libpath"; then
10552   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10553 fi
10554 else
10555   echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10557
10558
10559 fi
10560
10561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10562       conftest$ac_exeext conftest.$ac_ext
10563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10564
10565          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10566           # Warning - without using the other run time loading flags,
10567           # -berok will link without error, but may produce a broken library.
10568           no_undefined_flag=' ${wl}-bernotok'
10569           allow_undefined_flag=' ${wl}-berok'
10570           # Exported symbols can be pulled into shared objects from archives
10571           whole_archive_flag_spec='$convenience'
10572           archive_cmds_need_lc=yes
10573           # This is similar to how AIX traditionally builds its shared libraries.
10574           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'
10575         fi
10576       fi
10577       ;;
10578
10579     amigaos*)
10580       case $host_cpu in
10581       powerpc)
10582             # see comment about AmigaOS4 .so support
10583             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10584             archive_expsym_cmds=''
10585         ;;
10586       m68k)
10587             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)'
10588             hardcode_libdir_flag_spec='-L$libdir'
10589             hardcode_minus_L=yes
10590         ;;
10591       esac
10592       ;;
10593
10594     bsdi[45]*)
10595       export_dynamic_flag_spec=-rdynamic
10596       ;;
10597
10598     cygwin* | mingw* | pw32* | cegcc*)
10599       # When not using gcc, we currently assume that we are using
10600       # Microsoft Visual C++.
10601       # hardcode_libdir_flag_spec is actually meaningless, as there is
10602       # no search path for DLLs.
10603       hardcode_libdir_flag_spec=' '
10604       allow_undefined_flag=unsupported
10605       # Tell ltmain to make .lib files, not .a files.
10606       libext=lib
10607       # Tell ltmain to make .dll files, not .so files.
10608       shrext_cmds=".dll"
10609       # FIXME: Setting linknames here is a bad hack.
10610       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10611       # The linker will automatically build a .lib file if we build a DLL.
10612       old_archive_from_new_cmds='true'
10613       # FIXME: Should let the user specify the lib program.
10614       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10615       fix_srcfile_path='`cygpath -w "$srcfile"`'
10616       enable_shared_with_static_runtimes=yes
10617       ;;
10618
10619     darwin* | rhapsody*)
10620
10621
10622   archive_cmds_need_lc=no
10623   hardcode_direct=no
10624   hardcode_automatic=yes
10625   hardcode_shlibpath_var=unsupported
10626   whole_archive_flag_spec=''
10627   link_all_deplibs=yes
10628   allow_undefined_flag="$_lt_dar_allow_undefined"
10629   case $cc_basename in
10630      ifort*) _lt_dar_can_shared=yes ;;
10631      *) _lt_dar_can_shared=$GCC ;;
10632   esac
10633   if test "$_lt_dar_can_shared" = "yes"; then
10634     output_verbose_link_cmd=echo
10635     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10636     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10637     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}"
10638     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}"
10639
10640   else
10641   ld_shlibs=no
10642   fi
10643
10644       ;;
10645
10646     dgux*)
10647       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10648       hardcode_libdir_flag_spec='-L$libdir'
10649       hardcode_shlibpath_var=no
10650       ;;
10651
10652     freebsd1*)
10653       ld_shlibs=no
10654       ;;
10655
10656     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10657     # support.  Future versions do this automatically, but an explicit c++rt0.o
10658     # does not break anything, and helps significantly (at the cost of a little
10659     # extra space).
10660     freebsd2.2*)
10661       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10662       hardcode_libdir_flag_spec='-R$libdir'
10663       hardcode_direct=yes
10664       hardcode_shlibpath_var=no
10665       ;;
10666
10667     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10668     freebsd2*)
10669       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10670       hardcode_direct=yes
10671       hardcode_minus_L=yes
10672       hardcode_shlibpath_var=no
10673       ;;
10674
10675     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10676     freebsd* | dragonfly*)
10677       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10678       hardcode_libdir_flag_spec='-R$libdir'
10679       hardcode_direct=yes
10680       hardcode_shlibpath_var=no
10681       ;;
10682
10683     hpux9*)
10684       if test "$GCC" = yes; then
10685         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'
10686       else
10687         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'
10688       fi
10689       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10690       hardcode_libdir_separator=:
10691       hardcode_direct=yes
10692
10693       # hardcode_minus_L: Not really in the search PATH,
10694       # but as the default location of the library.
10695       hardcode_minus_L=yes
10696       export_dynamic_flag_spec='${wl}-E'
10697       ;;
10698
10699     hpux10*)
10700       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10701         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10702       else
10703         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10704       fi
10705       if test "$with_gnu_ld" = no; then
10706         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10707         hardcode_libdir_flag_spec_ld='+b $libdir'
10708         hardcode_libdir_separator=:
10709         hardcode_direct=yes
10710         hardcode_direct_absolute=yes
10711         export_dynamic_flag_spec='${wl}-E'
10712         # hardcode_minus_L: Not really in the search PATH,
10713         # but as the default location of the library.
10714         hardcode_minus_L=yes
10715       fi
10716       ;;
10717
10718     hpux11*)
10719       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10720         case $host_cpu in
10721         hppa*64*)
10722           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10723           ;;
10724         ia64*)
10725           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10726           ;;
10727         *)
10728           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10729           ;;
10730         esac
10731       else
10732         case $host_cpu in
10733         hppa*64*)
10734           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10735           ;;
10736         ia64*)
10737           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10738           ;;
10739         *)
10740           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10741           ;;
10742         esac
10743       fi
10744       if test "$with_gnu_ld" = no; then
10745         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10746         hardcode_libdir_separator=:
10747
10748         case $host_cpu in
10749         hppa*64*|ia64*)
10750           hardcode_direct=no
10751           hardcode_shlibpath_var=no
10752           ;;
10753         *)
10754           hardcode_direct=yes
10755           hardcode_direct_absolute=yes
10756           export_dynamic_flag_spec='${wl}-E'
10757
10758           # hardcode_minus_L: Not really in the search PATH,
10759           # but as the default location of the library.
10760           hardcode_minus_L=yes
10761           ;;
10762         esac
10763       fi
10764       ;;
10765
10766     irix5* | irix6* | nonstopux*)
10767       if test "$GCC" = yes; then
10768         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'
10769         # Try to use the -exported_symbol ld option, if it does not
10770         # work, assume that -exports_file does not work either and
10771         # implicitly export all symbols.
10772         save_LDFLAGS="$LDFLAGS"
10773         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10774         cat >conftest.$ac_ext <<_ACEOF
10775 int foo(void) {}
10776 _ACEOF
10777 rm -f conftest.$ac_objext conftest$ac_exeext
10778 if { (ac_try="$ac_link"
10779 case "(($ac_try" in
10780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781   *) ac_try_echo=$ac_try;;
10782 esac
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784   (eval "$ac_link") 2>conftest.er1
10785   ac_status=$?
10786   grep -v '^ *+' conftest.er1 >conftest.err
10787   rm -f conftest.er1
10788   cat conftest.err >&5
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); } && {
10791          test -z "$ac_c_werror_flag" ||
10792          test ! -s conftest.err
10793        } && test -s conftest$ac_exeext &&
10794        $as_test_x conftest$ac_exeext; then
10795   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'
10796
10797 else
10798   echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801
10802 fi
10803
10804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10805       conftest$ac_exeext conftest.$ac_ext
10806         LDFLAGS="$save_LDFLAGS"
10807       else
10808         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'
10809         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'
10810       fi
10811       archive_cmds_need_lc='no'
10812       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10813       hardcode_libdir_separator=:
10814       inherit_rpath=yes
10815       link_all_deplibs=yes
10816       ;;
10817
10818     netbsd*)
10819       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10820         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10821       else
10822         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10823       fi
10824       hardcode_libdir_flag_spec='-R$libdir'
10825       hardcode_direct=yes
10826       hardcode_shlibpath_var=no
10827       ;;
10828
10829     newsos6)
10830       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10831       hardcode_direct=yes
10832       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10833       hardcode_libdir_separator=:
10834       hardcode_shlibpath_var=no
10835       ;;
10836
10837     *nto* | *qnx*)
10838       ;;
10839
10840     openbsd*)
10841       if test -f /usr/libexec/ld.so; then
10842         hardcode_direct=yes
10843         hardcode_shlibpath_var=no
10844         hardcode_direct_absolute=yes
10845         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10846           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10847           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10848           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10849           export_dynamic_flag_spec='${wl}-E'
10850         else
10851           case $host_os in
10852            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10853              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10854              hardcode_libdir_flag_spec='-R$libdir'
10855              ;;
10856            *)
10857              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10858              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10859              ;;
10860           esac
10861         fi
10862       else
10863         ld_shlibs=no
10864       fi
10865       ;;
10866
10867     os2*)
10868       hardcode_libdir_flag_spec='-L$libdir'
10869       hardcode_minus_L=yes
10870       allow_undefined_flag=unsupported
10871       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'
10872       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10873       ;;
10874
10875     osf3*)
10876       if test "$GCC" = yes; then
10877         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10878         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'
10879       else
10880         allow_undefined_flag=' -expect_unresolved \*'
10881         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'
10882       fi
10883       archive_cmds_need_lc='no'
10884       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10885       hardcode_libdir_separator=:
10886       ;;
10887
10888     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10889       if test "$GCC" = yes; then
10890         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10891         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'
10892         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10893       else
10894         allow_undefined_flag=' -expect_unresolved \*'
10895         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'
10896         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~
10897         $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'
10898
10899         # Both c and cxx compiler support -rpath directly
10900         hardcode_libdir_flag_spec='-rpath $libdir'
10901       fi
10902       archive_cmds_need_lc='no'
10903       hardcode_libdir_separator=:
10904       ;;
10905
10906     solaris*)
10907       no_undefined_flag=' -z defs'
10908       if test "$GCC" = yes; then
10909         wlarc='${wl}'
10910         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10911         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10912           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10913       else
10914         case `$CC -V 2>&1` in
10915         *"Compilers 5.0"*)
10916           wlarc=''
10917           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10918           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10919           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10920           ;;
10921         *)
10922           wlarc='${wl}'
10923           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10924           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10925           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10926           ;;
10927         esac
10928       fi
10929       hardcode_libdir_flag_spec='-R$libdir'
10930       hardcode_shlibpath_var=no
10931       case $host_os in
10932       solaris2.[0-5] | solaris2.[0-5].*) ;;
10933       *)
10934         # The compiler driver will combine and reorder linker options,
10935         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10936         # but is careful enough not to reorder.
10937         # Supported since Solaris 2.6 (maybe 2.5.1?)
10938         if test "$GCC" = yes; then
10939           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10940         else
10941           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10942         fi
10943         ;;
10944       esac
10945       link_all_deplibs=yes
10946       ;;
10947
10948     sunos4*)
10949       if test "x$host_vendor" = xsequent; then
10950         # Use $CC to link under sequent, because it throws in some extra .o
10951         # files that make .init and .fini sections work.
10952         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10953       else
10954         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10955       fi
10956       hardcode_libdir_flag_spec='-L$libdir'
10957       hardcode_direct=yes
10958       hardcode_minus_L=yes
10959       hardcode_shlibpath_var=no
10960       ;;
10961
10962     sysv4)
10963       case $host_vendor in
10964         sni)
10965           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10966           hardcode_direct=yes # is this really true???
10967         ;;
10968         siemens)
10969           ## LD is ld it makes a PLAMLIB
10970           ## CC just makes a GrossModule.
10971           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10972           reload_cmds='$CC -r -o $output$reload_objs'
10973           hardcode_direct=no
10974         ;;
10975         motorola)
10976           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10977           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10978         ;;
10979       esac
10980       runpath_var='LD_RUN_PATH'
10981       hardcode_shlibpath_var=no
10982       ;;
10983
10984     sysv4.3*)
10985       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10986       hardcode_shlibpath_var=no
10987       export_dynamic_flag_spec='-Bexport'
10988       ;;
10989
10990     sysv4*MP*)
10991       if test -d /usr/nec; then
10992         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10993         hardcode_shlibpath_var=no
10994         runpath_var=LD_RUN_PATH
10995         hardcode_runpath_var=yes
10996         ld_shlibs=yes
10997       fi
10998       ;;
10999
11000     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11001       no_undefined_flag='${wl}-z,text'
11002       archive_cmds_need_lc=no
11003       hardcode_shlibpath_var=no
11004       runpath_var='LD_RUN_PATH'
11005
11006       if test "$GCC" = yes; then
11007         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009       else
11010         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11011         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11012       fi
11013       ;;
11014
11015     sysv5* | sco3.2v5* | sco5v6*)
11016       # Note: We can NOT use -z defs as we might desire, because we do not
11017       # link with -lc, and that would cause any symbols used from libc to
11018       # always be unresolved, which means just about no library would
11019       # ever link correctly.  If we're not using GNU ld we use -z text
11020       # though, which does catch some bad symbols but isn't as heavy-handed
11021       # as -z defs.
11022       no_undefined_flag='${wl}-z,text'
11023       allow_undefined_flag='${wl}-z,nodefs'
11024       archive_cmds_need_lc=no
11025       hardcode_shlibpath_var=no
11026       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11027       hardcode_libdir_separator=':'
11028       link_all_deplibs=yes
11029       export_dynamic_flag_spec='${wl}-Bexport'
11030       runpath_var='LD_RUN_PATH'
11031
11032       if test "$GCC" = yes; then
11033         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035       else
11036         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038       fi
11039       ;;
11040
11041     uts4*)
11042       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11043       hardcode_libdir_flag_spec='-L$libdir'
11044       hardcode_shlibpath_var=no
11045       ;;
11046
11047     *)
11048       ld_shlibs=no
11049       ;;
11050     esac
11051
11052     if test x$host_vendor = xsni; then
11053       case $host in
11054       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11055         export_dynamic_flag_spec='${wl}-Blargedynsym'
11056         ;;
11057       esac
11058     fi
11059   fi
11060
11061 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11062 echo "${ECHO_T}$ld_shlibs" >&6; }
11063 test "$ld_shlibs" = no && can_build_shared=no
11064
11065 with_gnu_ld=$with_gnu_ld
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081 #
11082 # Do we need to explicitly link libc?
11083 #
11084 case "x$archive_cmds_need_lc" in
11085 x|xyes)
11086   # Assume -lc should be added
11087   archive_cmds_need_lc=yes
11088
11089   if test "$enable_shared" = yes && test "$GCC" = yes; then
11090     case $archive_cmds in
11091     *'~'*)
11092       # FIXME: we may have to deal with multi-command sequences.
11093       ;;
11094     '$CC '*)
11095       # Test whether the compiler implicitly links with -lc since on some
11096       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11097       # to ld, don't add -lc before -lgcc.
11098       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11099 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11100       $RM conftest*
11101       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11102
11103       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11104   (eval $ac_compile) 2>&5
11105   ac_status=$?
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); } 2>conftest.err; then
11108         soname=conftest
11109         lib=conftest
11110         libobjs=conftest.$ac_objext
11111         deplibs=
11112         wl=$lt_prog_compiler_wl
11113         pic_flag=$lt_prog_compiler_pic
11114         compiler_flags=-v
11115         linker_flags=-v
11116         verstring=
11117         output_objdir=.
11118         libname=conftest
11119         lt_save_allow_undefined_flag=$allow_undefined_flag
11120         allow_undefined_flag=
11121         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11122   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11123   ac_status=$?
11124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125   (exit $ac_status); }
11126         then
11127           archive_cmds_need_lc=no
11128         else
11129           archive_cmds_need_lc=yes
11130         fi
11131         allow_undefined_flag=$lt_save_allow_undefined_flag
11132       else
11133         cat conftest.err 1>&5
11134       fi
11135       $RM conftest*
11136       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11137 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11138       ;;
11139     esac
11140   fi
11141   ;;
11142 esac
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
11300   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11301 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11302
11303 if test "$GCC" = yes; then
11304   case $host_os in
11305     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11306     *) lt_awk_arg="/^libraries:/" ;;
11307   esac
11308   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11309   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11310     # if the path contains ";" then we assume it to be the separator
11311     # otherwise default to the standard path separator (i.e. ":") - it is
11312     # assumed that no part of a normal pathname contains ";" but that should
11313     # okay in the real world where ";" in dirpaths is itself problematic.
11314     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11315   else
11316     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11317   fi
11318   # Ok, now we have the path, separated by spaces, we can step through it
11319   # and add multilib dir if necessary.
11320   lt_tmp_lt_search_path_spec=
11321   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11322   for lt_sys_path in $lt_search_path_spec; do
11323     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11324       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11325     else
11326       test -d "$lt_sys_path" && \
11327         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11328     fi
11329   done
11330   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11331 BEGIN {RS=" "; FS="/|\n";} {
11332   lt_foo="";
11333   lt_count=0;
11334   for (lt_i = NF; lt_i > 0; lt_i--) {
11335     if ($lt_i != "" && $lt_i != ".") {
11336       if ($lt_i == "..") {
11337         lt_count++;
11338       } else {
11339         if (lt_count == 0) {
11340           lt_foo="/" $lt_i lt_foo;
11341         } else {
11342           lt_count--;
11343         }
11344       }
11345     }
11346   }
11347   if (lt_foo != "") { lt_freq[lt_foo]++; }
11348   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11349 }'`
11350   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11351 else
11352   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11353 fi
11354 library_names_spec=
11355 libname_spec='lib$name'
11356 soname_spec=
11357 shrext_cmds=".so"
11358 postinstall_cmds=
11359 postuninstall_cmds=
11360 finish_cmds=
11361 finish_eval=
11362 shlibpath_var=
11363 shlibpath_overrides_runpath=unknown
11364 version_type=none
11365 dynamic_linker="$host_os ld.so"
11366 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11367 need_lib_prefix=unknown
11368 hardcode_into_libs=no
11369
11370 # when you set need_version to no, make sure it does not cause -set_version
11371 # flags to be left without arguments
11372 need_version=unknown
11373
11374 case $host_os in
11375 aix3*)
11376   version_type=linux
11377   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11378   shlibpath_var=LIBPATH
11379
11380   # AIX 3 has no versioning support, so we append a major version to the name.
11381   soname_spec='${libname}${release}${shared_ext}$major'
11382   ;;
11383
11384 aix[4-9]*)
11385   version_type=linux
11386   need_lib_prefix=no
11387   need_version=no
11388   hardcode_into_libs=yes
11389   if test "$host_cpu" = ia64; then
11390     # AIX 5 supports IA64
11391     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11392     shlibpath_var=LD_LIBRARY_PATH
11393   else
11394     # With GCC up to 2.95.x, collect2 would create an import file
11395     # for dependence libraries.  The import file would start with
11396     # the line `#! .'.  This would cause the generated library to
11397     # depend on `.', always an invalid library.  This was fixed in
11398     # development snapshots of GCC prior to 3.0.
11399     case $host_os in
11400       aix4 | aix4.[01] | aix4.[01].*)
11401       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11402            echo ' yes '
11403            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11404         :
11405       else
11406         can_build_shared=no
11407       fi
11408       ;;
11409     esac
11410     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11411     # soname into executable. Probably we can add versioning support to
11412     # collect2, so additional links can be useful in future.
11413     if test "$aix_use_runtimelinking" = yes; then
11414       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11415       # instead of lib<name>.a to let people know that these are not
11416       # typical AIX shared libraries.
11417       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418     else
11419       # We preserve .a as extension for shared libraries through AIX4.2
11420       # and later when we are not doing run time linking.
11421       library_names_spec='${libname}${release}.a $libname.a'
11422       soname_spec='${libname}${release}${shared_ext}$major'
11423     fi
11424     shlibpath_var=LIBPATH
11425   fi
11426   ;;
11427
11428 amigaos*)
11429   case $host_cpu in
11430   powerpc)
11431     # Since July 2007 AmigaOS4 officially supports .so libraries.
11432     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434     ;;
11435   m68k)
11436     library_names_spec='$libname.ixlibrary $libname.a'
11437     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11438     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'
11439     ;;
11440   esac
11441   ;;
11442
11443 beos*)
11444   library_names_spec='${libname}${shared_ext}'
11445   dynamic_linker="$host_os ld.so"
11446   shlibpath_var=LIBRARY_PATH
11447   ;;
11448
11449 bsdi[45]*)
11450   version_type=linux
11451   need_version=no
11452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453   soname_spec='${libname}${release}${shared_ext}$major'
11454   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11455   shlibpath_var=LD_LIBRARY_PATH
11456   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11457   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11458   # the default ld.so.conf also contains /usr/contrib/lib and
11459   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11460   # libtool to hard-code these into programs
11461   ;;
11462
11463 cygwin* | mingw* | pw32* | cegcc*)
11464   version_type=windows
11465   shrext_cmds=".dll"
11466   need_version=no
11467   need_lib_prefix=no
11468
11469   case $GCC,$host_os in
11470   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11471     library_names_spec='$libname.dll.a'
11472     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11473     postinstall_cmds='base_file=`basename \${file}`~
11474       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11475       dldir=$destdir/`dirname \$dlpath`~
11476       test -d \$dldir || mkdir -p \$dldir~
11477       $install_prog $dir/$dlname \$dldir/$dlname~
11478       chmod a+x \$dldir/$dlname~
11479       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11480         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11481       fi'
11482     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11483       dlpath=$dir/\$dldll~
11484        $RM \$dlpath'
11485     shlibpath_overrides_runpath=yes
11486
11487     case $host_os in
11488     cygwin*)
11489       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11490       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11491       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11492       ;;
11493     mingw* | cegcc*)
11494       # MinGW DLLs use traditional 'lib' prefix
11495       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11496       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11497       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11498         # It is most probably a Windows format PATH printed by
11499         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11500         # path with ; separators, and with drive letters. We can handle the
11501         # drive letters (cygwin fileutils understands them), so leave them,
11502         # especially as we might pass files found there to a mingw objdump,
11503         # which wouldn't understand a cygwinified path. Ahh.
11504         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11505       else
11506         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11507       fi
11508       ;;
11509     pw32*)
11510       # pw32 DLLs use 'pw' prefix rather than 'lib'
11511       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11512       ;;
11513     esac
11514     ;;
11515
11516   *)
11517     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11518     ;;
11519   esac
11520   dynamic_linker='Win32 ld.exe'
11521   # FIXME: first we should search . and the directory the executable is in
11522   shlibpath_var=PATH
11523   ;;
11524
11525 darwin* | rhapsody*)
11526   dynamic_linker="$host_os dyld"
11527   version_type=darwin
11528   need_lib_prefix=no
11529   need_version=no
11530   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11531   soname_spec='${libname}${release}${major}$shared_ext'
11532   shlibpath_overrides_runpath=yes
11533   shlibpath_var=DYLD_LIBRARY_PATH
11534   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11535
11536   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11537   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11538   ;;
11539
11540 dgux*)
11541   version_type=linux
11542   need_lib_prefix=no
11543   need_version=no
11544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11545   soname_spec='${libname}${release}${shared_ext}$major'
11546   shlibpath_var=LD_LIBRARY_PATH
11547   ;;
11548
11549 freebsd1*)
11550   dynamic_linker=no
11551   ;;
11552
11553 freebsd* | dragonfly*)
11554   # DragonFly does not have aout.  When/if they implement a new
11555   # versioning mechanism, adjust this.
11556   if test -x /usr/bin/objformat; then
11557     objformat=`/usr/bin/objformat`
11558   else
11559     case $host_os in
11560     freebsd[123]*) objformat=aout ;;
11561     *) objformat=elf ;;
11562     esac
11563   fi
11564   version_type=freebsd-$objformat
11565   case $version_type in
11566     freebsd-elf*)
11567       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11568       need_version=no
11569       need_lib_prefix=no
11570       ;;
11571     freebsd-*)
11572       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11573       need_version=yes
11574       ;;
11575   esac
11576   shlibpath_var=LD_LIBRARY_PATH
11577   case $host_os in
11578   freebsd2*)
11579     shlibpath_overrides_runpath=yes
11580     ;;
11581   freebsd3.[01]* | freebsdelf3.[01]*)
11582     shlibpath_overrides_runpath=yes
11583     hardcode_into_libs=yes
11584     ;;
11585   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11586   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11587     shlibpath_overrides_runpath=no
11588     hardcode_into_libs=yes
11589     ;;
11590   *) # from 4.6 on, and DragonFly
11591     shlibpath_overrides_runpath=yes
11592     hardcode_into_libs=yes
11593     ;;
11594   esac
11595   ;;
11596
11597 gnu*)
11598   version_type=linux
11599   need_lib_prefix=no
11600   need_version=no
11601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11602   soname_spec='${libname}${release}${shared_ext}$major'
11603   shlibpath_var=LD_LIBRARY_PATH
11604   hardcode_into_libs=yes
11605   ;;
11606
11607 hpux9* | hpux10* | hpux11*)
11608   # Give a soname corresponding to the major version so that dld.sl refuses to
11609   # link against other versions.
11610   version_type=sunos
11611   need_lib_prefix=no
11612   need_version=no
11613   case $host_cpu in
11614   ia64*)
11615     shrext_cmds='.so'
11616     hardcode_into_libs=yes
11617     dynamic_linker="$host_os dld.so"
11618     shlibpath_var=LD_LIBRARY_PATH
11619     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621     soname_spec='${libname}${release}${shared_ext}$major'
11622     if test "X$HPUX_IA64_MODE" = X32; then
11623       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11624     else
11625       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11626     fi
11627     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11628     ;;
11629   hppa*64*)
11630     shrext_cmds='.sl'
11631     hardcode_into_libs=yes
11632     dynamic_linker="$host_os dld.sl"
11633     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11634     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11635     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636     soname_spec='${libname}${release}${shared_ext}$major'
11637     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11638     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11639     ;;
11640   *)
11641     shrext_cmds='.sl'
11642     dynamic_linker="$host_os dld.sl"
11643     shlibpath_var=SHLIB_PATH
11644     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11646     soname_spec='${libname}${release}${shared_ext}$major'
11647     ;;
11648   esac
11649   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11650   postinstall_cmds='chmod 555 $lib'
11651   ;;
11652
11653 interix[3-9]*)
11654   version_type=linux
11655   need_lib_prefix=no
11656   need_version=no
11657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11658   soname_spec='${libname}${release}${shared_ext}$major'
11659   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11660   shlibpath_var=LD_LIBRARY_PATH
11661   shlibpath_overrides_runpath=no
11662   hardcode_into_libs=yes
11663   ;;
11664
11665 irix5* | irix6* | nonstopux*)
11666   case $host_os in
11667     nonstopux*) version_type=nonstopux ;;
11668     *)
11669         if test "$lt_cv_prog_gnu_ld" = yes; then
11670                 version_type=linux
11671         else
11672                 version_type=irix
11673         fi ;;
11674   esac
11675   need_lib_prefix=no
11676   need_version=no
11677   soname_spec='${libname}${release}${shared_ext}$major'
11678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11679   case $host_os in
11680   irix5* | nonstopux*)
11681     libsuff= shlibsuff=
11682     ;;
11683   *)
11684     case $LD in # libtool.m4 will add one of these switches to LD
11685     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11686       libsuff= shlibsuff= libmagic=32-bit;;
11687     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11688       libsuff=32 shlibsuff=N32 libmagic=N32;;
11689     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11690       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11691     *) libsuff= shlibsuff= libmagic=never-match;;
11692     esac
11693     ;;
11694   esac
11695   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11696   shlibpath_overrides_runpath=no
11697   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11698   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11699   hardcode_into_libs=yes
11700   ;;
11701
11702 # No shared lib support for Linux oldld, aout, or coff.
11703 linux*oldld* | linux*aout* | linux*coff*)
11704   dynamic_linker=no
11705   ;;
11706
11707 # This must be Linux ELF.
11708 linux* | k*bsd*-gnu)
11709   version_type=linux
11710   need_lib_prefix=no
11711   need_version=no
11712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11713   soname_spec='${libname}${release}${shared_ext}$major'
11714   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11715   shlibpath_var=LD_LIBRARY_PATH
11716   shlibpath_overrides_runpath=no
11717   # Some binutils ld are patched to set DT_RUNPATH
11718   save_LDFLAGS=$LDFLAGS
11719   save_libdir=$libdir
11720   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11721        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11722   cat >conftest.$ac_ext <<_ACEOF
11723 /* confdefs.h.  */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h.  */
11728
11729 int
11730 main ()
11731 {
11732
11733   ;
11734   return 0;
11735 }
11736 _ACEOF
11737 rm -f conftest.$ac_objext conftest$ac_exeext
11738 if { (ac_try="$ac_link"
11739 case "(($ac_try" in
11740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741   *) ac_try_echo=$ac_try;;
11742 esac
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744   (eval "$ac_link") 2>conftest.er1
11745   ac_status=$?
11746   grep -v '^ *+' conftest.er1 >conftest.err
11747   rm -f conftest.er1
11748   cat conftest.err >&5
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); } && {
11751          test -z "$ac_c_werror_flag" ||
11752          test ! -s conftest.err
11753        } && test -s conftest$ac_exeext &&
11754        $as_test_x conftest$ac_exeext; then
11755   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11756   shlibpath_overrides_runpath=yes
11757 fi
11758
11759 else
11760   echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11762
11763
11764 fi
11765
11766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11767       conftest$ac_exeext conftest.$ac_ext
11768   LDFLAGS=$save_LDFLAGS
11769   libdir=$save_libdir
11770
11771   # This implies no fast_install, which is unacceptable.
11772   # Some rework will be needed to allow for fast_install
11773   # before this can be enabled.
11774   hardcode_into_libs=yes
11775
11776   # Append ld.so.conf contents to the search path
11777   if test -f /etc/ld.so.conf; then
11778     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' ' '`
11779     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11780   fi
11781
11782   # We used to test for /lib/ld.so.1 and disable shared libraries on
11783   # powerpc, because MkLinux only supported shared libraries with the
11784   # GNU dynamic linker.  Since this was broken with cross compilers,
11785   # most powerpc-linux boxes support dynamic linking these days and
11786   # people can always --disable-shared, the test was removed, and we
11787   # assume the GNU/Linux dynamic linker is in use.
11788   dynamic_linker='GNU/Linux ld.so'
11789   ;;
11790
11791 netbsd*)
11792   version_type=sunos
11793   need_lib_prefix=no
11794   need_version=no
11795   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11796     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11797     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11798     dynamic_linker='NetBSD (a.out) ld.so'
11799   else
11800     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11801     soname_spec='${libname}${release}${shared_ext}$major'
11802     dynamic_linker='NetBSD ld.elf_so'
11803   fi
11804   shlibpath_var=LD_LIBRARY_PATH
11805   shlibpath_overrides_runpath=yes
11806   hardcode_into_libs=yes
11807   ;;
11808
11809 newsos6)
11810   version_type=linux
11811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812   shlibpath_var=LD_LIBRARY_PATH
11813   shlibpath_overrides_runpath=yes
11814   ;;
11815
11816 *nto* | *qnx*)
11817   version_type=qnx
11818   need_lib_prefix=no
11819   need_version=no
11820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11821   soname_spec='${libname}${release}${shared_ext}$major'
11822   shlibpath_var=LD_LIBRARY_PATH
11823   shlibpath_overrides_runpath=no
11824   hardcode_into_libs=yes
11825   dynamic_linker='ldqnx.so'
11826   ;;
11827
11828 openbsd*)
11829   version_type=sunos
11830   sys_lib_dlsearch_path_spec="/usr/lib"
11831   need_lib_prefix=no
11832   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11833   case $host_os in
11834     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11835     *)                          need_version=no  ;;
11836   esac
11837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11838   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11839   shlibpath_var=LD_LIBRARY_PATH
11840   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11841     case $host_os in
11842       openbsd2.[89] | openbsd2.[89].*)
11843         shlibpath_overrides_runpath=no
11844         ;;
11845       *)
11846         shlibpath_overrides_runpath=yes
11847         ;;
11848       esac
11849   else
11850     shlibpath_overrides_runpath=yes
11851   fi
11852   ;;
11853
11854 os2*)
11855   libname_spec='$name'
11856   shrext_cmds=".dll"
11857   need_lib_prefix=no
11858   library_names_spec='$libname${shared_ext} $libname.a'
11859   dynamic_linker='OS/2 ld.exe'
11860   shlibpath_var=LIBPATH
11861   ;;
11862
11863 osf3* | osf4* | osf5*)
11864   version_type=osf
11865   need_lib_prefix=no
11866   need_version=no
11867   soname_spec='${libname}${release}${shared_ext}$major'
11868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11869   shlibpath_var=LD_LIBRARY_PATH
11870   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11871   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11872   ;;
11873
11874 rdos*)
11875   dynamic_linker=no
11876   ;;
11877
11878 solaris*)
11879   version_type=linux
11880   need_lib_prefix=no
11881   need_version=no
11882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11883   soname_spec='${libname}${release}${shared_ext}$major'
11884   shlibpath_var=LD_LIBRARY_PATH
11885   shlibpath_overrides_runpath=yes
11886   hardcode_into_libs=yes
11887   # ldd complains unless libraries are executable
11888   postinstall_cmds='chmod +x $lib'
11889   ;;
11890
11891 sunos4*)
11892   version_type=sunos
11893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11894   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11895   shlibpath_var=LD_LIBRARY_PATH
11896   shlibpath_overrides_runpath=yes
11897   if test "$with_gnu_ld" = yes; then
11898     need_lib_prefix=no
11899   fi
11900   need_version=yes
11901   ;;
11902
11903 sysv4 | sysv4.3*)
11904   version_type=linux
11905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11906   soname_spec='${libname}${release}${shared_ext}$major'
11907   shlibpath_var=LD_LIBRARY_PATH
11908   case $host_vendor in
11909     sni)
11910       shlibpath_overrides_runpath=no
11911       need_lib_prefix=no
11912       runpath_var=LD_RUN_PATH
11913       ;;
11914     siemens)
11915       need_lib_prefix=no
11916       ;;
11917     motorola)
11918       need_lib_prefix=no
11919       need_version=no
11920       shlibpath_overrides_runpath=no
11921       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11922       ;;
11923   esac
11924   ;;
11925
11926 sysv4*MP*)
11927   if test -d /usr/nec ;then
11928     version_type=linux
11929     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11930     soname_spec='$libname${shared_ext}.$major'
11931     shlibpath_var=LD_LIBRARY_PATH
11932   fi
11933   ;;
11934
11935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11936   version_type=freebsd-elf
11937   need_lib_prefix=no
11938   need_version=no
11939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11940   soname_spec='${libname}${release}${shared_ext}$major'
11941   shlibpath_var=LD_LIBRARY_PATH
11942   shlibpath_overrides_runpath=yes
11943   hardcode_into_libs=yes
11944   if test "$with_gnu_ld" = yes; then
11945     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11946   else
11947     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11948     case $host_os in
11949       sco3.2v5*)
11950         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11951         ;;
11952     esac
11953   fi
11954   sys_lib_dlsearch_path_spec='/usr/lib'
11955   ;;
11956
11957 tpf*)
11958   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11959   version_type=linux
11960   need_lib_prefix=no
11961   need_version=no
11962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11963   shlibpath_var=LD_LIBRARY_PATH
11964   shlibpath_overrides_runpath=no
11965   hardcode_into_libs=yes
11966   ;;
11967
11968 uts4*)
11969   version_type=linux
11970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11971   soname_spec='${libname}${release}${shared_ext}$major'
11972   shlibpath_var=LD_LIBRARY_PATH
11973   ;;
11974
11975 *)
11976   dynamic_linker=no
11977   ;;
11978 esac
11979 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11980 echo "${ECHO_T}$dynamic_linker" >&6; }
11981 test "$dynamic_linker" = no && can_build_shared=no
11982
11983 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11984 if test "$GCC" = yes; then
11985   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11986 fi
11987
11988 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11989   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11990 fi
11991 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11992   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11993 fi
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
12081   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12082 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12083 hardcode_action=
12084 if test -n "$hardcode_libdir_flag_spec" ||
12085    test -n "$runpath_var" ||
12086    test "X$hardcode_automatic" = "Xyes" ; then
12087
12088   # We can hardcode non-existent directories.
12089   if test "$hardcode_direct" != no &&
12090      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12091      # have to relink, otherwise we might link with an installed library
12092      # when we should be linking with a yet-to-be-installed one
12093      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12094      test "$hardcode_minus_L" != no; then
12095     # Linking always hardcodes the temporary library directory.
12096     hardcode_action=relink
12097   else
12098     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12099     hardcode_action=immediate
12100   fi
12101 else
12102   # We cannot hardcode anything, or else we can only hardcode existing
12103   # directories.
12104   hardcode_action=unsupported
12105 fi
12106 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12107 echo "${ECHO_T}$hardcode_action" >&6; }
12108
12109 if test "$hardcode_action" = relink ||
12110    test "$inherit_rpath" = yes; then
12111   # Fast installation is not supported
12112   enable_fast_install=no
12113 elif test "$shlibpath_overrides_runpath" = yes ||
12114      test "$enable_shared" = no; then
12115   # Fast installation is not necessary
12116   enable_fast_install=needless
12117 fi
12118
12119
12120
12121
12122
12123
12124   if test "x$enable_dlopen" != xyes; then
12125   enable_dlopen=unknown
12126   enable_dlopen_self=unknown
12127   enable_dlopen_self_static=unknown
12128 else
12129   lt_cv_dlopen=no
12130   lt_cv_dlopen_libs=
12131
12132   case $host_os in
12133   beos*)
12134     lt_cv_dlopen="load_add_on"
12135     lt_cv_dlopen_libs=
12136     lt_cv_dlopen_self=yes
12137     ;;
12138
12139   mingw* | pw32* | cegcc*)
12140     lt_cv_dlopen="LoadLibrary"
12141     lt_cv_dlopen_libs=
12142     ;;
12143
12144   cygwin*)
12145     lt_cv_dlopen="dlopen"
12146     lt_cv_dlopen_libs=
12147     ;;
12148
12149   darwin*)
12150   # if libdl is installed we need to link against it
12151     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12152 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12153 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12154   echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156   ac_check_lib_save_LIBS=$LIBS
12157 LIBS="-ldl  $LIBS"
12158 cat >conftest.$ac_ext <<_ACEOF
12159 /* confdefs.h.  */
12160 _ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h.  */
12164
12165 /* Override any GCC internal prototype to avoid an error.
12166    Use char because int might match the return type of a GCC
12167    builtin and then its argument prototype would still apply.  */
12168 #ifdef __cplusplus
12169 extern "C"
12170 #endif
12171 char dlopen ();
12172 int
12173 main ()
12174 {
12175 return dlopen ();
12176   ;
12177   return 0;
12178 }
12179 _ACEOF
12180 rm -f conftest.$ac_objext conftest$ac_exeext
12181 if { (ac_try="$ac_link"
12182 case "(($ac_try" in
12183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184   *) ac_try_echo=$ac_try;;
12185 esac
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187   (eval "$ac_link") 2>conftest.er1
12188   ac_status=$?
12189   grep -v '^ *+' conftest.er1 >conftest.err
12190   rm -f conftest.er1
12191   cat conftest.err >&5
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); } && {
12194          test -z "$ac_c_werror_flag" ||
12195          test ! -s conftest.err
12196        } && test -s conftest$ac_exeext &&
12197        $as_test_x conftest$ac_exeext; then
12198   ac_cv_lib_dl_dlopen=yes
12199 else
12200   echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12202
12203         ac_cv_lib_dl_dlopen=no
12204 fi
12205
12206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12207       conftest$ac_exeext conftest.$ac_ext
12208 LIBS=$ac_check_lib_save_LIBS
12209 fi
12210 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12211 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12212 if test $ac_cv_lib_dl_dlopen = yes; then
12213   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12214 else
12215
12216     lt_cv_dlopen="dyld"
12217     lt_cv_dlopen_libs=
12218     lt_cv_dlopen_self=yes
12219
12220 fi
12221
12222     ;;
12223
12224   *)
12225     { echo "$as_me:$LINENO: checking for shl_load" >&5
12226 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12227 if test "${ac_cv_func_shl_load+set}" = set; then
12228   echo $ECHO_N "(cached) $ECHO_C" >&6
12229 else
12230   cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h.  */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h.  */
12236 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12238 #define shl_load innocuous_shl_load
12239
12240 /* System header to define __stub macros and hopefully few prototypes,
12241     which can conflict with char shl_load (); below.
12242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12243     <limits.h> exists even on freestanding compilers.  */
12244
12245 #ifdef __STDC__
12246 # include <limits.h>
12247 #else
12248 # include <assert.h>
12249 #endif
12250
12251 #undef shl_load
12252
12253 /* Override any GCC internal prototype to avoid an error.
12254    Use char because int might match the return type of a GCC
12255    builtin and then its argument prototype would still apply.  */
12256 #ifdef __cplusplus
12257 extern "C"
12258 #endif
12259 char shl_load ();
12260 /* The GNU C library defines this for functions which it implements
12261     to always fail with ENOSYS.  Some functions are actually named
12262     something starting with __ and the normal name is an alias.  */
12263 #if defined __stub_shl_load || defined __stub___shl_load
12264 choke me
12265 #endif
12266
12267 int
12268 main ()
12269 {
12270 return shl_load ();
12271   ;
12272   return 0;
12273 }
12274 _ACEOF
12275 rm -f conftest.$ac_objext conftest$ac_exeext
12276 if { (ac_try="$ac_link"
12277 case "(($ac_try" in
12278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279   *) ac_try_echo=$ac_try;;
12280 esac
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282   (eval "$ac_link") 2>conftest.er1
12283   ac_status=$?
12284   grep -v '^ *+' conftest.er1 >conftest.err
12285   rm -f conftest.er1
12286   cat conftest.err >&5
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); } && {
12289          test -z "$ac_c_werror_flag" ||
12290          test ! -s conftest.err
12291        } && test -s conftest$ac_exeext &&
12292        $as_test_x conftest$ac_exeext; then
12293   ac_cv_func_shl_load=yes
12294 else
12295   echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12297
12298         ac_cv_func_shl_load=no
12299 fi
12300
12301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12302       conftest$ac_exeext conftest.$ac_ext
12303 fi
12304 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12305 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12306 if test $ac_cv_func_shl_load = yes; then
12307   lt_cv_dlopen="shl_load"
12308 else
12309   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12310 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12311 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12312   echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314   ac_check_lib_save_LIBS=$LIBS
12315 LIBS="-ldld  $LIBS"
12316 cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h.  */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h.  */
12322
12323 /* Override any GCC internal prototype to avoid an error.
12324    Use char because int might match the return type of a GCC
12325    builtin and then its argument prototype would still apply.  */
12326 #ifdef __cplusplus
12327 extern "C"
12328 #endif
12329 char shl_load ();
12330 int
12331 main ()
12332 {
12333 return shl_load ();
12334   ;
12335   return 0;
12336 }
12337 _ACEOF
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (ac_try="$ac_link"
12340 case "(($ac_try" in
12341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342   *) ac_try_echo=$ac_try;;
12343 esac
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345   (eval "$ac_link") 2>conftest.er1
12346   ac_status=$?
12347   grep -v '^ *+' conftest.er1 >conftest.err
12348   rm -f conftest.er1
12349   cat conftest.err >&5
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); } && {
12352          test -z "$ac_c_werror_flag" ||
12353          test ! -s conftest.err
12354        } && test -s conftest$ac_exeext &&
12355        $as_test_x conftest$ac_exeext; then
12356   ac_cv_lib_dld_shl_load=yes
12357 else
12358   echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12360
12361         ac_cv_lib_dld_shl_load=no
12362 fi
12363
12364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12365       conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12367 fi
12368 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12369 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12370 if test $ac_cv_lib_dld_shl_load = yes; then
12371   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12372 else
12373   { echo "$as_me:$LINENO: checking for dlopen" >&5
12374 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12375 if test "${ac_cv_func_dlopen+set}" = set; then
12376   echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378   cat >conftest.$ac_ext <<_ACEOF
12379 /* confdefs.h.  */
12380 _ACEOF
12381 cat confdefs.h >>conftest.$ac_ext
12382 cat >>conftest.$ac_ext <<_ACEOF
12383 /* end confdefs.h.  */
12384 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12386 #define dlopen innocuous_dlopen
12387
12388 /* System header to define __stub macros and hopefully few prototypes,
12389     which can conflict with char dlopen (); below.
12390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12391     <limits.h> exists even on freestanding compilers.  */
12392
12393 #ifdef __STDC__
12394 # include <limits.h>
12395 #else
12396 # include <assert.h>
12397 #endif
12398
12399 #undef dlopen
12400
12401 /* Override any GCC internal prototype to avoid an error.
12402    Use char because int might match the return type of a GCC
12403    builtin and then its argument prototype would still apply.  */
12404 #ifdef __cplusplus
12405 extern "C"
12406 #endif
12407 char dlopen ();
12408 /* The GNU C library defines this for functions which it implements
12409     to always fail with ENOSYS.  Some functions are actually named
12410     something starting with __ and the normal name is an alias.  */
12411 #if defined __stub_dlopen || defined __stub___dlopen
12412 choke me
12413 #endif
12414
12415 int
12416 main ()
12417 {
12418 return dlopen ();
12419   ;
12420   return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427   *) ac_try_echo=$ac_try;;
12428 esac
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430   (eval "$ac_link") 2>conftest.er1
12431   ac_status=$?
12432   grep -v '^ *+' conftest.er1 >conftest.err
12433   rm -f conftest.er1
12434   cat conftest.err >&5
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); } && {
12437          test -z "$ac_c_werror_flag" ||
12438          test ! -s conftest.err
12439        } && test -s conftest$ac_exeext &&
12440        $as_test_x conftest$ac_exeext; then
12441   ac_cv_func_dlopen=yes
12442 else
12443   echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446         ac_cv_func_dlopen=no
12447 fi
12448
12449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12450       conftest$ac_exeext conftest.$ac_ext
12451 fi
12452 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12453 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12454 if test $ac_cv_func_dlopen = yes; then
12455   lt_cv_dlopen="dlopen"
12456 else
12457   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12458 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12459 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12460   echo $ECHO_N "(cached) $ECHO_C" >&6
12461 else
12462   ac_check_lib_save_LIBS=$LIBS
12463 LIBS="-ldl  $LIBS"
12464 cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h.  */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h.  */
12470
12471 /* Override any GCC internal prototype to avoid an error.
12472    Use char because int might match the return type of a GCC
12473    builtin and then its argument prototype would still apply.  */
12474 #ifdef __cplusplus
12475 extern "C"
12476 #endif
12477 char dlopen ();
12478 int
12479 main ()
12480 {
12481 return dlopen ();
12482   ;
12483   return 0;
12484 }
12485 _ACEOF
12486 rm -f conftest.$ac_objext conftest$ac_exeext
12487 if { (ac_try="$ac_link"
12488 case "(($ac_try" in
12489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490   *) ac_try_echo=$ac_try;;
12491 esac
12492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493   (eval "$ac_link") 2>conftest.er1
12494   ac_status=$?
12495   grep -v '^ *+' conftest.er1 >conftest.err
12496   rm -f conftest.er1
12497   cat conftest.err >&5
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); } && {
12500          test -z "$ac_c_werror_flag" ||
12501          test ! -s conftest.err
12502        } && test -s conftest$ac_exeext &&
12503        $as_test_x conftest$ac_exeext; then
12504   ac_cv_lib_dl_dlopen=yes
12505 else
12506   echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509         ac_cv_lib_dl_dlopen=no
12510 fi
12511
12512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12513       conftest$ac_exeext conftest.$ac_ext
12514 LIBS=$ac_check_lib_save_LIBS
12515 fi
12516 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12517 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12518 if test $ac_cv_lib_dl_dlopen = yes; then
12519   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12520 else
12521   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12522 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12523 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12524   echo $ECHO_N "(cached) $ECHO_C" >&6
12525 else
12526   ac_check_lib_save_LIBS=$LIBS
12527 LIBS="-lsvld  $LIBS"
12528 cat >conftest.$ac_ext <<_ACEOF
12529 /* confdefs.h.  */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h.  */
12534
12535 /* Override any GCC internal prototype to avoid an error.
12536    Use char because int might match the return type of a GCC
12537    builtin and then its argument prototype would still apply.  */
12538 #ifdef __cplusplus
12539 extern "C"
12540 #endif
12541 char dlopen ();
12542 int
12543 main ()
12544 {
12545 return dlopen ();
12546   ;
12547   return 0;
12548 }
12549 _ACEOF
12550 rm -f conftest.$ac_objext conftest$ac_exeext
12551 if { (ac_try="$ac_link"
12552 case "(($ac_try" in
12553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554   *) ac_try_echo=$ac_try;;
12555 esac
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557   (eval "$ac_link") 2>conftest.er1
12558   ac_status=$?
12559   grep -v '^ *+' conftest.er1 >conftest.err
12560   rm -f conftest.er1
12561   cat conftest.err >&5
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); } && {
12564          test -z "$ac_c_werror_flag" ||
12565          test ! -s conftest.err
12566        } && test -s conftest$ac_exeext &&
12567        $as_test_x conftest$ac_exeext; then
12568   ac_cv_lib_svld_dlopen=yes
12569 else
12570   echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12572
12573         ac_cv_lib_svld_dlopen=no
12574 fi
12575
12576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12577       conftest$ac_exeext conftest.$ac_ext
12578 LIBS=$ac_check_lib_save_LIBS
12579 fi
12580 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12581 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12582 if test $ac_cv_lib_svld_dlopen = yes; then
12583   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12584 else
12585   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12586 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12587 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12588   echo $ECHO_N "(cached) $ECHO_C" >&6
12589 else
12590   ac_check_lib_save_LIBS=$LIBS
12591 LIBS="-ldld  $LIBS"
12592 cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h.  */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h.  */
12598
12599 /* Override any GCC internal prototype to avoid an error.
12600    Use char because int might match the return type of a GCC
12601    builtin and then its argument prototype would still apply.  */
12602 #ifdef __cplusplus
12603 extern "C"
12604 #endif
12605 char dld_link ();
12606 int
12607 main ()
12608 {
12609 return dld_link ();
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 rm -f conftest.$ac_objext conftest$ac_exeext
12615 if { (ac_try="$ac_link"
12616 case "(($ac_try" in
12617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618   *) ac_try_echo=$ac_try;;
12619 esac
12620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621   (eval "$ac_link") 2>conftest.er1
12622   ac_status=$?
12623   grep -v '^ *+' conftest.er1 >conftest.err
12624   rm -f conftest.er1
12625   cat conftest.err >&5
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); } && {
12628          test -z "$ac_c_werror_flag" ||
12629          test ! -s conftest.err
12630        } && test -s conftest$ac_exeext &&
12631        $as_test_x conftest$ac_exeext; then
12632   ac_cv_lib_dld_dld_link=yes
12633 else
12634   echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.$ac_ext >&5
12636
12637         ac_cv_lib_dld_dld_link=no
12638 fi
12639
12640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12641       conftest$ac_exeext conftest.$ac_ext
12642 LIBS=$ac_check_lib_save_LIBS
12643 fi
12644 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12645 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12646 if test $ac_cv_lib_dld_dld_link = yes; then
12647   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12648 fi
12649
12650
12651 fi
12652
12653
12654 fi
12655
12656
12657 fi
12658
12659
12660 fi
12661
12662
12663 fi
12664
12665     ;;
12666   esac
12667
12668   if test "x$lt_cv_dlopen" != xno; then
12669     enable_dlopen=yes
12670   else
12671     enable_dlopen=no
12672   fi
12673
12674   case $lt_cv_dlopen in
12675   dlopen)
12676     save_CPPFLAGS="$CPPFLAGS"
12677     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12678
12679     save_LDFLAGS="$LDFLAGS"
12680     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12681
12682     save_LIBS="$LIBS"
12683     LIBS="$lt_cv_dlopen_libs $LIBS"
12684
12685     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12686 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12687 if test "${lt_cv_dlopen_self+set}" = set; then
12688   echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690           if test "$cross_compiling" = yes; then :
12691   lt_cv_dlopen_self=cross
12692 else
12693   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12694   lt_status=$lt_dlunknown
12695   cat > conftest.$ac_ext <<_LT_EOF
12696 #line 12696 "configure"
12697 #include "confdefs.h"
12698
12699 #if HAVE_DLFCN_H
12700 #include <dlfcn.h>
12701 #endif
12702
12703 #include <stdio.h>
12704
12705 #ifdef RTLD_GLOBAL
12706 #  define LT_DLGLOBAL           RTLD_GLOBAL
12707 #else
12708 #  ifdef DL_GLOBAL
12709 #    define LT_DLGLOBAL         DL_GLOBAL
12710 #  else
12711 #    define LT_DLGLOBAL         0
12712 #  endif
12713 #endif
12714
12715 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12716    find out it does not work in some platform. */
12717 #ifndef LT_DLLAZY_OR_NOW
12718 #  ifdef RTLD_LAZY
12719 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12720 #  else
12721 #    ifdef DL_LAZY
12722 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12723 #    else
12724 #      ifdef RTLD_NOW
12725 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12726 #      else
12727 #        ifdef DL_NOW
12728 #          define LT_DLLAZY_OR_NOW      DL_NOW
12729 #        else
12730 #          define LT_DLLAZY_OR_NOW      0
12731 #        endif
12732 #      endif
12733 #    endif
12734 #  endif
12735 #endif
12736
12737 void fnord() { int i=42;}
12738 int main ()
12739 {
12740   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12741   int status = $lt_dlunknown;
12742
12743   if (self)
12744     {
12745       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12746       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12747       /* dlclose (self); */
12748     }
12749   else
12750     puts (dlerror ());
12751
12752   return status;
12753 }
12754 _LT_EOF
12755   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756   (eval $ac_link) 2>&5
12757   ac_status=$?
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12760     (./conftest; exit; ) >&5 2>/dev/null
12761     lt_status=$?
12762     case x$lt_status in
12763       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12764       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12765       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12766     esac
12767   else :
12768     # compilation failed
12769     lt_cv_dlopen_self=no
12770   fi
12771 fi
12772 rm -fr conftest*
12773
12774
12775 fi
12776 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12777 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12778
12779     if test "x$lt_cv_dlopen_self" = xyes; then
12780       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12781       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12782 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12783 if test "${lt_cv_dlopen_self_static+set}" = set; then
12784   echo $ECHO_N "(cached) $ECHO_C" >&6
12785 else
12786           if test "$cross_compiling" = yes; then :
12787   lt_cv_dlopen_self_static=cross
12788 else
12789   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12790   lt_status=$lt_dlunknown
12791   cat > conftest.$ac_ext <<_LT_EOF
12792 #line 12792 "configure"
12793 #include "confdefs.h"
12794
12795 #if HAVE_DLFCN_H
12796 #include <dlfcn.h>
12797 #endif
12798
12799 #include <stdio.h>
12800
12801 #ifdef RTLD_GLOBAL
12802 #  define LT_DLGLOBAL           RTLD_GLOBAL
12803 #else
12804 #  ifdef DL_GLOBAL
12805 #    define LT_DLGLOBAL         DL_GLOBAL
12806 #  else
12807 #    define LT_DLGLOBAL         0
12808 #  endif
12809 #endif
12810
12811 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12812    find out it does not work in some platform. */
12813 #ifndef LT_DLLAZY_OR_NOW
12814 #  ifdef RTLD_LAZY
12815 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12816 #  else
12817 #    ifdef DL_LAZY
12818 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12819 #    else
12820 #      ifdef RTLD_NOW
12821 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12822 #      else
12823 #        ifdef DL_NOW
12824 #          define LT_DLLAZY_OR_NOW      DL_NOW
12825 #        else
12826 #          define LT_DLLAZY_OR_NOW      0
12827 #        endif
12828 #      endif
12829 #    endif
12830 #  endif
12831 #endif
12832
12833 void fnord() { int i=42;}
12834 int main ()
12835 {
12836   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12837   int status = $lt_dlunknown;
12838
12839   if (self)
12840     {
12841       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12842       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12843       /* dlclose (self); */
12844     }
12845   else
12846     puts (dlerror ());
12847
12848   return status;
12849 }
12850 _LT_EOF
12851   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12852   (eval $ac_link) 2>&5
12853   ac_status=$?
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12856     (./conftest; exit; ) >&5 2>/dev/null
12857     lt_status=$?
12858     case x$lt_status in
12859       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12860       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12861       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12862     esac
12863   else :
12864     # compilation failed
12865     lt_cv_dlopen_self_static=no
12866   fi
12867 fi
12868 rm -fr conftest*
12869
12870
12871 fi
12872 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12873 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12874     fi
12875
12876     CPPFLAGS="$save_CPPFLAGS"
12877     LDFLAGS="$save_LDFLAGS"
12878     LIBS="$save_LIBS"
12879     ;;
12880   esac
12881
12882   case $lt_cv_dlopen_self in
12883   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12884   *) enable_dlopen_self=unknown ;;
12885   esac
12886
12887   case $lt_cv_dlopen_self_static in
12888   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12889   *) enable_dlopen_self_static=unknown ;;
12890   esac
12891 fi
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909 striplib=
12910 old_striplib=
12911 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12912 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12913 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12914   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12915   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12916   { echo "$as_me:$LINENO: result: yes" >&5
12917 echo "${ECHO_T}yes" >&6; }
12918 else
12919 # FIXME - insert some real tests, host_os isn't really good enough
12920   case $host_os in
12921   darwin*)
12922     if test -n "$STRIP" ; then
12923       striplib="$STRIP -x"
12924       old_striplib="$STRIP -S"
12925       { echo "$as_me:$LINENO: result: yes" >&5
12926 echo "${ECHO_T}yes" >&6; }
12927     else
12928       { echo "$as_me:$LINENO: result: no" >&5
12929 echo "${ECHO_T}no" >&6; }
12930     fi
12931     ;;
12932   *)
12933     { echo "$as_me:$LINENO: result: no" >&5
12934 echo "${ECHO_T}no" >&6; }
12935     ;;
12936   esac
12937 fi
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950   # Report which library types will actually be built
12951   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12952 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12953   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12954 echo "${ECHO_T}$can_build_shared" >&6; }
12955
12956   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12957 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12958   test "$can_build_shared" = "no" && enable_shared=no
12959
12960   # On AIX, shared libraries and static libraries use the same namespace, and
12961   # are all built from PIC.
12962   case $host_os in
12963   aix3*)
12964     test "$enable_shared" = yes && enable_static=no
12965     if test -n "$RANLIB"; then
12966       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12967       postinstall_cmds='$RANLIB $lib'
12968     fi
12969     ;;
12970
12971   aix[4-9]*)
12972     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12973       test "$enable_shared" = yes && enable_static=no
12974     fi
12975     ;;
12976   esac
12977   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12978 echo "${ECHO_T}$enable_shared" >&6; }
12979
12980   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12981 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12982   # Make sure either enable_shared or enable_static is yes.
12983   test "$enable_shared" = yes || enable_static=yes
12984   { echo "$as_me:$LINENO: result: $enable_static" >&5
12985 echo "${ECHO_T}$enable_static" >&6; }
12986
12987
12988
12989
12990 fi
12991 ac_ext=c
12992 ac_cpp='$CPP $CPPFLAGS'
12993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12996
12997 CC="$lt_save_CC"
12998
12999
13000 ac_ext=cpp
13001 ac_cpp='$CXXCPP $CPPFLAGS'
13002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13005
13006 archive_cmds_need_lc_CXX=no
13007 allow_undefined_flag_CXX=
13008 always_export_symbols_CXX=no
13009 archive_expsym_cmds_CXX=
13010 compiler_needs_object_CXX=no
13011 export_dynamic_flag_spec_CXX=
13012 hardcode_direct_CXX=no
13013 hardcode_direct_absolute_CXX=no
13014 hardcode_libdir_flag_spec_CXX=
13015 hardcode_libdir_flag_spec_ld_CXX=
13016 hardcode_libdir_separator_CXX=
13017 hardcode_minus_L_CXX=no
13018 hardcode_shlibpath_var_CXX=unsupported
13019 hardcode_automatic_CXX=no
13020 inherit_rpath_CXX=no
13021 module_cmds_CXX=
13022 module_expsym_cmds_CXX=
13023 link_all_deplibs_CXX=unknown
13024 old_archive_cmds_CXX=$old_archive_cmds
13025 no_undefined_flag_CXX=
13026 whole_archive_flag_spec_CXX=
13027 enable_shared_with_static_runtimes_CXX=no
13028
13029 # Source file extension for C++ test sources.
13030 ac_ext=cpp
13031
13032 # Object file extension for compiled C++ test sources.
13033 objext=o
13034 objext_CXX=$objext
13035
13036 # No sense in running all these tests if we already determined that
13037 # the CXX compiler isn't working.  Some variables (like enable_shared)
13038 # are currently assumed to apply to all compilers on this platform,
13039 # and will be corrupted by setting them based on a non-working compiler.
13040 if test "$_lt_caught_CXX_error" != yes; then
13041   # Code to be used in simple compile tests
13042   lt_simple_compile_test_code="int some_variable = 0;"
13043
13044   # Code to be used in simple link tests
13045   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13046
13047   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13048
13049
13050
13051
13052
13053
13054 # If no C compiler was specified, use CC.
13055 LTCC=${LTCC-"$CC"}
13056
13057 # If no C compiler flags were specified, use CFLAGS.
13058 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13059
13060 # Allow CC to be a program name with arguments.
13061 compiler=$CC
13062
13063
13064   # save warnings/boilerplate of simple test code
13065   ac_outfile=conftest.$ac_objext
13066 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13067 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13068 _lt_compiler_boilerplate=`cat conftest.err`
13069 $RM conftest*
13070
13071   ac_outfile=conftest.$ac_objext
13072 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13073 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13074 _lt_linker_boilerplate=`cat conftest.err`
13075 $RM -r conftest*
13076
13077
13078   # Allow CC to be a program name with arguments.
13079   lt_save_CC=$CC
13080   lt_save_LD=$LD
13081   lt_save_GCC=$GCC
13082   GCC=$GXX
13083   lt_save_with_gnu_ld=$with_gnu_ld
13084   lt_save_path_LD=$lt_cv_path_LD
13085   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13086     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13087   else
13088     $as_unset lt_cv_prog_gnu_ld
13089   fi
13090   if test -n "${lt_cv_path_LDCXX+set}"; then
13091     lt_cv_path_LD=$lt_cv_path_LDCXX
13092   else
13093     $as_unset lt_cv_path_LD
13094   fi
13095   test -z "${LDCXX+set}" || LD=$LDCXX
13096   CC=${CXX-"c++"}
13097   compiler=$CC
13098   compiler_CXX=$CC
13099   for cc_temp in $compiler""; do
13100   case $cc_temp in
13101     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13102     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13103     \-*) ;;
13104     *) break;;
13105   esac
13106 done
13107 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13108
13109
13110   if test -n "$compiler"; then
13111     # We don't want -fno-exception when compiling C++ code, so set the
13112     # no_builtin_flag separately
13113     if test "$GXX" = yes; then
13114       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13115     else
13116       lt_prog_compiler_no_builtin_flag_CXX=
13117     fi
13118
13119     if test "$GXX" = yes; then
13120       # Set up default GNU C++ configuration
13121
13122
13123
13124 # Check whether --with-gnu-ld was given.
13125 if test "${with_gnu_ld+set}" = set; then
13126   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13127 else
13128   with_gnu_ld=no
13129 fi
13130
13131 ac_prog=ld
13132 if test "$GCC" = yes; then
13133   # Check if gcc -print-prog-name=ld gives a path.
13134   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13135 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13136   case $host in
13137   *-*-mingw*)
13138     # gcc leaves a trailing carriage return which upsets mingw
13139     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13140   *)
13141     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13142   esac
13143   case $ac_prog in
13144     # Accept absolute paths.
13145     [\\/]* | ?:[\\/]*)
13146       re_direlt='/[^/][^/]*/\.\./'
13147       # Canonicalize the pathname of ld
13148       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13149       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13150         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13151       done
13152       test -z "$LD" && LD="$ac_prog"
13153       ;;
13154   "")
13155     # If it fails, then pretend we aren't using GCC.
13156     ac_prog=ld
13157     ;;
13158   *)
13159     # If it is relative, then search for the first ld in PATH.
13160     with_gnu_ld=unknown
13161     ;;
13162   esac
13163 elif test "$with_gnu_ld" = yes; then
13164   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13165 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13166 else
13167   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13168 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13169 fi
13170 if test "${lt_cv_path_LD+set}" = set; then
13171   echo $ECHO_N "(cached) $ECHO_C" >&6
13172 else
13173   if test -z "$LD"; then
13174   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13175   for ac_dir in $PATH; do
13176     IFS="$lt_save_ifs"
13177     test -z "$ac_dir" && ac_dir=.
13178     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13179       lt_cv_path_LD="$ac_dir/$ac_prog"
13180       # Check to see if the program is GNU ld.  I'd rather use --version,
13181       # but apparently some variants of GNU ld only accept -v.
13182       # Break only if it was the GNU/non-GNU ld that we prefer.
13183       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13184       *GNU* | *'with BFD'*)
13185         test "$with_gnu_ld" != no && break
13186         ;;
13187       *)
13188         test "$with_gnu_ld" != yes && break
13189         ;;
13190       esac
13191     fi
13192   done
13193   IFS="$lt_save_ifs"
13194 else
13195   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13196 fi
13197 fi
13198
13199 LD="$lt_cv_path_LD"
13200 if test -n "$LD"; then
13201   { echo "$as_me:$LINENO: result: $LD" >&5
13202 echo "${ECHO_T}$LD" >&6; }
13203 else
13204   { echo "$as_me:$LINENO: result: no" >&5
13205 echo "${ECHO_T}no" >&6; }
13206 fi
13207 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13208 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13209    { (exit 1); exit 1; }; }
13210 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13211 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13212 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13213   echo $ECHO_N "(cached) $ECHO_C" >&6
13214 else
13215   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13216 case `$LD -v 2>&1 </dev/null` in
13217 *GNU* | *'with BFD'*)
13218   lt_cv_prog_gnu_ld=yes
13219   ;;
13220 *)
13221   lt_cv_prog_gnu_ld=no
13222   ;;
13223 esac
13224 fi
13225 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13226 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13227 with_gnu_ld=$lt_cv_prog_gnu_ld
13228
13229
13230
13231
13232
13233
13234
13235       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13236       # archiving commands below assume that GNU ld is being used.
13237       if test "$with_gnu_ld" = yes; then
13238         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13239         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'
13240
13241         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13242         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13243
13244         # If archive_cmds runs LD, not CC, wlarc should be empty
13245         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13246         #     investigate it a little bit more. (MM)
13247         wlarc='${wl}'
13248
13249         # ancient GNU ld didn't support --whole-archive et. al.
13250         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13251           $GREP 'no-whole-archive' > /dev/null; then
13252           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13253         else
13254           whole_archive_flag_spec_CXX=
13255         fi
13256       else
13257         with_gnu_ld=no
13258         wlarc=
13259
13260         # A generic and very simple default shared library creation
13261         # command for GNU C++ for the case where it uses the native
13262         # linker, instead of GNU ld.  If possible, this setting should
13263         # overridden to take advantage of the native linker features on
13264         # the platform it is being used on.
13265         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13266       fi
13267
13268       # Commands to make compiler produce verbose output that lists
13269       # what "hidden" libraries, object files and flags are used when
13270       # linking a shared library.
13271       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13272
13273     else
13274       GXX=no
13275       with_gnu_ld=no
13276       wlarc=
13277     fi
13278
13279     # PORTME: fill in a description of your system's C++ link characteristics
13280     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13281 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13282     ld_shlibs_CXX=yes
13283     case $host_os in
13284       aix3*)
13285         # FIXME: insert proper C++ library support
13286         ld_shlibs_CXX=no
13287         ;;
13288       aix[4-9]*)
13289         if test "$host_cpu" = ia64; then
13290           # On IA64, the linker does run time linking by default, so we don't
13291           # have to do anything special.
13292           aix_use_runtimelinking=no
13293           exp_sym_flag='-Bexport'
13294           no_entry_flag=""
13295         else
13296           aix_use_runtimelinking=no
13297
13298           # Test if we are trying to use run time linking or normal
13299           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13300           # need to do runtime linking.
13301           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13302             for ld_flag in $LDFLAGS; do
13303               case $ld_flag in
13304               *-brtl*)
13305                 aix_use_runtimelinking=yes
13306                 break
13307                 ;;
13308               esac
13309             done
13310             ;;
13311           esac
13312
13313           exp_sym_flag='-bexport'
13314           no_entry_flag='-bnoentry'
13315         fi
13316
13317         # When large executables or shared objects are built, AIX ld can
13318         # have problems creating the table of contents.  If linking a library
13319         # or program results in "error TOC overflow" add -mminimal-toc to
13320         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13321         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13322
13323         archive_cmds_CXX=''
13324         hardcode_direct_CXX=yes
13325         hardcode_direct_absolute_CXX=yes
13326         hardcode_libdir_separator_CXX=':'
13327         link_all_deplibs_CXX=yes
13328         file_list_spec_CXX='${wl}-f,'
13329
13330         if test "$GXX" = yes; then
13331           case $host_os in aix4.[012]|aix4.[012].*)
13332           # We only want to do this on AIX 4.2 and lower, the check
13333           # below for broken collect2 doesn't work under 4.3+
13334           collect2name=`${CC} -print-prog-name=collect2`
13335           if test -f "$collect2name" &&
13336              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13337           then
13338             # We have reworked collect2
13339             :
13340           else
13341             # We have old collect2
13342             hardcode_direct_CXX=unsupported
13343             # It fails to find uninstalled libraries when the uninstalled
13344             # path is not listed in the libpath.  Setting hardcode_minus_L
13345             # to unsupported forces relinking
13346             hardcode_minus_L_CXX=yes
13347             hardcode_libdir_flag_spec_CXX='-L$libdir'
13348             hardcode_libdir_separator_CXX=
13349           fi
13350           esac
13351           shared_flag='-shared'
13352           if test "$aix_use_runtimelinking" = yes; then
13353             shared_flag="$shared_flag "'${wl}-G'
13354           fi
13355         else
13356           # not using gcc
13357           if test "$host_cpu" = ia64; then
13358           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13359           # chokes on -Wl,-G. The following line is correct:
13360           shared_flag='-G'
13361           else
13362             if test "$aix_use_runtimelinking" = yes; then
13363               shared_flag='${wl}-G'
13364             else
13365               shared_flag='${wl}-bM:SRE'
13366             fi
13367           fi
13368         fi
13369
13370         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13371         # It seems that -bexpall does not export symbols beginning with
13372         # underscore (_), so it is better to generate a list of symbols to
13373         # export.
13374         always_export_symbols_CXX=yes
13375         if test "$aix_use_runtimelinking" = yes; then
13376           # Warning - without using the other runtime loading flags (-brtl),
13377           # -berok will link without error, but may produce a broken library.
13378           allow_undefined_flag_CXX='-berok'
13379           # Determine the default libpath from the value encoded in an empty
13380           # executable.
13381           cat >conftest.$ac_ext <<_ACEOF
13382 /* confdefs.h.  */
13383 _ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h.  */
13387
13388 int
13389 main ()
13390 {
13391
13392   ;
13393   return 0;
13394 }
13395 _ACEOF
13396 rm -f conftest.$ac_objext conftest$ac_exeext
13397 if { (ac_try="$ac_link"
13398 case "(($ac_try" in
13399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400   *) ac_try_echo=$ac_try;;
13401 esac
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403   (eval "$ac_link") 2>conftest.er1
13404   ac_status=$?
13405   grep -v '^ *+' conftest.er1 >conftest.err
13406   rm -f conftest.er1
13407   cat conftest.err >&5
13408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409   (exit $ac_status); } && {
13410          test -z "$ac_cxx_werror_flag" ||
13411          test ! -s conftest.err
13412        } && test -s conftest$ac_exeext &&
13413        $as_test_x conftest$ac_exeext; then
13414
13415 lt_aix_libpath_sed='
13416     /Import File Strings/,/^$/ {
13417         /^0/ {
13418             s/^0  *\(.*\)$/\1/
13419             p
13420         }
13421     }'
13422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13423 # Check for a 64-bit object if we didn't find anything.
13424 if test -z "$aix_libpath"; then
13425   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13426 fi
13427 else
13428   echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13430
13431
13432 fi
13433
13434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13435       conftest$ac_exeext conftest.$ac_ext
13436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13437
13438           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13439
13440           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"
13441         else
13442           if test "$host_cpu" = ia64; then
13443             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13444             allow_undefined_flag_CXX="-z nodefs"
13445             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"
13446           else
13447             # Determine the default libpath from the value encoded in an
13448             # empty executable.
13449             cat >conftest.$ac_ext <<_ACEOF
13450 /* confdefs.h.  */
13451 _ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h.  */
13455
13456 int
13457 main ()
13458 {
13459
13460   ;
13461   return 0;
13462 }
13463 _ACEOF
13464 rm -f conftest.$ac_objext conftest$ac_exeext
13465 if { (ac_try="$ac_link"
13466 case "(($ac_try" in
13467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468   *) ac_try_echo=$ac_try;;
13469 esac
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471   (eval "$ac_link") 2>conftest.er1
13472   ac_status=$?
13473   grep -v '^ *+' conftest.er1 >conftest.err
13474   rm -f conftest.er1
13475   cat conftest.err >&5
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); } && {
13478          test -z "$ac_cxx_werror_flag" ||
13479          test ! -s conftest.err
13480        } && test -s conftest$ac_exeext &&
13481        $as_test_x conftest$ac_exeext; then
13482
13483 lt_aix_libpath_sed='
13484     /Import File Strings/,/^$/ {
13485         /^0/ {
13486             s/^0  *\(.*\)$/\1/
13487             p
13488         }
13489     }'
13490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13491 # Check for a 64-bit object if we didn't find anything.
13492 if test -z "$aix_libpath"; then
13493   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13494 fi
13495 else
13496   echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13498
13499
13500 fi
13501
13502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13503       conftest$ac_exeext conftest.$ac_ext
13504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13505
13506             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13507             # Warning - without using the other run time loading flags,
13508             # -berok will link without error, but may produce a broken library.
13509             no_undefined_flag_CXX=' ${wl}-bernotok'
13510             allow_undefined_flag_CXX=' ${wl}-berok'
13511             # Exported symbols can be pulled into shared objects from archives
13512             whole_archive_flag_spec_CXX='$convenience'
13513             archive_cmds_need_lc_CXX=yes
13514             # This is similar to how AIX traditionally builds its shared
13515             # libraries.
13516             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'
13517           fi
13518         fi
13519         ;;
13520
13521       beos*)
13522         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13523           allow_undefined_flag_CXX=unsupported
13524           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13525           # support --undefined.  This deserves some investigation.  FIXME
13526           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13527         else
13528           ld_shlibs_CXX=no
13529         fi
13530         ;;
13531
13532       chorus*)
13533         case $cc_basename in
13534           *)
13535           # FIXME: insert proper C++ library support
13536           ld_shlibs_CXX=no
13537           ;;
13538         esac
13539         ;;
13540
13541       cygwin* | mingw* | pw32* | cegcc*)
13542         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13543         # as there is no search path for DLLs.
13544         hardcode_libdir_flag_spec_CXX='-L$libdir'
13545         allow_undefined_flag_CXX=unsupported
13546         always_export_symbols_CXX=no
13547         enable_shared_with_static_runtimes_CXX=yes
13548
13549         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13550           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'
13551           # If the export-symbols file already is a .def file (1st line
13552           # is EXPORTS), use it as is; otherwise, prepend...
13553           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13554             cp $export_symbols $output_objdir/$soname.def;
13555           else
13556             echo EXPORTS > $output_objdir/$soname.def;
13557             cat $export_symbols >> $output_objdir/$soname.def;
13558           fi~
13559           $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'
13560         else
13561           ld_shlibs_CXX=no
13562         fi
13563         ;;
13564       darwin* | rhapsody*)
13565
13566
13567   archive_cmds_need_lc_CXX=no
13568   hardcode_direct_CXX=no
13569   hardcode_automatic_CXX=yes
13570   hardcode_shlibpath_var_CXX=unsupported
13571   whole_archive_flag_spec_CXX=''
13572   link_all_deplibs_CXX=yes
13573   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13574   case $cc_basename in
13575      ifort*) _lt_dar_can_shared=yes ;;
13576      *) _lt_dar_can_shared=$GCC ;;
13577   esac
13578   if test "$_lt_dar_can_shared" = "yes"; then
13579     output_verbose_link_cmd=echo
13580     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}"
13581     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13582     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}"
13583     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}"
13584        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13585       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}"
13586       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}"
13587     fi
13588
13589   else
13590   ld_shlibs_CXX=no
13591   fi
13592
13593         ;;
13594
13595       dgux*)
13596         case $cc_basename in
13597           ec++*)
13598             # FIXME: insert proper C++ library support
13599             ld_shlibs_CXX=no
13600             ;;
13601           ghcx*)
13602             # Green Hills C++ Compiler
13603             # FIXME: insert proper C++ library support
13604             ld_shlibs_CXX=no
13605             ;;
13606           *)
13607             # FIXME: insert proper C++ library support
13608             ld_shlibs_CXX=no
13609             ;;
13610         esac
13611         ;;
13612
13613       freebsd[12]*)
13614         # C++ shared libraries reported to be fairly broken before
13615         # switch to ELF
13616         ld_shlibs_CXX=no
13617         ;;
13618
13619       freebsd-elf*)
13620         archive_cmds_need_lc_CXX=no
13621         ;;
13622
13623       freebsd* | dragonfly*)
13624         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13625         # conventions
13626         ld_shlibs_CXX=yes
13627         ;;
13628
13629       gnu*)
13630         ;;
13631
13632       hpux9*)
13633         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13634         hardcode_libdir_separator_CXX=:
13635         export_dynamic_flag_spec_CXX='${wl}-E'
13636         hardcode_direct_CXX=yes
13637         hardcode_minus_L_CXX=yes # Not in the search PATH,
13638                                              # but as the default
13639                                              # location of the library.
13640
13641         case $cc_basename in
13642           CC*)
13643             # FIXME: insert proper C++ library support
13644             ld_shlibs_CXX=no
13645             ;;
13646           aCC*)
13647             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'
13648             # Commands to make compiler produce verbose output that lists
13649             # what "hidden" libraries, object files and flags are used when
13650             # linking a shared library.
13651             #
13652             # There doesn't appear to be a way to prevent this compiler from
13653             # explicitly linking system object files so we need to strip them
13654             # from the output so that they don't get included in the library
13655             # dependencies.
13656             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $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'
13657             ;;
13658           *)
13659             if test "$GXX" = yes; then
13660               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'
13661             else
13662               # FIXME: insert proper C++ library support
13663               ld_shlibs_CXX=no
13664             fi
13665             ;;
13666         esac
13667         ;;
13668
13669       hpux10*|hpux11*)
13670         if test $with_gnu_ld = no; then
13671           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13672           hardcode_libdir_separator_CXX=:
13673
13674           case $host_cpu in
13675             hppa*64*|ia64*)
13676               ;;
13677             *)
13678               export_dynamic_flag_spec_CXX='${wl}-E'
13679               ;;
13680           esac
13681         fi
13682         case $host_cpu in
13683           hppa*64*|ia64*)
13684             hardcode_direct_CXX=no
13685             hardcode_shlibpath_var_CXX=no
13686             ;;
13687           *)
13688             hardcode_direct_CXX=yes
13689             hardcode_direct_absolute_CXX=yes
13690             hardcode_minus_L_CXX=yes # Not in the search PATH,
13691                                                  # but as the default
13692                                                  # location of the library.
13693             ;;
13694         esac
13695
13696         case $cc_basename in
13697           CC*)
13698             # FIXME: insert proper C++ library support
13699             ld_shlibs_CXX=no
13700             ;;
13701           aCC*)
13702             case $host_cpu in
13703               hppa*64*)
13704                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13705                 ;;
13706               ia64*)
13707                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13708                 ;;
13709               *)
13710                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13711                 ;;
13712             esac
13713             # Commands to make compiler produce verbose output that lists
13714             # what "hidden" libraries, object files and flags are used when
13715             # linking a shared library.
13716             #
13717             # There doesn't appear to be a way to prevent this compiler from
13718             # explicitly linking system object files so we need to strip them
13719             # from the output so that they don't get included in the library
13720             # dependencies.
13721             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'
13722             ;;
13723           *)
13724             if test "$GXX" = yes; then
13725               if test $with_gnu_ld = no; then
13726                 case $host_cpu in
13727                   hppa*64*)
13728                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13729                     ;;
13730                   ia64*)
13731                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13732                     ;;
13733                   *)
13734                     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'
13735                     ;;
13736                 esac
13737               fi
13738             else
13739               # FIXME: insert proper C++ library support
13740               ld_shlibs_CXX=no
13741             fi
13742             ;;
13743         esac
13744         ;;
13745
13746       interix[3-9]*)
13747         hardcode_direct_CXX=no
13748         hardcode_shlibpath_var_CXX=no
13749         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13750         export_dynamic_flag_spec_CXX='${wl}-E'
13751         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13752         # Instead, shared libraries are loaded at an image base (0x10000000 by
13753         # default) and relocated if they conflict, which is a slow very memory
13754         # consuming and fragmenting process.  To avoid this, we pick a random,
13755         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13756         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13757         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'
13758         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'
13759         ;;
13760       irix5* | irix6*)
13761         case $cc_basename in
13762           CC*)
13763             # SGI C++
13764             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'
13765
13766             # Archives containing C++ object files must be created using
13767             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13768             # necessary to make sure instantiated templates are included
13769             # in the archive.
13770             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13771             ;;
13772           *)
13773             if test "$GXX" = yes; then
13774               if test "$with_gnu_ld" = no; then
13775                 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'
13776               else
13777                 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'
13778               fi
13779             fi
13780             link_all_deplibs_CXX=yes
13781             ;;
13782         esac
13783         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13784         hardcode_libdir_separator_CXX=:
13785         inherit_rpath_CXX=yes
13786         ;;
13787
13788       linux* | k*bsd*-gnu)
13789         case $cc_basename in
13790           KCC*)
13791             # Kuck and Associates, Inc. (KAI) C++ Compiler
13792
13793             # KCC will only create a shared library if the output file
13794             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13795             # to its proper name (with version) after linking.
13796             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'
13797             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'
13798             # Commands to make compiler produce verbose output that lists
13799             # what "hidden" libraries, object files and flags are used when
13800             # linking a shared library.
13801             #
13802             # There doesn't appear to be a way to prevent this compiler from
13803             # explicitly linking system object files so we need to strip them
13804             # from the output so that they don't get included in the library
13805             # dependencies.
13806             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'
13807
13808             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13809             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13810
13811             # Archives containing C++ object files must be created using
13812             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13813             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13814             ;;
13815           icpc* | ecpc* )
13816             # Intel C++
13817             with_gnu_ld=yes
13818             # version 8.0 and above of icpc choke on multiply defined symbols
13819             # if we add $predep_objects and $postdep_objects, however 7.1 and
13820             # earlier do not add the objects themselves.
13821             case `$CC -V 2>&1` in
13822               *"Version 7."*)
13823                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13824                 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'
13825                 ;;
13826               *)  # Version 8.0 or newer
13827                 tmp_idyn=
13828                 case $host_cpu in
13829                   ia64*) tmp_idyn=' -i_dynamic';;
13830                 esac
13831                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13832                 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'
13833                 ;;
13834             esac
13835             archive_cmds_need_lc_CXX=no
13836             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13837             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13838             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13839             ;;
13840           pgCC* | pgcpp*)
13841             # Portland Group C++ compiler
13842             case `$CC -V` in
13843             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13844               prelink_cmds_CXX='tpldir=Template.dir~
13845                 rm -rf $tpldir~
13846                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13847                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13848               old_archive_cmds_CXX='tpldir=Template.dir~
13849                 rm -rf $tpldir~
13850                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13851                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13852                 $RANLIB $oldlib'
13853               archive_cmds_CXX='tpldir=Template.dir~
13854                 rm -rf $tpldir~
13855                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13856                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13857               archive_expsym_cmds_CXX='tpldir=Template.dir~
13858                 rm -rf $tpldir~
13859                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13860                 $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'
13861               ;;
13862             *) # Version 6 will use weak symbols
13863               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13864               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'
13865               ;;
13866             esac
13867
13868             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13869             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13870             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'
13871             ;;
13872           cxx*)
13873             # Compaq C++
13874             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13875             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'
13876
13877             runpath_var=LD_RUN_PATH
13878             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13879             hardcode_libdir_separator_CXX=:
13880
13881             # Commands to make compiler produce verbose output that lists
13882             # what "hidden" libraries, object files and flags are used when
13883             # linking a shared library.
13884             #
13885             # There doesn't appear to be a way to prevent this compiler from
13886             # explicitly linking system object files so we need to strip them
13887             # from the output so that they don't get included in the library
13888             # dependencies.
13889             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'
13890             ;;
13891           xl*)
13892             # IBM XL 8.0 on PPC, with GNU ld
13893             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13894             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13895             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13896             if test "x$supports_anon_versioning" = xyes; then
13897               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13898                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13899                 echo "local: *; };" >> $output_objdir/$libname.ver~
13900                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13901             fi
13902             ;;
13903           *)
13904             case `$CC -V 2>&1 | sed 5q` in
13905             *Sun\ C*)
13906               # Sun C++ 5.9
13907               no_undefined_flag_CXX=' -zdefs'
13908               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13909               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'
13910               hardcode_libdir_flag_spec_CXX='-R$libdir'
13911               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'
13912               compiler_needs_object_CXX=yes
13913
13914               # Not sure whether something based on
13915               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13916               # would be better.
13917               output_verbose_link_cmd='echo'
13918
13919               # Archives containing C++ object files must be created using
13920               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13921               # necessary to make sure instantiated templates are included
13922               # in the archive.
13923               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13924               ;;
13925             esac
13926             ;;
13927         esac
13928         ;;
13929
13930       lynxos*)
13931         # FIXME: insert proper C++ library support
13932         ld_shlibs_CXX=no
13933         ;;
13934
13935       m88k*)
13936         # FIXME: insert proper C++ library support
13937         ld_shlibs_CXX=no
13938         ;;
13939
13940       mvs*)
13941         case $cc_basename in
13942           cxx*)
13943             # FIXME: insert proper C++ library support
13944             ld_shlibs_CXX=no
13945             ;;
13946           *)
13947             # FIXME: insert proper C++ library support
13948             ld_shlibs_CXX=no
13949             ;;
13950         esac
13951         ;;
13952
13953       netbsd*)
13954         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13955           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13956           wlarc=
13957           hardcode_libdir_flag_spec_CXX='-R$libdir'
13958           hardcode_direct_CXX=yes
13959           hardcode_shlibpath_var_CXX=no
13960         fi
13961         # Workaround some broken pre-1.5 toolchains
13962         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13963         ;;
13964
13965       *nto* | *qnx*)
13966         ld_shlibs_CXX=yes
13967         ;;
13968
13969       openbsd2*)
13970         # C++ shared libraries are fairly broken
13971         ld_shlibs_CXX=no
13972         ;;
13973
13974       openbsd*)
13975         if test -f /usr/libexec/ld.so; then
13976           hardcode_direct_CXX=yes
13977           hardcode_shlibpath_var_CXX=no
13978           hardcode_direct_absolute_CXX=yes
13979           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13980           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13981           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13982             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13983             export_dynamic_flag_spec_CXX='${wl}-E'
13984             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13985           fi
13986           output_verbose_link_cmd=echo
13987         else
13988           ld_shlibs_CXX=no
13989         fi
13990         ;;
13991
13992       osf3* | osf4* | osf5*)
13993         case $cc_basename in
13994           KCC*)
13995             # Kuck and Associates, Inc. (KAI) C++ Compiler
13996
13997             # KCC will only create a shared library if the output file
13998             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13999             # to its proper name (with version) after linking.
14000             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'
14001
14002             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14003             hardcode_libdir_separator_CXX=:
14004
14005             # Archives containing C++ object files must be created using
14006             # the KAI C++ compiler.
14007             case $host in
14008               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14009               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14010             esac
14011             ;;
14012           RCC*)
14013             # Rational C++ 2.4.1
14014             # FIXME: insert proper C++ library support
14015             ld_shlibs_CXX=no
14016             ;;
14017           cxx*)
14018             case $host in
14019               osf3*)
14020                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14021                 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'
14022                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14023                 ;;
14024               *)
14025                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14026                 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'
14027                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14028                   echo "-hidden">> $lib.exp~
14029                   $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~
14030                   $RM $lib.exp'
14031                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14032                 ;;
14033             esac
14034
14035             hardcode_libdir_separator_CXX=:
14036
14037             # Commands to make compiler produce verbose output that lists
14038             # what "hidden" libraries, object files and flags are used when
14039             # linking a shared library.
14040             #
14041             # There doesn't appear to be a way to prevent this compiler from
14042             # explicitly linking system object files so we need to strip them
14043             # from the output so that they don't get included in the library
14044             # dependencies.
14045             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'
14046             ;;
14047           *)
14048             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14049               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14050               case $host in
14051                 osf3*)
14052                   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'
14053                   ;;
14054                 *)
14055                   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'
14056                   ;;
14057               esac
14058
14059               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14060               hardcode_libdir_separator_CXX=:
14061
14062               # Commands to make compiler produce verbose output that lists
14063               # what "hidden" libraries, object files and flags are used when
14064               # linking a shared library.
14065               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14066
14067             else
14068               # FIXME: insert proper C++ library support
14069               ld_shlibs_CXX=no
14070             fi
14071             ;;
14072         esac
14073         ;;
14074
14075       psos*)
14076         # FIXME: insert proper C++ library support
14077         ld_shlibs_CXX=no
14078         ;;
14079
14080       sunos4*)
14081         case $cc_basename in
14082           CC*)
14083             # Sun C++ 4.x
14084             # FIXME: insert proper C++ library support
14085             ld_shlibs_CXX=no
14086             ;;
14087           lcc*)
14088             # Lucid
14089             # FIXME: insert proper C++ library support
14090             ld_shlibs_CXX=no
14091             ;;
14092           *)
14093             # FIXME: insert proper C++ library support
14094             ld_shlibs_CXX=no
14095             ;;
14096         esac
14097         ;;
14098
14099       solaris*)
14100         case $cc_basename in
14101           CC*)
14102             # Sun C++ 4.2, 5.x and Centerline C++
14103             archive_cmds_need_lc_CXX=yes
14104             no_undefined_flag_CXX=' -zdefs'
14105             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14106             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14107               $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'
14108
14109             hardcode_libdir_flag_spec_CXX='-R$libdir'
14110             hardcode_shlibpath_var_CXX=no
14111             case $host_os in
14112               solaris2.[0-5] | solaris2.[0-5].*) ;;
14113               *)
14114                 # The compiler driver will combine and reorder linker options,
14115                 # but understands `-z linker_flag'.
14116                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14117                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14118                 ;;
14119             esac
14120             link_all_deplibs_CXX=yes
14121
14122             output_verbose_link_cmd='echo'
14123
14124             # Archives containing C++ object files must be created using
14125             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14126             # necessary to make sure instantiated templates are included
14127             # in the archive.
14128             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14129             ;;
14130           gcx*)
14131             # Green Hills C++ Compiler
14132             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14133
14134             # The C++ compiler must be used to create the archive.
14135             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14136             ;;
14137           *)
14138             # GNU C++ compiler with Solaris linker
14139             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14140               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14141               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14142                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14143                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14144                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14145
14146                 # Commands to make compiler produce verbose output that lists
14147                 # what "hidden" libraries, object files and flags are used when
14148                 # linking a shared library.
14149                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14150               else
14151                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14152                 # platform.
14153                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14154                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14155                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14156
14157                 # Commands to make compiler produce verbose output that lists
14158                 # what "hidden" libraries, object files and flags are used when
14159                 # linking a shared library.
14160                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14161               fi
14162
14163               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14164               case $host_os in
14165                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14166                 *)
14167                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14168                   ;;
14169               esac
14170             fi
14171             ;;
14172         esac
14173         ;;
14174
14175     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14176       no_undefined_flag_CXX='${wl}-z,text'
14177       archive_cmds_need_lc_CXX=no
14178       hardcode_shlibpath_var_CXX=no
14179       runpath_var='LD_RUN_PATH'
14180
14181       case $cc_basename in
14182         CC*)
14183           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14184           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14185           ;;
14186         *)
14187           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14188           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14189           ;;
14190       esac
14191       ;;
14192
14193       sysv5* | sco3.2v5* | sco5v6*)
14194         # Note: We can NOT use -z defs as we might desire, because we do not
14195         # link with -lc, and that would cause any symbols used from libc to
14196         # always be unresolved, which means just about no library would
14197         # ever link correctly.  If we're not using GNU ld we use -z text
14198         # though, which does catch some bad symbols but isn't as heavy-handed
14199         # as -z defs.
14200         no_undefined_flag_CXX='${wl}-z,text'
14201         allow_undefined_flag_CXX='${wl}-z,nodefs'
14202         archive_cmds_need_lc_CXX=no
14203         hardcode_shlibpath_var_CXX=no
14204         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14205         hardcode_libdir_separator_CXX=':'
14206         link_all_deplibs_CXX=yes
14207         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14208         runpath_var='LD_RUN_PATH'
14209
14210         case $cc_basename in
14211           CC*)
14212             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14213             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14214             ;;
14215           *)
14216             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14217             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14218             ;;
14219         esac
14220       ;;
14221
14222       tandem*)
14223         case $cc_basename in
14224           NCC*)
14225             # NonStop-UX NCC 3.20
14226             # FIXME: insert proper C++ library support
14227             ld_shlibs_CXX=no
14228             ;;
14229           *)
14230             # FIXME: insert proper C++ library support
14231             ld_shlibs_CXX=no
14232             ;;
14233         esac
14234         ;;
14235
14236       vxworks*)
14237         # FIXME: insert proper C++ library support
14238         ld_shlibs_CXX=no
14239         ;;
14240
14241       *)
14242         # FIXME: insert proper C++ library support
14243         ld_shlibs_CXX=no
14244         ;;
14245     esac
14246
14247     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14248 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14249     test "$ld_shlibs_CXX" = no && can_build_shared=no
14250
14251     GCC_CXX="$GXX"
14252     LD_CXX="$LD"
14253
14254     ## CAVEAT EMPTOR:
14255     ## There is no encapsulation within the following macros, do not change
14256     ## the running order or otherwise move them around unless you know exactly
14257     ## what you are doing...
14258     # Dependencies to place before and after the object being linked:
14259 predep_objects_CXX=
14260 postdep_objects_CXX=
14261 predeps_CXX=
14262 postdeps_CXX=
14263 compiler_lib_search_path_CXX=
14264
14265 cat > conftest.$ac_ext <<_LT_EOF
14266 class Foo
14267 {
14268 public:
14269   Foo (void) { a = 0; }
14270 private:
14271   int a;
14272 };
14273 _LT_EOF
14274
14275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14276   (eval $ac_compile) 2>&5
14277   ac_status=$?
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   (exit $ac_status); }; then
14280   # Parse the compiler output and extract the necessary
14281   # objects, libraries and library flags.
14282
14283   # Sentinel used to keep track of whether or not we are before
14284   # the conftest object file.
14285   pre_test_object_deps_done=no
14286
14287   for p in `eval "$output_verbose_link_cmd"`; do
14288     case $p in
14289
14290     -L* | -R* | -l*)
14291        # Some compilers place space between "-{L,R}" and the path.
14292        # Remove the space.
14293        if test $p = "-L" ||
14294           test $p = "-R"; then
14295          prev=$p
14296          continue
14297        else
14298          prev=
14299        fi
14300
14301        if test "$pre_test_object_deps_done" = no; then
14302          case $p in
14303          -L* | -R*)
14304            # Internal compiler library paths should come after those
14305            # provided the user.  The postdeps already come after the
14306            # user supplied libs so there is no need to process them.
14307            if test -z "$compiler_lib_search_path_CXX"; then
14308              compiler_lib_search_path_CXX="${prev}${p}"
14309            else
14310              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14311            fi
14312            ;;
14313          # The "-l" case would never come before the object being
14314          # linked, so don't bother handling this case.
14315          esac
14316        else
14317          if test -z "$postdeps_CXX"; then
14318            postdeps_CXX="${prev}${p}"
14319          else
14320            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14321          fi
14322        fi
14323        ;;
14324
14325     *.$objext)
14326        # This assumes that the test object file only shows up
14327        # once in the compiler output.
14328        if test "$p" = "conftest.$objext"; then
14329          pre_test_object_deps_done=yes
14330          continue
14331        fi
14332
14333        if test "$pre_test_object_deps_done" = no; then
14334          if test -z "$predep_objects_CXX"; then
14335            predep_objects_CXX="$p"
14336          else
14337            predep_objects_CXX="$predep_objects_CXX $p"
14338          fi
14339        else
14340          if test -z "$postdep_objects_CXX"; then
14341            postdep_objects_CXX="$p"
14342          else
14343            postdep_objects_CXX="$postdep_objects_CXX $p"
14344          fi
14345        fi
14346        ;;
14347
14348     *) ;; # Ignore the rest.
14349
14350     esac
14351   done
14352
14353   # Clean up.
14354   rm -f a.out a.exe
14355 else
14356   echo "libtool.m4: error: problem compiling CXX test program"
14357 fi
14358
14359 $RM -f confest.$objext
14360
14361 # PORTME: override above test on systems where it is broken
14362 case $host_os in
14363 interix[3-9]*)
14364   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14365   # hack all around it, let's just trust "g++" to DTRT.
14366   predep_objects_CXX=
14367   postdep_objects_CXX=
14368   postdeps_CXX=
14369   ;;
14370
14371 linux*)
14372   case `$CC -V 2>&1 | sed 5q` in
14373   *Sun\ C*)
14374     # Sun C++ 5.9
14375
14376     # The more standards-conforming stlport4 library is
14377     # incompatible with the Cstd library. Avoid specifying
14378     # it if it's in CXXFLAGS. Ignore libCrun as
14379     # -library=stlport4 depends on it.
14380     case " $CXX $CXXFLAGS " in
14381     *" -library=stlport4 "*)
14382       solaris_use_stlport4=yes
14383       ;;
14384     esac
14385
14386     if test "$solaris_use_stlport4" != yes; then
14387       postdeps_CXX='-library=Cstd -library=Crun'
14388     fi
14389     ;;
14390   esac
14391   ;;
14392
14393 solaris*)
14394   case $cc_basename in
14395   CC*)
14396     # The more standards-conforming stlport4 library is
14397     # incompatible with the Cstd library. Avoid specifying
14398     # it if it's in CXXFLAGS. Ignore libCrun as
14399     # -library=stlport4 depends on it.
14400     case " $CXX $CXXFLAGS " in
14401     *" -library=stlport4 "*)
14402       solaris_use_stlport4=yes
14403       ;;
14404     esac
14405
14406     # Adding this requires a known-good setup of shared libraries for
14407     # Sun compiler versions before 5.6, else PIC objects from an old
14408     # archive will be linked into the output, leading to subtle bugs.
14409     if test "$solaris_use_stlport4" != yes; then
14410       postdeps_CXX='-library=Cstd -library=Crun'
14411     fi
14412     ;;
14413   esac
14414   ;;
14415 esac
14416
14417
14418 case " $postdeps_CXX " in
14419 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14420 esac
14421  compiler_lib_search_dirs_CXX=
14422 if test -n "${compiler_lib_search_path_CXX}"; then
14423  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14424 fi
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
14456     lt_prog_compiler_wl_CXX=
14457 lt_prog_compiler_pic_CXX=
14458 lt_prog_compiler_static_CXX=
14459
14460 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14461 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14462
14463   # C++ specific cases for pic, static, wl, etc.
14464   if test "$GXX" = yes; then
14465     lt_prog_compiler_wl_CXX='-Wl,'
14466     lt_prog_compiler_static_CXX='-static'
14467
14468     case $host_os in
14469     aix*)
14470       # All AIX code is PIC.
14471       if test "$host_cpu" = ia64; then
14472         # AIX 5 now supports IA64 processor
14473         lt_prog_compiler_static_CXX='-Bstatic'
14474       fi
14475       ;;
14476
14477     amigaos*)
14478       case $host_cpu in
14479       powerpc)
14480             # see comment about AmigaOS4 .so support
14481             lt_prog_compiler_pic_CXX='-fPIC'
14482         ;;
14483       m68k)
14484             # FIXME: we need at least 68020 code to build shared libraries, but
14485             # adding the `-m68020' flag to GCC prevents building anything better,
14486             # like `-m68040'.
14487             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14488         ;;
14489       esac
14490       ;;
14491
14492     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14493       # PIC is the default for these OSes.
14494       ;;
14495     mingw* | cygwin* | os2* | pw32* | cegcc*)
14496       # This hack is so that the source file can tell whether it is being
14497       # built for inclusion in a dll (and should export symbols for example).
14498       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14499       # (--disable-auto-import) libraries
14500       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14501       ;;
14502     darwin* | rhapsody*)
14503       # PIC is the default on this platform
14504       # Common symbols not allowed in MH_DYLIB files
14505       lt_prog_compiler_pic_CXX='-fno-common'
14506       ;;
14507     *djgpp*)
14508       # DJGPP does not support shared libraries at all
14509       lt_prog_compiler_pic_CXX=
14510       ;;
14511     interix[3-9]*)
14512       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14513       # Instead, we relocate shared libraries at runtime.
14514       ;;
14515     sysv4*MP*)
14516       if test -d /usr/nec; then
14517         lt_prog_compiler_pic_CXX=-Kconform_pic
14518       fi
14519       ;;
14520     hpux*)
14521       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14522       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14523       # sets the default TLS model and affects inlining.
14524       case $host_cpu in
14525       hppa*64*)
14526         ;;
14527       *)
14528         lt_prog_compiler_pic_CXX='-fPIC'
14529         ;;
14530       esac
14531       ;;
14532     *qnx* | *nto*)
14533       # QNX uses GNU C++, but need to define -shared option too, otherwise
14534       # it will coredump.
14535       lt_prog_compiler_pic_CXX='-fPIC -shared'
14536       ;;
14537     *)
14538       lt_prog_compiler_pic_CXX='-fPIC'
14539       ;;
14540     esac
14541   else
14542     case $host_os in
14543       aix[4-9]*)
14544         # All AIX code is PIC.
14545         if test "$host_cpu" = ia64; then
14546           # AIX 5 now supports IA64 processor
14547           lt_prog_compiler_static_CXX='-Bstatic'
14548         else
14549           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14550         fi
14551         ;;
14552       chorus*)
14553         case $cc_basename in
14554         cxch68*)
14555           # Green Hills C++ Compiler
14556           # _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"
14557           ;;
14558         esac
14559         ;;
14560       dgux*)
14561         case $cc_basename in
14562           ec++*)
14563             lt_prog_compiler_pic_CXX='-KPIC'
14564             ;;
14565           ghcx*)
14566             # Green Hills C++ Compiler
14567             lt_prog_compiler_pic_CXX='-pic'
14568             ;;
14569           *)
14570             ;;
14571         esac
14572         ;;
14573       freebsd* | dragonfly*)
14574         # FreeBSD uses GNU C++
14575         ;;
14576       hpux9* | hpux10* | hpux11*)
14577         case $cc_basename in
14578           CC*)
14579             lt_prog_compiler_wl_CXX='-Wl,'
14580             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14581             if test "$host_cpu" != ia64; then
14582               lt_prog_compiler_pic_CXX='+Z'
14583             fi
14584             ;;
14585           aCC*)
14586             lt_prog_compiler_wl_CXX='-Wl,'
14587             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14588             case $host_cpu in
14589             hppa*64*|ia64*)
14590               # +Z the default
14591               ;;
14592             *)
14593               lt_prog_compiler_pic_CXX='+Z'
14594               ;;
14595             esac
14596             ;;
14597           *)
14598             ;;
14599         esac
14600         ;;
14601       interix*)
14602         # This is c89, which is MS Visual C++ (no shared libs)
14603         # Anyone wants to do a port?
14604         ;;
14605       irix5* | irix6* | nonstopux*)
14606         case $cc_basename in
14607           CC*)
14608             lt_prog_compiler_wl_CXX='-Wl,'
14609             lt_prog_compiler_static_CXX='-non_shared'
14610             # CC pic flag -KPIC is the default.
14611             ;;
14612           *)
14613             ;;
14614         esac
14615         ;;
14616       linux* | k*bsd*-gnu)
14617         case $cc_basename in
14618           KCC*)
14619             # KAI C++ Compiler
14620             lt_prog_compiler_wl_CXX='--backend -Wl,'
14621             lt_prog_compiler_pic_CXX='-fPIC'
14622             ;;
14623           ecpc* )
14624             # old Intel C++ for x86_64 which still supported -KPIC.
14625             lt_prog_compiler_wl_CXX='-Wl,'
14626             lt_prog_compiler_pic_CXX='-KPIC'
14627             lt_prog_compiler_static_CXX='-static'
14628             ;;
14629           icpc* )
14630             # Intel C++, used to be incompatible with GCC.
14631             # ICC 10 doesn't accept -KPIC any more.
14632             lt_prog_compiler_wl_CXX='-Wl,'
14633             lt_prog_compiler_pic_CXX='-fPIC'
14634             lt_prog_compiler_static_CXX='-static'
14635             ;;
14636           pgCC* | pgcpp*)
14637             # Portland Group C++ compiler
14638             lt_prog_compiler_wl_CXX='-Wl,'
14639             lt_prog_compiler_pic_CXX='-fpic'
14640             lt_prog_compiler_static_CXX='-Bstatic'
14641             ;;
14642           cxx*)
14643             # Compaq C++
14644             # Make sure the PIC flag is empty.  It appears that all Alpha
14645             # Linux and Compaq Tru64 Unix objects are PIC.
14646             lt_prog_compiler_pic_CXX=
14647             lt_prog_compiler_static_CXX='-non_shared'
14648             ;;
14649           xlc* | xlC*)
14650             # IBM XL 8.0 on PPC
14651             lt_prog_compiler_wl_CXX='-Wl,'
14652             lt_prog_compiler_pic_CXX='-qpic'
14653             lt_prog_compiler_static_CXX='-qstaticlink'
14654             ;;
14655           *)
14656             case `$CC -V 2>&1 | sed 5q` in
14657             *Sun\ C*)
14658               # Sun C++ 5.9
14659               lt_prog_compiler_pic_CXX='-KPIC'
14660               lt_prog_compiler_static_CXX='-Bstatic'
14661               lt_prog_compiler_wl_CXX='-Qoption ld '
14662               ;;
14663             esac
14664             ;;
14665         esac
14666         ;;
14667       lynxos*)
14668         ;;
14669       m88k*)
14670         ;;
14671       mvs*)
14672         case $cc_basename in
14673           cxx*)
14674             lt_prog_compiler_pic_CXX='-W c,exportall'
14675             ;;
14676           *)
14677             ;;
14678         esac
14679         ;;
14680       netbsd*)
14681         ;;
14682       *qnx* | *nto*)
14683         # QNX uses GNU C++, but need to define -shared option too, otherwise
14684         # it will coredump.
14685         lt_prog_compiler_pic_CXX='-fPIC -shared'
14686         ;;
14687       osf3* | osf4* | osf5*)
14688         case $cc_basename in
14689           KCC*)
14690             lt_prog_compiler_wl_CXX='--backend -Wl,'
14691             ;;
14692           RCC*)
14693             # Rational C++ 2.4.1
14694             lt_prog_compiler_pic_CXX='-pic'
14695             ;;
14696           cxx*)
14697             # Digital/Compaq C++
14698             lt_prog_compiler_wl_CXX='-Wl,'
14699             # Make sure the PIC flag is empty.  It appears that all Alpha
14700             # Linux and Compaq Tru64 Unix objects are PIC.
14701             lt_prog_compiler_pic_CXX=
14702             lt_prog_compiler_static_CXX='-non_shared'
14703             ;;
14704           *)
14705             ;;
14706         esac
14707         ;;
14708       psos*)
14709         ;;
14710       solaris*)
14711         case $cc_basename in
14712           CC*)
14713             # Sun C++ 4.2, 5.x and Centerline C++
14714             lt_prog_compiler_pic_CXX='-KPIC'
14715             lt_prog_compiler_static_CXX='-Bstatic'
14716             lt_prog_compiler_wl_CXX='-Qoption ld '
14717             ;;
14718           gcx*)
14719             # Green Hills C++ Compiler
14720             lt_prog_compiler_pic_CXX='-PIC'
14721             ;;
14722           *)
14723             ;;
14724         esac
14725         ;;
14726       sunos4*)
14727         case $cc_basename in
14728           CC*)
14729             # Sun C++ 4.x
14730             lt_prog_compiler_pic_CXX='-pic'
14731             lt_prog_compiler_static_CXX='-Bstatic'
14732             ;;
14733           lcc*)
14734             # Lucid
14735             lt_prog_compiler_pic_CXX='-pic'
14736             ;;
14737           *)
14738             ;;
14739         esac
14740         ;;
14741       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14742         case $cc_basename in
14743           CC*)
14744             lt_prog_compiler_wl_CXX='-Wl,'
14745             lt_prog_compiler_pic_CXX='-KPIC'
14746             lt_prog_compiler_static_CXX='-Bstatic'
14747             ;;
14748         esac
14749         ;;
14750       tandem*)
14751         case $cc_basename in
14752           NCC*)
14753             # NonStop-UX NCC 3.20
14754             lt_prog_compiler_pic_CXX='-KPIC'
14755             ;;
14756           *)
14757             ;;
14758         esac
14759         ;;
14760       vxworks*)
14761         ;;
14762       *)
14763         lt_prog_compiler_can_build_shared_CXX=no
14764         ;;
14765     esac
14766   fi
14767
14768 case $host_os in
14769   # For platforms which do not support PIC, -DPIC is meaningless:
14770   *djgpp*)
14771     lt_prog_compiler_pic_CXX=
14772     ;;
14773   *)
14774     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14775     ;;
14776 esac
14777 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14778 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14779
14780
14781
14782 #
14783 # Check to make sure the PIC flag actually works.
14784 #
14785 if test -n "$lt_prog_compiler_pic_CXX"; then
14786   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14787 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14788 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14789   echo $ECHO_N "(cached) $ECHO_C" >&6
14790 else
14791   lt_cv_prog_compiler_pic_works_CXX=no
14792    ac_outfile=conftest.$ac_objext
14793    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14794    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14795    # Insert the option either (1) after the last *FLAGS variable, or
14796    # (2) before a word containing "conftest.", or (3) at the end.
14797    # Note that $ac_compile itself does not contain backslashes and begins
14798    # with a dollar sign (not a hyphen), so the echo should work correctly.
14799    # The option is referenced via a variable to avoid confusing sed.
14800    lt_compile=`echo "$ac_compile" | $SED \
14801    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14802    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14803    -e 's:$: $lt_compiler_flag:'`
14804    (eval echo "\"\$as_me:14804: $lt_compile\"" >&5)
14805    (eval "$lt_compile" 2>conftest.err)
14806    ac_status=$?
14807    cat conftest.err >&5
14808    echo "$as_me:14808: \$? = $ac_status" >&5
14809    if (exit $ac_status) && test -s "$ac_outfile"; then
14810      # The compiler can only warn and ignore the option if not recognized
14811      # So say no if there are warnings other than the usual output.
14812      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14813      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14814      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14815        lt_cv_prog_compiler_pic_works_CXX=yes
14816      fi
14817    fi
14818    $RM conftest*
14819
14820 fi
14821 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14822 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14823
14824 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14825     case $lt_prog_compiler_pic_CXX in
14826      "" | " "*) ;;
14827      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14828      esac
14829 else
14830     lt_prog_compiler_pic_CXX=
14831      lt_prog_compiler_can_build_shared_CXX=no
14832 fi
14833
14834 fi
14835
14836
14837
14838 #
14839 # Check to make sure the static flag actually works.
14840 #
14841 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14842 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14843 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14844 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14845   echo $ECHO_N "(cached) $ECHO_C" >&6
14846 else
14847   lt_cv_prog_compiler_static_works_CXX=no
14848    save_LDFLAGS="$LDFLAGS"
14849    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14850    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14851    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14852      # The linker can only warn and ignore the option if not recognized
14853      # So say no if there are warnings
14854      if test -s conftest.err; then
14855        # Append any errors to the config.log.
14856        cat conftest.err 1>&5
14857        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14858        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14859        if diff conftest.exp conftest.er2 >/dev/null; then
14860          lt_cv_prog_compiler_static_works_CXX=yes
14861        fi
14862      else
14863        lt_cv_prog_compiler_static_works_CXX=yes
14864      fi
14865    fi
14866    $RM -r conftest*
14867    LDFLAGS="$save_LDFLAGS"
14868
14869 fi
14870 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14871 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14872
14873 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14874     :
14875 else
14876     lt_prog_compiler_static_CXX=
14877 fi
14878
14879
14880
14881
14882     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14883 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14884 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14885   echo $ECHO_N "(cached) $ECHO_C" >&6
14886 else
14887   lt_cv_prog_compiler_c_o_CXX=no
14888    $RM -r conftest 2>/dev/null
14889    mkdir conftest
14890    cd conftest
14891    mkdir out
14892    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14893
14894    lt_compiler_flag="-o out/conftest2.$ac_objext"
14895    # Insert the option either (1) after the last *FLAGS variable, or
14896    # (2) before a word containing "conftest.", or (3) at the end.
14897    # Note that $ac_compile itself does not contain backslashes and begins
14898    # with a dollar sign (not a hyphen), so the echo should work correctly.
14899    lt_compile=`echo "$ac_compile" | $SED \
14900    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14901    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14902    -e 's:$: $lt_compiler_flag:'`
14903    (eval echo "\"\$as_me:14903: $lt_compile\"" >&5)
14904    (eval "$lt_compile" 2>out/conftest.err)
14905    ac_status=$?
14906    cat out/conftest.err >&5
14907    echo "$as_me:14907: \$? = $ac_status" >&5
14908    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14909    then
14910      # The compiler can only warn and ignore the option if not recognized
14911      # So say no if there are warnings
14912      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14913      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14914      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14915        lt_cv_prog_compiler_c_o_CXX=yes
14916      fi
14917    fi
14918    chmod u+w . 2>&5
14919    $RM conftest*
14920    # SGI C++ compiler will create directory out/ii_files/ for
14921    # template instantiation
14922    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14923    $RM out/* && rmdir out
14924    cd ..
14925    $RM -r conftest
14926    $RM conftest*
14927
14928 fi
14929 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14930 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14931
14932
14933
14934     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14935 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14936 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14937   echo $ECHO_N "(cached) $ECHO_C" >&6
14938 else
14939   lt_cv_prog_compiler_c_o_CXX=no
14940    $RM -r conftest 2>/dev/null
14941    mkdir conftest
14942    cd conftest
14943    mkdir out
14944    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14945
14946    lt_compiler_flag="-o out/conftest2.$ac_objext"
14947    # Insert the option either (1) after the last *FLAGS variable, or
14948    # (2) before a word containing "conftest.", or (3) at the end.
14949    # Note that $ac_compile itself does not contain backslashes and begins
14950    # with a dollar sign (not a hyphen), so the echo should work correctly.
14951    lt_compile=`echo "$ac_compile" | $SED \
14952    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14953    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14954    -e 's:$: $lt_compiler_flag:'`
14955    (eval echo "\"\$as_me:14955: $lt_compile\"" >&5)
14956    (eval "$lt_compile" 2>out/conftest.err)
14957    ac_status=$?
14958    cat out/conftest.err >&5
14959    echo "$as_me:14959: \$? = $ac_status" >&5
14960    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14961    then
14962      # The compiler can only warn and ignore the option if not recognized
14963      # So say no if there are warnings
14964      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14965      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14966      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14967        lt_cv_prog_compiler_c_o_CXX=yes
14968      fi
14969    fi
14970    chmod u+w . 2>&5
14971    $RM conftest*
14972    # SGI C++ compiler will create directory out/ii_files/ for
14973    # template instantiation
14974    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14975    $RM out/* && rmdir out
14976    cd ..
14977    $RM -r conftest
14978    $RM conftest*
14979
14980 fi
14981 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14982 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14983
14984
14985
14986
14987 hard_links="nottested"
14988 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14989   # do not overwrite the value of need_locks provided by the user
14990   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14991 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14992   hard_links=yes
14993   $RM conftest*
14994   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14995   touch conftest.a
14996   ln conftest.a conftest.b 2>&5 || hard_links=no
14997   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14998   { echo "$as_me:$LINENO: result: $hard_links" >&5
14999 echo "${ECHO_T}$hard_links" >&6; }
15000   if test "$hard_links" = no; then
15001     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15002 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15003     need_locks=warn
15004   fi
15005 else
15006   need_locks=no
15007 fi
15008
15009
15010
15011     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15012 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15013
15014   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15015   case $host_os in
15016   aix[4-9]*)
15017     # If we're using GNU nm, then we don't want the "-C" option.
15018     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15019     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15020       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'
15021     else
15022       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'
15023     fi
15024     ;;
15025   pw32*)
15026     export_symbols_cmds_CXX="$ltdll_cmds"
15027   ;;
15028   cygwin* | mingw* | cegcc*)
15029     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'
15030   ;;
15031   *)
15032     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15033   ;;
15034   esac
15035   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15036
15037 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15038 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15039 test "$ld_shlibs_CXX" = no && can_build_shared=no
15040
15041 with_gnu_ld_CXX=$with_gnu_ld
15042
15043
15044
15045
15046
15047
15048 #
15049 # Do we need to explicitly link libc?
15050 #
15051 case "x$archive_cmds_need_lc_CXX" in
15052 x|xyes)
15053   # Assume -lc should be added
15054   archive_cmds_need_lc_CXX=yes
15055
15056   if test "$enable_shared" = yes && test "$GCC" = yes; then
15057     case $archive_cmds_CXX in
15058     *'~'*)
15059       # FIXME: we may have to deal with multi-command sequences.
15060       ;;
15061     '$CC '*)
15062       # Test whether the compiler implicitly links with -lc since on some
15063       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15064       # to ld, don't add -lc before -lgcc.
15065       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15066 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15067       $RM conftest*
15068       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15069
15070       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15071   (eval $ac_compile) 2>&5
15072   ac_status=$?
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); } 2>conftest.err; then
15075         soname=conftest
15076         lib=conftest
15077         libobjs=conftest.$ac_objext
15078         deplibs=
15079         wl=$lt_prog_compiler_wl_CXX
15080         pic_flag=$lt_prog_compiler_pic_CXX
15081         compiler_flags=-v
15082         linker_flags=-v
15083         verstring=
15084         output_objdir=.
15085         libname=conftest
15086         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15087         allow_undefined_flag_CXX=
15088         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15089   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15090   ac_status=$?
15091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092   (exit $ac_status); }
15093         then
15094           archive_cmds_need_lc_CXX=no
15095         else
15096           archive_cmds_need_lc_CXX=yes
15097         fi
15098         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15099       else
15100         cat conftest.err 1>&5
15101       fi
15102       $RM conftest*
15103       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15104 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15105       ;;
15106     esac
15107   fi
15108   ;;
15109 esac
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
15174     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15175 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15176
15177 library_names_spec=
15178 libname_spec='lib$name'
15179 soname_spec=
15180 shrext_cmds=".so"
15181 postinstall_cmds=
15182 postuninstall_cmds=
15183 finish_cmds=
15184 finish_eval=
15185 shlibpath_var=
15186 shlibpath_overrides_runpath=unknown
15187 version_type=none
15188 dynamic_linker="$host_os ld.so"
15189 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15190 need_lib_prefix=unknown
15191 hardcode_into_libs=no
15192
15193 # when you set need_version to no, make sure it does not cause -set_version
15194 # flags to be left without arguments
15195 need_version=unknown
15196
15197 case $host_os in
15198 aix3*)
15199   version_type=linux
15200   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15201   shlibpath_var=LIBPATH
15202
15203   # AIX 3 has no versioning support, so we append a major version to the name.
15204   soname_spec='${libname}${release}${shared_ext}$major'
15205   ;;
15206
15207 aix[4-9]*)
15208   version_type=linux
15209   need_lib_prefix=no
15210   need_version=no
15211   hardcode_into_libs=yes
15212   if test "$host_cpu" = ia64; then
15213     # AIX 5 supports IA64
15214     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15215     shlibpath_var=LD_LIBRARY_PATH
15216   else
15217     # With GCC up to 2.95.x, collect2 would create an import file
15218     # for dependence libraries.  The import file would start with
15219     # the line `#! .'.  This would cause the generated library to
15220     # depend on `.', always an invalid library.  This was fixed in
15221     # development snapshots of GCC prior to 3.0.
15222     case $host_os in
15223       aix4 | aix4.[01] | aix4.[01].*)
15224       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15225            echo ' yes '
15226            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15227         :
15228       else
15229         can_build_shared=no
15230       fi
15231       ;;
15232     esac
15233     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15234     # soname into executable. Probably we can add versioning support to
15235     # collect2, so additional links can be useful in future.
15236     if test "$aix_use_runtimelinking" = yes; then
15237       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15238       # instead of lib<name>.a to let people know that these are not
15239       # typical AIX shared libraries.
15240       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15241     else
15242       # We preserve .a as extension for shared libraries through AIX4.2
15243       # and later when we are not doing run time linking.
15244       library_names_spec='${libname}${release}.a $libname.a'
15245       soname_spec='${libname}${release}${shared_ext}$major'
15246     fi
15247     shlibpath_var=LIBPATH
15248   fi
15249   ;;
15250
15251 amigaos*)
15252   case $host_cpu in
15253   powerpc)
15254     # Since July 2007 AmigaOS4 officially supports .so libraries.
15255     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15257     ;;
15258   m68k)
15259     library_names_spec='$libname.ixlibrary $libname.a'
15260     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15261     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'
15262     ;;
15263   esac
15264   ;;
15265
15266 beos*)
15267   library_names_spec='${libname}${shared_ext}'
15268   dynamic_linker="$host_os ld.so"
15269   shlibpath_var=LIBRARY_PATH
15270   ;;
15271
15272 bsdi[45]*)
15273   version_type=linux
15274   need_version=no
15275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15276   soname_spec='${libname}${release}${shared_ext}$major'
15277   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15278   shlibpath_var=LD_LIBRARY_PATH
15279   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15280   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15281   # the default ld.so.conf also contains /usr/contrib/lib and
15282   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15283   # libtool to hard-code these into programs
15284   ;;
15285
15286 cygwin* | mingw* | pw32* | cegcc*)
15287   version_type=windows
15288   shrext_cmds=".dll"
15289   need_version=no
15290   need_lib_prefix=no
15291
15292   case $GCC,$host_os in
15293   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15294     library_names_spec='$libname.dll.a'
15295     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15296     postinstall_cmds='base_file=`basename \${file}`~
15297       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15298       dldir=$destdir/`dirname \$dlpath`~
15299       test -d \$dldir || mkdir -p \$dldir~
15300       $install_prog $dir/$dlname \$dldir/$dlname~
15301       chmod a+x \$dldir/$dlname~
15302       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15303         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15304       fi'
15305     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15306       dlpath=$dir/\$dldll~
15307        $RM \$dlpath'
15308     shlibpath_overrides_runpath=yes
15309
15310     case $host_os in
15311     cygwin*)
15312       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15313       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15314       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15315       ;;
15316     mingw* | cegcc*)
15317       # MinGW DLLs use traditional 'lib' prefix
15318       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15319       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15320       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15321         # It is most probably a Windows format PATH printed by
15322         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15323         # path with ; separators, and with drive letters. We can handle the
15324         # drive letters (cygwin fileutils understands them), so leave them,
15325         # especially as we might pass files found there to a mingw objdump,
15326         # which wouldn't understand a cygwinified path. Ahh.
15327         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15328       else
15329         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15330       fi
15331       ;;
15332     pw32*)
15333       # pw32 DLLs use 'pw' prefix rather than 'lib'
15334       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15335       ;;
15336     esac
15337     ;;
15338
15339   *)
15340     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15341     ;;
15342   esac
15343   dynamic_linker='Win32 ld.exe'
15344   # FIXME: first we should search . and the directory the executable is in
15345   shlibpath_var=PATH
15346   ;;
15347
15348 darwin* | rhapsody*)
15349   dynamic_linker="$host_os dyld"
15350   version_type=darwin
15351   need_lib_prefix=no
15352   need_version=no
15353   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15354   soname_spec='${libname}${release}${major}$shared_ext'
15355   shlibpath_overrides_runpath=yes
15356   shlibpath_var=DYLD_LIBRARY_PATH
15357   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15358
15359   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15360   ;;
15361
15362 dgux*)
15363   version_type=linux
15364   need_lib_prefix=no
15365   need_version=no
15366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15367   soname_spec='${libname}${release}${shared_ext}$major'
15368   shlibpath_var=LD_LIBRARY_PATH
15369   ;;
15370
15371 freebsd1*)
15372   dynamic_linker=no
15373   ;;
15374
15375 freebsd* | dragonfly*)
15376   # DragonFly does not have aout.  When/if they implement a new
15377   # versioning mechanism, adjust this.
15378   if test -x /usr/bin/objformat; then
15379     objformat=`/usr/bin/objformat`
15380   else
15381     case $host_os in
15382     freebsd[123]*) objformat=aout ;;
15383     *) objformat=elf ;;
15384     esac
15385   fi
15386   version_type=freebsd-$objformat
15387   case $version_type in
15388     freebsd-elf*)
15389       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15390       need_version=no
15391       need_lib_prefix=no
15392       ;;
15393     freebsd-*)
15394       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15395       need_version=yes
15396       ;;
15397   esac
15398   shlibpath_var=LD_LIBRARY_PATH
15399   case $host_os in
15400   freebsd2*)
15401     shlibpath_overrides_runpath=yes
15402     ;;
15403   freebsd3.[01]* | freebsdelf3.[01]*)
15404     shlibpath_overrides_runpath=yes
15405     hardcode_into_libs=yes
15406     ;;
15407   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15408   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15409     shlibpath_overrides_runpath=no
15410     hardcode_into_libs=yes
15411     ;;
15412   *) # from 4.6 on, and DragonFly
15413     shlibpath_overrides_runpath=yes
15414     hardcode_into_libs=yes
15415     ;;
15416   esac
15417   ;;
15418
15419 gnu*)
15420   version_type=linux
15421   need_lib_prefix=no
15422   need_version=no
15423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15424   soname_spec='${libname}${release}${shared_ext}$major'
15425   shlibpath_var=LD_LIBRARY_PATH
15426   hardcode_into_libs=yes
15427   ;;
15428
15429 hpux9* | hpux10* | hpux11*)
15430   # Give a soname corresponding to the major version so that dld.sl refuses to
15431   # link against other versions.
15432   version_type=sunos
15433   need_lib_prefix=no
15434   need_version=no
15435   case $host_cpu in
15436   ia64*)
15437     shrext_cmds='.so'
15438     hardcode_into_libs=yes
15439     dynamic_linker="$host_os dld.so"
15440     shlibpath_var=LD_LIBRARY_PATH
15441     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443     soname_spec='${libname}${release}${shared_ext}$major'
15444     if test "X$HPUX_IA64_MODE" = X32; then
15445       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15446     else
15447       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15448     fi
15449     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15450     ;;
15451   hppa*64*)
15452     shrext_cmds='.sl'
15453     hardcode_into_libs=yes
15454     dynamic_linker="$host_os dld.sl"
15455     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15456     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458     soname_spec='${libname}${release}${shared_ext}$major'
15459     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15460     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15461     ;;
15462   *)
15463     shrext_cmds='.sl'
15464     dynamic_linker="$host_os dld.sl"
15465     shlibpath_var=SHLIB_PATH
15466     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15468     soname_spec='${libname}${release}${shared_ext}$major'
15469     ;;
15470   esac
15471   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15472   postinstall_cmds='chmod 555 $lib'
15473   ;;
15474
15475 interix[3-9]*)
15476   version_type=linux
15477   need_lib_prefix=no
15478   need_version=no
15479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15480   soname_spec='${libname}${release}${shared_ext}$major'
15481   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15482   shlibpath_var=LD_LIBRARY_PATH
15483   shlibpath_overrides_runpath=no
15484   hardcode_into_libs=yes
15485   ;;
15486
15487 irix5* | irix6* | nonstopux*)
15488   case $host_os in
15489     nonstopux*) version_type=nonstopux ;;
15490     *)
15491         if test "$lt_cv_prog_gnu_ld" = yes; then
15492                 version_type=linux
15493         else
15494                 version_type=irix
15495         fi ;;
15496   esac
15497   need_lib_prefix=no
15498   need_version=no
15499   soname_spec='${libname}${release}${shared_ext}$major'
15500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15501   case $host_os in
15502   irix5* | nonstopux*)
15503     libsuff= shlibsuff=
15504     ;;
15505   *)
15506     case $LD in # libtool.m4 will add one of these switches to LD
15507     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15508       libsuff= shlibsuff= libmagic=32-bit;;
15509     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15510       libsuff=32 shlibsuff=N32 libmagic=N32;;
15511     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15512       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15513     *) libsuff= shlibsuff= libmagic=never-match;;
15514     esac
15515     ;;
15516   esac
15517   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15518   shlibpath_overrides_runpath=no
15519   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15520   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15521   hardcode_into_libs=yes
15522   ;;
15523
15524 # No shared lib support for Linux oldld, aout, or coff.
15525 linux*oldld* | linux*aout* | linux*coff*)
15526   dynamic_linker=no
15527   ;;
15528
15529 # This must be Linux ELF.
15530 linux* | k*bsd*-gnu)
15531   version_type=linux
15532   need_lib_prefix=no
15533   need_version=no
15534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535   soname_spec='${libname}${release}${shared_ext}$major'
15536   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15537   shlibpath_var=LD_LIBRARY_PATH
15538   shlibpath_overrides_runpath=no
15539   # Some binutils ld are patched to set DT_RUNPATH
15540   save_LDFLAGS=$LDFLAGS
15541   save_libdir=$libdir
15542   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15543        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15544   cat >conftest.$ac_ext <<_ACEOF
15545 /* confdefs.h.  */
15546 _ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h.  */
15550
15551 int
15552 main ()
15553 {
15554
15555   ;
15556   return 0;
15557 }
15558 _ACEOF
15559 rm -f conftest.$ac_objext conftest$ac_exeext
15560 if { (ac_try="$ac_link"
15561 case "(($ac_try" in
15562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563   *) ac_try_echo=$ac_try;;
15564 esac
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566   (eval "$ac_link") 2>conftest.er1
15567   ac_status=$?
15568   grep -v '^ *+' conftest.er1 >conftest.err
15569   rm -f conftest.er1
15570   cat conftest.err >&5
15571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572   (exit $ac_status); } && {
15573          test -z "$ac_cxx_werror_flag" ||
15574          test ! -s conftest.err
15575        } && test -s conftest$ac_exeext &&
15576        $as_test_x conftest$ac_exeext; then
15577   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15578   shlibpath_overrides_runpath=yes
15579 fi
15580
15581 else
15582   echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15584
15585
15586 fi
15587
15588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15589       conftest$ac_exeext conftest.$ac_ext
15590   LDFLAGS=$save_LDFLAGS
15591   libdir=$save_libdir
15592
15593   # This implies no fast_install, which is unacceptable.
15594   # Some rework will be needed to allow for fast_install
15595   # before this can be enabled.
15596   hardcode_into_libs=yes
15597
15598   # Append ld.so.conf contents to the search path
15599   if test -f /etc/ld.so.conf; then
15600     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' ' '`
15601     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15602   fi
15603
15604   # We used to test for /lib/ld.so.1 and disable shared libraries on
15605   # powerpc, because MkLinux only supported shared libraries with the
15606   # GNU dynamic linker.  Since this was broken with cross compilers,
15607   # most powerpc-linux boxes support dynamic linking these days and
15608   # people can always --disable-shared, the test was removed, and we
15609   # assume the GNU/Linux dynamic linker is in use.
15610   dynamic_linker='GNU/Linux ld.so'
15611   ;;
15612
15613 netbsd*)
15614   version_type=sunos
15615   need_lib_prefix=no
15616   need_version=no
15617   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15619     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15620     dynamic_linker='NetBSD (a.out) ld.so'
15621   else
15622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15623     soname_spec='${libname}${release}${shared_ext}$major'
15624     dynamic_linker='NetBSD ld.elf_so'
15625   fi
15626   shlibpath_var=LD_LIBRARY_PATH
15627   shlibpath_overrides_runpath=yes
15628   hardcode_into_libs=yes
15629   ;;
15630
15631 newsos6)
15632   version_type=linux
15633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634   shlibpath_var=LD_LIBRARY_PATH
15635   shlibpath_overrides_runpath=yes
15636   ;;
15637
15638 *nto* | *qnx*)
15639   version_type=qnx
15640   need_lib_prefix=no
15641   need_version=no
15642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643   soname_spec='${libname}${release}${shared_ext}$major'
15644   shlibpath_var=LD_LIBRARY_PATH
15645   shlibpath_overrides_runpath=no
15646   hardcode_into_libs=yes
15647   dynamic_linker='ldqnx.so'
15648   ;;
15649
15650 openbsd*)
15651   version_type=sunos
15652   sys_lib_dlsearch_path_spec="/usr/lib"
15653   need_lib_prefix=no
15654   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15655   case $host_os in
15656     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15657     *)                          need_version=no  ;;
15658   esac
15659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15660   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15661   shlibpath_var=LD_LIBRARY_PATH
15662   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15663     case $host_os in
15664       openbsd2.[89] | openbsd2.[89].*)
15665         shlibpath_overrides_runpath=no
15666         ;;
15667       *)
15668         shlibpath_overrides_runpath=yes
15669         ;;
15670       esac
15671   else
15672     shlibpath_overrides_runpath=yes
15673   fi
15674   ;;
15675
15676 os2*)
15677   libname_spec='$name'
15678   shrext_cmds=".dll"
15679   need_lib_prefix=no
15680   library_names_spec='$libname${shared_ext} $libname.a'
15681   dynamic_linker='OS/2 ld.exe'
15682   shlibpath_var=LIBPATH
15683   ;;
15684
15685 osf3* | osf4* | osf5*)
15686   version_type=osf
15687   need_lib_prefix=no
15688   need_version=no
15689   soname_spec='${libname}${release}${shared_ext}$major'
15690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691   shlibpath_var=LD_LIBRARY_PATH
15692   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15693   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15694   ;;
15695
15696 rdos*)
15697   dynamic_linker=no
15698   ;;
15699
15700 solaris*)
15701   version_type=linux
15702   need_lib_prefix=no
15703   need_version=no
15704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705   soname_spec='${libname}${release}${shared_ext}$major'
15706   shlibpath_var=LD_LIBRARY_PATH
15707   shlibpath_overrides_runpath=yes
15708   hardcode_into_libs=yes
15709   # ldd complains unless libraries are executable
15710   postinstall_cmds='chmod +x $lib'
15711   ;;
15712
15713 sunos4*)
15714   version_type=sunos
15715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15716   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15717   shlibpath_var=LD_LIBRARY_PATH
15718   shlibpath_overrides_runpath=yes
15719   if test "$with_gnu_ld" = yes; then
15720     need_lib_prefix=no
15721   fi
15722   need_version=yes
15723   ;;
15724
15725 sysv4 | sysv4.3*)
15726   version_type=linux
15727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728   soname_spec='${libname}${release}${shared_ext}$major'
15729   shlibpath_var=LD_LIBRARY_PATH
15730   case $host_vendor in
15731     sni)
15732       shlibpath_overrides_runpath=no
15733       need_lib_prefix=no
15734       runpath_var=LD_RUN_PATH
15735       ;;
15736     siemens)
15737       need_lib_prefix=no
15738       ;;
15739     motorola)
15740       need_lib_prefix=no
15741       need_version=no
15742       shlibpath_overrides_runpath=no
15743       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15744       ;;
15745   esac
15746   ;;
15747
15748 sysv4*MP*)
15749   if test -d /usr/nec ;then
15750     version_type=linux
15751     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15752     soname_spec='$libname${shared_ext}.$major'
15753     shlibpath_var=LD_LIBRARY_PATH
15754   fi
15755   ;;
15756
15757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15758   version_type=freebsd-elf
15759   need_lib_prefix=no
15760   need_version=no
15761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15762   soname_spec='${libname}${release}${shared_ext}$major'
15763   shlibpath_var=LD_LIBRARY_PATH
15764   shlibpath_overrides_runpath=yes
15765   hardcode_into_libs=yes
15766   if test "$with_gnu_ld" = yes; then
15767     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15768   else
15769     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15770     case $host_os in
15771       sco3.2v5*)
15772         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15773         ;;
15774     esac
15775   fi
15776   sys_lib_dlsearch_path_spec='/usr/lib'
15777   ;;
15778
15779 tpf*)
15780   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15781   version_type=linux
15782   need_lib_prefix=no
15783   need_version=no
15784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785   shlibpath_var=LD_LIBRARY_PATH
15786   shlibpath_overrides_runpath=no
15787   hardcode_into_libs=yes
15788   ;;
15789
15790 uts4*)
15791   version_type=linux
15792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15793   soname_spec='${libname}${release}${shared_ext}$major'
15794   shlibpath_var=LD_LIBRARY_PATH
15795   ;;
15796
15797 *)
15798   dynamic_linker=no
15799   ;;
15800 esac
15801 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15802 echo "${ECHO_T}$dynamic_linker" >&6; }
15803 test "$dynamic_linker" = no && can_build_shared=no
15804
15805 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15806 if test "$GCC" = yes; then
15807   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15808 fi
15809
15810 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15811   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15812 fi
15813 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15814   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15815 fi
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
15852     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15853 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15854 hardcode_action_CXX=
15855 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15856    test -n "$runpath_var_CXX" ||
15857    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15858
15859   # We can hardcode non-existent directories.
15860   if test "$hardcode_direct_CXX" != no &&
15861      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15862      # have to relink, otherwise we might link with an installed library
15863      # when we should be linking with a yet-to-be-installed one
15864      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15865      test "$hardcode_minus_L_CXX" != no; then
15866     # Linking always hardcodes the temporary library directory.
15867     hardcode_action_CXX=relink
15868   else
15869     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15870     hardcode_action_CXX=immediate
15871   fi
15872 else
15873   # We cannot hardcode anything, or else we can only hardcode existing
15874   # directories.
15875   hardcode_action_CXX=unsupported
15876 fi
15877 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15878 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15879
15880 if test "$hardcode_action_CXX" = relink ||
15881    test "$inherit_rpath_CXX" = yes; then
15882   # Fast installation is not supported
15883   enable_fast_install=no
15884 elif test "$shlibpath_overrides_runpath" = yes ||
15885      test "$enable_shared" = no; then
15886   # Fast installation is not necessary
15887   enable_fast_install=needless
15888 fi
15889
15890
15891
15892
15893
15894
15895
15896   fi # test -n "$compiler"
15897
15898   CC=$lt_save_CC
15899   LDCXX=$LD
15900   LD=$lt_save_LD
15901   GCC=$lt_save_GCC
15902   with_gnu_ld=$lt_save_with_gnu_ld
15903   lt_cv_path_LDCXX=$lt_cv_path_LD
15904   lt_cv_path_LD=$lt_save_path_LD
15905   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15906   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15907 fi # test "$_lt_caught_CXX_error" != yes
15908
15909 ac_ext=c
15910 ac_cpp='$CPP $CPPFLAGS'
15911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927         ac_config_commands="$ac_config_commands libtool"
15928
15929
15930
15931
15932 # Only expand once:
15933
15934
15935
15936
15937 if test x$use_libtool != xno; then
15938    DEFAULT_OBJECT_TYPE=".lo"
15939    DEFAULT_ARCHIVE_TYPE=".la"
15940    DEFAULT_SHARED_OBJECT_TYPE=".la"
15941    LIBTOOL="\$(LIBTOOL)"
15942    LIBTOOL_INSTALL_TARGET="libtool-install"
15943    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15944    LIBTOOL_CLEAN_TARGET="libtool-clean"
15945    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15946 else
15947    DEFAULT_OBJECT_TYPE=".o"
15948    DEFAULT_ARCHIVE_TYPE=".a"
15949    DEFAULT_SHARED_OBJECT_TYPE=".so"
15950    LIBTOOL="# \$(LIBTOOL)"
15951    LIBTOOL_INSTALL_TARGET=""
15952    LIBTOOL_UNINSTALL_TARGET=""
15953    LIBTOOL_CLEAN_TARGET=""
15954    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15955 fi
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966 # Check whether --enable-includes was given.
15967 if test "${enable_includes+set}" = set; then
15968   enableval=$enable_includes;
15969        if test x$enableval = xyes; then
15970           install_includes=yes
15971        fi
15972
15973
15974 fi
15975
15976
15977
15978 if test x$use_libtool != xno -a x$install_includes = xyes; then
15979    INCLUDE_INSTALL_TARGET="install-includes"
15980    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15981 else
15982    INCLUDE_INSTALL_TARGET=""
15983    INCLUDE_UNINSTALL_TARGET=""
15984 fi
15985
15986
15987
15988
15989 { echo "$as_me:$LINENO: checking host system type" >&5
15990 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15991 if test "${ac_cv_host+set}" = set; then
15992   echo $ECHO_N "(cached) $ECHO_C" >&6
15993 else
15994   if test "x$host_alias" = x; then
15995   ac_cv_host=$ac_cv_build
15996 else
15997   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15998     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15999 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
16000    { (exit 1); exit 1; }; }
16001 fi
16002
16003 fi
16004 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16005 echo "${ECHO_T}$ac_cv_host" >&6; }
16006 case $ac_cv_host in
16007 *-*-*) ;;
16008 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16009 echo "$as_me: error: invalid value of canonical host" >&2;}
16010    { (exit 1); exit 1; }; };;
16011 esac
16012 host=$ac_cv_host
16013 ac_save_IFS=$IFS; IFS='-'
16014 set x $ac_cv_host
16015 shift
16016 host_cpu=$1
16017 host_vendor=$2
16018 shift; shift
16019 # Remember, the first character of IFS is used to create $*,
16020 # except with old shells:
16021 host_os=$*
16022 IFS=$ac_save_IFS
16023 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16024
16025
16026 case $host_os in
16027   *cygwin* ) CYGWIN=yes;;
16028          * ) CYGWIN=no;;
16029 esac
16030
16031 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16032 then
16033
16034
16035 if $TRUEPRG; then
16036   HAVE_SUN_OS_TRUE=
16037   HAVE_SUN_OS_FALSE='#'
16038 else
16039   HAVE_SUN_OS_TRUE='#'
16040   HAVE_SUN_OS_FALSE=
16041 fi
16042         cat >>confdefs.h <<\_ACEOF
16043 #define HAVE_SUN_OS 1
16044 _ACEOF
16045
16046 else
16047
16048
16049 if $FALSEPRG; then
16050   HAVE_SUN_OS_TRUE=
16051   HAVE_SUN_OS_FALSE='#'
16052 else
16053   HAVE_SUN_OS_TRUE='#'
16054   HAVE_SUN_OS_FALSE=
16055 fi
16056 fi
16057
16058 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16059 then
16060
16061
16062 if $TRUEPRG; then
16063   HAVE_OSF1_OS_TRUE=
16064   HAVE_OSF1_OS_FALSE='#'
16065 else
16066   HAVE_OSF1_OS_TRUE='#'
16067   HAVE_OSF1_OS_FALSE=
16068 fi
16069         cat >>confdefs.h <<\_ACEOF
16070 #define HAVE_OSF1_OS 1
16071 _ACEOF
16072
16073 else
16074
16075
16076 if $FALSEPRG; then
16077   HAVE_OSF1_OS_TRUE=
16078   HAVE_OSF1_OS_FALSE='#'
16079 else
16080   HAVE_OSF1_OS_TRUE='#'
16081   HAVE_OSF1_OS_FALSE=
16082 fi
16083 fi
16084
16085 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16086 then
16087
16088
16089 if $TRUEPRG; then
16090   HAVE_AIX_OS_TRUE=
16091   HAVE_AIX_OS_FALSE='#'
16092 else
16093   HAVE_AIX_OS_TRUE='#'
16094   HAVE_AIX_OS_FALSE=
16095 fi
16096         cat >>confdefs.h <<\_ACEOF
16097 #define HAVE_AIX_OS 1
16098 _ACEOF
16099
16100 else
16101
16102
16103 if $FALSEPRG; then
16104   HAVE_AIX_OS_TRUE=
16105   HAVE_AIX_OS_FALSE='#'
16106 else
16107   HAVE_AIX_OS_TRUE='#'
16108   HAVE_AIX_OS_FALSE=
16109 fi
16110 fi
16111
16112 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16113 then
16114
16115
16116 if $TRUEPRG; then
16117   HAVE_HPUX_OS_TRUE=
16118   HAVE_HPUX_OS_FALSE='#'
16119 else
16120   HAVE_HPUX_OS_TRUE='#'
16121   HAVE_HPUX_OS_FALSE=
16122 fi
16123         cat >>confdefs.h <<\_ACEOF
16124 #define HAVE_HPUX_OS 1
16125 _ACEOF
16126
16127 else
16128
16129
16130 if $FALSEPRG; then
16131   HAVE_HPUX_OS_TRUE=
16132   HAVE_HPUX_OS_FALSE='#'
16133 else
16134   HAVE_HPUX_OS_TRUE='#'
16135   HAVE_HPUX_OS_FALSE=
16136 fi
16137 fi
16138
16139 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16140 then
16141
16142
16143 if $TRUEPRG; then
16144   HAVE_LINUX_OS_TRUE=
16145   HAVE_LINUX_OS_FALSE='#'
16146 else
16147   HAVE_LINUX_OS_TRUE='#'
16148   HAVE_LINUX_OS_FALSE=
16149 fi
16150         cat >>confdefs.h <<\_ACEOF
16151 #define HAVE_LINUX_OS 1
16152 _ACEOF
16153
16154 else
16155
16156
16157 if $FALSEPRG; then
16158   HAVE_LINUX_OS_TRUE=
16159   HAVE_LINUX_OS_FALSE='#'
16160 else
16161   HAVE_LINUX_OS_TRUE='#'
16162   HAVE_LINUX_OS_FALSE=
16163 fi
16164 fi
16165
16166 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16167 then
16168
16169
16170 if $TRUEPRG; then
16171   HAVE_FREEBSD_OS_TRUE=
16172   HAVE_FREEBSD_OS_FALSE='#'
16173 else
16174   HAVE_FREEBSD_OS_TRUE='#'
16175   HAVE_FREEBSD_OS_FALSE=
16176 fi
16177         cat >>confdefs.h <<\_ACEOF
16178 #define HAVE_FREEBSD_OS 1
16179 _ACEOF
16180
16181 else
16182
16183
16184 if $FALSEPRG; then
16185   HAVE_FREEBSD_OS_TRUE=
16186   HAVE_FREEBSD_OS_FALSE='#'
16187 else
16188   HAVE_FREEBSD_OS_TRUE='#'
16189   HAVE_FREEBSD_OS_FALSE=
16190 fi
16191 fi
16192
16193 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16194 then
16195
16196
16197 if $TRUEPRG; then
16198   HAVE_NETBSD_OS_TRUE=
16199   HAVE_NETBSD_OS_FALSE='#'
16200 else
16201   HAVE_NETBSD_OS_TRUE='#'
16202   HAVE_NETBSD_OS_FALSE=
16203 fi
16204         cat >>confdefs.h <<\_ACEOF
16205 #define HAVE_NETBSD_OS 1
16206 _ACEOF
16207
16208 else
16209
16210
16211 if $FALSEPRG; then
16212   HAVE_NETBSD_OS_TRUE=
16213   HAVE_NETBSD_OS_FALSE='#'
16214 else
16215   HAVE_NETBSD_OS_TRUE='#'
16216   HAVE_NETBSD_OS_FALSE=
16217 fi
16218 fi
16219
16220 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16221 then
16222
16223
16224 if $TRUEPRG; then
16225   HAVE_OPENBSD_OS_TRUE=
16226   HAVE_OPENBSD_OS_FALSE='#'
16227 else
16228   HAVE_OPENBSD_OS_TRUE='#'
16229   HAVE_OPENBSD_OS_FALSE=
16230 fi
16231         cat >>confdefs.h <<\_ACEOF
16232 #define HAVE_OPENBSD_OS 1
16233 _ACEOF
16234
16235 else
16236
16237
16238 if $FALSEPRG; then
16239   HAVE_OPENBSD_OS_TRUE=
16240   HAVE_OPENBSD_OS_FALSE='#'
16241 else
16242   HAVE_OPENBSD_OS_TRUE='#'
16243   HAVE_OPENBSD_OS_FALSE=
16244 fi
16245 fi
16246
16247 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16248 then
16249
16250
16251 if $TRUEPRG; then
16252   HAVE_BSDI_OS_TRUE=
16253   HAVE_BSDI_OS_FALSE='#'
16254 else
16255   HAVE_BSDI_OS_TRUE='#'
16256   HAVE_BSDI_OS_FALSE=
16257 fi
16258         cat >>confdefs.h <<\_ACEOF
16259 #define HAVE_BSDI_OS 1
16260 _ACEOF
16261
16262 else
16263
16264
16265 if $FALSEPRG; then
16266   HAVE_BSDI_OS_TRUE=
16267   HAVE_BSDI_OS_FALSE='#'
16268 else
16269   HAVE_BSDI_OS_TRUE='#'
16270   HAVE_BSDI_OS_FALSE=
16271 fi
16272 fi
16273
16274 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16275 then
16276
16277
16278 if $TRUEPRG; then
16279   HAVE_SGI_OS_TRUE=
16280   HAVE_SGI_OS_FALSE='#'
16281 else
16282   HAVE_SGI_OS_TRUE='#'
16283   HAVE_SGI_OS_FALSE=
16284 fi
16285         cat >>confdefs.h <<\_ACEOF
16286 #define HAVE_SGI_OS 1
16287 _ACEOF
16288
16289 else
16290
16291
16292 if $FALSEPRG; then
16293   HAVE_SGI_OS_TRUE=
16294   HAVE_SGI_OS_FALSE='#'
16295 else
16296   HAVE_SGI_OS_TRUE='#'
16297   HAVE_SGI_OS_FALSE=
16298 fi
16299 fi
16300
16301 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16302 then
16303
16304
16305 if $TRUEPRG; then
16306   HAVE_IRIX_OS_TRUE=
16307   HAVE_IRIX_OS_FALSE='#'
16308 else
16309   HAVE_IRIX_OS_TRUE='#'
16310   HAVE_IRIX_OS_FALSE=
16311 fi
16312         cat >>confdefs.h <<\_ACEOF
16313 #define HAVE_IRIX_OS 1
16314 _ACEOF
16315
16316 else
16317
16318
16319 if $FALSEPRG; then
16320   HAVE_IRIX_OS_TRUE=
16321   HAVE_IRIX_OS_FALSE='#'
16322 else
16323   HAVE_IRIX_OS_TRUE='#'
16324   HAVE_IRIX_OS_FALSE=
16325 fi
16326 fi
16327
16328 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16329 then
16330
16331
16332 if $TRUEPRG; then
16333   HAVE_DARWIN_OS_TRUE=
16334   HAVE_DARWIN_OS_FALSE='#'
16335 else
16336   HAVE_DARWIN_OS_TRUE='#'
16337   HAVE_DARWIN_OS_FALSE=
16338 fi
16339     cat >>confdefs.h <<\_ACEOF
16340 #define HAVE_DARWIN_OS 1
16341 _ACEOF
16342
16343 else
16344
16345
16346 if $FALSEPRG; then
16347   HAVE_DARWIN_OS_TRUE=
16348   HAVE_DARWIN_OS_FALSE='#'
16349 else
16350   HAVE_DARWIN_OS_TRUE='#'
16351   HAVE_DARWIN_OS_FALSE=
16352 fi
16353 fi
16354
16355
16356 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16357 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16358 if test "x$DISTNAME" != "x"
16359 then
16360         echo "distname set to $DISTNAME"
16361 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16362 then
16363         DISTNAME=alpha
16364 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16365 then
16366         DISTNAME=aix
16367 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16368 then
16369         DISTNAME=hpux
16370 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16371 then
16372         DISTNAME=solaris
16373 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16374 then
16375         DISTNAME=freebsd
16376 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16377 then
16378         DISTNAME=netbsd
16379 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16380 then
16381         DISTNAME=openbsd
16382 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16383 then
16384         DISTNAME=irix
16385 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16386 then
16387         DISTNAME=bsdi
16388 elif test -f /etc/SuSE-release
16389 then
16390         DISTNAME=suse
16391 elif test -d /etc/SuSEconfig
16392 then
16393         DISTNAME=suse5
16394 elif test -f /etc/mandrake-release
16395 then
16396         DISTNAME=mandrake
16397 elif test -f /etc/whitebox-release
16398 then
16399        DISTNAME=redhat
16400 elif test -f /etc/redhat-release
16401 then
16402         DISTNAME=redhat
16403 elif test -f /etc/gentoo-release
16404 then
16405         DISTNAME=gentoo
16406 elif test -f /etc/debian_version
16407 then
16408         DISTNAME=debian
16409 elif test -f /etc/slackware-version
16410 then
16411         DISTNAME=slackware
16412 elif test x$host_vendor = xapple
16413 then
16414     DISTNAME=osx
16415 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16416 then
16417     DISTNAME=darwin
16418 elif test -f /etc/engarde-version
16419 then
16420         DISTNAME=engarde
16421 elif test "$CYGWIN" = yes
16422 then
16423         DISTNAME=cygwin
16424         cat >>confdefs.h <<\_ACEOF
16425 #define HAVE_CYGWIN 1
16426 _ACEOF
16427
16428 else
16429         DISTNAME=unknown
16430 fi
16431 { echo "$as_me:$LINENO: result: done" >&5
16432 echo "${ECHO_T}done" >&6; }
16433
16434
16435 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16436 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16437 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16438 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16439   echo $ECHO_N "(cached) $ECHO_C" >&6
16440 else
16441   cat >conftest.make <<\_ACEOF
16442 SHELL = /bin/sh
16443 all:
16444         @echo '@@@%%%=$(MAKE)=@@@%%%'
16445 _ACEOF
16446 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16447 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16448   *@@@%%%=?*=@@@%%%*)
16449     eval ac_cv_prog_make_${ac_make}_set=yes;;
16450   *)
16451     eval ac_cv_prog_make_${ac_make}_set=no;;
16452 esac
16453 rm -f conftest.make
16454 fi
16455 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16456   { echo "$as_me:$LINENO: result: yes" >&5
16457 echo "${ECHO_T}yes" >&6; }
16458   SET_MAKE=
16459 else
16460   { echo "$as_me:$LINENO: result: no" >&5
16461 echo "${ECHO_T}no" >&6; }
16462   SET_MAKE="MAKE=${MAKE-make}"
16463 fi
16464
16465
16466
16467         MKINSTALLDIRS=
16468   if test -n "$ac_aux_dir"; then
16469     case "$ac_aux_dir" in
16470       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16471       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16472     esac
16473   fi
16474   if test -z "$MKINSTALLDIRS"; then
16475     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16476   fi
16477
16478
16479
16480   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16481 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16482     # Check whether --enable-nls was given.
16483 if test "${enable_nls+set}" = set; then
16484   enableval=$enable_nls; USE_NLS=$enableval
16485 else
16486   USE_NLS=yes
16487 fi
16488
16489   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16490 echo "${ECHO_T}$USE_NLS" >&6; }
16491
16492
16493
16494
16495
16496
16497 # Prepare PATH_SEPARATOR.
16498 # The user is always right.
16499 if test "${PATH_SEPARATOR+set}" != set; then
16500   echo "#! /bin/sh" >conf$$.sh
16501   echo  "exit 0"   >>conf$$.sh
16502   chmod +x conf$$.sh
16503   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16504     PATH_SEPARATOR=';'
16505   else
16506     PATH_SEPARATOR=:
16507   fi
16508   rm -f conf$$.sh
16509 fi
16510
16511 # Find out how to test for executable files. Don't use a zero-byte file,
16512 # as systems may use methods other than mode bits to determine executability.
16513 cat >conf$$.file <<_ASEOF
16514 #! /bin/sh
16515 exit 0
16516 _ASEOF
16517 chmod +x conf$$.file
16518 if test -x conf$$.file >/dev/null 2>&1; then
16519   ac_executable_p="test -x"
16520 else
16521   ac_executable_p="test -f"
16522 fi
16523 rm -f conf$$.file
16524
16525 # Extract the first word of "msgfmt", so it can be a program name with args.
16526 set dummy msgfmt; ac_word=$2
16527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16529 if test "${ac_cv_path_MSGFMT+set}" = set; then
16530   echo $ECHO_N "(cached) $ECHO_C" >&6
16531 else
16532   case "$MSGFMT" in
16533   [\\/]* | ?:[\\/]*)
16534     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16535     ;;
16536   *)
16537     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16538     for ac_dir in $PATH; do
16539       IFS="$ac_save_IFS"
16540       test -z "$ac_dir" && ac_dir=.
16541       for ac_exec_ext in '' $ac_executable_extensions; do
16542         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16543           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16544           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16545      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16546             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16547             break 2
16548           fi
16549         fi
16550       done
16551     done
16552     IFS="$ac_save_IFS"
16553   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16554     ;;
16555 esac
16556 fi
16557 MSGFMT="$ac_cv_path_MSGFMT"
16558 if test "$MSGFMT" != ":"; then
16559   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16560 echo "${ECHO_T}$MSGFMT" >&6; }
16561 else
16562   { echo "$as_me:$LINENO: result: no" >&5
16563 echo "${ECHO_T}no" >&6; }
16564 fi
16565
16566   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16567 set dummy gmsgfmt; ac_word=$2
16568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16570 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16571   echo $ECHO_N "(cached) $ECHO_C" >&6
16572 else
16573   case $GMSGFMT in
16574   [\\/]* | ?:[\\/]*)
16575   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16576   ;;
16577   *)
16578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16579 for as_dir in $PATH
16580 do
16581   IFS=$as_save_IFS
16582   test -z "$as_dir" && as_dir=.
16583   for ac_exec_ext in '' $ac_executable_extensions; do
16584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16585     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16587     break 2
16588   fi
16589 done
16590 done
16591 IFS=$as_save_IFS
16592
16593   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16594   ;;
16595 esac
16596 fi
16597 GMSGFMT=$ac_cv_path_GMSGFMT
16598 if test -n "$GMSGFMT"; then
16599   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16600 echo "${ECHO_T}$GMSGFMT" >&6; }
16601 else
16602   { echo "$as_me:$LINENO: result: no" >&5
16603 echo "${ECHO_T}no" >&6; }
16604 fi
16605
16606
16607
16608
16609 # Prepare PATH_SEPARATOR.
16610 # The user is always right.
16611 if test "${PATH_SEPARATOR+set}" != set; then
16612   echo "#! /bin/sh" >conf$$.sh
16613   echo  "exit 0"   >>conf$$.sh
16614   chmod +x conf$$.sh
16615   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16616     PATH_SEPARATOR=';'
16617   else
16618     PATH_SEPARATOR=:
16619   fi
16620   rm -f conf$$.sh
16621 fi
16622
16623 # Find out how to test for executable files. Don't use a zero-byte file,
16624 # as systems may use methods other than mode bits to determine executability.
16625 cat >conf$$.file <<_ASEOF
16626 #! /bin/sh
16627 exit 0
16628 _ASEOF
16629 chmod +x conf$$.file
16630 if test -x conf$$.file >/dev/null 2>&1; then
16631   ac_executable_p="test -x"
16632 else
16633   ac_executable_p="test -f"
16634 fi
16635 rm -f conf$$.file
16636
16637 # Extract the first word of "xgettext", so it can be a program name with args.
16638 set dummy xgettext; ac_word=$2
16639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16641 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16642   echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644   case "$XGETTEXT" in
16645   [\\/]* | ?:[\\/]*)
16646     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16647     ;;
16648   *)
16649     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16650     for ac_dir in $PATH; do
16651       IFS="$ac_save_IFS"
16652       test -z "$ac_dir" && ac_dir=.
16653       for ac_exec_ext in '' $ac_executable_extensions; do
16654         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16655           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16656           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16657      (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
16658             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16659             break 2
16660           fi
16661         fi
16662       done
16663     done
16664     IFS="$ac_save_IFS"
16665   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16666     ;;
16667 esac
16668 fi
16669 XGETTEXT="$ac_cv_path_XGETTEXT"
16670 if test "$XGETTEXT" != ":"; then
16671   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16672 echo "${ECHO_T}$XGETTEXT" >&6; }
16673 else
16674   { echo "$as_me:$LINENO: result: no" >&5
16675 echo "${ECHO_T}no" >&6; }
16676 fi
16677
16678     rm -f messages.po
16679
16680
16681 # Prepare PATH_SEPARATOR.
16682 # The user is always right.
16683 if test "${PATH_SEPARATOR+set}" != set; then
16684   echo "#! /bin/sh" >conf$$.sh
16685   echo  "exit 0"   >>conf$$.sh
16686   chmod +x conf$$.sh
16687   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16688     PATH_SEPARATOR=';'
16689   else
16690     PATH_SEPARATOR=:
16691   fi
16692   rm -f conf$$.sh
16693 fi
16694
16695 # Find out how to test for executable files. Don't use a zero-byte file,
16696 # as systems may use methods other than mode bits to determine executability.
16697 cat >conf$$.file <<_ASEOF
16698 #! /bin/sh
16699 exit 0
16700 _ASEOF
16701 chmod +x conf$$.file
16702 if test -x conf$$.file >/dev/null 2>&1; then
16703   ac_executable_p="test -x"
16704 else
16705   ac_executable_p="test -f"
16706 fi
16707 rm -f conf$$.file
16708
16709 # Extract the first word of "msgmerge", so it can be a program name with args.
16710 set dummy msgmerge; ac_word=$2
16711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16713 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16714   echo $ECHO_N "(cached) $ECHO_C" >&6
16715 else
16716   case "$MSGMERGE" in
16717   [\\/]* | ?:[\\/]*)
16718     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16719     ;;
16720   *)
16721     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16722     for ac_dir in $PATH; do
16723       IFS="$ac_save_IFS"
16724       test -z "$ac_dir" && ac_dir=.
16725       for ac_exec_ext in '' $ac_executable_extensions; do
16726         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16727           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16728           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16729             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16730             break 2
16731           fi
16732         fi
16733       done
16734     done
16735     IFS="$ac_save_IFS"
16736   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16737     ;;
16738 esac
16739 fi
16740 MSGMERGE="$ac_cv_path_MSGMERGE"
16741 if test "$MSGMERGE" != ":"; then
16742   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16743 echo "${ECHO_T}$MSGMERGE" >&6; }
16744 else
16745   { echo "$as_me:$LINENO: result: no" >&5
16746 echo "${ECHO_T}no" >&6; }
16747 fi
16748
16749
16750       if test "$GMSGFMT" != ":"; then
16751             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16752        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16753       : ;
16754     else
16755       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16756       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16757 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16758       GMSGFMT=":"
16759     fi
16760   fi
16761
16762       if test "$XGETTEXT" != ":"; then
16763             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16764        (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
16765       : ;
16766     else
16767       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16768 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16769       XGETTEXT=":"
16770     fi
16771         rm -f messages.po
16772   fi
16773
16774   ac_config_commands="$ac_config_commands default-1"
16775
16776
16777
16778       if test "X$prefix" = "XNONE"; then
16779     acl_final_prefix="$ac_default_prefix"
16780   else
16781     acl_final_prefix="$prefix"
16782   fi
16783   if test "X$exec_prefix" = "XNONE"; then
16784     acl_final_exec_prefix='${prefix}'
16785   else
16786     acl_final_exec_prefix="$exec_prefix"
16787   fi
16788   acl_save_prefix="$prefix"
16789   prefix="$acl_final_prefix"
16790   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16791   prefix="$acl_save_prefix"
16792
16793
16794 # Check whether --with-gnu-ld was given.
16795 if test "${with_gnu_ld+set}" = set; then
16796   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16797 else
16798   with_gnu_ld=no
16799 fi
16800
16801 # Prepare PATH_SEPARATOR.
16802 # The user is always right.
16803 if test "${PATH_SEPARATOR+set}" != set; then
16804   echo "#! /bin/sh" >conf$$.sh
16805   echo  "exit 0"   >>conf$$.sh
16806   chmod +x conf$$.sh
16807   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16808     PATH_SEPARATOR=';'
16809   else
16810     PATH_SEPARATOR=:
16811   fi
16812   rm -f conf$$.sh
16813 fi
16814 ac_prog=ld
16815 if test "$GCC" = yes; then
16816   # Check if gcc -print-prog-name=ld gives a path.
16817   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16818 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16819   case $host in
16820   *-*-mingw*)
16821     # gcc leaves a trailing carriage return which upsets mingw
16822     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16823   *)
16824     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16825   esac
16826   case $ac_prog in
16827     # Accept absolute paths.
16828     [\\/]* | [A-Za-z]:[\\/]*)
16829       re_direlt='/[^/][^/]*/\.\./'
16830       # Canonicalize the path of ld
16831       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16832       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16833         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16834       done
16835       test -z "$LD" && LD="$ac_prog"
16836       ;;
16837   "")
16838     # If it fails, then pretend we aren't using GCC.
16839     ac_prog=ld
16840     ;;
16841   *)
16842     # If it is relative, then search for the first ld in PATH.
16843     with_gnu_ld=unknown
16844     ;;
16845   esac
16846 elif test "$with_gnu_ld" = yes; then
16847   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16848 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16849 else
16850   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16851 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16852 fi
16853 if test "${acl_cv_path_LD+set}" = set; then
16854   echo $ECHO_N "(cached) $ECHO_C" >&6
16855 else
16856   if test -z "$LD"; then
16857   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16858   for ac_dir in $PATH; do
16859     test -z "$ac_dir" && ac_dir=.
16860     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16861       acl_cv_path_LD="$ac_dir/$ac_prog"
16862       # Check to see if the program is GNU ld.  I'd rather use --version,
16863       # but apparently some GNU ld's only accept -v.
16864       # Break only if it was the GNU/non-GNU ld that we prefer.
16865       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16866       *GNU* | *'with BFD'*)
16867         test "$with_gnu_ld" != no && break ;;
16868       *)
16869         test "$with_gnu_ld" != yes && break ;;
16870       esac
16871     fi
16872   done
16873   IFS="$ac_save_ifs"
16874 else
16875   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16876 fi
16877 fi
16878
16879 LD="$acl_cv_path_LD"
16880 if test -n "$LD"; then
16881   { echo "$as_me:$LINENO: result: $LD" >&5
16882 echo "${ECHO_T}$LD" >&6; }
16883 else
16884   { echo "$as_me:$LINENO: result: no" >&5
16885 echo "${ECHO_T}no" >&6; }
16886 fi
16887 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16888 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16889    { (exit 1); exit 1; }; }
16890 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16891 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16892 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16893   echo $ECHO_N "(cached) $ECHO_C" >&6
16894 else
16895   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16896 case `$LD -v 2>&1 </dev/null` in
16897 *GNU* | *'with BFD'*)
16898   acl_cv_prog_gnu_ld=yes ;;
16899 *)
16900   acl_cv_prog_gnu_ld=no ;;
16901 esac
16902 fi
16903 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16904 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16905 with_gnu_ld=$acl_cv_prog_gnu_ld
16906
16907
16908
16909
16910                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16911 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16912 if test "${acl_cv_rpath+set}" = set; then
16913   echo $ECHO_N "(cached) $ECHO_C" >&6
16914 else
16915
16916     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16917     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16918     . ./conftest.sh
16919     rm -f ./conftest.sh
16920     acl_cv_rpath=done
16921
16922 fi
16923 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16924 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16925   wl="$acl_cv_wl"
16926   libext="$acl_cv_libext"
16927   shlibext="$acl_cv_shlibext"
16928   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16929   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16930   hardcode_direct="$acl_cv_hardcode_direct"
16931   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16932     # Check whether --enable-rpath was given.
16933 if test "${enable_rpath+set}" = set; then
16934   enableval=$enable_rpath; :
16935 else
16936   enable_rpath=yes
16937 fi
16938
16939
16940
16941
16942
16943
16944
16945
16946     use_additional=yes
16947
16948   acl_save_prefix="$prefix"
16949   prefix="$acl_final_prefix"
16950   acl_save_exec_prefix="$exec_prefix"
16951   exec_prefix="$acl_final_exec_prefix"
16952
16953     eval additional_includedir=\"$includedir\"
16954     eval additional_libdir=\"$libdir\"
16955
16956   exec_prefix="$acl_save_exec_prefix"
16957   prefix="$acl_save_prefix"
16958
16959
16960 # Check whether --with-libiconv-prefix was given.
16961 if test "${with_libiconv_prefix+set}" = set; then
16962   withval=$with_libiconv_prefix;
16963     if test "X$withval" = "Xno"; then
16964       use_additional=no
16965     else
16966       if test "X$withval" = "X"; then
16967
16968   acl_save_prefix="$prefix"
16969   prefix="$acl_final_prefix"
16970   acl_save_exec_prefix="$exec_prefix"
16971   exec_prefix="$acl_final_exec_prefix"
16972
16973           eval additional_includedir=\"$includedir\"
16974           eval additional_libdir=\"$libdir\"
16975
16976   exec_prefix="$acl_save_exec_prefix"
16977   prefix="$acl_save_prefix"
16978
16979       else
16980         additional_includedir="$withval/include"
16981         additional_libdir="$withval/lib"
16982       fi
16983     fi
16984
16985 fi
16986
16987       LIBICONV=
16988   LTLIBICONV=
16989   INCICONV=
16990   rpathdirs=
16991   ltrpathdirs=
16992   names_already_handled=
16993   names_next_round='iconv '
16994   while test -n "$names_next_round"; do
16995     names_this_round="$names_next_round"
16996     names_next_round=
16997     for name in $names_this_round; do
16998       already_handled=
16999       for n in $names_already_handled; do
17000         if test "$n" = "$name"; then
17001           already_handled=yes
17002           break
17003         fi
17004       done
17005       if test -z "$already_handled"; then
17006         names_already_handled="$names_already_handled $name"
17007                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17008         eval value=\"\$HAVE_LIB$uppername\"
17009         if test -n "$value"; then
17010           if test "$value" = yes; then
17011             eval value=\"\$LIB$uppername\"
17012             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17013             eval value=\"\$LTLIB$uppername\"
17014             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17015           else
17016                                     :
17017           fi
17018         else
17019                               found_dir=
17020           found_la=
17021           found_so=
17022           found_a=
17023           if test $use_additional = yes; then
17024             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17025               found_dir="$additional_libdir"
17026               found_so="$additional_libdir/lib$name.$shlibext"
17027               if test -f "$additional_libdir/lib$name.la"; then
17028                 found_la="$additional_libdir/lib$name.la"
17029               fi
17030             else
17031               if test -f "$additional_libdir/lib$name.$libext"; then
17032                 found_dir="$additional_libdir"
17033                 found_a="$additional_libdir/lib$name.$libext"
17034                 if test -f "$additional_libdir/lib$name.la"; then
17035                   found_la="$additional_libdir/lib$name.la"
17036                 fi
17037               fi
17038             fi
17039           fi
17040           if test "X$found_dir" = "X"; then
17041             for x in $LDFLAGS $LTLIBICONV; do
17042
17043   acl_save_prefix="$prefix"
17044   prefix="$acl_final_prefix"
17045   acl_save_exec_prefix="$exec_prefix"
17046   exec_prefix="$acl_final_exec_prefix"
17047   eval x=\"$x\"
17048   exec_prefix="$acl_save_exec_prefix"
17049   prefix="$acl_save_prefix"
17050
17051               case "$x" in
17052                 -L*)
17053                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17054                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17055                     found_dir="$dir"
17056                     found_so="$dir/lib$name.$shlibext"
17057                     if test -f "$dir/lib$name.la"; then
17058                       found_la="$dir/lib$name.la"
17059                     fi
17060                   else
17061                     if test -f "$dir/lib$name.$libext"; then
17062                       found_dir="$dir"
17063                       found_a="$dir/lib$name.$libext"
17064                       if test -f "$dir/lib$name.la"; then
17065                         found_la="$dir/lib$name.la"
17066                       fi
17067                     fi
17068                   fi
17069                   ;;
17070               esac
17071               if test "X$found_dir" != "X"; then
17072                 break
17073               fi
17074             done
17075           fi
17076           if test "X$found_dir" != "X"; then
17077                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17078             if test "X$found_so" != "X"; then
17079                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17080                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17081               else
17082                                                                                 haveit=
17083                 for x in $ltrpathdirs; do
17084                   if test "X$x" = "X$found_dir"; then
17085                     haveit=yes
17086                     break
17087                   fi
17088                 done
17089                 if test -z "$haveit"; then
17090                   ltrpathdirs="$ltrpathdirs $found_dir"
17091                 fi
17092                                 if test "$hardcode_direct" = yes; then
17093                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17094                 else
17095                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17096                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17097                                                             haveit=
17098                     for x in $rpathdirs; do
17099                       if test "X$x" = "X$found_dir"; then
17100                         haveit=yes
17101                         break
17102                       fi
17103                     done
17104                     if test -z "$haveit"; then
17105                       rpathdirs="$rpathdirs $found_dir"
17106                     fi
17107                   else
17108                                                                                 haveit=
17109                     for x in $LDFLAGS $LIBICONV; do
17110
17111   acl_save_prefix="$prefix"
17112   prefix="$acl_final_prefix"
17113   acl_save_exec_prefix="$exec_prefix"
17114   exec_prefix="$acl_final_exec_prefix"
17115   eval x=\"$x\"
17116   exec_prefix="$acl_save_exec_prefix"
17117   prefix="$acl_save_prefix"
17118
17119                       if test "X$x" = "X-L$found_dir"; then
17120                         haveit=yes
17121                         break
17122                       fi
17123                     done
17124                     if test -z "$haveit"; then
17125                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17126                     fi
17127                     if test "$hardcode_minus_L" != no; then
17128                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17129                     else
17130                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17131                     fi
17132                   fi
17133                 fi
17134               fi
17135             else
17136               if test "X$found_a" != "X"; then
17137                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17138               else
17139                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17140               fi
17141             fi
17142                         additional_includedir=
17143             case "$found_dir" in
17144               */lib | */lib/)
17145                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17146                 additional_includedir="$basedir/include"
17147                 ;;
17148             esac
17149             if test "X$additional_includedir" != "X"; then
17150                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17151                 haveit=
17152                 if test "X$additional_includedir" = "X/usr/local/include"; then
17153                   if test -n "$GCC"; then
17154                     case $host_os in
17155                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17156                     esac
17157                   fi
17158                 fi
17159                 if test -z "$haveit"; then
17160                   for x in $CPPFLAGS $INCICONV; do
17161
17162   acl_save_prefix="$prefix"
17163   prefix="$acl_final_prefix"
17164   acl_save_exec_prefix="$exec_prefix"
17165   exec_prefix="$acl_final_exec_prefix"
17166   eval x=\"$x\"
17167   exec_prefix="$acl_save_exec_prefix"
17168   prefix="$acl_save_prefix"
17169
17170                     if test "X$x" = "X-I$additional_includedir"; then
17171                       haveit=yes
17172                       break
17173                     fi
17174                   done
17175                   if test -z "$haveit"; then
17176                     if test -d "$additional_includedir"; then
17177                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17178                     fi
17179                   fi
17180                 fi
17181               fi
17182             fi
17183                         if test -n "$found_la"; then
17184                                                         save_libdir="$libdir"
17185               case "$found_la" in
17186                 */* | *\\*) . "$found_la" ;;
17187                 *) . "./$found_la" ;;
17188               esac
17189               libdir="$save_libdir"
17190                             for dep in $dependency_libs; do
17191                 case "$dep" in
17192                   -L*)
17193                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17194                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17195                       haveit=
17196                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17197                         if test -n "$GCC"; then
17198                           case $host_os in
17199                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17200                           esac
17201                         fi
17202                       fi
17203                       if test -z "$haveit"; then
17204                         haveit=
17205                         for x in $LDFLAGS $LIBICONV; do
17206
17207   acl_save_prefix="$prefix"
17208   prefix="$acl_final_prefix"
17209   acl_save_exec_prefix="$exec_prefix"
17210   exec_prefix="$acl_final_exec_prefix"
17211   eval x=\"$x\"
17212   exec_prefix="$acl_save_exec_prefix"
17213   prefix="$acl_save_prefix"
17214
17215                           if test "X$x" = "X-L$additional_libdir"; then
17216                             haveit=yes
17217                             break
17218                           fi
17219                         done
17220                         if test -z "$haveit"; then
17221                           if test -d "$additional_libdir"; then
17222                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17223                           fi
17224                         fi
17225                         haveit=
17226                         for x in $LDFLAGS $LTLIBICONV; do
17227
17228   acl_save_prefix="$prefix"
17229   prefix="$acl_final_prefix"
17230   acl_save_exec_prefix="$exec_prefix"
17231   exec_prefix="$acl_final_exec_prefix"
17232   eval x=\"$x\"
17233   exec_prefix="$acl_save_exec_prefix"
17234   prefix="$acl_save_prefix"
17235
17236                           if test "X$x" = "X-L$additional_libdir"; then
17237                             haveit=yes
17238                             break
17239                           fi
17240                         done
17241                         if test -z "$haveit"; then
17242                           if test -d "$additional_libdir"; then
17243                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17244                           fi
17245                         fi
17246                       fi
17247                     fi
17248                     ;;
17249                   -R*)
17250                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17251                     if test "$enable_rpath" != no; then
17252                                                                   haveit=
17253                       for x in $rpathdirs; do
17254                         if test "X$x" = "X$dir"; then
17255                           haveit=yes
17256                           break
17257                         fi
17258                       done
17259                       if test -z "$haveit"; then
17260                         rpathdirs="$rpathdirs $dir"
17261                       fi
17262                                                                   haveit=
17263                       for x in $ltrpathdirs; do
17264                         if test "X$x" = "X$dir"; then
17265                           haveit=yes
17266                           break
17267                         fi
17268                       done
17269                       if test -z "$haveit"; then
17270                         ltrpathdirs="$ltrpathdirs $dir"
17271                       fi
17272                     fi
17273                     ;;
17274                   -l*)
17275                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17276                     ;;
17277                   *.la)
17278                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17279                     ;;
17280                   *)
17281                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17282                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17283                     ;;
17284                 esac
17285               done
17286             fi
17287           else
17288                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17289             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17290           fi
17291         fi
17292       fi
17293     done
17294   done
17295   if test "X$rpathdirs" != "X"; then
17296     if test -n "$hardcode_libdir_separator"; then
17297                         alldirs=
17298       for found_dir in $rpathdirs; do
17299         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17300       done
17301             acl_save_libdir="$libdir"
17302       libdir="$alldirs"
17303       eval flag=\"$hardcode_libdir_flag_spec\"
17304       libdir="$acl_save_libdir"
17305       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17306     else
17307             for found_dir in $rpathdirs; do
17308         acl_save_libdir="$libdir"
17309         libdir="$found_dir"
17310         eval flag=\"$hardcode_libdir_flag_spec\"
17311         libdir="$acl_save_libdir"
17312         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17313       done
17314     fi
17315   fi
17316   if test "X$ltrpathdirs" != "X"; then
17317             for found_dir in $ltrpathdirs; do
17318       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17319     done
17320   fi
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17340 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17341 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17342   echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344   gt_save_CPPFLAGS="$CPPFLAGS"
17345      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17346      gt_save_LIBS="$LIBS"
17347      LIBS="$LIBS -framework CoreFoundation"
17348      cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h.  */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h.  */
17354 #include <CFPreferences.h>
17355 int
17356 main ()
17357 {
17358 CFPreferencesCopyAppValue(NULL, NULL)
17359   ;
17360   return 0;
17361 }
17362 _ACEOF
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (ac_try="$ac_link"
17365 case "(($ac_try" in
17366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367   *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370   (eval "$ac_link") 2>conftest.er1
17371   ac_status=$?
17372   grep -v '^ *+' conftest.er1 >conftest.err
17373   rm -f conftest.er1
17374   cat conftest.err >&5
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } && {
17377          test -z "$ac_c_werror_flag" ||
17378          test ! -s conftest.err
17379        } && test -s conftest$ac_exeext &&
17380        $as_test_x conftest$ac_exeext; then
17381   gt_cv_func_CFPreferencesCopyAppValue=yes
17382 else
17383   echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17385
17386         gt_cv_func_CFPreferencesCopyAppValue=no
17387 fi
17388
17389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17390       conftest$ac_exeext conftest.$ac_ext
17391      CPPFLAGS="$gt_save_CPPFLAGS"
17392      LIBS="$gt_save_LIBS"
17393 fi
17394 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17395 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17396   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17397
17398 cat >>confdefs.h <<\_ACEOF
17399 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17400 _ACEOF
17401
17402   fi
17403     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17404 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17405 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17406   echo $ECHO_N "(cached) $ECHO_C" >&6
17407 else
17408   gt_save_CPPFLAGS="$CPPFLAGS"
17409      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17410      gt_save_LIBS="$LIBS"
17411      LIBS="$LIBS -framework CoreFoundation"
17412      cat >conftest.$ac_ext <<_ACEOF
17413 /* confdefs.h.  */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h.  */
17418 #include <CFLocale.h>
17419 int
17420 main ()
17421 {
17422 CFLocaleCopyCurrent();
17423   ;
17424   return 0;
17425 }
17426 _ACEOF
17427 rm -f conftest.$ac_objext conftest$ac_exeext
17428 if { (ac_try="$ac_link"
17429 case "(($ac_try" in
17430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431   *) ac_try_echo=$ac_try;;
17432 esac
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434   (eval "$ac_link") 2>conftest.er1
17435   ac_status=$?
17436   grep -v '^ *+' conftest.er1 >conftest.err
17437   rm -f conftest.er1
17438   cat conftest.err >&5
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); } && {
17441          test -z "$ac_c_werror_flag" ||
17442          test ! -s conftest.err
17443        } && test -s conftest$ac_exeext &&
17444        $as_test_x conftest$ac_exeext; then
17445   gt_cv_func_CFLocaleCopyCurrent=yes
17446 else
17447   echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17449
17450         gt_cv_func_CFLocaleCopyCurrent=no
17451 fi
17452
17453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17454       conftest$ac_exeext conftest.$ac_ext
17455      CPPFLAGS="$gt_save_CPPFLAGS"
17456      LIBS="$gt_save_LIBS"
17457 fi
17458 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17459 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17460   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17461
17462 cat >>confdefs.h <<\_ACEOF
17463 #define HAVE_CFLOCALECOPYCURRENT 1
17464 _ACEOF
17465
17466   fi
17467   INTL_MACOSX_LIBS=
17468   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17469     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17470   fi
17471
17472
17473
17474
17475   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17476 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17477     # Check whether --enable-nls was given.
17478 if test "${enable_nls+set}" = set; then
17479   enableval=$enable_nls; USE_NLS=$enableval
17480 else
17481   USE_NLS=yes
17482 fi
17483
17484   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17485 echo "${ECHO_T}$USE_NLS" >&6; }
17486
17487
17488
17489
17490   LIBINTL=
17491   LTLIBINTL=
17492   POSUB=
17493
17494     if test "$USE_NLS" = "yes"; then
17495     gt_use_preinstalled_gnugettext=no
17496
17497
17498
17499
17500
17501
17502         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17503 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17504 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17505   echo $ECHO_N "(cached) $ECHO_C" >&6
17506 else
17507   cat >conftest.$ac_ext <<_ACEOF
17508 /* confdefs.h.  */
17509 _ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h.  */
17513 #include <libintl.h>
17514 extern int _nl_msg_cat_cntr;
17515 extern int *_nl_domain_bindings;
17516 int
17517 main ()
17518 {
17519 bindtextdomain ("", "");
17520 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (ac_try="$ac_link"
17527 case "(($ac_try" in
17528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529   *) ac_try_echo=$ac_try;;
17530 esac
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532   (eval "$ac_link") 2>conftest.er1
17533   ac_status=$?
17534   grep -v '^ *+' conftest.er1 >conftest.err
17535   rm -f conftest.er1
17536   cat conftest.err >&5
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); } && {
17539          test -z "$ac_c_werror_flag" ||
17540          test ! -s conftest.err
17541        } && test -s conftest$ac_exeext &&
17542        $as_test_x conftest$ac_exeext; then
17543   gt_cv_func_gnugettext1_libc=yes
17544 else
17545   echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17547
17548         gt_cv_func_gnugettext1_libc=no
17549 fi
17550
17551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17552       conftest$ac_exeext conftest.$ac_ext
17553 fi
17554 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17555 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17556
17557         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17558
17559
17560
17561
17562
17563           am_save_CPPFLAGS="$CPPFLAGS"
17564
17565   for element in $INCICONV; do
17566     haveit=
17567     for x in $CPPFLAGS; do
17568
17569   acl_save_prefix="$prefix"
17570   prefix="$acl_final_prefix"
17571   acl_save_exec_prefix="$exec_prefix"
17572   exec_prefix="$acl_final_exec_prefix"
17573   eval x=\"$x\"
17574   exec_prefix="$acl_save_exec_prefix"
17575   prefix="$acl_save_prefix"
17576
17577       if test "X$x" = "X$element"; then
17578         haveit=yes
17579         break
17580       fi
17581     done
17582     if test -z "$haveit"; then
17583       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17584     fi
17585   done
17586
17587
17588   { echo "$as_me:$LINENO: checking for iconv" >&5
17589 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17590 if test "${am_cv_func_iconv+set}" = set; then
17591   echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593
17594     am_cv_func_iconv="no, consider installing GNU libiconv"
17595     am_cv_lib_iconv=no
17596     cat >conftest.$ac_ext <<_ACEOF
17597 /* confdefs.h.  */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h.  */
17602 #include <stdlib.h>
17603 #include <iconv.h>
17604 int
17605 main ()
17606 {
17607 iconv_t cd = iconv_open("","");
17608        iconv(cd,NULL,NULL,NULL,NULL);
17609        iconv_close(cd);
17610   ;
17611   return 0;
17612 }
17613 _ACEOF
17614 rm -f conftest.$ac_objext conftest$ac_exeext
17615 if { (ac_try="$ac_link"
17616 case "(($ac_try" in
17617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618   *) ac_try_echo=$ac_try;;
17619 esac
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621   (eval "$ac_link") 2>conftest.er1
17622   ac_status=$?
17623   grep -v '^ *+' conftest.er1 >conftest.err
17624   rm -f conftest.er1
17625   cat conftest.err >&5
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); } && {
17628          test -z "$ac_c_werror_flag" ||
17629          test ! -s conftest.err
17630        } && test -s conftest$ac_exeext &&
17631        $as_test_x conftest$ac_exeext; then
17632   am_cv_func_iconv=yes
17633 else
17634   echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17636
17637
17638 fi
17639
17640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17641       conftest$ac_exeext conftest.$ac_ext
17642     if test "$am_cv_func_iconv" != yes; then
17643       am_save_LIBS="$LIBS"
17644       LIBS="$LIBS $LIBICONV"
17645       cat >conftest.$ac_ext <<_ACEOF
17646 /* confdefs.h.  */
17647 _ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h.  */
17651 #include <stdlib.h>
17652 #include <iconv.h>
17653 int
17654 main ()
17655 {
17656 iconv_t cd = iconv_open("","");
17657          iconv(cd,NULL,NULL,NULL,NULL);
17658          iconv_close(cd);
17659   ;
17660   return 0;
17661 }
17662 _ACEOF
17663 rm -f conftest.$ac_objext conftest$ac_exeext
17664 if { (ac_try="$ac_link"
17665 case "(($ac_try" in
17666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667   *) ac_try_echo=$ac_try;;
17668 esac
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670   (eval "$ac_link") 2>conftest.er1
17671   ac_status=$?
17672   grep -v '^ *+' conftest.er1 >conftest.err
17673   rm -f conftest.er1
17674   cat conftest.err >&5
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); } && {
17677          test -z "$ac_c_werror_flag" ||
17678          test ! -s conftest.err
17679        } && test -s conftest$ac_exeext &&
17680        $as_test_x conftest$ac_exeext; then
17681   am_cv_lib_iconv=yes
17682         am_cv_func_iconv=yes
17683 else
17684   echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17686
17687
17688 fi
17689
17690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17691       conftest$ac_exeext conftest.$ac_ext
17692       LIBS="$am_save_LIBS"
17693     fi
17694
17695 fi
17696 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17697 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17698   if test "$am_cv_func_iconv" = yes; then
17699
17700 cat >>confdefs.h <<\_ACEOF
17701 #define HAVE_ICONV 1
17702 _ACEOF
17703
17704   fi
17705   if test "$am_cv_lib_iconv" = yes; then
17706     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17707 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17708     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17709 echo "${ECHO_T}$LIBICONV" >&6; }
17710   else
17711             CPPFLAGS="$am_save_CPPFLAGS"
17712     LIBICONV=
17713     LTLIBICONV=
17714   fi
17715
17716
17717
17718
17719
17720
17721     use_additional=yes
17722
17723   acl_save_prefix="$prefix"
17724   prefix="$acl_final_prefix"
17725   acl_save_exec_prefix="$exec_prefix"
17726   exec_prefix="$acl_final_exec_prefix"
17727
17728     eval additional_includedir=\"$includedir\"
17729     eval additional_libdir=\"$libdir\"
17730
17731   exec_prefix="$acl_save_exec_prefix"
17732   prefix="$acl_save_prefix"
17733
17734
17735 # Check whether --with-libintl-prefix was given.
17736 if test "${with_libintl_prefix+set}" = set; then
17737   withval=$with_libintl_prefix;
17738     if test "X$withval" = "Xno"; then
17739       use_additional=no
17740     else
17741       if test "X$withval" = "X"; then
17742
17743   acl_save_prefix="$prefix"
17744   prefix="$acl_final_prefix"
17745   acl_save_exec_prefix="$exec_prefix"
17746   exec_prefix="$acl_final_exec_prefix"
17747
17748           eval additional_includedir=\"$includedir\"
17749           eval additional_libdir=\"$libdir\"
17750
17751   exec_prefix="$acl_save_exec_prefix"
17752   prefix="$acl_save_prefix"
17753
17754       else
17755         additional_includedir="$withval/include"
17756         additional_libdir="$withval/lib"
17757       fi
17758     fi
17759
17760 fi
17761
17762       LIBINTL=
17763   LTLIBINTL=
17764   INCINTL=
17765   rpathdirs=
17766   ltrpathdirs=
17767   names_already_handled=
17768   names_next_round='intl '
17769   while test -n "$names_next_round"; do
17770     names_this_round="$names_next_round"
17771     names_next_round=
17772     for name in $names_this_round; do
17773       already_handled=
17774       for n in $names_already_handled; do
17775         if test "$n" = "$name"; then
17776           already_handled=yes
17777           break
17778         fi
17779       done
17780       if test -z "$already_handled"; then
17781         names_already_handled="$names_already_handled $name"
17782                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17783         eval value=\"\$HAVE_LIB$uppername\"
17784         if test -n "$value"; then
17785           if test "$value" = yes; then
17786             eval value=\"\$LIB$uppername\"
17787             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17788             eval value=\"\$LTLIB$uppername\"
17789             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17790           else
17791                                     :
17792           fi
17793         else
17794                               found_dir=
17795           found_la=
17796           found_so=
17797           found_a=
17798           if test $use_additional = yes; then
17799             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17800               found_dir="$additional_libdir"
17801               found_so="$additional_libdir/lib$name.$shlibext"
17802               if test -f "$additional_libdir/lib$name.la"; then
17803                 found_la="$additional_libdir/lib$name.la"
17804               fi
17805             else
17806               if test -f "$additional_libdir/lib$name.$libext"; then
17807                 found_dir="$additional_libdir"
17808                 found_a="$additional_libdir/lib$name.$libext"
17809                 if test -f "$additional_libdir/lib$name.la"; then
17810                   found_la="$additional_libdir/lib$name.la"
17811                 fi
17812               fi
17813             fi
17814           fi
17815           if test "X$found_dir" = "X"; then
17816             for x in $LDFLAGS $LTLIBINTL; do
17817
17818   acl_save_prefix="$prefix"
17819   prefix="$acl_final_prefix"
17820   acl_save_exec_prefix="$exec_prefix"
17821   exec_prefix="$acl_final_exec_prefix"
17822   eval x=\"$x\"
17823   exec_prefix="$acl_save_exec_prefix"
17824   prefix="$acl_save_prefix"
17825
17826               case "$x" in
17827                 -L*)
17828                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17829                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17830                     found_dir="$dir"
17831                     found_so="$dir/lib$name.$shlibext"
17832                     if test -f "$dir/lib$name.la"; then
17833                       found_la="$dir/lib$name.la"
17834                     fi
17835                   else
17836                     if test -f "$dir/lib$name.$libext"; then
17837                       found_dir="$dir"
17838                       found_a="$dir/lib$name.$libext"
17839                       if test -f "$dir/lib$name.la"; then
17840                         found_la="$dir/lib$name.la"
17841                       fi
17842                     fi
17843                   fi
17844                   ;;
17845               esac
17846               if test "X$found_dir" != "X"; then
17847                 break
17848               fi
17849             done
17850           fi
17851           if test "X$found_dir" != "X"; then
17852                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17853             if test "X$found_so" != "X"; then
17854                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17855                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17856               else
17857                                                                                 haveit=
17858                 for x in $ltrpathdirs; do
17859                   if test "X$x" = "X$found_dir"; then
17860                     haveit=yes
17861                     break
17862                   fi
17863                 done
17864                 if test -z "$haveit"; then
17865                   ltrpathdirs="$ltrpathdirs $found_dir"
17866                 fi
17867                                 if test "$hardcode_direct" = yes; then
17868                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17869                 else
17870                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17871                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17872                                                             haveit=
17873                     for x in $rpathdirs; do
17874                       if test "X$x" = "X$found_dir"; then
17875                         haveit=yes
17876                         break
17877                       fi
17878                     done
17879                     if test -z "$haveit"; then
17880                       rpathdirs="$rpathdirs $found_dir"
17881                     fi
17882                   else
17883                                                                                 haveit=
17884                     for x in $LDFLAGS $LIBINTL; do
17885
17886   acl_save_prefix="$prefix"
17887   prefix="$acl_final_prefix"
17888   acl_save_exec_prefix="$exec_prefix"
17889   exec_prefix="$acl_final_exec_prefix"
17890   eval x=\"$x\"
17891   exec_prefix="$acl_save_exec_prefix"
17892   prefix="$acl_save_prefix"
17893
17894                       if test "X$x" = "X-L$found_dir"; then
17895                         haveit=yes
17896                         break
17897                       fi
17898                     done
17899                     if test -z "$haveit"; then
17900                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17901                     fi
17902                     if test "$hardcode_minus_L" != no; then
17903                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17904                     else
17905                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17906                     fi
17907                   fi
17908                 fi
17909               fi
17910             else
17911               if test "X$found_a" != "X"; then
17912                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17913               else
17914                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17915               fi
17916             fi
17917                         additional_includedir=
17918             case "$found_dir" in
17919               */lib | */lib/)
17920                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17921                 additional_includedir="$basedir/include"
17922                 ;;
17923             esac
17924             if test "X$additional_includedir" != "X"; then
17925                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17926                 haveit=
17927                 if test "X$additional_includedir" = "X/usr/local/include"; then
17928                   if test -n "$GCC"; then
17929                     case $host_os in
17930                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17931                     esac
17932                   fi
17933                 fi
17934                 if test -z "$haveit"; then
17935                   for x in $CPPFLAGS $INCINTL; do
17936
17937   acl_save_prefix="$prefix"
17938   prefix="$acl_final_prefix"
17939   acl_save_exec_prefix="$exec_prefix"
17940   exec_prefix="$acl_final_exec_prefix"
17941   eval x=\"$x\"
17942   exec_prefix="$acl_save_exec_prefix"
17943   prefix="$acl_save_prefix"
17944
17945                     if test "X$x" = "X-I$additional_includedir"; then
17946                       haveit=yes
17947                       break
17948                     fi
17949                   done
17950                   if test -z "$haveit"; then
17951                     if test -d "$additional_includedir"; then
17952                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17953                     fi
17954                   fi
17955                 fi
17956               fi
17957             fi
17958                         if test -n "$found_la"; then
17959                                                         save_libdir="$libdir"
17960               case "$found_la" in
17961                 */* | *\\*) . "$found_la" ;;
17962                 *) . "./$found_la" ;;
17963               esac
17964               libdir="$save_libdir"
17965                             for dep in $dependency_libs; do
17966                 case "$dep" in
17967                   -L*)
17968                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17969                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17970                       haveit=
17971                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17972                         if test -n "$GCC"; then
17973                           case $host_os in
17974                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17975                           esac
17976                         fi
17977                       fi
17978                       if test -z "$haveit"; then
17979                         haveit=
17980                         for x in $LDFLAGS $LIBINTL; do
17981
17982   acl_save_prefix="$prefix"
17983   prefix="$acl_final_prefix"
17984   acl_save_exec_prefix="$exec_prefix"
17985   exec_prefix="$acl_final_exec_prefix"
17986   eval x=\"$x\"
17987   exec_prefix="$acl_save_exec_prefix"
17988   prefix="$acl_save_prefix"
17989
17990                           if test "X$x" = "X-L$additional_libdir"; then
17991                             haveit=yes
17992                             break
17993                           fi
17994                         done
17995                         if test -z "$haveit"; then
17996                           if test -d "$additional_libdir"; then
17997                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17998                           fi
17999                         fi
18000                         haveit=
18001                         for x in $LDFLAGS $LTLIBINTL; do
18002
18003   acl_save_prefix="$prefix"
18004   prefix="$acl_final_prefix"
18005   acl_save_exec_prefix="$exec_prefix"
18006   exec_prefix="$acl_final_exec_prefix"
18007   eval x=\"$x\"
18008   exec_prefix="$acl_save_exec_prefix"
18009   prefix="$acl_save_prefix"
18010
18011                           if test "X$x" = "X-L$additional_libdir"; then
18012                             haveit=yes
18013                             break
18014                           fi
18015                         done
18016                         if test -z "$haveit"; then
18017                           if test -d "$additional_libdir"; then
18018                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18019                           fi
18020                         fi
18021                       fi
18022                     fi
18023                     ;;
18024                   -R*)
18025                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18026                     if test "$enable_rpath" != no; then
18027                                                                   haveit=
18028                       for x in $rpathdirs; do
18029                         if test "X$x" = "X$dir"; then
18030                           haveit=yes
18031                           break
18032                         fi
18033                       done
18034                       if test -z "$haveit"; then
18035                         rpathdirs="$rpathdirs $dir"
18036                       fi
18037                                                                   haveit=
18038                       for x in $ltrpathdirs; do
18039                         if test "X$x" = "X$dir"; then
18040                           haveit=yes
18041                           break
18042                         fi
18043                       done
18044                       if test -z "$haveit"; then
18045                         ltrpathdirs="$ltrpathdirs $dir"
18046                       fi
18047                     fi
18048                     ;;
18049                   -l*)
18050                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18051                     ;;
18052                   *.la)
18053                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18054                     ;;
18055                   *)
18056                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18057                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18058                     ;;
18059                 esac
18060               done
18061             fi
18062           else
18063                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18064             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18065           fi
18066         fi
18067       fi
18068     done
18069   done
18070   if test "X$rpathdirs" != "X"; then
18071     if test -n "$hardcode_libdir_separator"; then
18072                         alldirs=
18073       for found_dir in $rpathdirs; do
18074         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18075       done
18076             acl_save_libdir="$libdir"
18077       libdir="$alldirs"
18078       eval flag=\"$hardcode_libdir_flag_spec\"
18079       libdir="$acl_save_libdir"
18080       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18081     else
18082             for found_dir in $rpathdirs; do
18083         acl_save_libdir="$libdir"
18084         libdir="$found_dir"
18085         eval flag=\"$hardcode_libdir_flag_spec\"
18086         libdir="$acl_save_libdir"
18087         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18088       done
18089     fi
18090   fi
18091   if test "X$ltrpathdirs" != "X"; then
18092             for found_dir in $ltrpathdirs; do
18093       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18094     done
18095   fi
18096
18097           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18098 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18099 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18100   echo $ECHO_N "(cached) $ECHO_C" >&6
18101 else
18102   gt_save_CPPFLAGS="$CPPFLAGS"
18103             CPPFLAGS="$CPPFLAGS $INCINTL"
18104             gt_save_LIBS="$LIBS"
18105             LIBS="$LIBS $LIBINTL"
18106                         cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h.  */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h.  */
18112 #include <libintl.h>
18113 extern int _nl_msg_cat_cntr;
18114 extern
18115 #ifdef __cplusplus
18116 "C"
18117 #endif
18118 const char *_nl_expand_alias (const char *);
18119 int
18120 main ()
18121 {
18122 bindtextdomain ("", "");
18123 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18124   ;
18125   return 0;
18126 }
18127 _ACEOF
18128 rm -f conftest.$ac_objext conftest$ac_exeext
18129 if { (ac_try="$ac_link"
18130 case "(($ac_try" in
18131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132   *) ac_try_echo=$ac_try;;
18133 esac
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135   (eval "$ac_link") 2>conftest.er1
18136   ac_status=$?
18137   grep -v '^ *+' conftest.er1 >conftest.err
18138   rm -f conftest.er1
18139   cat conftest.err >&5
18140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141   (exit $ac_status); } && {
18142          test -z "$ac_c_werror_flag" ||
18143          test ! -s conftest.err
18144        } && test -s conftest$ac_exeext &&
18145        $as_test_x conftest$ac_exeext; then
18146   gt_cv_func_gnugettext1_libintl=yes
18147 else
18148   echo "$as_me: failed program was:" >&5
18149 sed 's/^/| /' conftest.$ac_ext >&5
18150
18151         gt_cv_func_gnugettext1_libintl=no
18152 fi
18153
18154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18155       conftest$ac_exeext conftest.$ac_ext
18156                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18157               LIBS="$LIBS $LIBICONV"
18158               cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h.  */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h.  */
18164 #include <libintl.h>
18165 extern int _nl_msg_cat_cntr;
18166 extern
18167 #ifdef __cplusplus
18168 "C"
18169 #endif
18170 const char *_nl_expand_alias (const char *);
18171 int
18172 main ()
18173 {
18174 bindtextdomain ("", "");
18175 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18176   ;
18177   return 0;
18178 }
18179 _ACEOF
18180 rm -f conftest.$ac_objext conftest$ac_exeext
18181 if { (ac_try="$ac_link"
18182 case "(($ac_try" in
18183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184   *) ac_try_echo=$ac_try;;
18185 esac
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187   (eval "$ac_link") 2>conftest.er1
18188   ac_status=$?
18189   grep -v '^ *+' conftest.er1 >conftest.err
18190   rm -f conftest.er1
18191   cat conftest.err >&5
18192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193   (exit $ac_status); } && {
18194          test -z "$ac_c_werror_flag" ||
18195          test ! -s conftest.err
18196        } && test -s conftest$ac_exeext &&
18197        $as_test_x conftest$ac_exeext; then
18198   LIBINTL="$LIBINTL $LIBICONV"
18199                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18200                 gt_cv_func_gnugettext1_libintl=yes
18201
18202 else
18203   echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18205
18206
18207 fi
18208
18209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18210       conftest$ac_exeext conftest.$ac_ext
18211             fi
18212             CPPFLAGS="$gt_save_CPPFLAGS"
18213             LIBS="$gt_save_LIBS"
18214 fi
18215 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18216 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18217         fi
18218
18219                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18220            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18221                 && test "$PACKAGE" != gettext-runtime \
18222                 && test "$PACKAGE" != gettext-tools; }; then
18223           gt_use_preinstalled_gnugettext=yes
18224         else
18225                     LIBINTL=
18226           LTLIBINTL=
18227           INCINTL=
18228         fi
18229
18230
18231
18232     if test -n "$INTL_MACOSX_LIBS"; then
18233       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18234          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18235                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18236         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18237       fi
18238     fi
18239
18240     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18241        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18242
18243 cat >>confdefs.h <<\_ACEOF
18244 #define ENABLE_NLS 1
18245 _ACEOF
18246
18247     else
18248       USE_NLS=no
18249     fi
18250   fi
18251
18252   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18253 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18254   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18255 echo "${ECHO_T}$USE_NLS" >&6; }
18256   if test "$USE_NLS" = "yes"; then
18257     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18258 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18259     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18260       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18261         gt_source="external libintl"
18262       else
18263         gt_source="libc"
18264       fi
18265     else
18266       gt_source="included intl directory"
18267     fi
18268     { echo "$as_me:$LINENO: result: $gt_source" >&5
18269 echo "${ECHO_T}$gt_source" >&6; }
18270   fi
18271
18272   if test "$USE_NLS" = "yes"; then
18273
18274     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18275       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18276         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18277 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18278         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18279 echo "${ECHO_T}$LIBINTL" >&6; }
18280
18281   for element in $INCINTL; do
18282     haveit=
18283     for x in $CPPFLAGS; do
18284
18285   acl_save_prefix="$prefix"
18286   prefix="$acl_final_prefix"
18287   acl_save_exec_prefix="$exec_prefix"
18288   exec_prefix="$acl_final_exec_prefix"
18289   eval x=\"$x\"
18290   exec_prefix="$acl_save_exec_prefix"
18291   prefix="$acl_save_prefix"
18292
18293       if test "X$x" = "X$element"; then
18294         haveit=yes
18295         break
18296       fi
18297     done
18298     if test -z "$haveit"; then
18299       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18300     fi
18301   done
18302
18303       fi
18304
18305
18306 cat >>confdefs.h <<\_ACEOF
18307 #define HAVE_GETTEXT 1
18308 _ACEOF
18309
18310
18311 cat >>confdefs.h <<\_ACEOF
18312 #define HAVE_DCGETTEXT 1
18313 _ACEOF
18314
18315     fi
18316
18317         POSUB=po
18318   fi
18319
18320
18321
18322     INTLLIBS="$LIBINTL"
18323
18324
18325
18326
18327
18328
18329
18330 if test x${prefix} = xNONE ; then
18331    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18332       sysconfdir=/etc/bacula
18333    fi
18334
18335    if test `eval echo ${libdir}` = NONE/lib ; then
18336       libdir=/usr/lib
18337    fi
18338
18339    if test `eval echo ${includedir}` = NONE/include ; then
18340       includedir=/usr/include
18341    fi
18342
18343    if test `eval echo ${datarootdir}` = NONE/share ; then
18344       datarootdir=/usr/share
18345    fi
18346    prefix=
18347 fi
18348
18349 if test x${exec_prefix} = xNONE ; then
18350    exec_prefix=${prefix}
18351 fi
18352
18353 sysconfdir=`eval echo ${sysconfdir}`
18354 datarootdir=`eval echo ${datarootdir}`
18355 docdir=`eval echo ${docdir}`
18356 htmldir=`eval echo ${htmldir}`
18357 libdir=`eval echo ${libdir}`
18358 includedir=`eval echo ${includedir}`
18359 localedir=`eval echo ${datarootdir}/locale`
18360 cat >>confdefs.h <<_ACEOF
18361 #define SYSCONFDIR "$sysconfdir"
18362 _ACEOF
18363
18364 cat >>confdefs.h <<_ACEOF
18365 #define LOCALEDIR "$localedir"
18366 _ACEOF
18367
18368
18369 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18370    sbindir=${exec_prefix}/sbin
18371 fi
18372 sbindir=`eval echo ${sbindir}`
18373
18374 if test x$mandir = x'${prefix}/man' ; then
18375    mandir=/usr/share/man
18376 fi
18377
18378 if test x$htmldir = x${docdir} ; then
18379    htmldir=`eval echo ${docdir}bacula/html`
18380 fi
18381
18382 if test x$docdir = x'/usr/share/doc/' ; then
18383    docdir=`eval echo ${docdir}bacula`
18384 fi
18385
18386
18387 for ac_prog in msgfmt
18388 do
18389   # Extract the first word of "$ac_prog", so it can be a program name with args.
18390 set dummy $ac_prog; ac_word=$2
18391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18393 if test "${ac_cv_path_MSGFMT+set}" = set; then
18394   echo $ECHO_N "(cached) $ECHO_C" >&6
18395 else
18396   case $MSGFMT in
18397   [\\/]* | ?:[\\/]*)
18398   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18399   ;;
18400   *)
18401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18402 for as_dir in $PATH
18403 do
18404   IFS=$as_save_IFS
18405   test -z "$as_dir" && as_dir=.
18406   for ac_exec_ext in '' $ac_executable_extensions; do
18407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18408     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18410     break 2
18411   fi
18412 done
18413 done
18414 IFS=$as_save_IFS
18415
18416   ;;
18417 esac
18418 fi
18419 MSGFMT=$ac_cv_path_MSGFMT
18420 if test -n "$MSGFMT"; then
18421   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18422 echo "${ECHO_T}$MSGFMT" >&6; }
18423 else
18424   { echo "$as_me:$LINENO: result: no" >&5
18425 echo "${ECHO_T}no" >&6; }
18426 fi
18427
18428
18429   test -n "$MSGFMT" && break
18430 done
18431 test -n "$MSGFMT" || MSGFMT="no"
18432
18433 if test "$MSGFMT" = "no"
18434 then
18435    echo 'msgfmt program not found, disabling NLS !'
18436    USE_NLS=no
18437    USE_INCLUDED_LIBINTL=no
18438 #else
18439
18440     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18441 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18442 if test "${ac_cv_gnu_library_2+set}" = set; then
18443   echo $ECHO_N "(cached) $ECHO_C" >&6
18444 else
18445   cat >conftest.$ac_ext <<_ACEOF
18446 /* confdefs.h.  */
18447 _ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h.  */
18451
18452 #include <features.h>
18453 #ifdef __GNU_LIBRARY__
18454  #if (__GLIBC__ >= 2)
18455   Lucky GNU user
18456  #endif
18457 #endif
18458
18459 _ACEOF
18460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18461   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18462   ac_cv_gnu_library_2=yes
18463 else
18464   ac_cv_gnu_library_2=no
18465 fi
18466 rm -f conftest*
18467
18468
18469
18470 fi
18471 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18472 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18473
18474     GLIBC2="$ac_cv_gnu_library_2"
18475
18476
18477 if test -n "$ac_tool_prefix"; then
18478   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18479 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18482 if test "${ac_cv_prog_RANLIB+set}" = set; then
18483   echo $ECHO_N "(cached) $ECHO_C" >&6
18484 else
18485   if test -n "$RANLIB"; then
18486   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18487 else
18488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18489 for as_dir in $PATH
18490 do
18491   IFS=$as_save_IFS
18492   test -z "$as_dir" && as_dir=.
18493   for ac_exec_ext in '' $ac_executable_extensions; do
18494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18495     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18497     break 2
18498   fi
18499 done
18500 done
18501 IFS=$as_save_IFS
18502
18503 fi
18504 fi
18505 RANLIB=$ac_cv_prog_RANLIB
18506 if test -n "$RANLIB"; then
18507   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18508 echo "${ECHO_T}$RANLIB" >&6; }
18509 else
18510   { echo "$as_me:$LINENO: result: no" >&5
18511 echo "${ECHO_T}no" >&6; }
18512 fi
18513
18514
18515 fi
18516 if test -z "$ac_cv_prog_RANLIB"; then
18517   ac_ct_RANLIB=$RANLIB
18518   # Extract the first word of "ranlib", so it can be a program name with args.
18519 set dummy ranlib; ac_word=$2
18520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18522 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18523   echo $ECHO_N "(cached) $ECHO_C" >&6
18524 else
18525   if test -n "$ac_ct_RANLIB"; then
18526   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18527 else
18528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529 for as_dir in $PATH
18530 do
18531   IFS=$as_save_IFS
18532   test -z "$as_dir" && as_dir=.
18533   for ac_exec_ext in '' $ac_executable_extensions; do
18534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18535     ac_cv_prog_ac_ct_RANLIB="ranlib"
18536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18537     break 2
18538   fi
18539 done
18540 done
18541 IFS=$as_save_IFS
18542
18543 fi
18544 fi
18545 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18546 if test -n "$ac_ct_RANLIB"; then
18547   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18548 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18549 else
18550   { echo "$as_me:$LINENO: result: no" >&5
18551 echo "${ECHO_T}no" >&6; }
18552 fi
18553
18554   if test "x$ac_ct_RANLIB" = x; then
18555     RANLIB=":"
18556   else
18557     case $cross_compiling:$ac_tool_warned in
18558 yes:)
18559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18560 whose name does not start with the host triplet.  If you think this
18561 configuration is useful to you, please write to autoconf@gnu.org." >&5
18562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18563 whose name does not start with the host triplet.  If you think this
18564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18565 ac_tool_warned=yes ;;
18566 esac
18567     RANLIB=$ac_ct_RANLIB
18568   fi
18569 else
18570   RANLIB="$ac_cv_prog_RANLIB"
18571 fi
18572
18573
18574         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18575 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18576 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18577   echo $ECHO_N "(cached) $ECHO_C" >&6
18578 else
18579   ac_check_lib_save_LIBS=$LIBS
18580 LIBS="-lcposix  $LIBS"
18581 cat >conftest.$ac_ext <<_ACEOF
18582 /* confdefs.h.  */
18583 _ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h.  */
18587
18588 /* Override any GCC internal prototype to avoid an error.
18589    Use char because int might match the return type of a GCC
18590    builtin and then its argument prototype would still apply.  */
18591 #ifdef __cplusplus
18592 extern "C"
18593 #endif
18594 char strerror ();
18595 int
18596 main ()
18597 {
18598 return strerror ();
18599   ;
18600   return 0;
18601 }
18602 _ACEOF
18603 rm -f conftest.$ac_objext conftest$ac_exeext
18604 if { (ac_try="$ac_link"
18605 case "(($ac_try" in
18606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607   *) ac_try_echo=$ac_try;;
18608 esac
18609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610   (eval "$ac_link") 2>conftest.er1
18611   ac_status=$?
18612   grep -v '^ *+' conftest.er1 >conftest.err
18613   rm -f conftest.er1
18614   cat conftest.err >&5
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); } && {
18617          test -z "$ac_c_werror_flag" ||
18618          test ! -s conftest.err
18619        } && test -s conftest$ac_exeext &&
18620        $as_test_x conftest$ac_exeext; then
18621   ac_cv_lib_cposix_strerror=yes
18622 else
18623   echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18625
18626         ac_cv_lib_cposix_strerror=no
18627 fi
18628
18629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18630       conftest$ac_exeext conftest.$ac_ext
18631 LIBS=$ac_check_lib_save_LIBS
18632 fi
18633 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18634 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18635 if test $ac_cv_lib_cposix_strerror = yes; then
18636   LIBS="$LIBS -lcposix"
18637 fi
18638
18639
18640
18641 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18642 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18643 if test "${ac_cv_c_const+set}" = set; then
18644   echo $ECHO_N "(cached) $ECHO_C" >&6
18645 else
18646   cat >conftest.$ac_ext <<_ACEOF
18647 /* confdefs.h.  */
18648 _ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h.  */
18652
18653 int
18654 main ()
18655 {
18656 /* FIXME: Include the comments suggested by Paul. */
18657 #ifndef __cplusplus
18658   /* Ultrix mips cc rejects this.  */
18659   typedef int charset[2];
18660   const charset cs;
18661   /* SunOS 4.1.1 cc rejects this.  */
18662   char const *const *pcpcc;
18663   char **ppc;
18664   /* NEC SVR4.0.2 mips cc rejects this.  */
18665   struct point {int x, y;};
18666   static struct point const zero = {0,0};
18667   /* AIX XL C 1.02.0.0 rejects this.
18668      It does not let you subtract one const X* pointer from another in
18669      an arm of an if-expression whose if-part is not a constant
18670      expression */
18671   const char *g = "string";
18672   pcpcc = &g + (g ? g-g : 0);
18673   /* HPUX 7.0 cc rejects these. */
18674   ++pcpcc;
18675   ppc = (char**) pcpcc;
18676   pcpcc = (char const *const *) ppc;
18677   { /* SCO 3.2v4 cc rejects this.  */
18678     char *t;
18679     char const *s = 0 ? (char *) 0 : (char const *) 0;
18680
18681     *t++ = 0;
18682     if (s) return 0;
18683   }
18684   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18685     int x[] = {25, 17};
18686     const int *foo = &x[0];
18687     ++foo;
18688   }
18689   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18690     typedef const int *iptr;
18691     iptr p = 0;
18692     ++p;
18693   }
18694   { /* AIX XL C 1.02.0.0 rejects this saying
18695        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18696     struct s { int j; const int *ap[3]; };
18697     struct s *b; b->j = 5;
18698   }
18699   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18700     const int foo = 10;
18701     if (!foo) return 0;
18702   }
18703   return !cs[0] && !zero.x;
18704 #endif
18705
18706   ;
18707   return 0;
18708 }
18709 _ACEOF
18710 rm -f conftest.$ac_objext
18711 if { (ac_try="$ac_compile"
18712 case "(($ac_try" in
18713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18714   *) ac_try_echo=$ac_try;;
18715 esac
18716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18717   (eval "$ac_compile") 2>conftest.er1
18718   ac_status=$?
18719   grep -v '^ *+' conftest.er1 >conftest.err
18720   rm -f conftest.er1
18721   cat conftest.err >&5
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); } && {
18724          test -z "$ac_c_werror_flag" ||
18725          test ! -s conftest.err
18726        } && test -s conftest.$ac_objext; then
18727   ac_cv_c_const=yes
18728 else
18729   echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18731
18732         ac_cv_c_const=no
18733 fi
18734
18735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18736 fi
18737 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18738 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18739 if test $ac_cv_c_const = no; then
18740
18741 cat >>confdefs.h <<\_ACEOF
18742 #define const
18743 _ACEOF
18744
18745 fi
18746
18747
18748   { echo "$as_me:$LINENO: checking for signed" >&5
18749 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18750 if test "${bh_cv_c_signed+set}" = set; then
18751   echo $ECHO_N "(cached) $ECHO_C" >&6
18752 else
18753   cat >conftest.$ac_ext <<_ACEOF
18754 /* confdefs.h.  */
18755 _ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h.  */
18759
18760 int
18761 main ()
18762 {
18763 signed char x;
18764   ;
18765   return 0;
18766 }
18767 _ACEOF
18768 rm -f conftest.$ac_objext
18769 if { (ac_try="$ac_compile"
18770 case "(($ac_try" in
18771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772   *) ac_try_echo=$ac_try;;
18773 esac
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775   (eval "$ac_compile") 2>conftest.er1
18776   ac_status=$?
18777   grep -v '^ *+' conftest.er1 >conftest.err
18778   rm -f conftest.er1
18779   cat conftest.err >&5
18780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781   (exit $ac_status); } && {
18782          test -z "$ac_c_werror_flag" ||
18783          test ! -s conftest.err
18784        } && test -s conftest.$ac_objext; then
18785   bh_cv_c_signed=yes
18786 else
18787   echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18789
18790         bh_cv_c_signed=no
18791 fi
18792
18793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18794 fi
18795 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18796 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18797   if test $bh_cv_c_signed = no; then
18798
18799 cat >>confdefs.h <<\_ACEOF
18800 #define signed
18801 _ACEOF
18802
18803   fi
18804
18805 { echo "$as_me:$LINENO: checking for inline" >&5
18806 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18807 if test "${ac_cv_c_inline+set}" = set; then
18808   echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18810   ac_cv_c_inline=no
18811 for ac_kw in inline __inline__ __inline; do
18812   cat >conftest.$ac_ext <<_ACEOF
18813 /* confdefs.h.  */
18814 _ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h.  */
18818 #ifndef __cplusplus
18819 typedef int foo_t;
18820 static $ac_kw foo_t static_foo () {return 0; }
18821 $ac_kw foo_t foo () {return 0; }
18822 #endif
18823
18824 _ACEOF
18825 rm -f conftest.$ac_objext
18826 if { (ac_try="$ac_compile"
18827 case "(($ac_try" in
18828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829   *) ac_try_echo=$ac_try;;
18830 esac
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832   (eval "$ac_compile") 2>conftest.er1
18833   ac_status=$?
18834   grep -v '^ *+' conftest.er1 >conftest.err
18835   rm -f conftest.er1
18836   cat conftest.err >&5
18837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838   (exit $ac_status); } && {
18839          test -z "$ac_c_werror_flag" ||
18840          test ! -s conftest.err
18841        } && test -s conftest.$ac_objext; then
18842   ac_cv_c_inline=$ac_kw
18843 else
18844   echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.$ac_ext >&5
18846
18847
18848 fi
18849
18850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18851   test "$ac_cv_c_inline" != no && break
18852 done
18853
18854 fi
18855 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18856 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18857
18858
18859 case $ac_cv_c_inline in
18860   inline | yes) ;;
18861   *)
18862     case $ac_cv_c_inline in
18863       no) ac_val=;;
18864       *) ac_val=$ac_cv_c_inline;;
18865     esac
18866     cat >>confdefs.h <<_ACEOF
18867 #ifndef __cplusplus
18868 #define inline $ac_val
18869 #endif
18870 _ACEOF
18871     ;;
18872 esac
18873
18874 { echo "$as_me:$LINENO: checking for off_t" >&5
18875 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18876 if test "${ac_cv_type_off_t+set}" = set; then
18877   echo $ECHO_N "(cached) $ECHO_C" >&6
18878 else
18879   cat >conftest.$ac_ext <<_ACEOF
18880 /* confdefs.h.  */
18881 _ACEOF
18882 cat confdefs.h >>conftest.$ac_ext
18883 cat >>conftest.$ac_ext <<_ACEOF
18884 /* end confdefs.h.  */
18885 $ac_includes_default
18886 typedef off_t ac__type_new_;
18887 int
18888 main ()
18889 {
18890 if ((ac__type_new_ *) 0)
18891   return 0;
18892 if (sizeof (ac__type_new_))
18893   return 0;
18894   ;
18895   return 0;
18896 }
18897 _ACEOF
18898 rm -f conftest.$ac_objext
18899 if { (ac_try="$ac_compile"
18900 case "(($ac_try" in
18901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902   *) ac_try_echo=$ac_try;;
18903 esac
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905   (eval "$ac_compile") 2>conftest.er1
18906   ac_status=$?
18907   grep -v '^ *+' conftest.er1 >conftest.err
18908   rm -f conftest.er1
18909   cat conftest.err >&5
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); } && {
18912          test -z "$ac_c_werror_flag" ||
18913          test ! -s conftest.err
18914        } && test -s conftest.$ac_objext; then
18915   ac_cv_type_off_t=yes
18916 else
18917   echo "$as_me: failed program was:" >&5
18918 sed 's/^/| /' conftest.$ac_ext >&5
18919
18920         ac_cv_type_off_t=no
18921 fi
18922
18923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18924 fi
18925 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18926 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18927 if test $ac_cv_type_off_t = yes; then
18928   :
18929 else
18930
18931 cat >>confdefs.h <<_ACEOF
18932 #define off_t long int
18933 _ACEOF
18934
18935 fi
18936
18937 { echo "$as_me:$LINENO: checking for size_t" >&5
18938 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18939 if test "${ac_cv_type_size_t+set}" = set; then
18940   echo $ECHO_N "(cached) $ECHO_C" >&6
18941 else
18942   cat >conftest.$ac_ext <<_ACEOF
18943 /* confdefs.h.  */
18944 _ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h.  */
18948 $ac_includes_default
18949 typedef size_t ac__type_new_;
18950 int
18951 main ()
18952 {
18953 if ((ac__type_new_ *) 0)
18954   return 0;
18955 if (sizeof (ac__type_new_))
18956   return 0;
18957   ;
18958   return 0;
18959 }
18960 _ACEOF
18961 rm -f conftest.$ac_objext
18962 if { (ac_try="$ac_compile"
18963 case "(($ac_try" in
18964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965   *) ac_try_echo=$ac_try;;
18966 esac
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968   (eval "$ac_compile") 2>conftest.er1
18969   ac_status=$?
18970   grep -v '^ *+' conftest.er1 >conftest.err
18971   rm -f conftest.er1
18972   cat conftest.err >&5
18973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974   (exit $ac_status); } && {
18975          test -z "$ac_c_werror_flag" ||
18976          test ! -s conftest.err
18977        } && test -s conftest.$ac_objext; then
18978   ac_cv_type_size_t=yes
18979 else
18980   echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18982
18983         ac_cv_type_size_t=no
18984 fi
18985
18986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18987 fi
18988 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18989 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18990 if test $ac_cv_type_size_t = yes; then
18991   :
18992 else
18993
18994 cat >>confdefs.h <<_ACEOF
18995 #define size_t unsigned int
18996 _ACEOF
18997
18998 fi
18999
19000
19001   { echo "$as_me:$LINENO: checking for long long" >&5
19002 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19003 if test "${ac_cv_type_long_long+set}" = set; then
19004   echo $ECHO_N "(cached) $ECHO_C" >&6
19005 else
19006   cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h.  */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h.  */
19012 long long ll = 1LL; int i = 63;
19013 int
19014 main ()
19015 {
19016 long long llmax = (long long) -1;
19017      return ll << i | ll >> i | llmax / ll | llmax % ll;
19018   ;
19019   return 0;
19020 }
19021 _ACEOF
19022 rm -f conftest.$ac_objext conftest$ac_exeext
19023 if { (ac_try="$ac_link"
19024 case "(($ac_try" in
19025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026   *) ac_try_echo=$ac_try;;
19027 esac
19028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029   (eval "$ac_link") 2>conftest.er1
19030   ac_status=$?
19031   grep -v '^ *+' conftest.er1 >conftest.err
19032   rm -f conftest.er1
19033   cat conftest.err >&5
19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035   (exit $ac_status); } && {
19036          test -z "$ac_c_werror_flag" ||
19037          test ! -s conftest.err
19038        } && test -s conftest$ac_exeext &&
19039        $as_test_x conftest$ac_exeext; then
19040   ac_cv_type_long_long=yes
19041 else
19042   echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19044
19045         ac_cv_type_long_long=no
19046 fi
19047
19048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19049       conftest$ac_exeext conftest.$ac_ext
19050 fi
19051 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19052 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19053   if test $ac_cv_type_long_long = yes; then
19054
19055 cat >>confdefs.h <<\_ACEOF
19056 #define HAVE_LONG_LONG 1
19057 _ACEOF
19058
19059   fi
19060
19061
19062   { echo "$as_me:$LINENO: checking for long double" >&5
19063 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19064 if test "${gt_cv_c_long_double+set}" = set; then
19065   echo $ECHO_N "(cached) $ECHO_C" >&6
19066 else
19067   if test "$GCC" = yes; then
19068        gt_cv_c_long_double=yes
19069      else
19070        cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h.  */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h.  */
19076
19077          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19078          long double foo = 0.0;
19079          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19080          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19081
19082 int
19083 main ()
19084 {
19085
19086   ;
19087   return 0;
19088 }
19089 _ACEOF
19090 rm -f conftest.$ac_objext
19091 if { (ac_try="$ac_compile"
19092 case "(($ac_try" in
19093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094   *) ac_try_echo=$ac_try;;
19095 esac
19096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097   (eval "$ac_compile") 2>conftest.er1
19098   ac_status=$?
19099   grep -v '^ *+' conftest.er1 >conftest.err
19100   rm -f conftest.er1
19101   cat conftest.err >&5
19102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103   (exit $ac_status); } && {
19104          test -z "$ac_c_werror_flag" ||
19105          test ! -s conftest.err
19106        } && test -s conftest.$ac_objext; then
19107   gt_cv_c_long_double=yes
19108 else
19109   echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112         gt_cv_c_long_double=no
19113 fi
19114
19115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19116      fi
19117 fi
19118 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19119 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19120   if test $gt_cv_c_long_double = yes; then
19121
19122 cat >>confdefs.h <<\_ACEOF
19123 #define HAVE_LONG_DOUBLE 1
19124 _ACEOF
19125
19126   fi
19127
19128
19129   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19130 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19131 if test "${gt_cv_c_wchar_t+set}" = set; then
19132   echo $ECHO_N "(cached) $ECHO_C" >&6
19133 else
19134   cat >conftest.$ac_ext <<_ACEOF
19135 /* confdefs.h.  */
19136 _ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h.  */
19140 #include <stddef.h>
19141        wchar_t foo = (wchar_t)'\0';
19142 int
19143 main ()
19144 {
19145
19146   ;
19147   return 0;
19148 }
19149 _ACEOF
19150 rm -f conftest.$ac_objext
19151 if { (ac_try="$ac_compile"
19152 case "(($ac_try" in
19153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154   *) ac_try_echo=$ac_try;;
19155 esac
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157   (eval "$ac_compile") 2>conftest.er1
19158   ac_status=$?
19159   grep -v '^ *+' conftest.er1 >conftest.err
19160   rm -f conftest.er1
19161   cat conftest.err >&5
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); } && {
19164          test -z "$ac_c_werror_flag" ||
19165          test ! -s conftest.err
19166        } && test -s conftest.$ac_objext; then
19167   gt_cv_c_wchar_t=yes
19168 else
19169   echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19171
19172         gt_cv_c_wchar_t=no
19173 fi
19174
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19176 fi
19177 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19178 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19179   if test $gt_cv_c_wchar_t = yes; then
19180
19181 cat >>confdefs.h <<\_ACEOF
19182 #define HAVE_WCHAR_T 1
19183 _ACEOF
19184
19185   fi
19186
19187
19188   { echo "$as_me:$LINENO: checking for wint_t" >&5
19189 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19190 if test "${gt_cv_c_wint_t+set}" = set; then
19191   echo $ECHO_N "(cached) $ECHO_C" >&6
19192 else
19193   cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h.  */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h.  */
19199 #include <wchar.h>
19200        wint_t foo = (wchar_t)'\0';
19201 int
19202 main ()
19203 {
19204
19205   ;
19206   return 0;
19207 }
19208 _ACEOF
19209 rm -f conftest.$ac_objext
19210 if { (ac_try="$ac_compile"
19211 case "(($ac_try" in
19212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213   *) ac_try_echo=$ac_try;;
19214 esac
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216   (eval "$ac_compile") 2>conftest.er1
19217   ac_status=$?
19218   grep -v '^ *+' conftest.er1 >conftest.err
19219   rm -f conftest.er1
19220   cat conftest.err >&5
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); } && {
19223          test -z "$ac_c_werror_flag" ||
19224          test ! -s conftest.err
19225        } && test -s conftest.$ac_objext; then
19226   gt_cv_c_wint_t=yes
19227 else
19228   echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19230
19231         gt_cv_c_wint_t=no
19232 fi
19233
19234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235 fi
19236 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19237 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19238   if test $gt_cv_c_wint_t = yes; then
19239
19240 cat >>confdefs.h <<\_ACEOF
19241 #define HAVE_WINT_T 1
19242 _ACEOF
19243
19244   fi
19245
19246
19247   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19248 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19249 if test "${gl_cv_header_inttypes_h+set}" = set; then
19250   echo $ECHO_N "(cached) $ECHO_C" >&6
19251 else
19252   cat >conftest.$ac_ext <<_ACEOF
19253 /* confdefs.h.  */
19254 _ACEOF
19255 cat confdefs.h >>conftest.$ac_ext
19256 cat >>conftest.$ac_ext <<_ACEOF
19257 /* end confdefs.h.  */
19258 #include <sys/types.h>
19259 #include <inttypes.h>
19260 int
19261 main ()
19262 {
19263 uintmax_t i = (uintmax_t) -1;
19264   ;
19265   return 0;
19266 }
19267 _ACEOF
19268 rm -f conftest.$ac_objext
19269 if { (ac_try="$ac_compile"
19270 case "(($ac_try" in
19271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272   *) ac_try_echo=$ac_try;;
19273 esac
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275   (eval "$ac_compile") 2>conftest.er1
19276   ac_status=$?
19277   grep -v '^ *+' conftest.er1 >conftest.err
19278   rm -f conftest.er1
19279   cat conftest.err >&5
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); } && {
19282          test -z "$ac_c_werror_flag" ||
19283          test ! -s conftest.err
19284        } && test -s conftest.$ac_objext; then
19285   gl_cv_header_inttypes_h=yes
19286 else
19287   echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19289
19290         gl_cv_header_inttypes_h=no
19291 fi
19292
19293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19294 fi
19295 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19296 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19297   if test $gl_cv_header_inttypes_h = yes; then
19298
19299 cat >>confdefs.h <<_ACEOF
19300 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19301 _ACEOF
19302
19303   fi
19304
19305
19306   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19307 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19308 if test "${gl_cv_header_stdint_h+set}" = set; then
19309   echo $ECHO_N "(cached) $ECHO_C" >&6
19310 else
19311   cat >conftest.$ac_ext <<_ACEOF
19312 /* confdefs.h.  */
19313 _ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h.  */
19317 #include <sys/types.h>
19318 #include <stdint.h>
19319 int
19320 main ()
19321 {
19322 uintmax_t i = (uintmax_t) -1;
19323   ;
19324   return 0;
19325 }
19326 _ACEOF
19327 rm -f conftest.$ac_objext
19328 if { (ac_try="$ac_compile"
19329 case "(($ac_try" in
19330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331   *) ac_try_echo=$ac_try;;
19332 esac
19333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334   (eval "$ac_compile") 2>conftest.er1
19335   ac_status=$?
19336   grep -v '^ *+' conftest.er1 >conftest.err
19337   rm -f conftest.er1
19338   cat conftest.err >&5
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); } && {
19341          test -z "$ac_c_werror_flag" ||
19342          test ! -s conftest.err
19343        } && test -s conftest.$ac_objext; then
19344   gl_cv_header_stdint_h=yes
19345 else
19346   echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19348
19349         gl_cv_header_stdint_h=no
19350 fi
19351
19352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19353 fi
19354 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19355 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19356   if test $gl_cv_header_stdint_h = yes; then
19357
19358 cat >>confdefs.h <<_ACEOF
19359 #define HAVE_STDINT_H_WITH_UINTMAX 1
19360 _ACEOF
19361
19362   fi
19363
19364
19365
19366
19367   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19368 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19369 if test "${gt_cv_c_intmax_t+set}" = set; then
19370   echo $ECHO_N "(cached) $ECHO_C" >&6
19371 else
19372   cat >conftest.$ac_ext <<_ACEOF
19373 /* confdefs.h.  */
19374 _ACEOF
19375 cat confdefs.h >>conftest.$ac_ext
19376 cat >>conftest.$ac_ext <<_ACEOF
19377 /* end confdefs.h.  */
19378
19379 #include <stddef.h>
19380 #include <stdlib.h>
19381 #if HAVE_STDINT_H_WITH_UINTMAX
19382 #include <stdint.h>
19383 #endif
19384 #if HAVE_INTTYPES_H_WITH_UINTMAX
19385 #include <inttypes.h>
19386 #endif
19387
19388 int
19389 main ()
19390 {
19391 intmax_t x = -1;
19392   ;
19393   return 0;
19394 }
19395 _ACEOF
19396 rm -f conftest.$ac_objext
19397 if { (ac_try="$ac_compile"
19398 case "(($ac_try" in
19399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400   *) ac_try_echo=$ac_try;;
19401 esac
19402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19403   (eval "$ac_compile") 2>conftest.er1
19404   ac_status=$?
19405   grep -v '^ *+' conftest.er1 >conftest.err
19406   rm -f conftest.er1
19407   cat conftest.err >&5
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); } && {
19410          test -z "$ac_c_werror_flag" ||
19411          test ! -s conftest.err
19412        } && test -s conftest.$ac_objext; then
19413   gt_cv_c_intmax_t=yes
19414 else
19415   echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19417
19418         gt_cv_c_intmax_t=no
19419 fi
19420
19421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19422 fi
19423 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19424 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19425   if test $gt_cv_c_intmax_t = yes; then
19426
19427 cat >>confdefs.h <<\_ACEOF
19428 #define HAVE_INTMAX_T 1
19429 _ACEOF
19430
19431   fi
19432
19433
19434
19435   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19436 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19437 if test "${gt_cv_func_printf_posix+set}" = set; then
19438   echo $ECHO_N "(cached) $ECHO_C" >&6
19439 else
19440
19441       if test "$cross_compiling" = yes; then
19442
19443         cat >conftest.$ac_ext <<_ACEOF
19444 /* confdefs.h.  */
19445 _ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h.  */
19449
19450 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19451   notposix
19452 #endif
19453
19454 _ACEOF
19455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19456   $EGREP "notposix" >/dev/null 2>&1; then
19457   gt_cv_func_printf_posix="guessing no"
19458 else
19459   gt_cv_func_printf_posix="guessing yes"
19460 fi
19461 rm -f conftest*
19462
19463
19464 else
19465   cat >conftest.$ac_ext <<_ACEOF
19466 /* confdefs.h.  */
19467 _ACEOF
19468 cat confdefs.h >>conftest.$ac_ext
19469 cat >>conftest.$ac_ext <<_ACEOF
19470 /* end confdefs.h.  */
19471
19472 #include <stdio.h>
19473 #include <string.h>
19474 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19475    dollar expansion (possibly an autoconf bug).  */
19476 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19477 static char buf[100];
19478 int main ()
19479 {
19480   sprintf (buf, format, 33, 55);
19481   return (strcmp (buf, "55 33") != 0);
19482 }
19483 _ACEOF
19484 rm -f conftest$ac_exeext
19485 if { (ac_try="$ac_link"
19486 case "(($ac_try" in
19487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488   *) ac_try_echo=$ac_try;;
19489 esac
19490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491   (eval "$ac_link") 2>&5
19492   ac_status=$?
19493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19495   { (case "(($ac_try" in
19496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497   *) ac_try_echo=$ac_try;;
19498 esac
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500   (eval "$ac_try") 2>&5
19501   ac_status=$?
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); }; }; then
19504   gt_cv_func_printf_posix=yes
19505 else
19506   echo "$as_me: program exited with status $ac_status" >&5
19507 echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.$ac_ext >&5
19509
19510 ( exit $ac_status )
19511 gt_cv_func_printf_posix=no
19512 fi
19513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19514 fi
19515
19516
19517
19518 fi
19519 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19520 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19521   case $gt_cv_func_printf_posix in
19522     *yes)
19523
19524 cat >>confdefs.h <<\_ACEOF
19525 #define HAVE_POSIX_PRINTF 1
19526 _ACEOF
19527
19528       ;;
19529   esac
19530
19531 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19532 # for constant arguments.  Useless!
19533 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19534 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19535 if test "${ac_cv_working_alloca_h+set}" = set; then
19536   echo $ECHO_N "(cached) $ECHO_C" >&6
19537 else
19538   cat >conftest.$ac_ext <<_ACEOF
19539 /* confdefs.h.  */
19540 _ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h.  */
19544 #include <alloca.h>
19545 int
19546 main ()
19547 {
19548 char *p = (char *) alloca (2 * sizeof (int));
19549                           if (p) return 0;
19550   ;
19551   return 0;
19552 }
19553 _ACEOF
19554 rm -f conftest.$ac_objext conftest$ac_exeext
19555 if { (ac_try="$ac_link"
19556 case "(($ac_try" in
19557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558   *) ac_try_echo=$ac_try;;
19559 esac
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561   (eval "$ac_link") 2>conftest.er1
19562   ac_status=$?
19563   grep -v '^ *+' conftest.er1 >conftest.err
19564   rm -f conftest.er1
19565   cat conftest.err >&5
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); } && {
19568          test -z "$ac_c_werror_flag" ||
19569          test ! -s conftest.err
19570        } && test -s conftest$ac_exeext &&
19571        $as_test_x conftest$ac_exeext; then
19572   ac_cv_working_alloca_h=yes
19573 else
19574   echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19576
19577         ac_cv_working_alloca_h=no
19578 fi
19579
19580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19581       conftest$ac_exeext conftest.$ac_ext
19582 fi
19583 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19584 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19585 if test $ac_cv_working_alloca_h = yes; then
19586
19587 cat >>confdefs.h <<\_ACEOF
19588 #define HAVE_ALLOCA_H 1
19589 _ACEOF
19590
19591 fi
19592
19593 { echo "$as_me:$LINENO: checking for alloca" >&5
19594 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19595 if test "${ac_cv_func_alloca_works+set}" = set; then
19596   echo $ECHO_N "(cached) $ECHO_C" >&6
19597 else
19598   cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h.  */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h.  */
19604 #ifdef __GNUC__
19605 # define alloca __builtin_alloca
19606 #else
19607 # ifdef _MSC_VER
19608 #  include <malloc.h>
19609 #  define alloca _alloca
19610 # else
19611 #  ifdef HAVE_ALLOCA_H
19612 #   include <alloca.h>
19613 #  else
19614 #   ifdef _AIX
19615  #pragma alloca
19616 #   else
19617 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19618 char *alloca ();
19619 #    endif
19620 #   endif
19621 #  endif
19622 # endif
19623 #endif
19624
19625 int
19626 main ()
19627 {
19628 char *p = (char *) alloca (1);
19629                                     if (p) return 0;
19630   ;
19631   return 0;
19632 }
19633 _ACEOF
19634 rm -f conftest.$ac_objext conftest$ac_exeext
19635 if { (ac_try="$ac_link"
19636 case "(($ac_try" in
19637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638   *) ac_try_echo=$ac_try;;
19639 esac
19640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641   (eval "$ac_link") 2>conftest.er1
19642   ac_status=$?
19643   grep -v '^ *+' conftest.er1 >conftest.err
19644   rm -f conftest.er1
19645   cat conftest.err >&5
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); } && {
19648          test -z "$ac_c_werror_flag" ||
19649          test ! -s conftest.err
19650        } && test -s conftest$ac_exeext &&
19651        $as_test_x conftest$ac_exeext; then
19652   ac_cv_func_alloca_works=yes
19653 else
19654   echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657         ac_cv_func_alloca_works=no
19658 fi
19659
19660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19661       conftest$ac_exeext conftest.$ac_ext
19662 fi
19663 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19664 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19665
19666 if test $ac_cv_func_alloca_works = yes; then
19667
19668 cat >>confdefs.h <<\_ACEOF
19669 #define HAVE_ALLOCA 1
19670 _ACEOF
19671
19672 else
19673   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19674 # that cause trouble.  Some versions do not even contain alloca or
19675 # contain a buggy version.  If you still want to use their alloca,
19676 # use ar to extract alloca.o from them instead of compiling alloca.c.
19677
19678 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19679
19680 cat >>confdefs.h <<\_ACEOF
19681 #define C_ALLOCA 1
19682 _ACEOF
19683
19684
19685 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19686 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19687 if test "${ac_cv_os_cray+set}" = set; then
19688   echo $ECHO_N "(cached) $ECHO_C" >&6
19689 else
19690   cat >conftest.$ac_ext <<_ACEOF
19691 /* confdefs.h.  */
19692 _ACEOF
19693 cat confdefs.h >>conftest.$ac_ext
19694 cat >>conftest.$ac_ext <<_ACEOF
19695 /* end confdefs.h.  */
19696 #if defined CRAY && ! defined CRAY2
19697 webecray
19698 #else
19699 wenotbecray
19700 #endif
19701
19702 _ACEOF
19703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19704   $EGREP "webecray" >/dev/null 2>&1; then
19705   ac_cv_os_cray=yes
19706 else
19707   ac_cv_os_cray=no
19708 fi
19709 rm -f conftest*
19710
19711 fi
19712 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19713 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19714 if test $ac_cv_os_cray = yes; then
19715   for ac_func in _getb67 GETB67 getb67; do
19716     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19720   echo $ECHO_N "(cached) $ECHO_C" >&6
19721 else
19722   cat >conftest.$ac_ext <<_ACEOF
19723 /* confdefs.h.  */
19724 _ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h.  */
19728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19730 #define $ac_func innocuous_$ac_func
19731
19732 /* System header to define __stub macros and hopefully few prototypes,
19733     which can conflict with char $ac_func (); below.
19734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19735     <limits.h> exists even on freestanding compilers.  */
19736
19737 #ifdef __STDC__
19738 # include <limits.h>
19739 #else
19740 # include <assert.h>
19741 #endif
19742
19743 #undef $ac_func
19744
19745 /* Override any GCC internal prototype to avoid an error.
19746    Use char because int might match the return type of a GCC
19747    builtin and then its argument prototype would still apply.  */
19748 #ifdef __cplusplus
19749 extern "C"
19750 #endif
19751 char $ac_func ();
19752 /* The GNU C library defines this for functions which it implements
19753     to always fail with ENOSYS.  Some functions are actually named
19754     something starting with __ and the normal name is an alias.  */
19755 #if defined __stub_$ac_func || defined __stub___$ac_func
19756 choke me
19757 #endif
19758
19759 int
19760 main ()
19761 {
19762 return $ac_func ();
19763   ;
19764   return 0;
19765 }
19766 _ACEOF
19767 rm -f conftest.$ac_objext conftest$ac_exeext
19768 if { (ac_try="$ac_link"
19769 case "(($ac_try" in
19770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771   *) ac_try_echo=$ac_try;;
19772 esac
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774   (eval "$ac_link") 2>conftest.er1
19775   ac_status=$?
19776   grep -v '^ *+' conftest.er1 >conftest.err
19777   rm -f conftest.er1
19778   cat conftest.err >&5
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); } && {
19781          test -z "$ac_c_werror_flag" ||
19782          test ! -s conftest.err
19783        } && test -s conftest$ac_exeext &&
19784        $as_test_x conftest$ac_exeext; then
19785   eval "$as_ac_var=yes"
19786 else
19787   echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19789
19790         eval "$as_ac_var=no"
19791 fi
19792
19793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19794       conftest$ac_exeext conftest.$ac_ext
19795 fi
19796 ac_res=`eval echo '${'$as_ac_var'}'`
19797                { echo "$as_me:$LINENO: result: $ac_res" >&5
19798 echo "${ECHO_T}$ac_res" >&6; }
19799 if test `eval echo '${'$as_ac_var'}'` = yes; then
19800
19801 cat >>confdefs.h <<_ACEOF
19802 #define CRAY_STACKSEG_END $ac_func
19803 _ACEOF
19804
19805     break
19806 fi
19807
19808   done
19809 fi
19810
19811 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19812 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19813 if test "${ac_cv_c_stack_direction+set}" = set; then
19814   echo $ECHO_N "(cached) $ECHO_C" >&6
19815 else
19816   if test "$cross_compiling" = yes; then
19817   ac_cv_c_stack_direction=0
19818 else
19819   cat >conftest.$ac_ext <<_ACEOF
19820 /* confdefs.h.  */
19821 _ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h.  */
19825 $ac_includes_default
19826 int
19827 find_stack_direction ()
19828 {
19829   static char *addr = 0;
19830   auto char dummy;
19831   if (addr == 0)
19832     {
19833       addr = &dummy;
19834       return find_stack_direction ();
19835     }
19836   else
19837     return (&dummy > addr) ? 1 : -1;
19838 }
19839
19840 int
19841 main ()
19842 {
19843   return find_stack_direction () < 0;
19844 }
19845 _ACEOF
19846 rm -f conftest$ac_exeext
19847 if { (ac_try="$ac_link"
19848 case "(($ac_try" in
19849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850   *) ac_try_echo=$ac_try;;
19851 esac
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853   (eval "$ac_link") 2>&5
19854   ac_status=$?
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19857   { (case "(($ac_try" in
19858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859   *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862   (eval "$ac_try") 2>&5
19863   ac_status=$?
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); }; }; then
19866   ac_cv_c_stack_direction=1
19867 else
19868   echo "$as_me: program exited with status $ac_status" >&5
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19871
19872 ( exit $ac_status )
19873 ac_cv_c_stack_direction=-1
19874 fi
19875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19876 fi
19877
19878
19879 fi
19880 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19881 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19882
19883 cat >>confdefs.h <<_ACEOF
19884 #define STACK_DIRECTION $ac_cv_c_stack_direction
19885 _ACEOF
19886
19887
19888 fi
19889
19890
19891
19892 for ac_header in stdlib.h unistd.h
19893 do
19894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19896   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19899   echo $ECHO_N "(cached) $ECHO_C" >&6
19900 fi
19901 ac_res=`eval echo '${'$as_ac_Header'}'`
19902                { echo "$as_me:$LINENO: result: $ac_res" >&5
19903 echo "${ECHO_T}$ac_res" >&6; }
19904 else
19905   # Is the header compilable?
19906 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19908 cat >conftest.$ac_ext <<_ACEOF
19909 /* confdefs.h.  */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h.  */
19914 $ac_includes_default
19915 #include <$ac_header>
19916 _ACEOF
19917 rm -f conftest.$ac_objext
19918 if { (ac_try="$ac_compile"
19919 case "(($ac_try" in
19920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19921   *) ac_try_echo=$ac_try;;
19922 esac
19923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19924   (eval "$ac_compile") 2>conftest.er1
19925   ac_status=$?
19926   grep -v '^ *+' conftest.er1 >conftest.err
19927   rm -f conftest.er1
19928   cat conftest.err >&5
19929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930   (exit $ac_status); } && {
19931          test -z "$ac_c_werror_flag" ||
19932          test ! -s conftest.err
19933        } && test -s conftest.$ac_objext; then
19934   ac_header_compiler=yes
19935 else
19936   echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19938
19939         ac_header_compiler=no
19940 fi
19941
19942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19943 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19944 echo "${ECHO_T}$ac_header_compiler" >&6; }
19945
19946 # Is the header present?
19947 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19949 cat >conftest.$ac_ext <<_ACEOF
19950 /* confdefs.h.  */
19951 _ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h.  */
19955 #include <$ac_header>
19956 _ACEOF
19957 if { (ac_try="$ac_cpp conftest.$ac_ext"
19958 case "(($ac_try" in
19959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960   *) ac_try_echo=$ac_try;;
19961 esac
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19964   ac_status=$?
19965   grep -v '^ *+' conftest.er1 >conftest.err
19966   rm -f conftest.er1
19967   cat conftest.err >&5
19968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969   (exit $ac_status); } >/dev/null && {
19970          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19971          test ! -s conftest.err
19972        }; then
19973   ac_header_preproc=yes
19974 else
19975   echo "$as_me: failed program was:" >&5
19976 sed 's/^/| /' conftest.$ac_ext >&5
19977
19978   ac_header_preproc=no
19979 fi
19980
19981 rm -f conftest.err conftest.$ac_ext
19982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19983 echo "${ECHO_T}$ac_header_preproc" >&6; }
19984
19985 # So?  What about this header?
19986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19987   yes:no: )
19988     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19992     ac_header_preproc=yes
19993     ;;
19994   no:yes:* )
19995     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19997     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19998 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19999     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20001     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20002 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20005     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20007
20008     ;;
20009 esac
20010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20013   echo $ECHO_N "(cached) $ECHO_C" >&6
20014 else
20015   eval "$as_ac_Header=\$ac_header_preproc"
20016 fi
20017 ac_res=`eval echo '${'$as_ac_Header'}'`
20018                { echo "$as_me:$LINENO: result: $ac_res" >&5
20019 echo "${ECHO_T}$ac_res" >&6; }
20020
20021 fi
20022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20023   cat >>confdefs.h <<_ACEOF
20024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20025 _ACEOF
20026
20027 fi
20028
20029 done
20030
20031
20032 for ac_func in getpagesize
20033 do
20034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20038   echo $ECHO_N "(cached) $ECHO_C" >&6
20039 else
20040   cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h.  */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h.  */
20046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20048 #define $ac_func innocuous_$ac_func
20049
20050 /* System header to define __stub macros and hopefully few prototypes,
20051     which can conflict with char $ac_func (); below.
20052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20053     <limits.h> exists even on freestanding compilers.  */
20054
20055 #ifdef __STDC__
20056 # include <limits.h>
20057 #else
20058 # include <assert.h>
20059 #endif
20060
20061 #undef $ac_func
20062
20063 /* Override any GCC internal prototype to avoid an error.
20064    Use char because int might match the return type of a GCC
20065    builtin and then its argument prototype would still apply.  */
20066 #ifdef __cplusplus
20067 extern "C"
20068 #endif
20069 char $ac_func ();
20070 /* The GNU C library defines this for functions which it implements
20071     to always fail with ENOSYS.  Some functions are actually named
20072     something starting with __ and the normal name is an alias.  */
20073 #if defined __stub_$ac_func || defined __stub___$ac_func
20074 choke me
20075 #endif
20076
20077 int
20078 main ()
20079 {
20080 return $ac_func ();
20081   ;
20082   return 0;
20083 }
20084 _ACEOF
20085 rm -f conftest.$ac_objext conftest$ac_exeext
20086 if { (ac_try="$ac_link"
20087 case "(($ac_try" in
20088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20089   *) ac_try_echo=$ac_try;;
20090 esac
20091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092   (eval "$ac_link") 2>conftest.er1
20093   ac_status=$?
20094   grep -v '^ *+' conftest.er1 >conftest.err
20095   rm -f conftest.er1
20096   cat conftest.err >&5
20097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098   (exit $ac_status); } && {
20099          test -z "$ac_c_werror_flag" ||
20100          test ! -s conftest.err
20101        } && test -s conftest$ac_exeext &&
20102        $as_test_x conftest$ac_exeext; then
20103   eval "$as_ac_var=yes"
20104 else
20105   echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20107
20108         eval "$as_ac_var=no"
20109 fi
20110
20111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20112       conftest$ac_exeext conftest.$ac_ext
20113 fi
20114 ac_res=`eval echo '${'$as_ac_var'}'`
20115                { echo "$as_me:$LINENO: result: $ac_res" >&5
20116 echo "${ECHO_T}$ac_res" >&6; }
20117 if test `eval echo '${'$as_ac_var'}'` = yes; then
20118   cat >>confdefs.h <<_ACEOF
20119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20120 _ACEOF
20121
20122 fi
20123 done
20124
20125 { echo "$as_me:$LINENO: checking for working mmap" >&5
20126 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20127 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20128   echo $ECHO_N "(cached) $ECHO_C" >&6
20129 else
20130   if test "$cross_compiling" = yes; then
20131   ac_cv_func_mmap_fixed_mapped=no
20132 else
20133   cat >conftest.$ac_ext <<_ACEOF
20134 /* confdefs.h.  */
20135 _ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h.  */
20139 $ac_includes_default
20140 /* malloc might have been renamed as rpl_malloc. */
20141 #undef malloc
20142
20143 /* Thanks to Mike Haertel and Jim Avera for this test.
20144    Here is a matrix of mmap possibilities:
20145         mmap private not fixed
20146         mmap private fixed at somewhere currently unmapped
20147         mmap private fixed at somewhere already mapped
20148         mmap shared not fixed
20149         mmap shared fixed at somewhere currently unmapped
20150         mmap shared fixed at somewhere already mapped
20151    For private mappings, we should verify that changes cannot be read()
20152    back from the file, nor mmap's back from the file at a different
20153    address.  (There have been systems where private was not correctly
20154    implemented like the infamous i386 svr4.0, and systems where the
20155    VM page cache was not coherent with the file system buffer cache
20156    like early versions of FreeBSD and possibly contemporary NetBSD.)
20157    For shared mappings, we should conversely verify that changes get
20158    propagated back to all the places they're supposed to be.
20159
20160    Grep wants private fixed already mapped.
20161    The main things grep needs to know about mmap are:
20162    * does it exist and is it safe to write into the mmap'd area
20163    * how to use it (BSD variants)  */
20164
20165 #include <fcntl.h>
20166 #include <sys/mman.h>
20167
20168 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20169 char *malloc ();
20170 #endif
20171
20172 /* This mess was copied from the GNU getpagesize.h.  */
20173 #ifndef HAVE_GETPAGESIZE
20174 /* Assume that all systems that can run configure have sys/param.h.  */
20175 # ifndef HAVE_SYS_PARAM_H
20176 #  define HAVE_SYS_PARAM_H 1
20177 # endif
20178
20179 # ifdef _SC_PAGESIZE
20180 #  define getpagesize() sysconf(_SC_PAGESIZE)
20181 # else /* no _SC_PAGESIZE */
20182 #  ifdef HAVE_SYS_PARAM_H
20183 #   include <sys/param.h>
20184 #   ifdef EXEC_PAGESIZE
20185 #    define getpagesize() EXEC_PAGESIZE
20186 #   else /* no EXEC_PAGESIZE */
20187 #    ifdef NBPG
20188 #     define getpagesize() NBPG * CLSIZE
20189 #     ifndef CLSIZE
20190 #      define CLSIZE 1
20191 #     endif /* no CLSIZE */
20192 #    else /* no NBPG */
20193 #     ifdef NBPC
20194 #      define getpagesize() NBPC
20195 #     else /* no NBPC */
20196 #      ifdef PAGESIZE
20197 #       define getpagesize() PAGESIZE
20198 #      endif /* PAGESIZE */
20199 #     endif /* no NBPC */
20200 #    endif /* no NBPG */
20201 #   endif /* no EXEC_PAGESIZE */
20202 #  else /* no HAVE_SYS_PARAM_H */
20203 #   define getpagesize() 8192   /* punt totally */
20204 #  endif /* no HAVE_SYS_PARAM_H */
20205 # endif /* no _SC_PAGESIZE */
20206
20207 #endif /* no HAVE_GETPAGESIZE */
20208
20209 int
20210 main ()
20211 {
20212   char *data, *data2, *data3;
20213   int i, pagesize;
20214   int fd;
20215
20216   pagesize = getpagesize ();
20217
20218   /* First, make a file with some known garbage in it. */
20219   data = (char *) malloc (pagesize);
20220   if (!data)
20221     return 1;
20222   for (i = 0; i < pagesize; ++i)
20223     *(data + i) = rand ();
20224   umask (0);
20225   fd = creat ("conftest.mmap", 0600);
20226   if (fd < 0)
20227     return 1;
20228   if (write (fd, data, pagesize) != pagesize)
20229     return 1;
20230   close (fd);
20231
20232   /* Next, try to mmap the file at a fixed address which already has
20233      something else allocated at it.  If we can, also make sure that
20234      we see the same garbage.  */
20235   fd = open ("conftest.mmap", O_RDWR);
20236   if (fd < 0)
20237     return 1;
20238   data2 = (char *) malloc (2 * pagesize);
20239   if (!data2)
20240     return 1;
20241   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20242   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20243                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20244     return 1;
20245   for (i = 0; i < pagesize; ++i)
20246     if (*(data + i) != *(data2 + i))
20247       return 1;
20248
20249   /* Finally, make sure that changes to the mapped area do not
20250      percolate back to the file as seen by read().  (This is a bug on
20251      some variants of i386 svr4.0.)  */
20252   for (i = 0; i < pagesize; ++i)
20253     *(data2 + i) = *(data2 + i) + 1;
20254   data3 = (char *) malloc (pagesize);
20255   if (!data3)
20256     return 1;
20257   if (read (fd, data3, pagesize) != pagesize)
20258     return 1;
20259   for (i = 0; i < pagesize; ++i)
20260     if (*(data + i) != *(data3 + i))
20261       return 1;
20262   close (fd);
20263   return 0;
20264 }
20265 _ACEOF
20266 rm -f conftest$ac_exeext
20267 if { (ac_try="$ac_link"
20268 case "(($ac_try" in
20269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270   *) ac_try_echo=$ac_try;;
20271 esac
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273   (eval "$ac_link") 2>&5
20274   ac_status=$?
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20277   { (case "(($ac_try" in
20278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279   *) ac_try_echo=$ac_try;;
20280 esac
20281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282   (eval "$ac_try") 2>&5
20283   ac_status=$?
20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285   (exit $ac_status); }; }; then
20286   ac_cv_func_mmap_fixed_mapped=yes
20287 else
20288   echo "$as_me: program exited with status $ac_status" >&5
20289 echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20291
20292 ( exit $ac_status )
20293 ac_cv_func_mmap_fixed_mapped=no
20294 fi
20295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20296 fi
20297
20298
20299 fi
20300 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20301 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20302 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20303
20304 cat >>confdefs.h <<\_ACEOF
20305 #define HAVE_MMAP 1
20306 _ACEOF
20307
20308 fi
20309 rm -f conftest.mmap
20310
20311
20312     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20313 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20314 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20315   echo $ECHO_N "(cached) $ECHO_C" >&6
20316 else
20317   cat >conftest.$ac_ext <<_ACEOF
20318 /* confdefs.h.  */
20319 _ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h.  */
20323
20324 #include <features.h>
20325 #ifdef __GNU_LIBRARY__
20326  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20327   Lucky GNU user
20328  #endif
20329 #endif
20330
20331 _ACEOF
20332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20333   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20334   ac_cv_gnu_library_2_1=yes
20335 else
20336   ac_cv_gnu_library_2_1=no
20337 fi
20338 rm -f conftest*
20339
20340
20341
20342 fi
20343 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20344 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20345
20346     GLIBC21="$ac_cv_gnu_library_2_1"
20347
20348
20349
20350
20351   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20352 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20353 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20354   echo $ECHO_N "(cached) $ECHO_C" >&6
20355 else
20356
20357       if test "$cross_compiling" = yes; then
20358
20359           # Guess based on the CPU.
20360           case "$host_cpu" in
20361             alpha* | i3456786 | m68k | s390*)
20362               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20363             *)
20364               gt_cv_int_divbyzero_sigfpe="guessing no";;
20365           esac
20366
20367 else
20368   cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h.  */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h.  */
20374
20375 #include <stdlib.h>
20376 #include <signal.h>
20377
20378 static void
20379 #ifdef __cplusplus
20380 sigfpe_handler (int sig)
20381 #else
20382 sigfpe_handler (sig) int sig;
20383 #endif
20384 {
20385   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20386   exit (sig != SIGFPE);
20387 }
20388
20389 int x = 1;
20390 int y = 0;
20391 int z;
20392 int nan;
20393
20394 int main ()
20395 {
20396   signal (SIGFPE, sigfpe_handler);
20397 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20398 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20399   signal (SIGTRAP, sigfpe_handler);
20400 #endif
20401 /* Linux/SPARC yields signal SIGILL.  */
20402 #if defined (__sparc__) && defined (__linux__)
20403   signal (SIGILL, sigfpe_handler);
20404 #endif
20405
20406   z = x / y;
20407   nan = y / y;
20408   exit (1);
20409 }
20410
20411 _ACEOF
20412 rm -f conftest$ac_exeext
20413 if { (ac_try="$ac_link"
20414 case "(($ac_try" in
20415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416   *) ac_try_echo=$ac_try;;
20417 esac
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419   (eval "$ac_link") 2>&5
20420   ac_status=$?
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20423   { (case "(($ac_try" in
20424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425   *) ac_try_echo=$ac_try;;
20426 esac
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428   (eval "$ac_try") 2>&5
20429   ac_status=$?
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   (exit $ac_status); }; }; then
20432   gt_cv_int_divbyzero_sigfpe=yes
20433 else
20434   echo "$as_me: program exited with status $ac_status" >&5
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20437
20438 ( exit $ac_status )
20439 gt_cv_int_divbyzero_sigfpe=no
20440 fi
20441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20442 fi
20443
20444
20445
20446 fi
20447 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20448 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20449   case "$gt_cv_int_divbyzero_sigfpe" in
20450     *yes) value=1;;
20451     *) value=0;;
20452   esac
20453
20454 cat >>confdefs.h <<_ACEOF
20455 #define INTDIV0_RAISES_SIGFPE $value
20456 _ACEOF
20457
20458
20459
20460   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20461 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20462 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20463   echo $ECHO_N "(cached) $ECHO_C" >&6
20464 else
20465   cat >conftest.$ac_ext <<_ACEOF
20466 /* confdefs.h.  */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h.  */
20471 unsigned long long ull = 1ULL; int i = 63;
20472 int
20473 main ()
20474 {
20475 unsigned long long ullmax = (unsigned long long) -1;
20476      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20477   ;
20478   return 0;
20479 }
20480 _ACEOF
20481 rm -f conftest.$ac_objext conftest$ac_exeext
20482 if { (ac_try="$ac_link"
20483 case "(($ac_try" in
20484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485   *) ac_try_echo=$ac_try;;
20486 esac
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488   (eval "$ac_link") 2>conftest.er1
20489   ac_status=$?
20490   grep -v '^ *+' conftest.er1 >conftest.err
20491   rm -f conftest.er1
20492   cat conftest.err >&5
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); } && {
20495          test -z "$ac_c_werror_flag" ||
20496          test ! -s conftest.err
20497        } && test -s conftest$ac_exeext &&
20498        $as_test_x conftest$ac_exeext; then
20499   ac_cv_type_unsigned_long_long=yes
20500 else
20501   echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20503
20504         ac_cv_type_unsigned_long_long=no
20505 fi
20506
20507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20508       conftest$ac_exeext conftest.$ac_ext
20509 fi
20510 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20511 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20512   if test $ac_cv_type_unsigned_long_long = yes; then
20513
20514 cat >>confdefs.h <<\_ACEOF
20515 #define HAVE_UNSIGNED_LONG_LONG 1
20516 _ACEOF
20517
20518   fi
20519
20520
20521
20522
20523   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20524
20525     test $ac_cv_type_unsigned_long_long = yes \
20526       && ac_type='unsigned long long' \
20527       || ac_type='unsigned long'
20528
20529 cat >>confdefs.h <<_ACEOF
20530 #define uintmax_t $ac_type
20531 _ACEOF
20532
20533   else
20534
20535 cat >>confdefs.h <<\_ACEOF
20536 #define HAVE_UINTMAX_T 1
20537 _ACEOF
20538
20539   fi
20540
20541
20542   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20543 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20544 if test "${gt_cv_header_inttypes_h+set}" = set; then
20545   echo $ECHO_N "(cached) $ECHO_C" >&6
20546 else
20547
20548     cat >conftest.$ac_ext <<_ACEOF
20549 /* confdefs.h.  */
20550 _ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h.  */
20554 #include <sys/types.h>
20555 #include <inttypes.h>
20556 int
20557 main ()
20558 {
20559
20560   ;
20561   return 0;
20562 }
20563 _ACEOF
20564 rm -f conftest.$ac_objext
20565 if { (ac_try="$ac_compile"
20566 case "(($ac_try" in
20567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568   *) ac_try_echo=$ac_try;;
20569 esac
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571   (eval "$ac_compile") 2>conftest.er1
20572   ac_status=$?
20573   grep -v '^ *+' conftest.er1 >conftest.err
20574   rm -f conftest.er1
20575   cat conftest.err >&5
20576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577   (exit $ac_status); } && {
20578          test -z "$ac_c_werror_flag" ||
20579          test ! -s conftest.err
20580        } && test -s conftest.$ac_objext; then
20581   gt_cv_header_inttypes_h=yes
20582 else
20583   echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20585
20586         gt_cv_header_inttypes_h=no
20587 fi
20588
20589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20590
20591 fi
20592 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20593 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20594   if test $gt_cv_header_inttypes_h = yes; then
20595
20596 cat >>confdefs.h <<_ACEOF
20597 #define HAVE_INTTYPES_H 1
20598 _ACEOF
20599
20600   fi
20601
20602
20603
20604   if test $gt_cv_header_inttypes_h = yes; then
20605     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20606 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20607 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20608   echo $ECHO_N "(cached) $ECHO_C" >&6
20609 else
20610
20611         cat >conftest.$ac_ext <<_ACEOF
20612 /* confdefs.h.  */
20613 _ACEOF
20614 cat confdefs.h >>conftest.$ac_ext
20615 cat >>conftest.$ac_ext <<_ACEOF
20616 /* end confdefs.h.  */
20617 #include <inttypes.h>
20618 #ifdef PRId32
20619 char *p = PRId32;
20620 #endif
20621
20622 int
20623 main ()
20624 {
20625
20626   ;
20627   return 0;
20628 }
20629 _ACEOF
20630 rm -f conftest.$ac_objext
20631 if { (ac_try="$ac_compile"
20632 case "(($ac_try" in
20633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634   *) ac_try_echo=$ac_try;;
20635 esac
20636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20637   (eval "$ac_compile") 2>conftest.er1
20638   ac_status=$?
20639   grep -v '^ *+' conftest.er1 >conftest.err
20640   rm -f conftest.er1
20641   cat conftest.err >&5
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); } && {
20644          test -z "$ac_c_werror_flag" ||
20645          test ! -s conftest.err
20646        } && test -s conftest.$ac_objext; then
20647   gt_cv_inttypes_pri_broken=no
20648 else
20649   echo "$as_me: failed program was:" >&5
20650 sed 's/^/| /' conftest.$ac_ext >&5
20651
20652         gt_cv_inttypes_pri_broken=yes
20653 fi
20654
20655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20656
20657 fi
20658 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20659 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20660   fi
20661   if test "$gt_cv_inttypes_pri_broken" = yes; then
20662
20663 cat >>confdefs.h <<_ACEOF
20664 #define PRI_MACROS_BROKEN 1
20665 _ACEOF
20666
20667   fi
20668
20669
20670
20671 for ac_header in stdint.h
20672 do
20673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20675   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20678   echo $ECHO_N "(cached) $ECHO_C" >&6
20679 fi
20680 ac_res=`eval echo '${'$as_ac_Header'}'`
20681                { echo "$as_me:$LINENO: result: $ac_res" >&5
20682 echo "${ECHO_T}$ac_res" >&6; }
20683 else
20684   # Is the header compilable?
20685 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20686 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20687 cat >conftest.$ac_ext <<_ACEOF
20688 /* confdefs.h.  */
20689 _ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h.  */
20693 $ac_includes_default
20694 #include <$ac_header>
20695 _ACEOF
20696 rm -f conftest.$ac_objext
20697 if { (ac_try="$ac_compile"
20698 case "(($ac_try" in
20699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700   *) ac_try_echo=$ac_try;;
20701 esac
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703   (eval "$ac_compile") 2>conftest.er1
20704   ac_status=$?
20705   grep -v '^ *+' conftest.er1 >conftest.err
20706   rm -f conftest.er1
20707   cat conftest.err >&5
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); } && {
20710          test -z "$ac_c_werror_flag" ||
20711          test ! -s conftest.err
20712        } && test -s conftest.$ac_objext; then
20713   ac_header_compiler=yes
20714 else
20715   echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20717
20718         ac_header_compiler=no
20719 fi
20720
20721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20723 echo "${ECHO_T}$ac_header_compiler" >&6; }
20724
20725 # Is the header present?
20726 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20728 cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h.  */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h.  */
20734 #include <$ac_header>
20735 _ACEOF
20736 if { (ac_try="$ac_cpp conftest.$ac_ext"
20737 case "(($ac_try" in
20738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739   *) ac_try_echo=$ac_try;;
20740 esac
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20743   ac_status=$?
20744   grep -v '^ *+' conftest.er1 >conftest.err
20745   rm -f conftest.er1
20746   cat conftest.err >&5
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); } >/dev/null && {
20749          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20750          test ! -s conftest.err
20751        }; then
20752   ac_header_preproc=yes
20753 else
20754   echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20756
20757   ac_header_preproc=no
20758 fi
20759
20760 rm -f conftest.err conftest.$ac_ext
20761 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20762 echo "${ECHO_T}$ac_header_preproc" >&6; }
20763
20764 # So?  What about this header?
20765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20766   yes:no: )
20767     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20771     ac_header_preproc=yes
20772     ;;
20773   no:yes:* )
20774     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20776     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20777 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20778     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20780     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20781 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20782     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20784     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20786
20787     ;;
20788 esac
20789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20792   echo $ECHO_N "(cached) $ECHO_C" >&6
20793 else
20794   eval "$as_ac_Header=\$ac_header_preproc"
20795 fi
20796 ac_res=`eval echo '${'$as_ac_Header'}'`
20797                { echo "$as_me:$LINENO: result: $ac_res" >&5
20798 echo "${ECHO_T}$ac_res" >&6; }
20799
20800 fi
20801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20802   cat >>confdefs.h <<_ACEOF
20803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20804 _ACEOF
20805
20806 fi
20807
20808 done
20809
20810     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20811 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20812   result=
20813   cat >conftest.$ac_ext <<_ACEOF
20814 /* confdefs.h.  */
20815 _ACEOF
20816 cat confdefs.h >>conftest.$ac_ext
20817 cat >>conftest.$ac_ext <<_ACEOF
20818 /* end confdefs.h.  */
20819
20820 #include <limits.h>
20821 #if HAVE_STDINT_H
20822 #include <stdint.h>
20823 #endif
20824 #ifdef SIZE_MAX
20825 Found it
20826 #endif
20827
20828 _ACEOF
20829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20830   $EGREP "Found it" >/dev/null 2>&1; then
20831   result=yes
20832 fi
20833 rm -f conftest*
20834
20835   if test -z "$result"; then
20836                     if test "$cross_compiling" = yes; then
20837   # Depending upon the size, compute the lo and hi bounds.
20838 cat >conftest.$ac_ext <<_ACEOF
20839 /* confdefs.h.  */
20840 _ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h.  */
20844 #include <stddef.h>
20845 int
20846 main ()
20847 {
20848 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20849 test_array [0] = 0
20850
20851   ;
20852   return 0;
20853 }
20854 _ACEOF
20855 rm -f conftest.$ac_objext
20856 if { (ac_try="$ac_compile"
20857 case "(($ac_try" in
20858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20859   *) ac_try_echo=$ac_try;;
20860 esac
20861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20862   (eval "$ac_compile") 2>conftest.er1
20863   ac_status=$?
20864   grep -v '^ *+' conftest.er1 >conftest.err
20865   rm -f conftest.er1
20866   cat conftest.err >&5
20867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868   (exit $ac_status); } && {
20869          test -z "$ac_c_werror_flag" ||
20870          test ! -s conftest.err
20871        } && test -s conftest.$ac_objext; then
20872   ac_lo=0 ac_mid=0
20873   while :; do
20874     cat >conftest.$ac_ext <<_ACEOF
20875 /* confdefs.h.  */
20876 _ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h.  */
20880 #include <stddef.h>
20881 int
20882 main ()
20883 {
20884 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20885 test_array [0] = 0
20886
20887   ;
20888   return 0;
20889 }
20890 _ACEOF
20891 rm -f conftest.$ac_objext
20892 if { (ac_try="$ac_compile"
20893 case "(($ac_try" in
20894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20895   *) ac_try_echo=$ac_try;;
20896 esac
20897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20898   (eval "$ac_compile") 2>conftest.er1
20899   ac_status=$?
20900   grep -v '^ *+' conftest.er1 >conftest.err
20901   rm -f conftest.er1
20902   cat conftest.err >&5
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); } && {
20905          test -z "$ac_c_werror_flag" ||
20906          test ! -s conftest.err
20907        } && test -s conftest.$ac_objext; then
20908   ac_hi=$ac_mid; break
20909 else
20910   echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.$ac_ext >&5
20912
20913         ac_lo=`expr $ac_mid + 1`
20914                         if test $ac_lo -le $ac_mid; then
20915                           ac_lo= ac_hi=
20916                           break
20917                         fi
20918                         ac_mid=`expr 2 '*' $ac_mid + 1`
20919 fi
20920
20921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20922   done
20923 else
20924   echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20926
20927         cat >conftest.$ac_ext <<_ACEOF
20928 /* confdefs.h.  */
20929 _ACEOF
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h.  */
20933 #include <stddef.h>
20934 int
20935 main ()
20936 {
20937 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20938 test_array [0] = 0
20939
20940   ;
20941   return 0;
20942 }
20943 _ACEOF
20944 rm -f conftest.$ac_objext
20945 if { (ac_try="$ac_compile"
20946 case "(($ac_try" in
20947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948   *) ac_try_echo=$ac_try;;
20949 esac
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951   (eval "$ac_compile") 2>conftest.er1
20952   ac_status=$?
20953   grep -v '^ *+' conftest.er1 >conftest.err
20954   rm -f conftest.er1
20955   cat conftest.err >&5
20956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957   (exit $ac_status); } && {
20958          test -z "$ac_c_werror_flag" ||
20959          test ! -s conftest.err
20960        } && test -s conftest.$ac_objext; then
20961   ac_hi=-1 ac_mid=-1
20962   while :; do
20963     cat >conftest.$ac_ext <<_ACEOF
20964 /* confdefs.h.  */
20965 _ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h.  */
20969 #include <stddef.h>
20970 int
20971 main ()
20972 {
20973 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20974 test_array [0] = 0
20975
20976   ;
20977   return 0;
20978 }
20979 _ACEOF
20980 rm -f conftest.$ac_objext
20981 if { (ac_try="$ac_compile"
20982 case "(($ac_try" in
20983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984   *) ac_try_echo=$ac_try;;
20985 esac
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987   (eval "$ac_compile") 2>conftest.er1
20988   ac_status=$?
20989   grep -v '^ *+' conftest.er1 >conftest.err
20990   rm -f conftest.er1
20991   cat conftest.err >&5
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); } && {
20994          test -z "$ac_c_werror_flag" ||
20995          test ! -s conftest.err
20996        } && test -s conftest.$ac_objext; then
20997   ac_lo=$ac_mid; break
20998 else
20999   echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21001
21002         ac_hi=`expr '(' $ac_mid ')' - 1`
21003                         if test $ac_mid -le $ac_hi; then
21004                           ac_lo= ac_hi=
21005                           break
21006                         fi
21007                         ac_mid=`expr 2 '*' $ac_mid`
21008 fi
21009
21010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21011   done
21012 else
21013   echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21015
21016         ac_lo= ac_hi=
21017 fi
21018
21019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21020 fi
21021
21022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21023 # Binary search between lo and hi bounds.
21024 while test "x$ac_lo" != "x$ac_hi"; do
21025   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21026   cat >conftest.$ac_ext <<_ACEOF
21027 /* confdefs.h.  */
21028 _ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h.  */
21032 #include <stddef.h>
21033 int
21034 main ()
21035 {
21036 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21037 test_array [0] = 0
21038
21039   ;
21040   return 0;
21041 }
21042 _ACEOF
21043 rm -f conftest.$ac_objext
21044 if { (ac_try="$ac_compile"
21045 case "(($ac_try" in
21046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047   *) ac_try_echo=$ac_try;;
21048 esac
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050   (eval "$ac_compile") 2>conftest.er1
21051   ac_status=$?
21052   grep -v '^ *+' conftest.er1 >conftest.err
21053   rm -f conftest.er1
21054   cat conftest.err >&5
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); } && {
21057          test -z "$ac_c_werror_flag" ||
21058          test ! -s conftest.err
21059        } && test -s conftest.$ac_objext; then
21060   ac_hi=$ac_mid
21061 else
21062   echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21064
21065         ac_lo=`expr '(' $ac_mid ')' + 1`
21066 fi
21067
21068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21069 done
21070 case $ac_lo in
21071 ?*) res_hi=$ac_lo;;
21072 '') result=? ;;
21073 esac
21074 else
21075   cat >conftest.$ac_ext <<_ACEOF
21076 /* confdefs.h.  */
21077 _ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h.  */
21081 #include <stddef.h>
21082 static long int longval () { return ~(size_t)0 / 10; }
21083 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21084 #include <stdio.h>
21085 #include <stdlib.h>
21086 int
21087 main ()
21088 {
21089
21090   FILE *f = fopen ("conftest.val", "w");
21091   if (! f)
21092     return 1;
21093   if ((~(size_t)0 / 10) < 0)
21094     {
21095       long int i = longval ();
21096       if (i != (~(size_t)0 / 10))
21097         return 1;
21098       fprintf (f, "%ld\n", i);
21099     }
21100   else
21101     {
21102       unsigned long int i = ulongval ();
21103       if (i != (~(size_t)0 / 10))
21104         return 1;
21105       fprintf (f, "%lu\n", i);
21106     }
21107   return ferror (f) || fclose (f) != 0;
21108
21109   ;
21110   return 0;
21111 }
21112 _ACEOF
21113 rm -f conftest$ac_exeext
21114 if { (ac_try="$ac_link"
21115 case "(($ac_try" in
21116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117   *) ac_try_echo=$ac_try;;
21118 esac
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120   (eval "$ac_link") 2>&5
21121   ac_status=$?
21122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21124   { (case "(($ac_try" in
21125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126   *) ac_try_echo=$ac_try;;
21127 esac
21128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21129   (eval "$ac_try") 2>&5
21130   ac_status=$?
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); }; }; then
21133   res_hi=`cat conftest.val`
21134 else
21135   echo "$as_me: program exited with status $ac_status" >&5
21136 echo "$as_me: failed program was:" >&5
21137 sed 's/^/| /' conftest.$ac_ext >&5
21138
21139 ( exit $ac_status )
21140 result=?
21141 fi
21142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21143 fi
21144 rm -f conftest.val
21145
21146     if test "$cross_compiling" = yes; then
21147   # Depending upon the size, compute the lo and hi bounds.
21148 cat >conftest.$ac_ext <<_ACEOF
21149 /* confdefs.h.  */
21150 _ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h.  */
21154 #include <stddef.h>
21155 int
21156 main ()
21157 {
21158 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21159 test_array [0] = 0
21160
21161   ;
21162   return 0;
21163 }
21164 _ACEOF
21165 rm -f conftest.$ac_objext
21166 if { (ac_try="$ac_compile"
21167 case "(($ac_try" in
21168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21169   *) ac_try_echo=$ac_try;;
21170 esac
21171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21172   (eval "$ac_compile") 2>conftest.er1
21173   ac_status=$?
21174   grep -v '^ *+' conftest.er1 >conftest.err
21175   rm -f conftest.er1
21176   cat conftest.err >&5
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); } && {
21179          test -z "$ac_c_werror_flag" ||
21180          test ! -s conftest.err
21181        } && test -s conftest.$ac_objext; then
21182   ac_lo=0 ac_mid=0
21183   while :; do
21184     cat >conftest.$ac_ext <<_ACEOF
21185 /* confdefs.h.  */
21186 _ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h.  */
21190 #include <stddef.h>
21191 int
21192 main ()
21193 {
21194 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21195 test_array [0] = 0
21196
21197   ;
21198   return 0;
21199 }
21200 _ACEOF
21201 rm -f conftest.$ac_objext
21202 if { (ac_try="$ac_compile"
21203 case "(($ac_try" in
21204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205   *) ac_try_echo=$ac_try;;
21206 esac
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208   (eval "$ac_compile") 2>conftest.er1
21209   ac_status=$?
21210   grep -v '^ *+' conftest.er1 >conftest.err
21211   rm -f conftest.er1
21212   cat conftest.err >&5
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); } && {
21215          test -z "$ac_c_werror_flag" ||
21216          test ! -s conftest.err
21217        } && test -s conftest.$ac_objext; then
21218   ac_hi=$ac_mid; break
21219 else
21220   echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21222
21223         ac_lo=`expr $ac_mid + 1`
21224                         if test $ac_lo -le $ac_mid; then
21225                           ac_lo= ac_hi=
21226                           break
21227                         fi
21228                         ac_mid=`expr 2 '*' $ac_mid + 1`
21229 fi
21230
21231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21232   done
21233 else
21234   echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21236
21237         cat >conftest.$ac_ext <<_ACEOF
21238 /* confdefs.h.  */
21239 _ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h.  */
21243 #include <stddef.h>
21244 int
21245 main ()
21246 {
21247 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21248 test_array [0] = 0
21249
21250   ;
21251   return 0;
21252 }
21253 _ACEOF
21254 rm -f conftest.$ac_objext
21255 if { (ac_try="$ac_compile"
21256 case "(($ac_try" in
21257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258   *) ac_try_echo=$ac_try;;
21259 esac
21260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261   (eval "$ac_compile") 2>conftest.er1
21262   ac_status=$?
21263   grep -v '^ *+' conftest.er1 >conftest.err
21264   rm -f conftest.er1
21265   cat conftest.err >&5
21266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267   (exit $ac_status); } && {
21268          test -z "$ac_c_werror_flag" ||
21269          test ! -s conftest.err
21270        } && test -s conftest.$ac_objext; then
21271   ac_hi=-1 ac_mid=-1
21272   while :; do
21273     cat >conftest.$ac_ext <<_ACEOF
21274 /* confdefs.h.  */
21275 _ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h.  */
21279 #include <stddef.h>
21280 int
21281 main ()
21282 {
21283 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21284 test_array [0] = 0
21285
21286   ;
21287   return 0;
21288 }
21289 _ACEOF
21290 rm -f conftest.$ac_objext
21291 if { (ac_try="$ac_compile"
21292 case "(($ac_try" in
21293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21294   *) ac_try_echo=$ac_try;;
21295 esac
21296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21297   (eval "$ac_compile") 2>conftest.er1
21298   ac_status=$?
21299   grep -v '^ *+' conftest.er1 >conftest.err
21300   rm -f conftest.er1
21301   cat conftest.err >&5
21302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303   (exit $ac_status); } && {
21304          test -z "$ac_c_werror_flag" ||
21305          test ! -s conftest.err
21306        } && test -s conftest.$ac_objext; then
21307   ac_lo=$ac_mid; break
21308 else
21309   echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21311
21312         ac_hi=`expr '(' $ac_mid ')' - 1`
21313                         if test $ac_mid -le $ac_hi; then
21314                           ac_lo= ac_hi=
21315                           break
21316                         fi
21317                         ac_mid=`expr 2 '*' $ac_mid`
21318 fi
21319
21320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21321   done
21322 else
21323   echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21325
21326         ac_lo= ac_hi=
21327 fi
21328
21329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21330 fi
21331
21332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21333 # Binary search between lo and hi bounds.
21334 while test "x$ac_lo" != "x$ac_hi"; do
21335   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21336   cat >conftest.$ac_ext <<_ACEOF
21337 /* confdefs.h.  */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h.  */
21342 #include <stddef.h>
21343 int
21344 main ()
21345 {
21346 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21347 test_array [0] = 0
21348
21349   ;
21350   return 0;
21351 }
21352 _ACEOF
21353 rm -f conftest.$ac_objext
21354 if { (ac_try="$ac_compile"
21355 case "(($ac_try" in
21356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357   *) ac_try_echo=$ac_try;;
21358 esac
21359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360   (eval "$ac_compile") 2>conftest.er1
21361   ac_status=$?
21362   grep -v '^ *+' conftest.er1 >conftest.err
21363   rm -f conftest.er1
21364   cat conftest.err >&5
21365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366   (exit $ac_status); } && {
21367          test -z "$ac_c_werror_flag" ||
21368          test ! -s conftest.err
21369        } && test -s conftest.$ac_objext; then
21370   ac_hi=$ac_mid
21371 else
21372   echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21374
21375         ac_lo=`expr '(' $ac_mid ')' + 1`
21376 fi
21377
21378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21379 done
21380 case $ac_lo in
21381 ?*) res_lo=$ac_lo;;
21382 '') result=? ;;
21383 esac
21384 else
21385   cat >conftest.$ac_ext <<_ACEOF
21386 /* confdefs.h.  */
21387 _ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h.  */
21391 #include <stddef.h>
21392 static long int longval () { return ~(size_t)0 % 10; }
21393 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21394 #include <stdio.h>
21395 #include <stdlib.h>
21396 int
21397 main ()
21398 {
21399
21400   FILE *f = fopen ("conftest.val", "w");
21401   if (! f)
21402     return 1;
21403   if ((~(size_t)0 % 10) < 0)
21404     {
21405       long int i = longval ();
21406       if (i != (~(size_t)0 % 10))
21407         return 1;
21408       fprintf (f, "%ld\n", i);
21409     }
21410   else
21411     {
21412       unsigned long int i = ulongval ();
21413       if (i != (~(size_t)0 % 10))
21414         return 1;
21415       fprintf (f, "%lu\n", i);
21416     }
21417   return ferror (f) || fclose (f) != 0;
21418
21419   ;
21420   return 0;
21421 }
21422 _ACEOF
21423 rm -f conftest$ac_exeext
21424 if { (ac_try="$ac_link"
21425 case "(($ac_try" in
21426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427   *) ac_try_echo=$ac_try;;
21428 esac
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430   (eval "$ac_link") 2>&5
21431   ac_status=$?
21432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21434   { (case "(($ac_try" in
21435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436   *) ac_try_echo=$ac_try;;
21437 esac
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439   (eval "$ac_try") 2>&5
21440   ac_status=$?
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); }; }; then
21443   res_lo=`cat conftest.val`
21444 else
21445   echo "$as_me: program exited with status $ac_status" >&5
21446 echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21448
21449 ( exit $ac_status )
21450 result=?
21451 fi
21452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21453 fi
21454 rm -f conftest.val
21455
21456     if test "$cross_compiling" = yes; then
21457   # Depending upon the size, compute the lo and hi bounds.
21458 cat >conftest.$ac_ext <<_ACEOF
21459 /* confdefs.h.  */
21460 _ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h.  */
21464 #include <stddef.h>
21465 int
21466 main ()
21467 {
21468 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21469 test_array [0] = 0
21470
21471   ;
21472   return 0;
21473 }
21474 _ACEOF
21475 rm -f conftest.$ac_objext
21476 if { (ac_try="$ac_compile"
21477 case "(($ac_try" in
21478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479   *) ac_try_echo=$ac_try;;
21480 esac
21481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21482   (eval "$ac_compile") 2>conftest.er1
21483   ac_status=$?
21484   grep -v '^ *+' conftest.er1 >conftest.err
21485   rm -f conftest.er1
21486   cat conftest.err >&5
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); } && {
21489          test -z "$ac_c_werror_flag" ||
21490          test ! -s conftest.err
21491        } && test -s conftest.$ac_objext; then
21492   ac_lo=0 ac_mid=0
21493   while :; do
21494     cat >conftest.$ac_ext <<_ACEOF
21495 /* confdefs.h.  */
21496 _ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h.  */
21500 #include <stddef.h>
21501 int
21502 main ()
21503 {
21504 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21505 test_array [0] = 0
21506
21507   ;
21508   return 0;
21509 }
21510 _ACEOF
21511 rm -f conftest.$ac_objext
21512 if { (ac_try="$ac_compile"
21513 case "(($ac_try" in
21514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515   *) ac_try_echo=$ac_try;;
21516 esac
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518   (eval "$ac_compile") 2>conftest.er1
21519   ac_status=$?
21520   grep -v '^ *+' conftest.er1 >conftest.err
21521   rm -f conftest.er1
21522   cat conftest.err >&5
21523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524   (exit $ac_status); } && {
21525          test -z "$ac_c_werror_flag" ||
21526          test ! -s conftest.err
21527        } && test -s conftest.$ac_objext; then
21528   ac_hi=$ac_mid; break
21529 else
21530   echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21532
21533         ac_lo=`expr $ac_mid + 1`
21534                         if test $ac_lo -le $ac_mid; then
21535                           ac_lo= ac_hi=
21536                           break
21537                         fi
21538                         ac_mid=`expr 2 '*' $ac_mid + 1`
21539 fi
21540
21541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21542   done
21543 else
21544   echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21546
21547         cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h.  */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h.  */
21553 #include <stddef.h>
21554 int
21555 main ()
21556 {
21557 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21558 test_array [0] = 0
21559
21560   ;
21561   return 0;
21562 }
21563 _ACEOF
21564 rm -f conftest.$ac_objext
21565 if { (ac_try="$ac_compile"
21566 case "(($ac_try" in
21567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568   *) ac_try_echo=$ac_try;;
21569 esac
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571   (eval "$ac_compile") 2>conftest.er1
21572   ac_status=$?
21573   grep -v '^ *+' conftest.er1 >conftest.err
21574   rm -f conftest.er1
21575   cat conftest.err >&5
21576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577   (exit $ac_status); } && {
21578          test -z "$ac_c_werror_flag" ||
21579          test ! -s conftest.err
21580        } && test -s conftest.$ac_objext; then
21581   ac_hi=-1 ac_mid=-1
21582   while :; do
21583     cat >conftest.$ac_ext <<_ACEOF
21584 /* confdefs.h.  */
21585 _ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h.  */
21589 #include <stddef.h>
21590 int
21591 main ()
21592 {
21593 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21594 test_array [0] = 0
21595
21596   ;
21597   return 0;
21598 }
21599 _ACEOF
21600 rm -f conftest.$ac_objext
21601 if { (ac_try="$ac_compile"
21602 case "(($ac_try" in
21603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604   *) ac_try_echo=$ac_try;;
21605 esac
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607   (eval "$ac_compile") 2>conftest.er1
21608   ac_status=$?
21609   grep -v '^ *+' conftest.er1 >conftest.err
21610   rm -f conftest.er1
21611   cat conftest.err >&5
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); } && {
21614          test -z "$ac_c_werror_flag" ||
21615          test ! -s conftest.err
21616        } && test -s conftest.$ac_objext; then
21617   ac_lo=$ac_mid; break
21618 else
21619   echo "$as_me: failed program was:" >&5
21620 sed 's/^/| /' conftest.$ac_ext >&5
21621
21622         ac_hi=`expr '(' $ac_mid ')' - 1`
21623                         if test $ac_mid -le $ac_hi; then
21624                           ac_lo= ac_hi=
21625                           break
21626                         fi
21627                         ac_mid=`expr 2 '*' $ac_mid`
21628 fi
21629
21630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21631   done
21632 else
21633   echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.$ac_ext >&5
21635
21636         ac_lo= ac_hi=
21637 fi
21638
21639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21640 fi
21641
21642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21643 # Binary search between lo and hi bounds.
21644 while test "x$ac_lo" != "x$ac_hi"; do
21645   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21646   cat >conftest.$ac_ext <<_ACEOF
21647 /* confdefs.h.  */
21648 _ACEOF
21649 cat confdefs.h >>conftest.$ac_ext
21650 cat >>conftest.$ac_ext <<_ACEOF
21651 /* end confdefs.h.  */
21652 #include <stddef.h>
21653 int
21654 main ()
21655 {
21656 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21657 test_array [0] = 0
21658
21659   ;
21660   return 0;
21661 }
21662 _ACEOF
21663 rm -f conftest.$ac_objext
21664 if { (ac_try="$ac_compile"
21665 case "(($ac_try" in
21666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21667   *) ac_try_echo=$ac_try;;
21668 esac
21669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21670   (eval "$ac_compile") 2>conftest.er1
21671   ac_status=$?
21672   grep -v '^ *+' conftest.er1 >conftest.err
21673   rm -f conftest.er1
21674   cat conftest.err >&5
21675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); } && {
21677          test -z "$ac_c_werror_flag" ||
21678          test ! -s conftest.err
21679        } && test -s conftest.$ac_objext; then
21680   ac_hi=$ac_mid
21681 else
21682   echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21684
21685         ac_lo=`expr '(' $ac_mid ')' + 1`
21686 fi
21687
21688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21689 done
21690 case $ac_lo in
21691 ?*) fits_in_uint=$ac_lo;;
21692 '') result=? ;;
21693 esac
21694 else
21695   cat >conftest.$ac_ext <<_ACEOF
21696 /* confdefs.h.  */
21697 _ACEOF
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h.  */
21701 #include <stddef.h>
21702 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21703 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21704 #include <stdio.h>
21705 #include <stdlib.h>
21706 int
21707 main ()
21708 {
21709
21710   FILE *f = fopen ("conftest.val", "w");
21711   if (! f)
21712     return 1;
21713   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21714     {
21715       long int i = longval ();
21716       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21717         return 1;
21718       fprintf (f, "%ld\n", i);
21719     }
21720   else
21721     {
21722       unsigned long int i = ulongval ();
21723       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21724         return 1;
21725       fprintf (f, "%lu\n", i);
21726     }
21727   return ferror (f) || fclose (f) != 0;
21728
21729   ;
21730   return 0;
21731 }
21732 _ACEOF
21733 rm -f conftest$ac_exeext
21734 if { (ac_try="$ac_link"
21735 case "(($ac_try" in
21736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737   *) ac_try_echo=$ac_try;;
21738 esac
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740   (eval "$ac_link") 2>&5
21741   ac_status=$?
21742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21744   { (case "(($ac_try" in
21745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746   *) ac_try_echo=$ac_try;;
21747 esac
21748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21749   (eval "$ac_try") 2>&5
21750   ac_status=$?
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); }; }; then
21753   fits_in_uint=`cat conftest.val`
21754 else
21755   echo "$as_me: program exited with status $ac_status" >&5
21756 echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21758
21759 ( exit $ac_status )
21760 result=?
21761 fi
21762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21763 fi
21764 rm -f conftest.val
21765
21766     if test "$fits_in_uint" = 1; then
21767                   cat >conftest.$ac_ext <<_ACEOF
21768 /* confdefs.h.  */
21769 _ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h.  */
21773 #include <stddef.h>
21774         extern size_t foo;
21775         extern unsigned long foo;
21776
21777 int
21778 main ()
21779 {
21780
21781   ;
21782   return 0;
21783 }
21784 _ACEOF
21785 rm -f conftest.$ac_objext
21786 if { (ac_try="$ac_compile"
21787 case "(($ac_try" in
21788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789   *) ac_try_echo=$ac_try;;
21790 esac
21791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792   (eval "$ac_compile") 2>conftest.er1
21793   ac_status=$?
21794   grep -v '^ *+' conftest.er1 >conftest.err
21795   rm -f conftest.er1
21796   cat conftest.err >&5
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); } && {
21799          test -z "$ac_c_werror_flag" ||
21800          test ! -s conftest.err
21801        } && test -s conftest.$ac_objext; then
21802   fits_in_uint=0
21803 else
21804   echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21806
21807
21808 fi
21809
21810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21811     fi
21812     if test -z "$result"; then
21813       if test "$fits_in_uint" = 1; then
21814         result="$res_hi$res_lo"U
21815       else
21816         result="$res_hi$res_lo"UL
21817       fi
21818     else
21819             result='~(size_t)0'
21820     fi
21821   fi
21822   { echo "$as_me:$LINENO: result: $result" >&5
21823 echo "${ECHO_T}$result" >&6; }
21824   if test "$result" != yes; then
21825
21826 cat >>confdefs.h <<_ACEOF
21827 #define SIZE_MAX $result
21828 _ACEOF
21829
21830   fi
21831
21832
21833
21834
21835
21836 for ac_header in stdint.h
21837 do
21838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21840   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21843   echo $ECHO_N "(cached) $ECHO_C" >&6
21844 fi
21845 ac_res=`eval echo '${'$as_ac_Header'}'`
21846                { echo "$as_me:$LINENO: result: $ac_res" >&5
21847 echo "${ECHO_T}$ac_res" >&6; }
21848 else
21849   # Is the header compilable?
21850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21852 cat >conftest.$ac_ext <<_ACEOF
21853 /* confdefs.h.  */
21854 _ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h.  */
21858 $ac_includes_default
21859 #include <$ac_header>
21860 _ACEOF
21861 rm -f conftest.$ac_objext
21862 if { (ac_try="$ac_compile"
21863 case "(($ac_try" in
21864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865   *) ac_try_echo=$ac_try;;
21866 esac
21867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868   (eval "$ac_compile") 2>conftest.er1
21869   ac_status=$?
21870   grep -v '^ *+' conftest.er1 >conftest.err
21871   rm -f conftest.er1
21872   cat conftest.err >&5
21873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); } && {
21875          test -z "$ac_c_werror_flag" ||
21876          test ! -s conftest.err
21877        } && test -s conftest.$ac_objext; then
21878   ac_header_compiler=yes
21879 else
21880   echo "$as_me: failed program was:" >&5
21881 sed 's/^/| /' conftest.$ac_ext >&5
21882
21883         ac_header_compiler=no
21884 fi
21885
21886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21888 echo "${ECHO_T}$ac_header_compiler" >&6; }
21889
21890 # Is the header present?
21891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21893 cat >conftest.$ac_ext <<_ACEOF
21894 /* confdefs.h.  */
21895 _ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h.  */
21899 #include <$ac_header>
21900 _ACEOF
21901 if { (ac_try="$ac_cpp conftest.$ac_ext"
21902 case "(($ac_try" in
21903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904   *) ac_try_echo=$ac_try;;
21905 esac
21906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21908   ac_status=$?
21909   grep -v '^ *+' conftest.er1 >conftest.err
21910   rm -f conftest.er1
21911   cat conftest.err >&5
21912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913   (exit $ac_status); } >/dev/null && {
21914          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21915          test ! -s conftest.err
21916        }; then
21917   ac_header_preproc=yes
21918 else
21919   echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21921
21922   ac_header_preproc=no
21923 fi
21924
21925 rm -f conftest.err conftest.$ac_ext
21926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21927 echo "${ECHO_T}$ac_header_preproc" >&6; }
21928
21929 # So?  What about this header?
21930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21931   yes:no: )
21932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21936     ac_header_preproc=yes
21937     ;;
21938   no:yes:* )
21939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21941     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21942 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21943     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21945     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21946 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21949     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21951
21952     ;;
21953 esac
21954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21957   echo $ECHO_N "(cached) $ECHO_C" >&6
21958 else
21959   eval "$as_ac_Header=\$ac_header_preproc"
21960 fi
21961 ac_res=`eval echo '${'$as_ac_Header'}'`
21962                { echo "$as_me:$LINENO: result: $ac_res" >&5
21963 echo "${ECHO_T}$ac_res" >&6; }
21964
21965 fi
21966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21967   cat >>confdefs.h <<_ACEOF
21968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21969 _ACEOF
21970
21971 fi
21972
21973 done
21974
21975
21976
21977
21978
21979
21980
21981
21982   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21983 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21984 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21985   echo $ECHO_N "(cached) $ECHO_C" >&6
21986 else
21987   cat >conftest.$ac_ext <<_ACEOF
21988 /* confdefs.h.  */
21989 _ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h.  */
21993 $ac_includes_default
21994 typedef ptrdiff_t ac__type_new_;
21995 int
21996 main ()
21997 {
21998 if ((ac__type_new_ *) 0)
21999   return 0;
22000 if (sizeof (ac__type_new_))
22001   return 0;
22002   ;
22003   return 0;
22004 }
22005 _ACEOF
22006 rm -f conftest.$ac_objext
22007 if { (ac_try="$ac_compile"
22008 case "(($ac_try" in
22009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010   *) ac_try_echo=$ac_try;;
22011 esac
22012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013   (eval "$ac_compile") 2>conftest.er1
22014   ac_status=$?
22015   grep -v '^ *+' conftest.er1 >conftest.err
22016   rm -f conftest.er1
22017   cat conftest.err >&5
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); } && {
22020          test -z "$ac_c_werror_flag" ||
22021          test ! -s conftest.err
22022        } && test -s conftest.$ac_objext; then
22023   ac_cv_type_ptrdiff_t=yes
22024 else
22025   echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22027
22028         ac_cv_type_ptrdiff_t=no
22029 fi
22030
22031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22032 fi
22033 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22034 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22035 if test $ac_cv_type_ptrdiff_t = yes; then
22036   :
22037 else
22038
22039 cat >>confdefs.h <<\_ACEOF
22040 #define ptrdiff_t long
22041 _ACEOF
22042
22043
22044 fi
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22057 stdlib.h string.h unistd.h sys/param.h
22058 do
22059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22061   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22064   echo $ECHO_N "(cached) $ECHO_C" >&6
22065 fi
22066 ac_res=`eval echo '${'$as_ac_Header'}'`
22067                { echo "$as_me:$LINENO: result: $ac_res" >&5
22068 echo "${ECHO_T}$ac_res" >&6; }
22069 else
22070   # Is the header compilable?
22071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22073 cat >conftest.$ac_ext <<_ACEOF
22074 /* confdefs.h.  */
22075 _ACEOF
22076 cat confdefs.h >>conftest.$ac_ext
22077 cat >>conftest.$ac_ext <<_ACEOF
22078 /* end confdefs.h.  */
22079 $ac_includes_default
22080 #include <$ac_header>
22081 _ACEOF
22082 rm -f conftest.$ac_objext
22083 if { (ac_try="$ac_compile"
22084 case "(($ac_try" in
22085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086   *) ac_try_echo=$ac_try;;
22087 esac
22088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089   (eval "$ac_compile") 2>conftest.er1
22090   ac_status=$?
22091   grep -v '^ *+' conftest.er1 >conftest.err
22092   rm -f conftest.er1
22093   cat conftest.err >&5
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); } && {
22096          test -z "$ac_c_werror_flag" ||
22097          test ! -s conftest.err
22098        } && test -s conftest.$ac_objext; then
22099   ac_header_compiler=yes
22100 else
22101   echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22103
22104         ac_header_compiler=no
22105 fi
22106
22107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22109 echo "${ECHO_T}$ac_header_compiler" >&6; }
22110
22111 # Is the header present?
22112 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22114 cat >conftest.$ac_ext <<_ACEOF
22115 /* confdefs.h.  */
22116 _ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h.  */
22120 #include <$ac_header>
22121 _ACEOF
22122 if { (ac_try="$ac_cpp conftest.$ac_ext"
22123 case "(($ac_try" in
22124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125   *) ac_try_echo=$ac_try;;
22126 esac
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22129   ac_status=$?
22130   grep -v '^ *+' conftest.er1 >conftest.err
22131   rm -f conftest.er1
22132   cat conftest.err >&5
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); } >/dev/null && {
22135          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22136          test ! -s conftest.err
22137        }; then
22138   ac_header_preproc=yes
22139 else
22140   echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22142
22143   ac_header_preproc=no
22144 fi
22145
22146 rm -f conftest.err conftest.$ac_ext
22147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22148 echo "${ECHO_T}$ac_header_preproc" >&6; }
22149
22150 # So?  What about this header?
22151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22152   yes:no: )
22153     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22157     ac_header_preproc=yes
22158     ;;
22159   no:yes:* )
22160     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22162     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22163 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22164     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22166     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22167 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22170     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22172
22173     ;;
22174 esac
22175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22178   echo $ECHO_N "(cached) $ECHO_C" >&6
22179 else
22180   eval "$as_ac_Header=\$ac_header_preproc"
22181 fi
22182 ac_res=`eval echo '${'$as_ac_Header'}'`
22183                { echo "$as_me:$LINENO: result: $ac_res" >&5
22184 echo "${ECHO_T}$ac_res" >&6; }
22185
22186 fi
22187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22188   cat >>confdefs.h <<_ACEOF
22189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22190 _ACEOF
22191
22192 fi
22193
22194 done
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22220 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22221 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22222 __fsetlocking
22223 do
22224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22228   echo $ECHO_N "(cached) $ECHO_C" >&6
22229 else
22230   cat >conftest.$ac_ext <<_ACEOF
22231 /* confdefs.h.  */
22232 _ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h.  */
22236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22238 #define $ac_func innocuous_$ac_func
22239
22240 /* System header to define __stub macros and hopefully few prototypes,
22241     which can conflict with char $ac_func (); below.
22242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22243     <limits.h> exists even on freestanding compilers.  */
22244
22245 #ifdef __STDC__
22246 # include <limits.h>
22247 #else
22248 # include <assert.h>
22249 #endif
22250
22251 #undef $ac_func
22252
22253 /* Override any GCC internal prototype to avoid an error.
22254    Use char because int might match the return type of a GCC
22255    builtin and then its argument prototype would still apply.  */
22256 #ifdef __cplusplus
22257 extern "C"
22258 #endif
22259 char $ac_func ();
22260 /* The GNU C library defines this for functions which it implements
22261     to always fail with ENOSYS.  Some functions are actually named
22262     something starting with __ and the normal name is an alias.  */
22263 #if defined __stub_$ac_func || defined __stub___$ac_func
22264 choke me
22265 #endif
22266
22267 int
22268 main ()
22269 {
22270 return $ac_func ();
22271   ;
22272   return 0;
22273 }
22274 _ACEOF
22275 rm -f conftest.$ac_objext conftest$ac_exeext
22276 if { (ac_try="$ac_link"
22277 case "(($ac_try" in
22278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279   *) ac_try_echo=$ac_try;;
22280 esac
22281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22282   (eval "$ac_link") 2>conftest.er1
22283   ac_status=$?
22284   grep -v '^ *+' conftest.er1 >conftest.err
22285   rm -f conftest.er1
22286   cat conftest.err >&5
22287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288   (exit $ac_status); } && {
22289          test -z "$ac_c_werror_flag" ||
22290          test ! -s conftest.err
22291        } && test -s conftest$ac_exeext &&
22292        $as_test_x conftest$ac_exeext; then
22293   eval "$as_ac_var=yes"
22294 else
22295   echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22297
22298         eval "$as_ac_var=no"
22299 fi
22300
22301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22302       conftest$ac_exeext conftest.$ac_ext
22303 fi
22304 ac_res=`eval echo '${'$as_ac_var'}'`
22305                { echo "$as_me:$LINENO: result: $ac_res" >&5
22306 echo "${ECHO_T}$ac_res" >&6; }
22307 if test `eval echo '${'$as_ac_var'}'` = yes; then
22308   cat >>confdefs.h <<_ACEOF
22309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22310 _ACEOF
22311
22312 fi
22313 done
22314
22315
22316
22317   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22318 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22319 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22320   echo $ECHO_N "(cached) $ECHO_C" >&6
22321 else
22322   cat >conftest.$ac_ext <<_ACEOF
22323 /* confdefs.h.  */
22324 _ACEOF
22325 cat confdefs.h >>conftest.$ac_ext
22326 cat >>conftest.$ac_ext <<_ACEOF
22327 /* end confdefs.h.  */
22328 #include <stdio.h>
22329 int
22330 main ()
22331 {
22332
22333 #ifndef _snprintf
22334   char *p = (char *) _snprintf;
22335 #endif
22336
22337   ;
22338   return 0;
22339 }
22340 _ACEOF
22341 rm -f conftest.$ac_objext
22342 if { (ac_try="$ac_compile"
22343 case "(($ac_try" in
22344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345   *) ac_try_echo=$ac_try;;
22346 esac
22347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348   (eval "$ac_compile") 2>conftest.er1
22349   ac_status=$?
22350   grep -v '^ *+' conftest.er1 >conftest.err
22351   rm -f conftest.er1
22352   cat conftest.err >&5
22353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354   (exit $ac_status); } && {
22355          test -z "$ac_c_werror_flag" ||
22356          test ! -s conftest.err
22357        } && test -s conftest.$ac_objext; then
22358   ac_cv_have_decl__snprintf=yes
22359 else
22360   echo "$as_me: failed program was:" >&5
22361 sed 's/^/| /' conftest.$ac_ext >&5
22362
22363         ac_cv_have_decl__snprintf=no
22364 fi
22365
22366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22367 fi
22368 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22369 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22370   if test $ac_cv_have_decl__snprintf = yes; then
22371     gt_value=1
22372   else
22373     gt_value=0
22374   fi
22375
22376 cat >>confdefs.h <<_ACEOF
22377 #define HAVE_DECL__SNPRINTF $gt_value
22378 _ACEOF
22379
22380
22381
22382   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22383 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22384 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22385   echo $ECHO_N "(cached) $ECHO_C" >&6
22386 else
22387   cat >conftest.$ac_ext <<_ACEOF
22388 /* confdefs.h.  */
22389 _ACEOF
22390 cat confdefs.h >>conftest.$ac_ext
22391 cat >>conftest.$ac_ext <<_ACEOF
22392 /* end confdefs.h.  */
22393 #include <stdio.h>
22394 int
22395 main ()
22396 {
22397
22398 #ifndef _snwprintf
22399   char *p = (char *) _snwprintf;
22400 #endif
22401
22402   ;
22403   return 0;
22404 }
22405 _ACEOF
22406 rm -f conftest.$ac_objext
22407 if { (ac_try="$ac_compile"
22408 case "(($ac_try" in
22409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410   *) ac_try_echo=$ac_try;;
22411 esac
22412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22413   (eval "$ac_compile") 2>conftest.er1
22414   ac_status=$?
22415   grep -v '^ *+' conftest.er1 >conftest.err
22416   rm -f conftest.er1
22417   cat conftest.err >&5
22418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419   (exit $ac_status); } && {
22420          test -z "$ac_c_werror_flag" ||
22421          test ! -s conftest.err
22422        } && test -s conftest.$ac_objext; then
22423   ac_cv_have_decl__snwprintf=yes
22424 else
22425   echo "$as_me: failed program was:" >&5
22426 sed 's/^/| /' conftest.$ac_ext >&5
22427
22428         ac_cv_have_decl__snwprintf=no
22429 fi
22430
22431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22432 fi
22433 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22434 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22435   if test $ac_cv_have_decl__snwprintf = yes; then
22436     gt_value=1
22437   else
22438     gt_value=0
22439   fi
22440
22441 cat >>confdefs.h <<_ACEOF
22442 #define HAVE_DECL__SNWPRINTF $gt_value
22443 _ACEOF
22444
22445
22446
22447
22448   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22449 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22450 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22451   echo $ECHO_N "(cached) $ECHO_C" >&6
22452 else
22453   cat >conftest.$ac_ext <<_ACEOF
22454 /* confdefs.h.  */
22455 _ACEOF
22456 cat confdefs.h >>conftest.$ac_ext
22457 cat >>conftest.$ac_ext <<_ACEOF
22458 /* end confdefs.h.  */
22459 #include <stdio.h>
22460 int
22461 main ()
22462 {
22463
22464 #ifndef feof_unlocked
22465   char *p = (char *) feof_unlocked;
22466 #endif
22467
22468   ;
22469   return 0;
22470 }
22471 _ACEOF
22472 rm -f conftest.$ac_objext
22473 if { (ac_try="$ac_compile"
22474 case "(($ac_try" in
22475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22476   *) ac_try_echo=$ac_try;;
22477 esac
22478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22479   (eval "$ac_compile") 2>conftest.er1
22480   ac_status=$?
22481   grep -v '^ *+' conftest.er1 >conftest.err
22482   rm -f conftest.er1
22483   cat conftest.err >&5
22484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485   (exit $ac_status); } && {
22486          test -z "$ac_c_werror_flag" ||
22487          test ! -s conftest.err
22488        } && test -s conftest.$ac_objext; then
22489   ac_cv_have_decl_feof_unlocked=yes
22490 else
22491   echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22493
22494         ac_cv_have_decl_feof_unlocked=no
22495 fi
22496
22497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22498 fi
22499 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22500 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22501   if test $ac_cv_have_decl_feof_unlocked = yes; then
22502     gt_value=1
22503   else
22504     gt_value=0
22505   fi
22506
22507 cat >>confdefs.h <<_ACEOF
22508 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22509 _ACEOF
22510
22511
22512
22513   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22514 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22515 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22516   echo $ECHO_N "(cached) $ECHO_C" >&6
22517 else
22518   cat >conftest.$ac_ext <<_ACEOF
22519 /* confdefs.h.  */
22520 _ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h.  */
22524 #include <stdio.h>
22525 int
22526 main ()
22527 {
22528
22529 #ifndef fgets_unlocked
22530   char *p = (char *) fgets_unlocked;
22531 #endif
22532
22533   ;
22534   return 0;
22535 }
22536 _ACEOF
22537 rm -f conftest.$ac_objext
22538 if { (ac_try="$ac_compile"
22539 case "(($ac_try" in
22540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22541   *) ac_try_echo=$ac_try;;
22542 esac
22543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22544   (eval "$ac_compile") 2>conftest.er1
22545   ac_status=$?
22546   grep -v '^ *+' conftest.er1 >conftest.err
22547   rm -f conftest.er1
22548   cat conftest.err >&5
22549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550   (exit $ac_status); } && {
22551          test -z "$ac_c_werror_flag" ||
22552          test ! -s conftest.err
22553        } && test -s conftest.$ac_objext; then
22554   ac_cv_have_decl_fgets_unlocked=yes
22555 else
22556   echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22558
22559         ac_cv_have_decl_fgets_unlocked=no
22560 fi
22561
22562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22563 fi
22564 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22565 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22566   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22567     gt_value=1
22568   else
22569     gt_value=0
22570   fi
22571
22572 cat >>confdefs.h <<_ACEOF
22573 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22574 _ACEOF
22575
22576
22577
22578   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22579 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22580 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22581   echo $ECHO_N "(cached) $ECHO_C" >&6
22582 else
22583   cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h.  */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h.  */
22589 #include <stdio.h>
22590 int
22591 main ()
22592 {
22593
22594 #ifndef getc_unlocked
22595   char *p = (char *) getc_unlocked;
22596 #endif
22597
22598   ;
22599   return 0;
22600 }
22601 _ACEOF
22602 rm -f conftest.$ac_objext
22603 if { (ac_try="$ac_compile"
22604 case "(($ac_try" in
22605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22606   *) ac_try_echo=$ac_try;;
22607 esac
22608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22609   (eval "$ac_compile") 2>conftest.er1
22610   ac_status=$?
22611   grep -v '^ *+' conftest.er1 >conftest.err
22612   rm -f conftest.er1
22613   cat conftest.err >&5
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); } && {
22616          test -z "$ac_c_werror_flag" ||
22617          test ! -s conftest.err
22618        } && test -s conftest.$ac_objext; then
22619   ac_cv_have_decl_getc_unlocked=yes
22620 else
22621   echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22623
22624         ac_cv_have_decl_getc_unlocked=no
22625 fi
22626
22627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22628 fi
22629 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22630 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22631   if test $ac_cv_have_decl_getc_unlocked = yes; then
22632     gt_value=1
22633   else
22634     gt_value=0
22635   fi
22636
22637 cat >>confdefs.h <<_ACEOF
22638 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22639 _ACEOF
22640
22641
22642
22643   case $gt_cv_func_printf_posix in
22644     *yes) HAVE_POSIX_PRINTF=1 ;;
22645     *) HAVE_POSIX_PRINTF=0 ;;
22646   esac
22647
22648   if test "$ac_cv_func_asprintf" = yes; then
22649     HAVE_ASPRINTF=1
22650   else
22651     HAVE_ASPRINTF=0
22652   fi
22653
22654   if test "$ac_cv_func_snprintf" = yes; then
22655     HAVE_SNPRINTF=1
22656   else
22657     HAVE_SNPRINTF=0
22658   fi
22659
22660   if test "$ac_cv_func_wprintf" = yes; then
22661     HAVE_WPRINTF=1
22662   else
22663     HAVE_WPRINTF=0
22664   fi
22665
22666
22667
22668
22669
22670
22671
22672           am_save_CPPFLAGS="$CPPFLAGS"
22673
22674   for element in $INCICONV; do
22675     haveit=
22676     for x in $CPPFLAGS; do
22677
22678   acl_save_prefix="$prefix"
22679   prefix="$acl_final_prefix"
22680   acl_save_exec_prefix="$exec_prefix"
22681   exec_prefix="$acl_final_exec_prefix"
22682   eval x=\"$x\"
22683   exec_prefix="$acl_save_exec_prefix"
22684   prefix="$acl_save_prefix"
22685
22686       if test "X$x" = "X$element"; then
22687         haveit=yes
22688         break
22689       fi
22690     done
22691     if test -z "$haveit"; then
22692       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22693     fi
22694   done
22695
22696
22697   { echo "$as_me:$LINENO: checking for iconv" >&5
22698 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22699 if test "${am_cv_func_iconv+set}" = set; then
22700   echo $ECHO_N "(cached) $ECHO_C" >&6
22701 else
22702
22703     am_cv_func_iconv="no, consider installing GNU libiconv"
22704     am_cv_lib_iconv=no
22705     cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h.  */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h.  */
22711 #include <stdlib.h>
22712 #include <iconv.h>
22713 int
22714 main ()
22715 {
22716 iconv_t cd = iconv_open("","");
22717        iconv(cd,NULL,NULL,NULL,NULL);
22718        iconv_close(cd);
22719   ;
22720   return 0;
22721 }
22722 _ACEOF
22723 rm -f conftest.$ac_objext conftest$ac_exeext
22724 if { (ac_try="$ac_link"
22725 case "(($ac_try" in
22726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727   *) ac_try_echo=$ac_try;;
22728 esac
22729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22730   (eval "$ac_link") 2>conftest.er1
22731   ac_status=$?
22732   grep -v '^ *+' conftest.er1 >conftest.err
22733   rm -f conftest.er1
22734   cat conftest.err >&5
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); } && {
22737          test -z "$ac_c_werror_flag" ||
22738          test ! -s conftest.err
22739        } && test -s conftest$ac_exeext &&
22740        $as_test_x conftest$ac_exeext; then
22741   am_cv_func_iconv=yes
22742 else
22743   echo "$as_me: failed program was:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22745
22746
22747 fi
22748
22749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22750       conftest$ac_exeext conftest.$ac_ext
22751     if test "$am_cv_func_iconv" != yes; then
22752       am_save_LIBS="$LIBS"
22753       LIBS="$LIBS $LIBICONV"
22754       cat >conftest.$ac_ext <<_ACEOF
22755 /* confdefs.h.  */
22756 _ACEOF
22757 cat confdefs.h >>conftest.$ac_ext
22758 cat >>conftest.$ac_ext <<_ACEOF
22759 /* end confdefs.h.  */
22760 #include <stdlib.h>
22761 #include <iconv.h>
22762 int
22763 main ()
22764 {
22765 iconv_t cd = iconv_open("","");
22766          iconv(cd,NULL,NULL,NULL,NULL);
22767          iconv_close(cd);
22768   ;
22769   return 0;
22770 }
22771 _ACEOF
22772 rm -f conftest.$ac_objext conftest$ac_exeext
22773 if { (ac_try="$ac_link"
22774 case "(($ac_try" in
22775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776   *) ac_try_echo=$ac_try;;
22777 esac
22778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22779   (eval "$ac_link") 2>conftest.er1
22780   ac_status=$?
22781   grep -v '^ *+' conftest.er1 >conftest.err
22782   rm -f conftest.er1
22783   cat conftest.err >&5
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); } && {
22786          test -z "$ac_c_werror_flag" ||
22787          test ! -s conftest.err
22788        } && test -s conftest$ac_exeext &&
22789        $as_test_x conftest$ac_exeext; then
22790   am_cv_lib_iconv=yes
22791         am_cv_func_iconv=yes
22792 else
22793   echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22795
22796
22797 fi
22798
22799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22800       conftest$ac_exeext conftest.$ac_ext
22801       LIBS="$am_save_LIBS"
22802     fi
22803
22804 fi
22805 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22806 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22807   if test "$am_cv_func_iconv" = yes; then
22808
22809 cat >>confdefs.h <<\_ACEOF
22810 #define HAVE_ICONV 1
22811 _ACEOF
22812
22813   fi
22814   if test "$am_cv_lib_iconv" = yes; then
22815     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22816 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22817     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22818 echo "${ECHO_T}$LIBICONV" >&6; }
22819   else
22820             CPPFLAGS="$am_save_CPPFLAGS"
22821     LIBICONV=
22822     LTLIBICONV=
22823   fi
22824
22825
22826
22827   if test "$am_cv_func_iconv" = yes; then
22828     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22829 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22830     if test "${am_cv_proto_iconv+set}" = set; then
22831   echo $ECHO_N "(cached) $ECHO_C" >&6
22832 else
22833
22834       cat >conftest.$ac_ext <<_ACEOF
22835 /* confdefs.h.  */
22836 _ACEOF
22837 cat confdefs.h >>conftest.$ac_ext
22838 cat >>conftest.$ac_ext <<_ACEOF
22839 /* end confdefs.h.  */
22840
22841 #include <stdlib.h>
22842 #include <iconv.h>
22843 extern
22844 #ifdef __cplusplus
22845 "C"
22846 #endif
22847 #if defined(__STDC__) || defined(__cplusplus)
22848 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22849 #else
22850 size_t iconv();
22851 #endif
22852
22853 int
22854 main ()
22855 {
22856
22857   ;
22858   return 0;
22859 }
22860 _ACEOF
22861 rm -f conftest.$ac_objext
22862 if { (ac_try="$ac_compile"
22863 case "(($ac_try" in
22864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865   *) ac_try_echo=$ac_try;;
22866 esac
22867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22868   (eval "$ac_compile") 2>conftest.er1
22869   ac_status=$?
22870   grep -v '^ *+' conftest.er1 >conftest.err
22871   rm -f conftest.er1
22872   cat conftest.err >&5
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); } && {
22875          test -z "$ac_c_werror_flag" ||
22876          test ! -s conftest.err
22877        } && test -s conftest.$ac_objext; then
22878   am_cv_proto_iconv_arg1=""
22879 else
22880   echo "$as_me: failed program was:" >&5
22881 sed 's/^/| /' conftest.$ac_ext >&5
22882
22883         am_cv_proto_iconv_arg1="const"
22884 fi
22885
22886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22887       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);"
22888 fi
22889
22890     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22891     { echo "$as_me:$LINENO: result: ${ac_t:-
22892          }$am_cv_proto_iconv" >&5
22893 echo "${ECHO_T}${ac_t:-
22894          }$am_cv_proto_iconv" >&6; }
22895
22896 cat >>confdefs.h <<_ACEOF
22897 #define ICONV_CONST $am_cv_proto_iconv_arg1
22898 _ACEOF
22899
22900   fi
22901
22902
22903   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22904 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22905 if test "${am_cv_langinfo_codeset+set}" = set; then
22906   echo $ECHO_N "(cached) $ECHO_C" >&6
22907 else
22908   cat >conftest.$ac_ext <<_ACEOF
22909 /* confdefs.h.  */
22910 _ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h.  */
22914 #include <langinfo.h>
22915 int
22916 main ()
22917 {
22918 char* cs = nl_langinfo(CODESET);
22919   ;
22920   return 0;
22921 }
22922 _ACEOF
22923 rm -f conftest.$ac_objext conftest$ac_exeext
22924 if { (ac_try="$ac_link"
22925 case "(($ac_try" in
22926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22927   *) ac_try_echo=$ac_try;;
22928 esac
22929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22930   (eval "$ac_link") 2>conftest.er1
22931   ac_status=$?
22932   grep -v '^ *+' conftest.er1 >conftest.err
22933   rm -f conftest.er1
22934   cat conftest.err >&5
22935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936   (exit $ac_status); } && {
22937          test -z "$ac_c_werror_flag" ||
22938          test ! -s conftest.err
22939        } && test -s conftest$ac_exeext &&
22940        $as_test_x conftest$ac_exeext; then
22941   am_cv_langinfo_codeset=yes
22942 else
22943   echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22945
22946         am_cv_langinfo_codeset=no
22947 fi
22948
22949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22950       conftest$ac_exeext conftest.$ac_ext
22951
22952 fi
22953 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22954 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22955   if test $am_cv_langinfo_codeset = yes; then
22956
22957 cat >>confdefs.h <<\_ACEOF
22958 #define HAVE_LANGINFO_CODESET 1
22959 _ACEOF
22960
22961   fi
22962
22963   if test $ac_cv_header_locale_h = yes; then
22964
22965   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22966 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22967 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22968   echo $ECHO_N "(cached) $ECHO_C" >&6
22969 else
22970   cat >conftest.$ac_ext <<_ACEOF
22971 /* confdefs.h.  */
22972 _ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h.  */
22976 #include <locale.h>
22977 int
22978 main ()
22979 {
22980 return LC_MESSAGES
22981   ;
22982   return 0;
22983 }
22984 _ACEOF
22985 rm -f conftest.$ac_objext conftest$ac_exeext
22986 if { (ac_try="$ac_link"
22987 case "(($ac_try" in
22988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989   *) ac_try_echo=$ac_try;;
22990 esac
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992   (eval "$ac_link") 2>conftest.er1
22993   ac_status=$?
22994   grep -v '^ *+' conftest.er1 >conftest.err
22995   rm -f conftest.er1
22996   cat conftest.err >&5
22997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); } && {
22999          test -z "$ac_c_werror_flag" ||
23000          test ! -s conftest.err
23001        } && test -s conftest$ac_exeext &&
23002        $as_test_x conftest$ac_exeext; then
23003   gt_cv_val_LC_MESSAGES=yes
23004 else
23005   echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23007
23008         gt_cv_val_LC_MESSAGES=no
23009 fi
23010
23011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23012       conftest$ac_exeext conftest.$ac_ext
23013 fi
23014 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23015 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23016   if test $gt_cv_val_LC_MESSAGES = yes; then
23017
23018 cat >>confdefs.h <<\_ACEOF
23019 #define HAVE_LC_MESSAGES 1
23020 _ACEOF
23021
23022   fi
23023
23024   fi
23025
23026   if test -n "$INTL_MACOSX_LIBS"; then
23027     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23028   fi
23029
23030                       for ac_prog in bison
23031 do
23032   # Extract the first word of "$ac_prog", so it can be a program name with args.
23033 set dummy $ac_prog; ac_word=$2
23034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23036 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23037   echo $ECHO_N "(cached) $ECHO_C" >&6
23038 else
23039   if test -n "$INTLBISON"; then
23040   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23041 else
23042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23043 for as_dir in $PATH
23044 do
23045   IFS=$as_save_IFS
23046   test -z "$as_dir" && as_dir=.
23047   for ac_exec_ext in '' $ac_executable_extensions; do
23048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23049     ac_cv_prog_INTLBISON="$ac_prog"
23050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23051     break 2
23052   fi
23053 done
23054 done
23055 IFS=$as_save_IFS
23056
23057 fi
23058 fi
23059 INTLBISON=$ac_cv_prog_INTLBISON
23060 if test -n "$INTLBISON"; then
23061   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23062 echo "${ECHO_T}$INTLBISON" >&6; }
23063 else
23064   { echo "$as_me:$LINENO: result: no" >&5
23065 echo "${ECHO_T}no" >&6; }
23066 fi
23067
23068
23069   test -n "$INTLBISON" && break
23070 done
23071
23072   if test -z "$INTLBISON"; then
23073     ac_verc_fail=yes
23074   else
23075         { echo "$as_me:$LINENO: checking version of bison" >&5
23076 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23077     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23078     case $ac_prog_version in
23079       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23080       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23081          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23082       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23083     esac
23084     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23085 echo "${ECHO_T}$ac_prog_version" >&6; }
23086   fi
23087   if test $ac_verc_fail = yes; then
23088     INTLBISON=:
23089   fi
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23107 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23108 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23109   echo $ECHO_N "(cached) $ECHO_C" >&6
23110 else
23111   gt_save_CPPFLAGS="$CPPFLAGS"
23112      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23113      gt_save_LIBS="$LIBS"
23114      LIBS="$LIBS -framework CoreFoundation"
23115      cat >conftest.$ac_ext <<_ACEOF
23116 /* confdefs.h.  */
23117 _ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h.  */
23121 #include <CFPreferences.h>
23122 int
23123 main ()
23124 {
23125 CFPreferencesCopyAppValue(NULL, NULL)
23126   ;
23127   return 0;
23128 }
23129 _ACEOF
23130 rm -f conftest.$ac_objext conftest$ac_exeext
23131 if { (ac_try="$ac_link"
23132 case "(($ac_try" in
23133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134   *) ac_try_echo=$ac_try;;
23135 esac
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137   (eval "$ac_link") 2>conftest.er1
23138   ac_status=$?
23139   grep -v '^ *+' conftest.er1 >conftest.err
23140   rm -f conftest.er1
23141   cat conftest.err >&5
23142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143   (exit $ac_status); } && {
23144          test -z "$ac_c_werror_flag" ||
23145          test ! -s conftest.err
23146        } && test -s conftest$ac_exeext &&
23147        $as_test_x conftest$ac_exeext; then
23148   gt_cv_func_CFPreferencesCopyAppValue=yes
23149 else
23150   echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23152
23153         gt_cv_func_CFPreferencesCopyAppValue=no
23154 fi
23155
23156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23157       conftest$ac_exeext conftest.$ac_ext
23158      CPPFLAGS="$gt_save_CPPFLAGS"
23159      LIBS="$gt_save_LIBS"
23160 fi
23161 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23162 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23163   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23164
23165 cat >>confdefs.h <<\_ACEOF
23166 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23167 _ACEOF
23168
23169   fi
23170     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23171 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23172 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23173   echo $ECHO_N "(cached) $ECHO_C" >&6
23174 else
23175   gt_save_CPPFLAGS="$CPPFLAGS"
23176      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23177      gt_save_LIBS="$LIBS"
23178      LIBS="$LIBS -framework CoreFoundation"
23179      cat >conftest.$ac_ext <<_ACEOF
23180 /* confdefs.h.  */
23181 _ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h.  */
23185 #include <CFLocale.h>
23186 int
23187 main ()
23188 {
23189 CFLocaleCopyCurrent();
23190   ;
23191   return 0;
23192 }
23193 _ACEOF
23194 rm -f conftest.$ac_objext conftest$ac_exeext
23195 if { (ac_try="$ac_link"
23196 case "(($ac_try" in
23197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198   *) ac_try_echo=$ac_try;;
23199 esac
23200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23201   (eval "$ac_link") 2>conftest.er1
23202   ac_status=$?
23203   grep -v '^ *+' conftest.er1 >conftest.err
23204   rm -f conftest.er1
23205   cat conftest.err >&5
23206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); } && {
23208          test -z "$ac_c_werror_flag" ||
23209          test ! -s conftest.err
23210        } && test -s conftest$ac_exeext &&
23211        $as_test_x conftest$ac_exeext; then
23212   gt_cv_func_CFLocaleCopyCurrent=yes
23213 else
23214   echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23216
23217         gt_cv_func_CFLocaleCopyCurrent=no
23218 fi
23219
23220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23221       conftest$ac_exeext conftest.$ac_ext
23222      CPPFLAGS="$gt_save_CPPFLAGS"
23223      LIBS="$gt_save_LIBS"
23224 fi
23225 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23226 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23227   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23228
23229 cat >>confdefs.h <<\_ACEOF
23230 #define HAVE_CFLOCALECOPYCURRENT 1
23231 _ACEOF
23232
23233   fi
23234   INTL_MACOSX_LIBS=
23235   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23236     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23237   fi
23238
23239
23240
23241
23242   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23243 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23244     # Check whether --enable-nls was given.
23245 if test "${enable_nls+set}" = set; then
23246   enableval=$enable_nls; USE_NLS=$enableval
23247 else
23248   USE_NLS=yes
23249 fi
23250
23251   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23252 echo "${ECHO_T}$USE_NLS" >&6; }
23253
23254
23255
23256
23257     BUILD_INCLUDED_LIBINTL=no
23258     USE_INCLUDED_LIBINTL=no
23259
23260   LIBINTL=
23261   LTLIBINTL=
23262   POSUB=
23263
23264     if test "$USE_NLS" = "yes"; then
23265     gt_use_preinstalled_gnugettext=no
23266
23267       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23268 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23269
23270 # Check whether --with-included-gettext was given.
23271 if test "${with_included_gettext+set}" = set; then
23272   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23273 else
23274   nls_cv_force_use_gnu_gettext=no
23275 fi
23276
23277       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23278 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23279
23280       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23281       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23282
23283
23284
23285
23286
23287
23288         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23289 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23290 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23291   echo $ECHO_N "(cached) $ECHO_C" >&6
23292 else
23293   cat >conftest.$ac_ext <<_ACEOF
23294 /* confdefs.h.  */
23295 _ACEOF
23296 cat confdefs.h >>conftest.$ac_ext
23297 cat >>conftest.$ac_ext <<_ACEOF
23298 /* end confdefs.h.  */
23299 #include <libintl.h>
23300 extern int _nl_msg_cat_cntr;
23301 extern int *_nl_domain_bindings;
23302 int
23303 main ()
23304 {
23305 bindtextdomain ("", "");
23306 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23307   ;
23308   return 0;
23309 }
23310 _ACEOF
23311 rm -f conftest.$ac_objext conftest$ac_exeext
23312 if { (ac_try="$ac_link"
23313 case "(($ac_try" in
23314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23315   *) ac_try_echo=$ac_try;;
23316 esac
23317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23318   (eval "$ac_link") 2>conftest.er1
23319   ac_status=$?
23320   grep -v '^ *+' conftest.er1 >conftest.err
23321   rm -f conftest.er1
23322   cat conftest.err >&5
23323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324   (exit $ac_status); } && {
23325          test -z "$ac_c_werror_flag" ||
23326          test ! -s conftest.err
23327        } && test -s conftest$ac_exeext &&
23328        $as_test_x conftest$ac_exeext; then
23329   gt_cv_func_gnugettext1_libc=yes
23330 else
23331   echo "$as_me: failed program was:" >&5
23332 sed 's/^/| /' conftest.$ac_ext >&5
23333
23334         gt_cv_func_gnugettext1_libc=no
23335 fi
23336
23337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23338       conftest$ac_exeext conftest.$ac_ext
23339 fi
23340 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23341 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23342
23343         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23344
23345
23346
23347     use_additional=yes
23348
23349   acl_save_prefix="$prefix"
23350   prefix="$acl_final_prefix"
23351   acl_save_exec_prefix="$exec_prefix"
23352   exec_prefix="$acl_final_exec_prefix"
23353
23354     eval additional_includedir=\"$includedir\"
23355     eval additional_libdir=\"$libdir\"
23356
23357   exec_prefix="$acl_save_exec_prefix"
23358   prefix="$acl_save_prefix"
23359
23360
23361 # Check whether --with-libintl-prefix was given.
23362 if test "${with_libintl_prefix+set}" = set; then
23363   withval=$with_libintl_prefix;
23364     if test "X$withval" = "Xno"; then
23365       use_additional=no
23366     else
23367       if test "X$withval" = "X"; then
23368
23369   acl_save_prefix="$prefix"
23370   prefix="$acl_final_prefix"
23371   acl_save_exec_prefix="$exec_prefix"
23372   exec_prefix="$acl_final_exec_prefix"
23373
23374           eval additional_includedir=\"$includedir\"
23375           eval additional_libdir=\"$libdir\"
23376
23377   exec_prefix="$acl_save_exec_prefix"
23378   prefix="$acl_save_prefix"
23379
23380       else
23381         additional_includedir="$withval/include"
23382         additional_libdir="$withval/lib"
23383       fi
23384     fi
23385
23386 fi
23387
23388       LIBINTL=
23389   LTLIBINTL=
23390   INCINTL=
23391   rpathdirs=
23392   ltrpathdirs=
23393   names_already_handled=
23394   names_next_round='intl '
23395   while test -n "$names_next_round"; do
23396     names_this_round="$names_next_round"
23397     names_next_round=
23398     for name in $names_this_round; do
23399       already_handled=
23400       for n in $names_already_handled; do
23401         if test "$n" = "$name"; then
23402           already_handled=yes
23403           break
23404         fi
23405       done
23406       if test -z "$already_handled"; then
23407         names_already_handled="$names_already_handled $name"
23408                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23409         eval value=\"\$HAVE_LIB$uppername\"
23410         if test -n "$value"; then
23411           if test "$value" = yes; then
23412             eval value=\"\$LIB$uppername\"
23413             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23414             eval value=\"\$LTLIB$uppername\"
23415             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23416           else
23417                                     :
23418           fi
23419         else
23420                               found_dir=
23421           found_la=
23422           found_so=
23423           found_a=
23424           if test $use_additional = yes; then
23425             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23426               found_dir="$additional_libdir"
23427               found_so="$additional_libdir/lib$name.$shlibext"
23428               if test -f "$additional_libdir/lib$name.la"; then
23429                 found_la="$additional_libdir/lib$name.la"
23430               fi
23431             else
23432               if test -f "$additional_libdir/lib$name.$libext"; then
23433                 found_dir="$additional_libdir"
23434                 found_a="$additional_libdir/lib$name.$libext"
23435                 if test -f "$additional_libdir/lib$name.la"; then
23436                   found_la="$additional_libdir/lib$name.la"
23437                 fi
23438               fi
23439             fi
23440           fi
23441           if test "X$found_dir" = "X"; then
23442             for x in $LDFLAGS $LTLIBINTL; do
23443
23444   acl_save_prefix="$prefix"
23445   prefix="$acl_final_prefix"
23446   acl_save_exec_prefix="$exec_prefix"
23447   exec_prefix="$acl_final_exec_prefix"
23448   eval x=\"$x\"
23449   exec_prefix="$acl_save_exec_prefix"
23450   prefix="$acl_save_prefix"
23451
23452               case "$x" in
23453                 -L*)
23454                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23455                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23456                     found_dir="$dir"
23457                     found_so="$dir/lib$name.$shlibext"
23458                     if test -f "$dir/lib$name.la"; then
23459                       found_la="$dir/lib$name.la"
23460                     fi
23461                   else
23462                     if test -f "$dir/lib$name.$libext"; then
23463                       found_dir="$dir"
23464                       found_a="$dir/lib$name.$libext"
23465                       if test -f "$dir/lib$name.la"; then
23466                         found_la="$dir/lib$name.la"
23467                       fi
23468                     fi
23469                   fi
23470                   ;;
23471               esac
23472               if test "X$found_dir" != "X"; then
23473                 break
23474               fi
23475             done
23476           fi
23477           if test "X$found_dir" != "X"; then
23478                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23479             if test "X$found_so" != "X"; then
23480                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23481                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23482               else
23483                                                                                 haveit=
23484                 for x in $ltrpathdirs; do
23485                   if test "X$x" = "X$found_dir"; then
23486                     haveit=yes
23487                     break
23488                   fi
23489                 done
23490                 if test -z "$haveit"; then
23491                   ltrpathdirs="$ltrpathdirs $found_dir"
23492                 fi
23493                                 if test "$hardcode_direct" = yes; then
23494                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23495                 else
23496                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23497                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23498                                                             haveit=
23499                     for x in $rpathdirs; do
23500                       if test "X$x" = "X$found_dir"; then
23501                         haveit=yes
23502                         break
23503                       fi
23504                     done
23505                     if test -z "$haveit"; then
23506                       rpathdirs="$rpathdirs $found_dir"
23507                     fi
23508                   else
23509                                                                                 haveit=
23510                     for x in $LDFLAGS $LIBINTL; do
23511
23512   acl_save_prefix="$prefix"
23513   prefix="$acl_final_prefix"
23514   acl_save_exec_prefix="$exec_prefix"
23515   exec_prefix="$acl_final_exec_prefix"
23516   eval x=\"$x\"
23517   exec_prefix="$acl_save_exec_prefix"
23518   prefix="$acl_save_prefix"
23519
23520                       if test "X$x" = "X-L$found_dir"; then
23521                         haveit=yes
23522                         break
23523                       fi
23524                     done
23525                     if test -z "$haveit"; then
23526                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23527                     fi
23528                     if test "$hardcode_minus_L" != no; then
23529                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23530                     else
23531                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23532                     fi
23533                   fi
23534                 fi
23535               fi
23536             else
23537               if test "X$found_a" != "X"; then
23538                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23539               else
23540                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23541               fi
23542             fi
23543                         additional_includedir=
23544             case "$found_dir" in
23545               */lib | */lib/)
23546                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23547                 additional_includedir="$basedir/include"
23548                 ;;
23549             esac
23550             if test "X$additional_includedir" != "X"; then
23551                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23552                 haveit=
23553                 if test "X$additional_includedir" = "X/usr/local/include"; then
23554                   if test -n "$GCC"; then
23555                     case $host_os in
23556                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23557                     esac
23558                   fi
23559                 fi
23560                 if test -z "$haveit"; then
23561                   for x in $CPPFLAGS $INCINTL; do
23562
23563   acl_save_prefix="$prefix"
23564   prefix="$acl_final_prefix"
23565   acl_save_exec_prefix="$exec_prefix"
23566   exec_prefix="$acl_final_exec_prefix"
23567   eval x=\"$x\"
23568   exec_prefix="$acl_save_exec_prefix"
23569   prefix="$acl_save_prefix"
23570
23571                     if test "X$x" = "X-I$additional_includedir"; then
23572                       haveit=yes
23573                       break
23574                     fi
23575                   done
23576                   if test -z "$haveit"; then
23577                     if test -d "$additional_includedir"; then
23578                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23579                     fi
23580                   fi
23581                 fi
23582               fi
23583             fi
23584                         if test -n "$found_la"; then
23585                                                         save_libdir="$libdir"
23586               case "$found_la" in
23587                 */* | *\\*) . "$found_la" ;;
23588                 *) . "./$found_la" ;;
23589               esac
23590               libdir="$save_libdir"
23591                             for dep in $dependency_libs; do
23592                 case "$dep" in
23593                   -L*)
23594                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23595                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23596                       haveit=
23597                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23598                         if test -n "$GCC"; then
23599                           case $host_os in
23600                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23601                           esac
23602                         fi
23603                       fi
23604                       if test -z "$haveit"; then
23605                         haveit=
23606                         for x in $LDFLAGS $LIBINTL; do
23607
23608   acl_save_prefix="$prefix"
23609   prefix="$acl_final_prefix"
23610   acl_save_exec_prefix="$exec_prefix"
23611   exec_prefix="$acl_final_exec_prefix"
23612   eval x=\"$x\"
23613   exec_prefix="$acl_save_exec_prefix"
23614   prefix="$acl_save_prefix"
23615
23616                           if test "X$x" = "X-L$additional_libdir"; then
23617                             haveit=yes
23618                             break
23619                           fi
23620                         done
23621                         if test -z "$haveit"; then
23622                           if test -d "$additional_libdir"; then
23623                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23624                           fi
23625                         fi
23626                         haveit=
23627                         for x in $LDFLAGS $LTLIBINTL; do
23628
23629   acl_save_prefix="$prefix"
23630   prefix="$acl_final_prefix"
23631   acl_save_exec_prefix="$exec_prefix"
23632   exec_prefix="$acl_final_exec_prefix"
23633   eval x=\"$x\"
23634   exec_prefix="$acl_save_exec_prefix"
23635   prefix="$acl_save_prefix"
23636
23637                           if test "X$x" = "X-L$additional_libdir"; then
23638                             haveit=yes
23639                             break
23640                           fi
23641                         done
23642                         if test -z "$haveit"; then
23643                           if test -d "$additional_libdir"; then
23644                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23645                           fi
23646                         fi
23647                       fi
23648                     fi
23649                     ;;
23650                   -R*)
23651                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23652                     if test "$enable_rpath" != no; then
23653                                                                   haveit=
23654                       for x in $rpathdirs; do
23655                         if test "X$x" = "X$dir"; then
23656                           haveit=yes
23657                           break
23658                         fi
23659                       done
23660                       if test -z "$haveit"; then
23661                         rpathdirs="$rpathdirs $dir"
23662                       fi
23663                                                                   haveit=
23664                       for x in $ltrpathdirs; do
23665                         if test "X$x" = "X$dir"; then
23666                           haveit=yes
23667                           break
23668                         fi
23669                       done
23670                       if test -z "$haveit"; then
23671                         ltrpathdirs="$ltrpathdirs $dir"
23672                       fi
23673                     fi
23674                     ;;
23675                   -l*)
23676                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23677                     ;;
23678                   *.la)
23679                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23680                     ;;
23681                   *)
23682                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23683                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23684                     ;;
23685                 esac
23686               done
23687             fi
23688           else
23689                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23690             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23691           fi
23692         fi
23693       fi
23694     done
23695   done
23696   if test "X$rpathdirs" != "X"; then
23697     if test -n "$hardcode_libdir_separator"; then
23698                         alldirs=
23699       for found_dir in $rpathdirs; do
23700         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23701       done
23702             acl_save_libdir="$libdir"
23703       libdir="$alldirs"
23704       eval flag=\"$hardcode_libdir_flag_spec\"
23705       libdir="$acl_save_libdir"
23706       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23707     else
23708             for found_dir in $rpathdirs; do
23709         acl_save_libdir="$libdir"
23710         libdir="$found_dir"
23711         eval flag=\"$hardcode_libdir_flag_spec\"
23712         libdir="$acl_save_libdir"
23713         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23714       done
23715     fi
23716   fi
23717   if test "X$ltrpathdirs" != "X"; then
23718             for found_dir in $ltrpathdirs; do
23719       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23720     done
23721   fi
23722
23723           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23724 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23725 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23726   echo $ECHO_N "(cached) $ECHO_C" >&6
23727 else
23728   gt_save_CPPFLAGS="$CPPFLAGS"
23729             CPPFLAGS="$CPPFLAGS $INCINTL"
23730             gt_save_LIBS="$LIBS"
23731             LIBS="$LIBS $LIBINTL"
23732                         cat >conftest.$ac_ext <<_ACEOF
23733 /* confdefs.h.  */
23734 _ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h.  */
23738 #include <libintl.h>
23739 extern int _nl_msg_cat_cntr;
23740 extern
23741 #ifdef __cplusplus
23742 "C"
23743 #endif
23744 const char *_nl_expand_alias (const char *);
23745 int
23746 main ()
23747 {
23748 bindtextdomain ("", "");
23749 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23750   ;
23751   return 0;
23752 }
23753 _ACEOF
23754 rm -f conftest.$ac_objext conftest$ac_exeext
23755 if { (ac_try="$ac_link"
23756 case "(($ac_try" in
23757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758   *) ac_try_echo=$ac_try;;
23759 esac
23760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23761   (eval "$ac_link") 2>conftest.er1
23762   ac_status=$?
23763   grep -v '^ *+' conftest.er1 >conftest.err
23764   rm -f conftest.er1
23765   cat conftest.err >&5
23766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767   (exit $ac_status); } && {
23768          test -z "$ac_c_werror_flag" ||
23769          test ! -s conftest.err
23770        } && test -s conftest$ac_exeext &&
23771        $as_test_x conftest$ac_exeext; then
23772   gt_cv_func_gnugettext1_libintl=yes
23773 else
23774   echo "$as_me: failed program was:" >&5
23775 sed 's/^/| /' conftest.$ac_ext >&5
23776
23777         gt_cv_func_gnugettext1_libintl=no
23778 fi
23779
23780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23781       conftest$ac_exeext conftest.$ac_ext
23782                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23783               LIBS="$LIBS $LIBICONV"
23784               cat >conftest.$ac_ext <<_ACEOF
23785 /* confdefs.h.  */
23786 _ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h.  */
23790 #include <libintl.h>
23791 extern int _nl_msg_cat_cntr;
23792 extern
23793 #ifdef __cplusplus
23794 "C"
23795 #endif
23796 const char *_nl_expand_alias (const char *);
23797 int
23798 main ()
23799 {
23800 bindtextdomain ("", "");
23801 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23802   ;
23803   return 0;
23804 }
23805 _ACEOF
23806 rm -f conftest.$ac_objext conftest$ac_exeext
23807 if { (ac_try="$ac_link"
23808 case "(($ac_try" in
23809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23810   *) ac_try_echo=$ac_try;;
23811 esac
23812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23813   (eval "$ac_link") 2>conftest.er1
23814   ac_status=$?
23815   grep -v '^ *+' conftest.er1 >conftest.err
23816   rm -f conftest.er1
23817   cat conftest.err >&5
23818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819   (exit $ac_status); } && {
23820          test -z "$ac_c_werror_flag" ||
23821          test ! -s conftest.err
23822        } && test -s conftest$ac_exeext &&
23823        $as_test_x conftest$ac_exeext; then
23824   LIBINTL="$LIBINTL $LIBICONV"
23825                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23826                 gt_cv_func_gnugettext1_libintl=yes
23827
23828 else
23829   echo "$as_me: failed program was:" >&5
23830 sed 's/^/| /' conftest.$ac_ext >&5
23831
23832
23833 fi
23834
23835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23836       conftest$ac_exeext conftest.$ac_ext
23837             fi
23838             CPPFLAGS="$gt_save_CPPFLAGS"
23839             LIBS="$gt_save_LIBS"
23840 fi
23841 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23842 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23843         fi
23844
23845                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23846            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23847                 && test "$PACKAGE" != gettext-runtime \
23848                 && test "$PACKAGE" != gettext-tools; }; then
23849           gt_use_preinstalled_gnugettext=yes
23850         else
23851                     LIBINTL=
23852           LTLIBINTL=
23853           INCINTL=
23854         fi
23855
23856
23857         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23858                               nls_cv_use_gnu_gettext=yes
23859         fi
23860       fi
23861
23862       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23863                 BUILD_INCLUDED_LIBINTL=yes
23864         USE_INCLUDED_LIBINTL=yes
23865         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23866         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23867         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23868       fi
23869
23870       CATOBJEXT=
23871       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23872          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23873                 CATOBJEXT=.gmo
23874       fi
23875
23876
23877     if test -n "$INTL_MACOSX_LIBS"; then
23878       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23879          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23880                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23881         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23882       fi
23883     fi
23884
23885     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23886        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23887
23888 cat >>confdefs.h <<\_ACEOF
23889 #define ENABLE_NLS 1
23890 _ACEOF
23891
23892     else
23893       USE_NLS=no
23894     fi
23895   fi
23896
23897   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23898 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23899   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23900 echo "${ECHO_T}$USE_NLS" >&6; }
23901   if test "$USE_NLS" = "yes"; then
23902     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23903 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23904     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23905       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23906         gt_source="external libintl"
23907       else
23908         gt_source="libc"
23909       fi
23910     else
23911       gt_source="included intl directory"
23912     fi
23913     { echo "$as_me:$LINENO: result: $gt_source" >&5
23914 echo "${ECHO_T}$gt_source" >&6; }
23915   fi
23916
23917   if test "$USE_NLS" = "yes"; then
23918
23919     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23920       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23921         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23922 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23923         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23924 echo "${ECHO_T}$LIBINTL" >&6; }
23925
23926   for element in $INCINTL; do
23927     haveit=
23928     for x in $CPPFLAGS; do
23929
23930   acl_save_prefix="$prefix"
23931   prefix="$acl_final_prefix"
23932   acl_save_exec_prefix="$exec_prefix"
23933   exec_prefix="$acl_final_exec_prefix"
23934   eval x=\"$x\"
23935   exec_prefix="$acl_save_exec_prefix"
23936   prefix="$acl_save_prefix"
23937
23938       if test "X$x" = "X$element"; then
23939         haveit=yes
23940         break
23941       fi
23942     done
23943     if test -z "$haveit"; then
23944       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23945     fi
23946   done
23947
23948       fi
23949
23950
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_GETTEXT 1
23953 _ACEOF
23954
23955
23956 cat >>confdefs.h <<\_ACEOF
23957 #define HAVE_DCGETTEXT 1
23958 _ACEOF
23959
23960     fi
23961
23962         POSUB=po
23963   fi
23964
23965
23966             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23967       BUILD_INCLUDED_LIBINTL=yes
23968     fi
23969
23970
23971
23972
23973
23974         nls_cv_header_intl=
23975     nls_cv_header_libgt=
23976
23977         DATADIRNAME=share
23978
23979
23980         INSTOBJEXT=.mo
23981
23982
23983         GENCAT=gencat
23984
23985
23986         INTLOBJS=
23987     if test "$USE_INCLUDED_LIBINTL" = yes; then
23988       INTLOBJS="\$(GETTOBJS)"
23989     fi
23990
23991
23992         INTL_LIBTOOL_SUFFIX_PREFIX=
23993
23994
23995
23996     INTLLIBS="$LIBINTL"
23997
23998
23999
24000
24001
24002
24003 fi
24004
24005 support_mysql=no
24006 support_sqlite=no
24007 support_sqlite3=no
24008 support_postgresql=no
24009 support_dbi=no
24010 support_smartalloc=yes
24011 support_readline=yes
24012 support_conio=yes
24013 support_gnome=no
24014 support_bat=no
24015 support_wx_console=no
24016 support_tray_monitor=no
24017 support_tls=no
24018 support_crypto=no
24019 gnome_version=
24020 wx_version=
24021 support_static_tools=no
24022 support_static_fd=no
24023 support_static_sd=no
24024 support_static_dir=no
24025 support_static_cons=no
24026 support_python=no
24027 build_client_only=no
24028 build_dird=yes
24029 build_stored=yes
24030 cats=
24031 db_type=Internal
24032 support_lockmgr=no
24033 DB_TYPE=bdb
24034
24035
24036 # Check whether --enable-gnome was given.
24037 if test "${enable_gnome+set}" = set; then
24038   enableval=$enable_gnome;
24039        if test x$enableval = xyes; then
24040           support_gnome=yes
24041        fi
24042
24043
24044 fi
24045
24046
24047 GNOME_DIR=
24048 if test x$support_gnome = xyes; then
24049    abc=`$PKGCONFIG --exists libgnomeui-2.0`
24050    pkg=$?
24051    if test $pkg = 0; then
24052       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
24053       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24054       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
24055       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24056
24057
24058
24059
24060       GNOME_DIR=src/gnome2-console
24061       gnome_version="Version 2.x"
24062    else
24063       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24064 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24065    { (exit 1); exit 1; }; }
24066    fi
24067 fi
24068
24069
24070 # Check whether --enable-bat was given.
24071 if test "${enable_bat+set}" = set; then
24072   enableval=$enable_bat;
24073        if test x$enableval = xyes; then
24074
24075 cat >>confdefs.h <<\_ACEOF
24076 #define HAVE_BAT 1
24077 _ACEOF
24078
24079           support_bat=yes
24080        fi
24081
24082
24083 fi
24084
24085
24086 BAT_DIR=
24087 if test x$support_bat = xyes; then
24088    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24089    pkg=$?
24090    if test $pkg = 0; then
24091       BAT_DIR=src/qt-console
24092    else
24093       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24094 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24095    { (exit 1); exit 1; }; }
24096    fi
24097 fi
24098
24099 got_qwt=no
24100 QWT_INC=
24101 QWT_LDFLAGS=
24102 QWT_LIB=
24103 QWT=
24104 no_qwt=no
24105 if test x$support_bat = xyes; then
24106    { echo "$as_me:$LINENO: checking for qwt support" >&5
24107 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24108
24109 # Check whether --with-qwt was given.
24110 if test "${with_qwt+set}" = set; then
24111   withval=$with_qwt;
24112           case "$with_qwt" in
24113           no)
24114              no_qwt=yes
24115              ;;
24116           yes|*)
24117              if test -f ${with_qwt}/include/qwt.h; then
24118                 QWT_INC="${with_qwt}/include"
24119                 QWT_LDFLAGS="-L${with_qwt}/lib"
24120                 QWT_LIB="-lqwt"
24121                 QWT="qwt"
24122              fi
24123              ;;
24124           esac
24125
24126
24127 fi
24128
24129
24130             if test $no_qwt = no; then
24131       if test x$QWT_INC = x; then
24132          for root in /usr /usr/local; do
24133             for ver in qwt qwt5 qwt-qt4; do
24134                if test -f ${root}/include/${ver}/qwt.h; then
24135                   QWT_INC="${root}/include/${ver}"
24136                   if test -d ${root}/lib64/; then
24137                      QWT_LDFLAGS="-L${root}/lib64"
24138                   elif test -d ${root}/lib/64/; then
24139                      QWT_LDFLAGS="-L${root}/64"
24140                   else
24141                      QWT_LDFLAGS="-L${root}/lib"
24142                   fi
24143                   QWT_LIB="-lqwt"
24144                   QWT="qwt"
24145                   got_qwt=yes
24146                   break;
24147                fi
24148             done
24149          done
24150       fi
24151    fi
24152    if test x$QWT_INC = x; then
24153       { echo "$as_me:$LINENO: result: no" >&5
24154 echo "${ECHO_T}no" >&6; }
24155    else
24156
24157 cat >>confdefs.h <<\_ACEOF
24158 #define HAVE_QWT 1
24159 _ACEOF
24160
24161       { echo "$as_me:$LINENO: result: yes" >&5
24162 echo "${ECHO_T}yes" >&6; }
24163    fi
24164 fi
24165
24166
24167
24168
24169
24170
24171
24172 # Check whether --enable-bwx-console was given.
24173 if test "${enable_bwx_console+set}" = set; then
24174   enableval=$enable_bwx_console;
24175        if test x$enableval = xyes; then
24176           support_wx_console=yes
24177        fi
24178
24179
24180 fi
24181
24182
24183 WX_DIR=
24184 if test x$support_wx_console = xyes; then
24185    abc=`$WXCONFIG $WXFLAGS --cppflags`
24186    pkg=$?
24187    if test $pkg = 0; then
24188       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24189       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24190       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24191
24192
24193
24194       WX_DIR="src/wx-console"
24195    else
24196       echo " "
24197       echo "wx-config program not found. bwx-console disabled."
24198       echo " "
24199       support_wx_console=no
24200    fi
24201 fi
24202
24203
24204 # Check whether --enable-tray-monitor was given.
24205 if test "${enable_tray_monitor+set}" = set; then
24206   enableval=$enable_tray_monitor;
24207        if test x$enableval = xyes; then
24208           support_tray_monitor=yes
24209        fi
24210
24211
24212 fi
24213
24214
24215 TRAY_MONITOR_DIR=
24216 if test x$support_tray_monitor = xyes; then
24217    abc=`$PKGCONFIG --exists gtk+-2.0`
24218    pkg=$?
24219    if test $pkg = 0; then
24220       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24221       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24222
24223
24224       TRAY_MONITOR_DIR=src/tray-monitor
24225       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24226       pkg=$?
24227       if test $pkg = 0; then
24228
24229 cat >>confdefs.h <<\_ACEOF
24230 #define HAVE_GTK_2_4 1
24231 _ACEOF
24232
24233       fi
24234    fi
24235 fi
24236
24237
24238 # Check whether --enable-smartalloc was given.
24239 if test "${enable_smartalloc+set}" = set; then
24240   enableval=$enable_smartalloc;
24241        if test x$enableval = xno; then
24242           support_smartalloc=no
24243        fi
24244
24245
24246 fi
24247
24248
24249 if test x$support_smartalloc = xyes; then
24250
24251 cat >>confdefs.h <<\_ACEOF
24252 #define SMARTALLOC 1
24253 _ACEOF
24254
24255 fi
24256
24257 # Check whether --enable-lockmgr was given.
24258 if test "${enable_lockmgr+set}" = set; then
24259   enableval=$enable_lockmgr;
24260        if test x$enableval = xyes; then
24261           support_lockmgr=yes
24262        fi
24263
24264
24265 fi
24266
24267
24268 if test x$support_lockmgr = xyes; then
24269
24270 cat >>confdefs.h <<\_ACEOF
24271 #define _USE_LOCKMGR 1
24272 _ACEOF
24273
24274 fi
24275
24276
24277 # Check whether --enable-static-tools was given.
24278 if test "${enable_static_tools+set}" = set; then
24279   enableval=$enable_static_tools;
24280        if test x$enableval = xyes; then
24281           if test x$use_libtool = xyes; then
24282              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24283   please rerun configure with --disable-libtool" >&5
24284 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24285   please rerun configure with --disable-libtool" >&2;}
24286    { (exit 1); exit 1; }; }
24287           fi
24288           support_static_tools=yes
24289        fi
24290
24291
24292 fi
24293
24294
24295 TTOOL_LDFLAGS=
24296 if test x$support_static_tools = xyes; then
24297    TTOOL_LDFLAGS="-static"
24298 fi
24299
24300
24301 # Check whether --enable-static-fd was given.
24302 if test "${enable_static_fd+set}" = set; then
24303   enableval=$enable_static_fd;
24304        if test x$enableval = xyes; then
24305           if test x$use_libtool = xyes; then
24306              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24307   please rerun configure with --disable-libtool" >&5
24308 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24309   please rerun configure with --disable-libtool" >&2;}
24310    { (exit 1); exit 1; }; }
24311           fi
24312           support_static_fd=yes
24313        fi
24314
24315
24316 fi
24317
24318
24319 STATIC_FD=
24320 if test x$support_static_fd = xyes; then
24321    STATIC_FD="static-bacula-fd"
24322 fi
24323
24324
24325 # Check whether --enable-static-sd was given.
24326 if test "${enable_static_sd+set}" = set; then
24327   enableval=$enable_static_sd;
24328        if test x$enableval = xyes; then
24329           if test x$use_libtool = xyes; then
24330              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24331   please rerun configure with --disable-libtool" >&5
24332 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24333   please rerun configure with --disable-libtool" >&2;}
24334    { (exit 1); exit 1; }; }
24335           fi
24336           support_static_sd=yes
24337        fi
24338
24339
24340 fi
24341
24342
24343 STATIC_SD=
24344 if test x$support_static_sd = xyes; then
24345    STATIC_SD="static-bacula-sd"
24346 fi
24347
24348
24349 # Check whether --enable-static-dir was given.
24350 if test "${enable_static_dir+set}" = set; then
24351   enableval=$enable_static_dir;
24352        if test x$enableval = xyes; then
24353           if test x$use_libtool = xyes; then
24354              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24355   please rerun configure with --disable-libtool" >&5
24356 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24357   please rerun configure with --disable-libtool" >&2;}
24358    { (exit 1); exit 1; }; }
24359           fi
24360           support_static_dir=yes
24361        fi
24362
24363
24364 fi
24365
24366
24367 STATIC_DIR=
24368 if test x$support_static_dir = xyes; then
24369    STATIC_DIR="static-bacula-dir"
24370 fi
24371
24372
24373 # Check whether --enable-static-cons was given.
24374 if test "${enable_static_cons+set}" = set; then
24375   enableval=$enable_static_cons;
24376        if test x$enableval = xyes; then
24377           if test x$use_libtool = xyes; then
24378              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24379   please rerun configure with --disable-libtool" >&5
24380 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24381   please rerun configure with --disable-libtool" >&2;}
24382    { (exit 1); exit 1; }; }
24383           fi
24384           support_static_cons=yes
24385        fi
24386
24387
24388 fi
24389
24390
24391 STATIC_CONS=
24392 STATIC_GNOME_CONS=
24393 STATIC_WX_CONS=
24394 if test x$support_static_cons = xyes; then
24395    STATIC_CONS="static-bconsole"
24396    STATIC_GNOME_CONS="static-bgnome-console"
24397    STATIC_WX_CONS="static-bwx-console"
24398 fi
24399
24400
24401
24402
24403 # Check whether --enable-client-only was given.
24404 if test "${enable_client_only+set}" = set; then
24405   enableval=$enable_client_only;
24406        if test x$enableval = xyes; then
24407           build_client_only=yes
24408           db_type=None
24409           DB_TYPE=none
24410        fi
24411
24412
24413 fi
24414
24415 if test x$build_client_only = xno; then
24416    ALL_DIRS="subdirs"
24417 else
24418    ALL_DIRS=""
24419 fi
24420
24421
24422 # Check whether --enable-build-dird was given.
24423 if test "${enable_build_dird+set}" = set; then
24424   enableval=$enable_build_dird;
24425        if test x$enableval = xno; then
24426           build_dird=no
24427        fi
24428
24429
24430 fi
24431
24432 if test x$build_dird = xyes; then
24433    DIRD_DIR="src/dird"
24434    DIR_TOOLS="DIRTOOLS"
24435 else
24436    DIRD_DIR=""
24437    DIR_TOOLS="NODIRTOOLS"
24438 fi
24439
24440
24441
24442 # Check whether --enable-build-stored was given.
24443 if test "${enable_build_stored+set}" = set; then
24444   enableval=$enable_build_stored;
24445       if test x$enableval = xno; then
24446          build_stored=no
24447       fi
24448
24449
24450 fi
24451
24452 if test x$build_stored = xyes; then
24453    STORED_DIR="src/stored"
24454 else
24455    STORED_DIR=""
24456 fi
24457
24458
24459 # Check whether --enable-conio was given.
24460 if test "${enable_conio+set}" = set; then
24461   enableval=$enable_conio;
24462        if test x$enableval = xno; then
24463           support_conio=no
24464        fi
24465
24466
24467 fi
24468
24469
24470
24471 support_ipv6=yes
24472 # Check whether --enable-ipv6 was given.
24473 if test "${enable_ipv6+set}" = set; then
24474   enableval=$enable_ipv6;
24475        if test x$enableval = xno; then
24476           support_ipv6=no
24477        fi
24478
24479
24480 fi
24481
24482
24483 if test x$support_ipv6 = xyes; then
24484     cat >conftest.$ac_ext <<_ACEOF
24485 /* confdefs.h.  */
24486 _ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h.  */
24490  #include <sys/types.h>
24491 #include <sys/socket.h>
24492 #include <netinet/in.h>
24493 int
24494 main ()
24495 {
24496 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24497   ;
24498   return 0;
24499 }
24500 _ACEOF
24501 rm -f conftest.$ac_objext conftest$ac_exeext
24502 if { (ac_try="$ac_link"
24503 case "(($ac_try" in
24504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505   *) ac_try_echo=$ac_try;;
24506 esac
24507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24508   (eval "$ac_link") 2>conftest.er1
24509   ac_status=$?
24510   grep -v '^ *+' conftest.er1 >conftest.err
24511   rm -f conftest.er1
24512   cat conftest.err >&5
24513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514   (exit $ac_status); } && {
24515          test -z "$ac_c_werror_flag" ||
24516          test ! -s conftest.err
24517        } && test -s conftest$ac_exeext &&
24518        $as_test_x conftest$ac_exeext; then
24519   support_ipv6=yes
24520 else
24521   echo "$as_me: failed program was:" >&5
24522 sed 's/^/| /' conftest.$ac_ext >&5
24523
24524         support_ipv6=no
24525 fi
24526
24527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24528       conftest$ac_exeext conftest.$ac_ext
24529 fi
24530
24531 if test x$support_ipv6 = xyes; then
24532
24533 cat >>confdefs.h <<\_ACEOF
24534 #define HAVE_IPV6 1
24535 _ACEOF
24536
24537 fi
24538
24539 got_conio="no"
24540 if test x$support_conio = xyes; then
24541    if test "${ac_cv_header_termcap_h+set}" = set; then
24542   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24543 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24544 if test "${ac_cv_header_termcap_h+set}" = set; then
24545   echo $ECHO_N "(cached) $ECHO_C" >&6
24546 fi
24547 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24548 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24549 else
24550   # Is the header compilable?
24551 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24552 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24553 cat >conftest.$ac_ext <<_ACEOF
24554 /* confdefs.h.  */
24555 _ACEOF
24556 cat confdefs.h >>conftest.$ac_ext
24557 cat >>conftest.$ac_ext <<_ACEOF
24558 /* end confdefs.h.  */
24559 $ac_includes_default
24560 #include <termcap.h>
24561 _ACEOF
24562 rm -f conftest.$ac_objext
24563 if { (ac_try="$ac_compile"
24564 case "(($ac_try" in
24565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24566   *) ac_try_echo=$ac_try;;
24567 esac
24568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569   (eval "$ac_compile") 2>conftest.er1
24570   ac_status=$?
24571   grep -v '^ *+' conftest.er1 >conftest.err
24572   rm -f conftest.er1
24573   cat conftest.err >&5
24574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575   (exit $ac_status); } && {
24576          test -z "$ac_c_werror_flag" ||
24577          test ! -s conftest.err
24578        } && test -s conftest.$ac_objext; then
24579   ac_header_compiler=yes
24580 else
24581   echo "$as_me: failed program was:" >&5
24582 sed 's/^/| /' conftest.$ac_ext >&5
24583
24584         ac_header_compiler=no
24585 fi
24586
24587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24589 echo "${ECHO_T}$ac_header_compiler" >&6; }
24590
24591 # Is the header present?
24592 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24593 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24594 cat >conftest.$ac_ext <<_ACEOF
24595 /* confdefs.h.  */
24596 _ACEOF
24597 cat confdefs.h >>conftest.$ac_ext
24598 cat >>conftest.$ac_ext <<_ACEOF
24599 /* end confdefs.h.  */
24600 #include <termcap.h>
24601 _ACEOF
24602 if { (ac_try="$ac_cpp conftest.$ac_ext"
24603 case "(($ac_try" in
24604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24605   *) ac_try_echo=$ac_try;;
24606 esac
24607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24609   ac_status=$?
24610   grep -v '^ *+' conftest.er1 >conftest.err
24611   rm -f conftest.er1
24612   cat conftest.err >&5
24613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614   (exit $ac_status); } >/dev/null && {
24615          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24616          test ! -s conftest.err
24617        }; then
24618   ac_header_preproc=yes
24619 else
24620   echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24622
24623   ac_header_preproc=no
24624 fi
24625
24626 rm -f conftest.err conftest.$ac_ext
24627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24628 echo "${ECHO_T}$ac_header_preproc" >&6; }
24629
24630 # So?  What about this header?
24631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24632   yes:no: )
24633     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24634 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24635     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24636 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24637     ac_header_preproc=yes
24638     ;;
24639   no:yes:* )
24640     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24641 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24642     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24643 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24644     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24645 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24646     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24647 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24648     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24649 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24650     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24651 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24652
24653     ;;
24654 esac
24655 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24656 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24657 if test "${ac_cv_header_termcap_h+set}" = set; then
24658   echo $ECHO_N "(cached) $ECHO_C" >&6
24659 else
24660   ac_cv_header_termcap_h=$ac_header_preproc
24661 fi
24662 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24663 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24664
24665 fi
24666 if test $ac_cv_header_termcap_h = yes; then
24667    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24668 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24669 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24670   echo $ECHO_N "(cached) $ECHO_C" >&6
24671 else
24672   ac_check_lib_save_LIBS=$LIBS
24673 LIBS="-ltermcap  $LIBS"
24674 cat >conftest.$ac_ext <<_ACEOF
24675 /* confdefs.h.  */
24676 _ACEOF
24677 cat confdefs.h >>conftest.$ac_ext
24678 cat >>conftest.$ac_ext <<_ACEOF
24679 /* end confdefs.h.  */
24680
24681 /* Override any GCC internal prototype to avoid an error.
24682    Use char because int might match the return type of a GCC
24683    builtin and then its argument prototype would still apply.  */
24684 #ifdef __cplusplus
24685 extern "C"
24686 #endif
24687 char tgetent ();
24688 int
24689 main ()
24690 {
24691 return tgetent ();
24692   ;
24693   return 0;
24694 }
24695 _ACEOF
24696 rm -f conftest.$ac_objext conftest$ac_exeext
24697 if { (ac_try="$ac_link"
24698 case "(($ac_try" in
24699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700   *) ac_try_echo=$ac_try;;
24701 esac
24702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24703   (eval "$ac_link") 2>conftest.er1
24704   ac_status=$?
24705   grep -v '^ *+' conftest.er1 >conftest.err
24706   rm -f conftest.er1
24707   cat conftest.err >&5
24708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709   (exit $ac_status); } && {
24710          test -z "$ac_c_werror_flag" ||
24711          test ! -s conftest.err
24712        } && test -s conftest$ac_exeext &&
24713        $as_test_x conftest$ac_exeext; then
24714   ac_cv_lib_termcap_tgetent=yes
24715 else
24716   echo "$as_me: failed program was:" >&5
24717 sed 's/^/| /' conftest.$ac_ext >&5
24718
24719         ac_cv_lib_termcap_tgetent=no
24720 fi
24721
24722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24723       conftest$ac_exeext conftest.$ac_ext
24724 LIBS=$ac_check_lib_save_LIBS
24725 fi
24726 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24727 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24728 if test $ac_cv_lib_termcap_tgetent = yes; then
24729    CONS_LIBS="-ltermcap"
24730     CONS_OBJ="conio.o"
24731     CONS_SRC="conio.c"
24732     got_conio="yes"
24733     support_readline=no
24734
24735 cat >>confdefs.h <<\_ACEOF
24736 #define HAVE_CONIO 1
24737 _ACEOF
24738
24739
24740 else
24741    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24742 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24743 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24744   echo $ECHO_N "(cached) $ECHO_C" >&6
24745 else
24746   ac_check_lib_save_LIBS=$LIBS
24747 LIBS="-lncurses  $LIBS"
24748 cat >conftest.$ac_ext <<_ACEOF
24749 /* confdefs.h.  */
24750 _ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h.  */
24754
24755 /* Override any GCC internal prototype to avoid an error.
24756    Use char because int might match the return type of a GCC
24757    builtin and then its argument prototype would still apply.  */
24758 #ifdef __cplusplus
24759 extern "C"
24760 #endif
24761 char tgetent ();
24762 int
24763 main ()
24764 {
24765 return tgetent ();
24766   ;
24767   return 0;
24768 }
24769 _ACEOF
24770 rm -f conftest.$ac_objext conftest$ac_exeext
24771 if { (ac_try="$ac_link"
24772 case "(($ac_try" in
24773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24774   *) ac_try_echo=$ac_try;;
24775 esac
24776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24777   (eval "$ac_link") 2>conftest.er1
24778   ac_status=$?
24779   grep -v '^ *+' conftest.er1 >conftest.err
24780   rm -f conftest.er1
24781   cat conftest.err >&5
24782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783   (exit $ac_status); } && {
24784          test -z "$ac_c_werror_flag" ||
24785          test ! -s conftest.err
24786        } && test -s conftest$ac_exeext &&
24787        $as_test_x conftest$ac_exeext; then
24788   ac_cv_lib_ncurses_tgetent=yes
24789 else
24790   echo "$as_me: failed program was:" >&5
24791 sed 's/^/| /' conftest.$ac_ext >&5
24792
24793         ac_cv_lib_ncurses_tgetent=no
24794 fi
24795
24796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24797       conftest$ac_exeext conftest.$ac_ext
24798 LIBS=$ac_check_lib_save_LIBS
24799 fi
24800 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24801 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24802 if test $ac_cv_lib_ncurses_tgetent = yes; then
24803    CONS_LIBS="-lncurses"
24804       CONS_OBJ="conio.o"
24805       CONS_SRC="conio.c"
24806       got_conio="yes"
24807       support_readline=no
24808
24809 cat >>confdefs.h <<\_ACEOF
24810 #define HAVE_CONIO 1
24811 _ACEOF
24812
24813
24814 fi
24815
24816
24817 fi
24818
24819
24820 else
24821
24822
24823 for ac_header in curses.h
24824 do
24825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24827   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24830   echo $ECHO_N "(cached) $ECHO_C" >&6
24831 fi
24832 ac_res=`eval echo '${'$as_ac_Header'}'`
24833                { echo "$as_me:$LINENO: result: $ac_res" >&5
24834 echo "${ECHO_T}$ac_res" >&6; }
24835 else
24836   # Is the header compilable?
24837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24839 cat >conftest.$ac_ext <<_ACEOF
24840 /* confdefs.h.  */
24841 _ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h.  */
24845 $ac_includes_default
24846 #include <$ac_header>
24847 _ACEOF
24848 rm -f conftest.$ac_objext
24849 if { (ac_try="$ac_compile"
24850 case "(($ac_try" in
24851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852   *) ac_try_echo=$ac_try;;
24853 esac
24854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24855   (eval "$ac_compile") 2>conftest.er1
24856   ac_status=$?
24857   grep -v '^ *+' conftest.er1 >conftest.err
24858   rm -f conftest.er1
24859   cat conftest.err >&5
24860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861   (exit $ac_status); } && {
24862          test -z "$ac_c_werror_flag" ||
24863          test ! -s conftest.err
24864        } && test -s conftest.$ac_objext; then
24865   ac_header_compiler=yes
24866 else
24867   echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24869
24870         ac_header_compiler=no
24871 fi
24872
24873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24875 echo "${ECHO_T}$ac_header_compiler" >&6; }
24876
24877 # Is the header present?
24878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24880 cat >conftest.$ac_ext <<_ACEOF
24881 /* confdefs.h.  */
24882 _ACEOF
24883 cat confdefs.h >>conftest.$ac_ext
24884 cat >>conftest.$ac_ext <<_ACEOF
24885 /* end confdefs.h.  */
24886 #include <$ac_header>
24887 _ACEOF
24888 if { (ac_try="$ac_cpp conftest.$ac_ext"
24889 case "(($ac_try" in
24890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891   *) ac_try_echo=$ac_try;;
24892 esac
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24895   ac_status=$?
24896   grep -v '^ *+' conftest.er1 >conftest.err
24897   rm -f conftest.er1
24898   cat conftest.err >&5
24899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900   (exit $ac_status); } >/dev/null && {
24901          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24902          test ! -s conftest.err
24903        }; then
24904   ac_header_preproc=yes
24905 else
24906   echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24908
24909   ac_header_preproc=no
24910 fi
24911
24912 rm -f conftest.err conftest.$ac_ext
24913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24914 echo "${ECHO_T}$ac_header_preproc" >&6; }
24915
24916 # So?  What about this header?
24917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24918   yes:no: )
24919     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24923     ac_header_preproc=yes
24924     ;;
24925   no:yes:* )
24926     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24928     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24929 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24930     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24932     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24933 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24936     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24938
24939     ;;
24940 esac
24941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24944   echo $ECHO_N "(cached) $ECHO_C" >&6
24945 else
24946   eval "$as_ac_Header=\$ac_header_preproc"
24947 fi
24948 ac_res=`eval echo '${'$as_ac_Header'}'`
24949                { echo "$as_me:$LINENO: result: $ac_res" >&5
24950 echo "${ECHO_T}$ac_res" >&6; }
24951
24952 fi
24953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24954   cat >>confdefs.h <<_ACEOF
24955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24956 _ACEOF
24957
24958 fi
24959
24960 done
24961
24962     { echo "$as_me:$LINENO: checking for term.h" >&5
24963 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24964 if test "${ac_cv_header_term_h+set}" = set; then
24965   echo $ECHO_N "(cached) $ECHO_C" >&6
24966 else
24967   cat >conftest.$ac_ext <<_ACEOF
24968 /* confdefs.h.  */
24969 _ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h.  */
24973 #if HAVE_CURSES_H
24974 #include <curses.h>
24975 #endif
24976
24977
24978 #include <term.h>
24979 _ACEOF
24980 rm -f conftest.$ac_objext
24981 if { (ac_try="$ac_compile"
24982 case "(($ac_try" in
24983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24984   *) ac_try_echo=$ac_try;;
24985 esac
24986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24987   (eval "$ac_compile") 2>conftest.er1
24988   ac_status=$?
24989   grep -v '^ *+' conftest.er1 >conftest.err
24990   rm -f conftest.er1
24991   cat conftest.err >&5
24992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993   (exit $ac_status); } && {
24994          test -z "$ac_c_werror_flag" ||
24995          test ! -s conftest.err
24996        } && test -s conftest.$ac_objext; then
24997   ac_cv_header_term_h=yes
24998 else
24999   echo "$as_me: failed program was:" >&5
25000 sed 's/^/| /' conftest.$ac_ext >&5
25001
25002         ac_cv_header_term_h=no
25003 fi
25004
25005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25006 fi
25007 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25008 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25009 if test $ac_cv_header_term_h = yes; then
25010    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25011 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25012 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25013   echo $ECHO_N "(cached) $ECHO_C" >&6
25014 else
25015   ac_check_lib_save_LIBS=$LIBS
25016 LIBS="-lcurses  $LIBS"
25017 cat >conftest.$ac_ext <<_ACEOF
25018 /* confdefs.h.  */
25019 _ACEOF
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h.  */
25023
25024 /* Override any GCC internal prototype to avoid an error.
25025    Use char because int might match the return type of a GCC
25026    builtin and then its argument prototype would still apply.  */
25027 #ifdef __cplusplus
25028 extern "C"
25029 #endif
25030 char tgetent ();
25031 int
25032 main ()
25033 {
25034 return tgetent ();
25035   ;
25036   return 0;
25037 }
25038 _ACEOF
25039 rm -f conftest.$ac_objext conftest$ac_exeext
25040 if { (ac_try="$ac_link"
25041 case "(($ac_try" in
25042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043   *) ac_try_echo=$ac_try;;
25044 esac
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046   (eval "$ac_link") 2>conftest.er1
25047   ac_status=$?
25048   grep -v '^ *+' conftest.er1 >conftest.err
25049   rm -f conftest.er1
25050   cat conftest.err >&5
25051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052   (exit $ac_status); } && {
25053          test -z "$ac_c_werror_flag" ||
25054          test ! -s conftest.err
25055        } && test -s conftest$ac_exeext &&
25056        $as_test_x conftest$ac_exeext; then
25057   ac_cv_lib_curses_tgetent=yes
25058 else
25059   echo "$as_me: failed program was:" >&5
25060 sed 's/^/| /' conftest.$ac_ext >&5
25061
25062         ac_cv_lib_curses_tgetent=no
25063 fi
25064
25065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25066       conftest$ac_exeext conftest.$ac_ext
25067 LIBS=$ac_check_lib_save_LIBS
25068 fi
25069 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25070 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25071 if test $ac_cv_lib_curses_tgetent = yes; then
25072    CONS_LIBS="-lcurses"
25073          CONS_OBJ="conio.o"
25074          CONS_SRC="conio.c"
25075          got_conio="yes"
25076          support_readline=no
25077
25078 cat >>confdefs.h <<\_ACEOF
25079 #define HAVE_CONIO 1
25080 _ACEOF
25081
25082
25083 fi
25084
25085
25086 else
25087    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25088 fi
25089
25090
25091
25092 fi
25093
25094
25095 fi
25096
25097
25098 # Check whether --enable-readline was given.
25099 if test "${enable_readline+set}" = set; then
25100   enableval=$enable_readline;
25101        if test x$enableval = xno; then
25102           support_readline=no
25103        fi
25104
25105
25106 fi
25107
25108
25109 got_readline="no"
25110 READLINE_SRC=
25111 if test x$support_readline = xyes; then
25112
25113 # Check whether --with-readline was given.
25114 if test "${with_readline+set}" = set; then
25115   withval=$with_readline;
25116           case "$with_readline" in
25117           no)
25118              :
25119              ;;
25120           yes|*)
25121              if test -f ${with_readline}/readline.h; then
25122                 CONS_INC="-I${with_readline}"
25123                 CONS_LDFLAGS="-L$with_readline"
25124              elif test -f ${with_readline}/include/readline/readline.h; then
25125                 CONS_INC="-I${with_readline}/include/readline"
25126                 CONS_LDFLAGS="-L${with_readline}/lib"
25127                 with_readline="${with_readline}/include/readline"
25128              else
25129                 with_readline="/usr/include/readline"
25130              fi
25131
25132              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25134   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25135 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25137   echo $ECHO_N "(cached) $ECHO_C" >&6
25138 fi
25139 ac_res=`eval echo '${'$as_ac_Header'}'`
25140                { echo "$as_me:$LINENO: result: $ac_res" >&5
25141 echo "${ECHO_T}$ac_res" >&6; }
25142 else
25143   # Is the header compilable?
25144 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25145 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25146 cat >conftest.$ac_ext <<_ACEOF
25147 /* confdefs.h.  */
25148 _ACEOF
25149 cat confdefs.h >>conftest.$ac_ext
25150 cat >>conftest.$ac_ext <<_ACEOF
25151 /* end confdefs.h.  */
25152 $ac_includes_default
25153 #include <${with_readline}/readline.h>
25154 _ACEOF
25155 rm -f conftest.$ac_objext
25156 if { (ac_try="$ac_compile"
25157 case "(($ac_try" in
25158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159   *) ac_try_echo=$ac_try;;
25160 esac
25161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25162   (eval "$ac_compile") 2>conftest.er1
25163   ac_status=$?
25164   grep -v '^ *+' conftest.er1 >conftest.err
25165   rm -f conftest.er1
25166   cat conftest.err >&5
25167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168   (exit $ac_status); } && {
25169          test -z "$ac_c_werror_flag" ||
25170          test ! -s conftest.err
25171        } && test -s conftest.$ac_objext; then
25172   ac_header_compiler=yes
25173 else
25174   echo "$as_me: failed program was:" >&5
25175 sed 's/^/| /' conftest.$ac_ext >&5
25176
25177         ac_header_compiler=no
25178 fi
25179
25180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25182 echo "${ECHO_T}$ac_header_compiler" >&6; }
25183
25184 # Is the header present?
25185 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25186 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25187 cat >conftest.$ac_ext <<_ACEOF
25188 /* confdefs.h.  */
25189 _ACEOF
25190 cat confdefs.h >>conftest.$ac_ext
25191 cat >>conftest.$ac_ext <<_ACEOF
25192 /* end confdefs.h.  */
25193 #include <${with_readline}/readline.h>
25194 _ACEOF
25195 if { (ac_try="$ac_cpp conftest.$ac_ext"
25196 case "(($ac_try" in
25197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25198   *) ac_try_echo=$ac_try;;
25199 esac
25200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25201   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25202   ac_status=$?
25203   grep -v '^ *+' conftest.er1 >conftest.err
25204   rm -f conftest.er1
25205   cat conftest.err >&5
25206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207   (exit $ac_status); } >/dev/null && {
25208          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25209          test ! -s conftest.err
25210        }; then
25211   ac_header_preproc=yes
25212 else
25213   echo "$as_me: failed program was:" >&5
25214 sed 's/^/| /' conftest.$ac_ext >&5
25215
25216   ac_header_preproc=no
25217 fi
25218
25219 rm -f conftest.err conftest.$ac_ext
25220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25221 echo "${ECHO_T}$ac_header_preproc" >&6; }
25222
25223 # So?  What about this header?
25224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25225   yes:no: )
25226     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25227 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25228     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25229 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25230     ac_header_preproc=yes
25231     ;;
25232   no:yes:* )
25233     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25234 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25235     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25236 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25237     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25238 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25239     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25240 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25241     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25242 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25243     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25244 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25245
25246     ;;
25247 esac
25248 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25249 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25251   echo $ECHO_N "(cached) $ECHO_C" >&6
25252 else
25253   eval "$as_ac_Header=\$ac_header_preproc"
25254 fi
25255 ac_res=`eval echo '${'$as_ac_Header'}'`
25256                { echo "$as_me:$LINENO: result: $ac_res" >&5
25257 echo "${ECHO_T}$ac_res" >&6; }
25258
25259 fi
25260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25261
25262
25263 cat >>confdefs.h <<\_ACEOF
25264 #define HAVE_READLINE 1
25265 _ACEOF
25266
25267                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25268                     got_readline="yes"
25269
25270 else
25271
25272                     echo " "
25273                     echo "readline.h not found. readline turned off ..."
25274                     echo " "
25275
25276
25277 fi
25278
25279
25280              ;;
25281           esac
25282
25283 else
25284
25285                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25286   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25287 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25288 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25289   echo $ECHO_N "(cached) $ECHO_C" >&6
25290 fi
25291 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25292 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25293 else
25294   # Is the header compilable?
25295 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25296 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25297 cat >conftest.$ac_ext <<_ACEOF
25298 /* confdefs.h.  */
25299 _ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h.  */
25303 $ac_includes_default
25304 #include </usr/include/readline/readline.h>
25305 _ACEOF
25306 rm -f conftest.$ac_objext
25307 if { (ac_try="$ac_compile"
25308 case "(($ac_try" in
25309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310   *) ac_try_echo=$ac_try;;
25311 esac
25312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25313   (eval "$ac_compile") 2>conftest.er1
25314   ac_status=$?
25315   grep -v '^ *+' conftest.er1 >conftest.err
25316   rm -f conftest.er1
25317   cat conftest.err >&5
25318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); } && {
25320          test -z "$ac_c_werror_flag" ||
25321          test ! -s conftest.err
25322        } && test -s conftest.$ac_objext; then
25323   ac_header_compiler=yes
25324 else
25325   echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25327
25328         ac_header_compiler=no
25329 fi
25330
25331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25333 echo "${ECHO_T}$ac_header_compiler" >&6; }
25334
25335 # Is the header present?
25336 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25337 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25338 cat >conftest.$ac_ext <<_ACEOF
25339 /* confdefs.h.  */
25340 _ACEOF
25341 cat confdefs.h >>conftest.$ac_ext
25342 cat >>conftest.$ac_ext <<_ACEOF
25343 /* end confdefs.h.  */
25344 #include </usr/include/readline/readline.h>
25345 _ACEOF
25346 if { (ac_try="$ac_cpp conftest.$ac_ext"
25347 case "(($ac_try" in
25348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25349   *) ac_try_echo=$ac_try;;
25350 esac
25351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25353   ac_status=$?
25354   grep -v '^ *+' conftest.er1 >conftest.err
25355   rm -f conftest.er1
25356   cat conftest.err >&5
25357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358   (exit $ac_status); } >/dev/null && {
25359          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25360          test ! -s conftest.err
25361        }; then
25362   ac_header_preproc=yes
25363 else
25364   echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25366
25367   ac_header_preproc=no
25368 fi
25369
25370 rm -f conftest.err conftest.$ac_ext
25371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25372 echo "${ECHO_T}$ac_header_preproc" >&6; }
25373
25374 # So?  What about this header?
25375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25376   yes:no: )
25377     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25378 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25379     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25380 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25381     ac_header_preproc=yes
25382     ;;
25383   no:yes:* )
25384     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25385 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25386     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25387 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25388     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25389 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25390     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25391 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25392     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25393 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25394     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25395 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25396
25397     ;;
25398 esac
25399 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25400 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25401 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25402   echo $ECHO_N "(cached) $ECHO_C" >&6
25403 else
25404   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25405 fi
25406 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25407 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25408
25409 fi
25410 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25411
25412
25413 cat >>confdefs.h <<\_ACEOF
25414 #define HAVE_READLINE 1
25415 _ACEOF
25416
25417                 got_readline="yes"
25418                 CONS_INC="-I/usr/include/readline"
25419                 CONS_LIBS="-lreadline -ltermcap"
25420
25421 else
25422
25423                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25425   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25426 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25428   echo $ECHO_N "(cached) $ECHO_C" >&6
25429 fi
25430 ac_res=`eval echo '${'$as_ac_Header'}'`
25431                { echo "$as_me:$LINENO: result: $ac_res" >&5
25432 echo "${ECHO_T}$ac_res" >&6; }
25433 else
25434   # Is the header compilable?
25435 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25436 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25437 cat >conftest.$ac_ext <<_ACEOF
25438 /* confdefs.h.  */
25439 _ACEOF
25440 cat confdefs.h >>conftest.$ac_ext
25441 cat >>conftest.$ac_ext <<_ACEOF
25442 /* end confdefs.h.  */
25443 $ac_includes_default
25444 #include <${TOP_DIR}/depkgs/readline/readline.h>
25445 _ACEOF
25446 rm -f conftest.$ac_objext
25447 if { (ac_try="$ac_compile"
25448 case "(($ac_try" in
25449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450   *) ac_try_echo=$ac_try;;
25451 esac
25452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25453   (eval "$ac_compile") 2>conftest.er1
25454   ac_status=$?
25455   grep -v '^ *+' conftest.er1 >conftest.err
25456   rm -f conftest.er1
25457   cat conftest.err >&5
25458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459   (exit $ac_status); } && {
25460          test -z "$ac_c_werror_flag" ||
25461          test ! -s conftest.err
25462        } && test -s conftest.$ac_objext; then
25463   ac_header_compiler=yes
25464 else
25465   echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25467
25468         ac_header_compiler=no
25469 fi
25470
25471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25473 echo "${ECHO_T}$ac_header_compiler" >&6; }
25474
25475 # Is the header present?
25476 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25477 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25478 cat >conftest.$ac_ext <<_ACEOF
25479 /* confdefs.h.  */
25480 _ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h.  */
25484 #include <${TOP_DIR}/depkgs/readline/readline.h>
25485 _ACEOF
25486 if { (ac_try="$ac_cpp conftest.$ac_ext"
25487 case "(($ac_try" in
25488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25489   *) ac_try_echo=$ac_try;;
25490 esac
25491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25493   ac_status=$?
25494   grep -v '^ *+' conftest.er1 >conftest.err
25495   rm -f conftest.er1
25496   cat conftest.err >&5
25497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498   (exit $ac_status); } >/dev/null && {
25499          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25500          test ! -s conftest.err
25501        }; then
25502   ac_header_preproc=yes
25503 else
25504   echo "$as_me: failed program was:" >&5
25505 sed 's/^/| /' conftest.$ac_ext >&5
25506
25507   ac_header_preproc=no
25508 fi
25509
25510 rm -f conftest.err conftest.$ac_ext
25511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25512 echo "${ECHO_T}$ac_header_preproc" >&6; }
25513
25514 # So?  What about this header?
25515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25516   yes:no: )
25517     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25518 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25519     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25520 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25521     ac_header_preproc=yes
25522     ;;
25523   no:yes:* )
25524     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25525 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25526     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25527 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25528     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25529 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25530     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25531 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25532     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25533 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25534     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25535 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25536
25537     ;;
25538 esac
25539 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25540 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25542   echo $ECHO_N "(cached) $ECHO_C" >&6
25543 else
25544   eval "$as_ac_Header=\$ac_header_preproc"
25545 fi
25546 ac_res=`eval echo '${'$as_ac_Header'}'`
25547                { echo "$as_me:$LINENO: result: $ac_res" >&5
25548 echo "${ECHO_T}$ac_res" >&6; }
25549
25550 fi
25551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25552
25553
25554 cat >>confdefs.h <<\_ACEOF
25555 #define HAVE_READLINE 1
25556 _ACEOF
25557
25558                         got_readline="yes"
25559                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25560                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25561                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25562                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25563
25564 else
25565
25566                         echo " "
25567                         echo "readline.h not found. readline turned off ..."
25568                         echo " "
25569
25570
25571 fi
25572
25573
25574
25575
25576 fi
25577
25578
25579
25580
25581 fi
25582
25583 fi
25584
25585
25586
25587
25588
25589
25590
25591
25592 MAKE_SHELL=/bin/sh
25593
25594 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25595 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25596 if test "${ac_cv_header_stat_broken+set}" = set; then
25597   echo $ECHO_N "(cached) $ECHO_C" >&6
25598 else
25599   cat >conftest.$ac_ext <<_ACEOF
25600 /* confdefs.h.  */
25601 _ACEOF
25602 cat confdefs.h >>conftest.$ac_ext
25603 cat >>conftest.$ac_ext <<_ACEOF
25604 /* end confdefs.h.  */
25605 #include <sys/types.h>
25606 #include <sys/stat.h>
25607
25608 #if defined S_ISBLK && defined S_IFDIR
25609 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25610 #endif
25611
25612 #if defined S_ISBLK && defined S_IFCHR
25613 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25614 #endif
25615
25616 #if defined S_ISLNK && defined S_IFREG
25617 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25618 #endif
25619
25620 #if defined S_ISSOCK && defined S_IFREG
25621 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25622 #endif
25623
25624 _ACEOF
25625 rm -f conftest.$ac_objext
25626 if { (ac_try="$ac_compile"
25627 case "(($ac_try" in
25628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629   *) ac_try_echo=$ac_try;;
25630 esac
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632   (eval "$ac_compile") 2>conftest.er1
25633   ac_status=$?
25634   grep -v '^ *+' conftest.er1 >conftest.err
25635   rm -f conftest.er1
25636   cat conftest.err >&5
25637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638   (exit $ac_status); } && {
25639          test -z "$ac_c_werror_flag" ||
25640          test ! -s conftest.err
25641        } && test -s conftest.$ac_objext; then
25642   ac_cv_header_stat_broken=no
25643 else
25644   echo "$as_me: failed program was:" >&5
25645 sed 's/^/| /' conftest.$ac_ext >&5
25646
25647         ac_cv_header_stat_broken=yes
25648 fi
25649
25650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25651 fi
25652 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25653 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25654 if test $ac_cv_header_stat_broken = yes; then
25655
25656 cat >>confdefs.h <<\_ACEOF
25657 #define STAT_MACROS_BROKEN 1
25658 _ACEOF
25659
25660 fi
25661
25662
25663
25664
25665
25666
25667 ac_header_dirent=no
25668 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25669   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25670 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25671 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25673   echo $ECHO_N "(cached) $ECHO_C" >&6
25674 else
25675   cat >conftest.$ac_ext <<_ACEOF
25676 /* confdefs.h.  */
25677 _ACEOF
25678 cat confdefs.h >>conftest.$ac_ext
25679 cat >>conftest.$ac_ext <<_ACEOF
25680 /* end confdefs.h.  */
25681 #include <sys/types.h>
25682 #include <$ac_hdr>
25683
25684 int
25685 main ()
25686 {
25687 if ((DIR *) 0)
25688 return 0;
25689   ;
25690   return 0;
25691 }
25692 _ACEOF
25693 rm -f conftest.$ac_objext
25694 if { (ac_try="$ac_compile"
25695 case "(($ac_try" in
25696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697   *) ac_try_echo=$ac_try;;
25698 esac
25699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25700   (eval "$ac_compile") 2>conftest.er1
25701   ac_status=$?
25702   grep -v '^ *+' conftest.er1 >conftest.err
25703   rm -f conftest.er1
25704   cat conftest.err >&5
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); } && {
25707          test -z "$ac_c_werror_flag" ||
25708          test ! -s conftest.err
25709        } && test -s conftest.$ac_objext; then
25710   eval "$as_ac_Header=yes"
25711 else
25712   echo "$as_me: failed program was:" >&5
25713 sed 's/^/| /' conftest.$ac_ext >&5
25714
25715         eval "$as_ac_Header=no"
25716 fi
25717
25718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25719 fi
25720 ac_res=`eval echo '${'$as_ac_Header'}'`
25721                { echo "$as_me:$LINENO: result: $ac_res" >&5
25722 echo "${ECHO_T}$ac_res" >&6; }
25723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25724   cat >>confdefs.h <<_ACEOF
25725 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25726 _ACEOF
25727
25728 ac_header_dirent=$ac_hdr; break
25729 fi
25730
25731 done
25732 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25733 if test $ac_header_dirent = dirent.h; then
25734   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25735 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25736 if test "${ac_cv_search_opendir+set}" = set; then
25737   echo $ECHO_N "(cached) $ECHO_C" >&6
25738 else
25739   ac_func_search_save_LIBS=$LIBS
25740 cat >conftest.$ac_ext <<_ACEOF
25741 /* confdefs.h.  */
25742 _ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h.  */
25746
25747 /* Override any GCC internal prototype to avoid an error.
25748    Use char because int might match the return type of a GCC
25749    builtin and then its argument prototype would still apply.  */
25750 #ifdef __cplusplus
25751 extern "C"
25752 #endif
25753 char opendir ();
25754 int
25755 main ()
25756 {
25757 return opendir ();
25758   ;
25759   return 0;
25760 }
25761 _ACEOF
25762 for ac_lib in '' dir; do
25763   if test -z "$ac_lib"; then
25764     ac_res="none required"
25765   else
25766     ac_res=-l$ac_lib
25767     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25768   fi
25769   rm -f conftest.$ac_objext conftest$ac_exeext
25770 if { (ac_try="$ac_link"
25771 case "(($ac_try" in
25772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25773   *) ac_try_echo=$ac_try;;
25774 esac
25775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25776   (eval "$ac_link") 2>conftest.er1
25777   ac_status=$?
25778   grep -v '^ *+' conftest.er1 >conftest.err
25779   rm -f conftest.er1
25780   cat conftest.err >&5
25781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782   (exit $ac_status); } && {
25783          test -z "$ac_c_werror_flag" ||
25784          test ! -s conftest.err
25785        } && test -s conftest$ac_exeext &&
25786        $as_test_x conftest$ac_exeext; then
25787   ac_cv_search_opendir=$ac_res
25788 else
25789   echo "$as_me: failed program was:" >&5
25790 sed 's/^/| /' conftest.$ac_ext >&5
25791
25792
25793 fi
25794
25795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25796       conftest$ac_exeext
25797   if test "${ac_cv_search_opendir+set}" = set; then
25798   break
25799 fi
25800 done
25801 if test "${ac_cv_search_opendir+set}" = set; then
25802   :
25803 else
25804   ac_cv_search_opendir=no
25805 fi
25806 rm conftest.$ac_ext
25807 LIBS=$ac_func_search_save_LIBS
25808 fi
25809 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25810 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25811 ac_res=$ac_cv_search_opendir
25812 if test "$ac_res" != no; then
25813   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25814
25815 fi
25816
25817 else
25818   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25819 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25820 if test "${ac_cv_search_opendir+set}" = set; then
25821   echo $ECHO_N "(cached) $ECHO_C" >&6
25822 else
25823   ac_func_search_save_LIBS=$LIBS
25824 cat >conftest.$ac_ext <<_ACEOF
25825 /* confdefs.h.  */
25826 _ACEOF
25827 cat confdefs.h >>conftest.$ac_ext
25828 cat >>conftest.$ac_ext <<_ACEOF
25829 /* end confdefs.h.  */
25830
25831 /* Override any GCC internal prototype to avoid an error.
25832    Use char because int might match the return type of a GCC
25833    builtin and then its argument prototype would still apply.  */
25834 #ifdef __cplusplus
25835 extern "C"
25836 #endif
25837 char opendir ();
25838 int
25839 main ()
25840 {
25841 return opendir ();
25842   ;
25843   return 0;
25844 }
25845 _ACEOF
25846 for ac_lib in '' x; do
25847   if test -z "$ac_lib"; then
25848     ac_res="none required"
25849   else
25850     ac_res=-l$ac_lib
25851     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25852   fi
25853   rm -f conftest.$ac_objext conftest$ac_exeext
25854 if { (ac_try="$ac_link"
25855 case "(($ac_try" in
25856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857   *) ac_try_echo=$ac_try;;
25858 esac
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860   (eval "$ac_link") 2>conftest.er1
25861   ac_status=$?
25862   grep -v '^ *+' conftest.er1 >conftest.err
25863   rm -f conftest.er1
25864   cat conftest.err >&5
25865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866   (exit $ac_status); } && {
25867          test -z "$ac_c_werror_flag" ||
25868          test ! -s conftest.err
25869        } && test -s conftest$ac_exeext &&
25870        $as_test_x conftest$ac_exeext; then
25871   ac_cv_search_opendir=$ac_res
25872 else
25873   echo "$as_me: failed program was:" >&5
25874 sed 's/^/| /' conftest.$ac_ext >&5
25875
25876
25877 fi
25878
25879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25880       conftest$ac_exeext
25881   if test "${ac_cv_search_opendir+set}" = set; then
25882   break
25883 fi
25884 done
25885 if test "${ac_cv_search_opendir+set}" = set; then
25886   :
25887 else
25888   ac_cv_search_opendir=no
25889 fi
25890 rm conftest.$ac_ext
25891 LIBS=$ac_func_search_save_LIBS
25892 fi
25893 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25894 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25895 ac_res=$ac_cv_search_opendir
25896 if test "$ac_res" != no; then
25897   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25898
25899 fi
25900
25901 fi
25902
25903
25904
25905
25906
25907
25908
25909
25910 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25911 do
25912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25916   echo $ECHO_N "(cached) $ECHO_C" >&6
25917 else
25918   cat >conftest.$ac_ext <<_ACEOF
25919 /* confdefs.h.  */
25920 _ACEOF
25921 cat confdefs.h >>conftest.$ac_ext
25922 cat >>conftest.$ac_ext <<_ACEOF
25923 /* end confdefs.h.  */
25924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25926 #define $ac_func innocuous_$ac_func
25927
25928 /* System header to define __stub macros and hopefully few prototypes,
25929     which can conflict with char $ac_func (); below.
25930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25931     <limits.h> exists even on freestanding compilers.  */
25932
25933 #ifdef __STDC__
25934 # include <limits.h>
25935 #else
25936 # include <assert.h>
25937 #endif
25938
25939 #undef $ac_func
25940
25941 /* Override any GCC internal prototype to avoid an error.
25942    Use char because int might match the return type of a GCC
25943    builtin and then its argument prototype would still apply.  */
25944 #ifdef __cplusplus
25945 extern "C"
25946 #endif
25947 char $ac_func ();
25948 /* The GNU C library defines this for functions which it implements
25949     to always fail with ENOSYS.  Some functions are actually named
25950     something starting with __ and the normal name is an alias.  */
25951 #if defined __stub_$ac_func || defined __stub___$ac_func
25952 choke me
25953 #endif
25954
25955 int
25956 main ()
25957 {
25958 return $ac_func ();
25959   ;
25960   return 0;
25961 }
25962 _ACEOF
25963 rm -f conftest.$ac_objext conftest$ac_exeext
25964 if { (ac_try="$ac_link"
25965 case "(($ac_try" in
25966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25967   *) ac_try_echo=$ac_try;;
25968 esac
25969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25970   (eval "$ac_link") 2>conftest.er1
25971   ac_status=$?
25972   grep -v '^ *+' conftest.er1 >conftest.err
25973   rm -f conftest.er1
25974   cat conftest.err >&5
25975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976   (exit $ac_status); } && {
25977          test -z "$ac_c_werror_flag" ||
25978          test ! -s conftest.err
25979        } && test -s conftest$ac_exeext &&
25980        $as_test_x conftest$ac_exeext; then
25981   eval "$as_ac_var=yes"
25982 else
25983   echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25985
25986         eval "$as_ac_var=no"
25987 fi
25988
25989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25990       conftest$ac_exeext conftest.$ac_ext
25991 fi
25992 ac_res=`eval echo '${'$as_ac_var'}'`
25993                { echo "$as_me:$LINENO: result: $ac_res" >&5
25994 echo "${ECHO_T}$ac_res" >&6; }
25995 if test `eval echo '${'$as_ac_var'}'` = yes; then
25996   cat >>confdefs.h <<_ACEOF
25997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25998 _ACEOF
25999
26000 fi
26001 done
26002
26003
26004
26005 for ac_func in nanosleep nl_langinfo
26006 do
26007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26011   echo $ECHO_N "(cached) $ECHO_C" >&6
26012 else
26013   cat >conftest.$ac_ext <<_ACEOF
26014 /* confdefs.h.  */
26015 _ACEOF
26016 cat confdefs.h >>conftest.$ac_ext
26017 cat >>conftest.$ac_ext <<_ACEOF
26018 /* end confdefs.h.  */
26019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26021 #define $ac_func innocuous_$ac_func
26022
26023 /* System header to define __stub macros and hopefully few prototypes,
26024     which can conflict with char $ac_func (); below.
26025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26026     <limits.h> exists even on freestanding compilers.  */
26027
26028 #ifdef __STDC__
26029 # include <limits.h>
26030 #else
26031 # include <assert.h>
26032 #endif
26033
26034 #undef $ac_func
26035
26036 /* Override any GCC internal prototype to avoid an error.
26037    Use char because int might match the return type of a GCC
26038    builtin and then its argument prototype would still apply.  */
26039 #ifdef __cplusplus
26040 extern "C"
26041 #endif
26042 char $ac_func ();
26043 /* The GNU C library defines this for functions which it implements
26044     to always fail with ENOSYS.  Some functions are actually named
26045     something starting with __ and the normal name is an alias.  */
26046 #if defined __stub_$ac_func || defined __stub___$ac_func
26047 choke me
26048 #endif
26049
26050 int
26051 main ()
26052 {
26053 return $ac_func ();
26054   ;
26055   return 0;
26056 }
26057 _ACEOF
26058 rm -f conftest.$ac_objext conftest$ac_exeext
26059 if { (ac_try="$ac_link"
26060 case "(($ac_try" in
26061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26062   *) ac_try_echo=$ac_try;;
26063 esac
26064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26065   (eval "$ac_link") 2>conftest.er1
26066   ac_status=$?
26067   grep -v '^ *+' conftest.er1 >conftest.err
26068   rm -f conftest.er1
26069   cat conftest.err >&5
26070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071   (exit $ac_status); } && {
26072          test -z "$ac_c_werror_flag" ||
26073          test ! -s conftest.err
26074        } && test -s conftest$ac_exeext &&
26075        $as_test_x conftest$ac_exeext; then
26076   eval "$as_ac_var=yes"
26077 else
26078   echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26080
26081         eval "$as_ac_var=no"
26082 fi
26083
26084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26085       conftest$ac_exeext conftest.$ac_ext
26086 fi
26087 ac_res=`eval echo '${'$as_ac_var'}'`
26088                { echo "$as_me:$LINENO: result: $ac_res" >&5
26089 echo "${ECHO_T}$ac_res" >&6; }
26090 if test `eval echo '${'$as_ac_var'}'` = yes; then
26091   cat >>confdefs.h <<_ACEOF
26092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26093 _ACEOF
26094
26095 fi
26096 done
26097
26098
26099 for ac_header in varargs.h
26100 do
26101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26103   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26106   echo $ECHO_N "(cached) $ECHO_C" >&6
26107 fi
26108 ac_res=`eval echo '${'$as_ac_Header'}'`
26109                { echo "$as_me:$LINENO: result: $ac_res" >&5
26110 echo "${ECHO_T}$ac_res" >&6; }
26111 else
26112   # Is the header compilable?
26113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26115 cat >conftest.$ac_ext <<_ACEOF
26116 /* confdefs.h.  */
26117 _ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h.  */
26121 $ac_includes_default
26122 #include <$ac_header>
26123 _ACEOF
26124 rm -f conftest.$ac_objext
26125 if { (ac_try="$ac_compile"
26126 case "(($ac_try" in
26127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26128   *) ac_try_echo=$ac_try;;
26129 esac
26130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26131   (eval "$ac_compile") 2>conftest.er1
26132   ac_status=$?
26133   grep -v '^ *+' conftest.er1 >conftest.err
26134   rm -f conftest.er1
26135   cat conftest.err >&5
26136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137   (exit $ac_status); } && {
26138          test -z "$ac_c_werror_flag" ||
26139          test ! -s conftest.err
26140        } && test -s conftest.$ac_objext; then
26141   ac_header_compiler=yes
26142 else
26143   echo "$as_me: failed program was:" >&5
26144 sed 's/^/| /' conftest.$ac_ext >&5
26145
26146         ac_header_compiler=no
26147 fi
26148
26149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26151 echo "${ECHO_T}$ac_header_compiler" >&6; }
26152
26153 # Is the header present?
26154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26156 cat >conftest.$ac_ext <<_ACEOF
26157 /* confdefs.h.  */
26158 _ACEOF
26159 cat confdefs.h >>conftest.$ac_ext
26160 cat >>conftest.$ac_ext <<_ACEOF
26161 /* end confdefs.h.  */
26162 #include <$ac_header>
26163 _ACEOF
26164 if { (ac_try="$ac_cpp conftest.$ac_ext"
26165 case "(($ac_try" in
26166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26167   *) ac_try_echo=$ac_try;;
26168 esac
26169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26171   ac_status=$?
26172   grep -v '^ *+' conftest.er1 >conftest.err
26173   rm -f conftest.er1
26174   cat conftest.err >&5
26175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176   (exit $ac_status); } >/dev/null && {
26177          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26178          test ! -s conftest.err
26179        }; then
26180   ac_header_preproc=yes
26181 else
26182   echo "$as_me: failed program was:" >&5
26183 sed 's/^/| /' conftest.$ac_ext >&5
26184
26185   ac_header_preproc=no
26186 fi
26187
26188 rm -f conftest.err conftest.$ac_ext
26189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26190 echo "${ECHO_T}$ac_header_preproc" >&6; }
26191
26192 # So?  What about this header?
26193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26194   yes:no: )
26195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26199     ac_header_preproc=yes
26200     ;;
26201   no:yes:* )
26202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26214
26215     ;;
26216 esac
26217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26220   echo $ECHO_N "(cached) $ECHO_C" >&6
26221 else
26222   eval "$as_ac_Header=\$ac_header_preproc"
26223 fi
26224 ac_res=`eval echo '${'$as_ac_Header'}'`
26225                { echo "$as_me:$LINENO: result: $ac_res" >&5
26226 echo "${ECHO_T}$ac_res" >&6; }
26227
26228 fi
26229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26230   cat >>confdefs.h <<_ACEOF
26231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26232 _ACEOF
26233
26234 fi
26235
26236 done
26237
26238
26239
26240 { echo "$as_me:$LINENO: checking for Python support" >&5
26241 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26242
26243 # Check whether --with-python was given.
26244 if test "${with_python+set}" = set; then
26245   withval=$with_python;
26246        PYTHON_INCDIR=
26247        PYTHON_LIBS=
26248        if test "$withval" != "no"; then
26249           if test "$withval" = "yes"; then
26250              if test -e /usr/bin/python-config ; then
26251                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26252                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26253              else
26254                 for python_root in /usr /usr/local /usr/sfw; do
26255                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26256                       if test -f $python_root/include/${ver}/Python.h; then
26257                          PYTHON_INCDIR=-I$python_root/include/${ver}
26258                          if test -d $python_root/lib64/${ver}/config; then
26259                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26260                          else
26261                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26262                          fi
26263                          break
26264                       fi
26265                    done
26266                 done
26267
26268                 if test x$PYTHON_INCDIR = x; then
26269                    if test -f $prefix/include/Python.h; then
26270                       PYTHON_INCDIR=-I$prefix/include
26271                       if test -d $prefix/lib64/config; then
26272                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26273                       else
26274                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26275                       fi
26276                    else
26277                       { echo "$as_me:$LINENO: result: no" >&5
26278 echo "${ECHO_T}no" >&6; }
26279                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26280 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26281    { (exit 1); exit 1; }; }
26282                    fi
26283                 fi
26284              fi
26285           else
26286              if test -e $withval/bin/python-config ; then
26287                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26288                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26289              elif test -f $withval/Python.h; then
26290                 PYTHON_INCDIR=-I$withval
26291                 PYTHON_LIBS="-L$withval/config -lpython"
26292              elif test -f $withval/include/Python.h; then
26293                 PYTHON_INCDIR=-I$withval/include
26294                 if test -d $withval/lib64/config; then
26295                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26296                 else
26297                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26298                 fi
26299              elif test -f $withval/include/python/Python.h; then
26300                 PYTHON_INCDIR=-I$withval/include/python
26301                 if test -d $withval/lib64/python/config; then
26302                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26303                 else
26304                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26305                 fi
26306              else
26307                 { echo "$as_me:$LINENO: result: no" >&5
26308 echo "${ECHO_T}no" >&6; }
26309                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26310 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26311    { (exit 1); exit 1; }; }
26312              fi
26313           fi
26314
26315           cat >>confdefs.h <<\_ACEOF
26316 #define HAVE_PYTHON 1
26317 _ACEOF
26318
26319           { echo "$as_me:$LINENO: result: yes" >&5
26320 echo "${ECHO_T}yes" >&6; }
26321           support_python=yes
26322           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26323 echo "$as_me: checking for more Python libs" >&6;}
26324           saved_LIBS="$LIBS"; LIBS=
26325           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26326 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26327 if test "${ac_cv_search_shm_open+set}" = set; then
26328   echo $ECHO_N "(cached) $ECHO_C" >&6
26329 else
26330   ac_func_search_save_LIBS=$LIBS
26331 cat >conftest.$ac_ext <<_ACEOF
26332 /* confdefs.h.  */
26333 _ACEOF
26334 cat confdefs.h >>conftest.$ac_ext
26335 cat >>conftest.$ac_ext <<_ACEOF
26336 /* end confdefs.h.  */
26337
26338 /* Override any GCC internal prototype to avoid an error.
26339    Use char because int might match the return type of a GCC
26340    builtin and then its argument prototype would still apply.  */
26341 #ifdef __cplusplus
26342 extern "C"
26343 #endif
26344 char shm_open ();
26345 int
26346 main ()
26347 {
26348 return shm_open ();
26349   ;
26350   return 0;
26351 }
26352 _ACEOF
26353 for ac_lib in '' rt; do
26354   if test -z "$ac_lib"; then
26355     ac_res="none required"
26356   else
26357     ac_res=-l$ac_lib
26358     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26359   fi
26360   rm -f conftest.$ac_objext conftest$ac_exeext
26361 if { (ac_try="$ac_link"
26362 case "(($ac_try" in
26363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26364   *) ac_try_echo=$ac_try;;
26365 esac
26366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26367   (eval "$ac_link") 2>conftest.er1
26368   ac_status=$?
26369   grep -v '^ *+' conftest.er1 >conftest.err
26370   rm -f conftest.er1
26371   cat conftest.err >&5
26372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373   (exit $ac_status); } && {
26374          test -z "$ac_c_werror_flag" ||
26375          test ! -s conftest.err
26376        } && test -s conftest$ac_exeext &&
26377        $as_test_x conftest$ac_exeext; then
26378   ac_cv_search_shm_open=$ac_res
26379 else
26380   echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26382
26383
26384 fi
26385
26386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26387       conftest$ac_exeext
26388   if test "${ac_cv_search_shm_open+set}" = set; then
26389   break
26390 fi
26391 done
26392 if test "${ac_cv_search_shm_open+set}" = set; then
26393   :
26394 else
26395   ac_cv_search_shm_open=no
26396 fi
26397 rm conftest.$ac_ext
26398 LIBS=$ac_func_search_save_LIBS
26399 fi
26400 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26401 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26402 ac_res=$ac_cv_search_shm_open
26403 if test "$ac_res" != no; then
26404   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26405
26406 fi
26407
26408
26409 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26410 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26411 if test "${ac_cv_lib_util_openpty+set}" = set; then
26412   echo $ECHO_N "(cached) $ECHO_C" >&6
26413 else
26414   ac_check_lib_save_LIBS=$LIBS
26415 LIBS="-lutil  $LIBS"
26416 cat >conftest.$ac_ext <<_ACEOF
26417 /* confdefs.h.  */
26418 _ACEOF
26419 cat confdefs.h >>conftest.$ac_ext
26420 cat >>conftest.$ac_ext <<_ACEOF
26421 /* end confdefs.h.  */
26422
26423 /* Override any GCC internal prototype to avoid an error.
26424    Use char because int might match the return type of a GCC
26425    builtin and then its argument prototype would still apply.  */
26426 #ifdef __cplusplus
26427 extern "C"
26428 #endif
26429 char openpty ();
26430 int
26431 main ()
26432 {
26433 return openpty ();
26434   ;
26435   return 0;
26436 }
26437 _ACEOF
26438 rm -f conftest.$ac_objext conftest$ac_exeext
26439 if { (ac_try="$ac_link"
26440 case "(($ac_try" in
26441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26442   *) ac_try_echo=$ac_try;;
26443 esac
26444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26445   (eval "$ac_link") 2>conftest.er1
26446   ac_status=$?
26447   grep -v '^ *+' conftest.er1 >conftest.err
26448   rm -f conftest.er1
26449   cat conftest.err >&5
26450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451   (exit $ac_status); } && {
26452          test -z "$ac_c_werror_flag" ||
26453          test ! -s conftest.err
26454        } && test -s conftest$ac_exeext &&
26455        $as_test_x conftest$ac_exeext; then
26456   ac_cv_lib_util_openpty=yes
26457 else
26458   echo "$as_me: failed program was:" >&5
26459 sed 's/^/| /' conftest.$ac_ext >&5
26460
26461         ac_cv_lib_util_openpty=no
26462 fi
26463
26464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26465       conftest$ac_exeext conftest.$ac_ext
26466 LIBS=$ac_check_lib_save_LIBS
26467 fi
26468 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26469 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26470 if test $ac_cv_lib_util_openpty = yes; then
26471   cat >>confdefs.h <<_ACEOF
26472 #define HAVE_LIBUTIL 1
26473 _ACEOF
26474
26475   LIBS="-lutil $LIBS"
26476
26477 fi
26478
26479           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26480           LIBS="$saved_LIBS"
26481        else
26482           { echo "$as_me:$LINENO: result: no" >&5
26483 echo "${ECHO_T}no" >&6; }
26484        fi
26485
26486 else
26487
26488        { echo "$as_me:$LINENO: result: no" >&5
26489 echo "${ECHO_T}no" >&6; }
26490
26491
26492 fi
26493
26494
26495
26496
26497 { echo "$as_me:$LINENO: checking for socket" >&5
26498 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26499 if test "${ac_cv_func_socket+set}" = set; then
26500   echo $ECHO_N "(cached) $ECHO_C" >&6
26501 else
26502   cat >conftest.$ac_ext <<_ACEOF
26503 /* confdefs.h.  */
26504 _ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h.  */
26508 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26510 #define socket innocuous_socket
26511
26512 /* System header to define __stub macros and hopefully few prototypes,
26513     which can conflict with char socket (); below.
26514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26515     <limits.h> exists even on freestanding compilers.  */
26516
26517 #ifdef __STDC__
26518 # include <limits.h>
26519 #else
26520 # include <assert.h>
26521 #endif
26522
26523 #undef socket
26524
26525 /* Override any GCC internal prototype to avoid an error.
26526    Use char because int might match the return type of a GCC
26527    builtin and then its argument prototype would still apply.  */
26528 #ifdef __cplusplus
26529 extern "C"
26530 #endif
26531 char socket ();
26532 /* The GNU C library defines this for functions which it implements
26533     to always fail with ENOSYS.  Some functions are actually named
26534     something starting with __ and the normal name is an alias.  */
26535 #if defined __stub_socket || defined __stub___socket
26536 choke me
26537 #endif
26538
26539 int
26540 main ()
26541 {
26542 return socket ();
26543   ;
26544   return 0;
26545 }
26546 _ACEOF
26547 rm -f conftest.$ac_objext conftest$ac_exeext
26548 if { (ac_try="$ac_link"
26549 case "(($ac_try" in
26550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26551   *) ac_try_echo=$ac_try;;
26552 esac
26553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26554   (eval "$ac_link") 2>conftest.er1
26555   ac_status=$?
26556   grep -v '^ *+' conftest.er1 >conftest.err
26557   rm -f conftest.er1
26558   cat conftest.err >&5
26559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560   (exit $ac_status); } && {
26561          test -z "$ac_c_werror_flag" ||
26562          test ! -s conftest.err
26563        } && test -s conftest$ac_exeext &&
26564        $as_test_x conftest$ac_exeext; then
26565   ac_cv_func_socket=yes
26566 else
26567   echo "$as_me: failed program was:" >&5
26568 sed 's/^/| /' conftest.$ac_ext >&5
26569
26570         ac_cv_func_socket=no
26571 fi
26572
26573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26574       conftest$ac_exeext conftest.$ac_ext
26575 fi
26576 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26577 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26578 if test $ac_cv_func_socket = yes; then
26579   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26580 echo "${ECHO_T}using libc's socket" >&6; }
26581 else
26582
26583 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26584 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26585 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26586   echo $ECHO_N "(cached) $ECHO_C" >&6
26587 else
26588   ac_check_lib_save_LIBS=$LIBS
26589 LIBS="-lxnet  $LIBS"
26590 cat >conftest.$ac_ext <<_ACEOF
26591 /* confdefs.h.  */
26592 _ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h.  */
26596
26597 /* Override any GCC internal prototype to avoid an error.
26598    Use char because int might match the return type of a GCC
26599    builtin and then its argument prototype would still apply.  */
26600 #ifdef __cplusplus
26601 extern "C"
26602 #endif
26603 char socket ();
26604 int
26605 main ()
26606 {
26607 return socket ();
26608   ;
26609   return 0;
26610 }
26611 _ACEOF
26612 rm -f conftest.$ac_objext conftest$ac_exeext
26613 if { (ac_try="$ac_link"
26614 case "(($ac_try" in
26615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26616   *) ac_try_echo=$ac_try;;
26617 esac
26618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26619   (eval "$ac_link") 2>conftest.er1
26620   ac_status=$?
26621   grep -v '^ *+' conftest.er1 >conftest.err
26622   rm -f conftest.er1
26623   cat conftest.err >&5
26624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625   (exit $ac_status); } && {
26626          test -z "$ac_c_werror_flag" ||
26627          test ! -s conftest.err
26628        } && test -s conftest$ac_exeext &&
26629        $as_test_x conftest$ac_exeext; then
26630   ac_cv_lib_xnet_socket=yes
26631 else
26632   echo "$as_me: failed program was:" >&5
26633 sed 's/^/| /' conftest.$ac_ext >&5
26634
26635         ac_cv_lib_xnet_socket=no
26636 fi
26637
26638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26639       conftest$ac_exeext conftest.$ac_ext
26640 LIBS=$ac_check_lib_save_LIBS
26641 fi
26642 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26643 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26644 if test $ac_cv_lib_xnet_socket = yes; then
26645   cat >>confdefs.h <<_ACEOF
26646 #define HAVE_LIBXNET 1
26647 _ACEOF
26648
26649   LIBS="-lxnet $LIBS"
26650
26651 fi
26652
26653
26654 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26655 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26656 if test "${ac_cv_lib_socket_socket+set}" = set; then
26657   echo $ECHO_N "(cached) $ECHO_C" >&6
26658 else
26659   ac_check_lib_save_LIBS=$LIBS
26660 LIBS="-lsocket  $LIBS"
26661 cat >conftest.$ac_ext <<_ACEOF
26662 /* confdefs.h.  */
26663 _ACEOF
26664 cat confdefs.h >>conftest.$ac_ext
26665 cat >>conftest.$ac_ext <<_ACEOF
26666 /* end confdefs.h.  */
26667
26668 /* Override any GCC internal prototype to avoid an error.
26669    Use char because int might match the return type of a GCC
26670    builtin and then its argument prototype would still apply.  */
26671 #ifdef __cplusplus
26672 extern "C"
26673 #endif
26674 char socket ();
26675 int
26676 main ()
26677 {
26678 return socket ();
26679   ;
26680   return 0;
26681 }
26682 _ACEOF
26683 rm -f conftest.$ac_objext conftest$ac_exeext
26684 if { (ac_try="$ac_link"
26685 case "(($ac_try" in
26686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26687   *) ac_try_echo=$ac_try;;
26688 esac
26689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26690   (eval "$ac_link") 2>conftest.er1
26691   ac_status=$?
26692   grep -v '^ *+' conftest.er1 >conftest.err
26693   rm -f conftest.er1
26694   cat conftest.err >&5
26695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696   (exit $ac_status); } && {
26697          test -z "$ac_c_werror_flag" ||
26698          test ! -s conftest.err
26699        } && test -s conftest$ac_exeext &&
26700        $as_test_x conftest$ac_exeext; then
26701   ac_cv_lib_socket_socket=yes
26702 else
26703   echo "$as_me: failed program was:" >&5
26704 sed 's/^/| /' conftest.$ac_ext >&5
26705
26706         ac_cv_lib_socket_socket=no
26707 fi
26708
26709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26710       conftest$ac_exeext conftest.$ac_ext
26711 LIBS=$ac_check_lib_save_LIBS
26712 fi
26713 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26714 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26715 if test $ac_cv_lib_socket_socket = yes; then
26716   cat >>confdefs.h <<_ACEOF
26717 #define HAVE_LIBSOCKET 1
26718 _ACEOF
26719
26720   LIBS="-lsocket $LIBS"
26721
26722 fi
26723
26724
26725 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26726 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26727 if test "${ac_cv_lib_inet_socket+set}" = set; then
26728   echo $ECHO_N "(cached) $ECHO_C" >&6
26729 else
26730   ac_check_lib_save_LIBS=$LIBS
26731 LIBS="-linet  $LIBS"
26732 cat >conftest.$ac_ext <<_ACEOF
26733 /* confdefs.h.  */
26734 _ACEOF
26735 cat confdefs.h >>conftest.$ac_ext
26736 cat >>conftest.$ac_ext <<_ACEOF
26737 /* end confdefs.h.  */
26738
26739 /* Override any GCC internal prototype to avoid an error.
26740    Use char because int might match the return type of a GCC
26741    builtin and then its argument prototype would still apply.  */
26742 #ifdef __cplusplus
26743 extern "C"
26744 #endif
26745 char socket ();
26746 int
26747 main ()
26748 {
26749 return socket ();
26750   ;
26751   return 0;
26752 }
26753 _ACEOF
26754 rm -f conftest.$ac_objext conftest$ac_exeext
26755 if { (ac_try="$ac_link"
26756 case "(($ac_try" in
26757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26758   *) ac_try_echo=$ac_try;;
26759 esac
26760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26761   (eval "$ac_link") 2>conftest.er1
26762   ac_status=$?
26763   grep -v '^ *+' conftest.er1 >conftest.err
26764   rm -f conftest.er1
26765   cat conftest.err >&5
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); } && {
26768          test -z "$ac_c_werror_flag" ||
26769          test ! -s conftest.err
26770        } && test -s conftest$ac_exeext &&
26771        $as_test_x conftest$ac_exeext; then
26772   ac_cv_lib_inet_socket=yes
26773 else
26774   echo "$as_me: failed program was:" >&5
26775 sed 's/^/| /' conftest.$ac_ext >&5
26776
26777         ac_cv_lib_inet_socket=no
26778 fi
26779
26780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26781       conftest$ac_exeext conftest.$ac_ext
26782 LIBS=$ac_check_lib_save_LIBS
26783 fi
26784 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26785 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26786 if test $ac_cv_lib_inet_socket = yes; then
26787   cat >>confdefs.h <<_ACEOF
26788 #define HAVE_LIBINET 1
26789 _ACEOF
26790
26791   LIBS="-linet $LIBS"
26792
26793 fi
26794
26795 fi
26796
26797
26798 TCPW_MSG="no"
26799 WRAPLIBS=""
26800
26801 # Check whether --with-tcp-wrappers was given.
26802 if test "${with_tcp_wrappers+set}" = set; then
26803   withval=$with_tcp_wrappers;
26804        if test "x$withval" != "xno" ; then
26805           saved_LIBS="$LIBS"
26806           LIBS="$saved_LIBS -lwrap"
26807           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26808 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26809 if test "${ac_cv_search_nanosleep+set}" = set; then
26810   echo $ECHO_N "(cached) $ECHO_C" >&6
26811 else
26812   ac_func_search_save_LIBS=$LIBS
26813 cat >conftest.$ac_ext <<_ACEOF
26814 /* confdefs.h.  */
26815 _ACEOF
26816 cat confdefs.h >>conftest.$ac_ext
26817 cat >>conftest.$ac_ext <<_ACEOF
26818 /* end confdefs.h.  */
26819
26820 /* Override any GCC internal prototype to avoid an error.
26821    Use char because int might match the return type of a GCC
26822    builtin and then its argument prototype would still apply.  */
26823 #ifdef __cplusplus
26824 extern "C"
26825 #endif
26826 char nanosleep ();
26827 int
26828 main ()
26829 {
26830 return nanosleep ();
26831   ;
26832   return 0;
26833 }
26834 _ACEOF
26835 for ac_lib in '' rt; do
26836   if test -z "$ac_lib"; then
26837     ac_res="none required"
26838   else
26839     ac_res=-l$ac_lib
26840     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26841   fi
26842   rm -f conftest.$ac_objext conftest$ac_exeext
26843 if { (ac_try="$ac_link"
26844 case "(($ac_try" in
26845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26846   *) ac_try_echo=$ac_try;;
26847 esac
26848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26849   (eval "$ac_link") 2>conftest.er1
26850   ac_status=$?
26851   grep -v '^ *+' conftest.er1 >conftest.err
26852   rm -f conftest.er1
26853   cat conftest.err >&5
26854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855   (exit $ac_status); } && {
26856          test -z "$ac_c_werror_flag" ||
26857          test ! -s conftest.err
26858        } && test -s conftest$ac_exeext &&
26859        $as_test_x conftest$ac_exeext; then
26860   ac_cv_search_nanosleep=$ac_res
26861 else
26862   echo "$as_me: failed program was:" >&5
26863 sed 's/^/| /' conftest.$ac_ext >&5
26864
26865
26866 fi
26867
26868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26869       conftest$ac_exeext
26870   if test "${ac_cv_search_nanosleep+set}" = set; then
26871   break
26872 fi
26873 done
26874 if test "${ac_cv_search_nanosleep+set}" = set; then
26875   :
26876 else
26877   ac_cv_search_nanosleep=no
26878 fi
26879 rm conftest.$ac_ext
26880 LIBS=$ac_func_search_save_LIBS
26881 fi
26882 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26883 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26884 ac_res=$ac_cv_search_nanosleep
26885 if test "$ac_res" != no; then
26886   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26887
26888 fi
26889
26890           { echo "$as_me:$LINENO: checking for libwrap" >&5
26891 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26892           cat >conftest.$ac_ext <<_ACEOF
26893 /* confdefs.h.  */
26894 _ACEOF
26895 cat confdefs.h >>conftest.$ac_ext
26896 cat >>conftest.$ac_ext <<_ACEOF
26897 /* end confdefs.h.  */
26898
26899                #include <sys/types.h>
26900                #include <tcpd.h>
26901                int deny_severity = 0;
26902                int allow_severity = 0;
26903                struct request_info *req;
26904
26905 int
26906 main ()
26907 {
26908
26909                 hosts_access(req);
26910
26911   ;
26912   return 0;
26913 }
26914 _ACEOF
26915 rm -f conftest.$ac_objext conftest$ac_exeext
26916 if { (ac_try="$ac_link"
26917 case "(($ac_try" in
26918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919   *) ac_try_echo=$ac_try;;
26920 esac
26921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26922   (eval "$ac_link") 2>conftest.er1
26923   ac_status=$?
26924   grep -v '^ *+' conftest.er1 >conftest.err
26925   rm -f conftest.er1
26926   cat conftest.err >&5
26927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928   (exit $ac_status); } && {
26929          test -z "$ac_c_werror_flag" ||
26930          test ! -s conftest.err
26931        } && test -s conftest$ac_exeext &&
26932        $as_test_x conftest$ac_exeext; then
26933
26934                  { echo "$as_me:$LINENO: result: yes" >&5
26935 echo "${ECHO_T}yes" >&6; }
26936
26937 cat >>confdefs.h <<\_ACEOF
26938 #define HAVE_LIBWRAP 1
26939 _ACEOF
26940
26941                  TCPW_MSG="yes"
26942                  LIBS="$saved_LIBS"
26943                  WRAPLIBS="-lwrap"
26944
26945 else
26946   echo "$as_me: failed program was:" >&5
26947 sed 's/^/| /' conftest.$ac_ext >&5
26948
26949
26950                  LIBS="$saved_LIBS -lwrap -lnsl"
26951                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26952                  cat >conftest.$ac_ext <<_ACEOF
26953 /* confdefs.h.  */
26954 _ACEOF
26955 cat confdefs.h >>conftest.$ac_ext
26956 cat >>conftest.$ac_ext <<_ACEOF
26957 /* end confdefs.h.  */
26958
26959                        #include <sys/types.h>
26960                        #include <tcpd.h>
26961                        int deny_severity = 0;
26962                        int allow_severity = 0;
26963                        struct request_info *req;
26964
26965 int
26966 main ()
26967 {
26968
26969                        hosts_access(req);
26970
26971   ;
26972   return 0;
26973 }
26974 _ACEOF
26975 rm -f conftest.$ac_objext conftest$ac_exeext
26976 if { (ac_try="$ac_link"
26977 case "(($ac_try" in
26978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26979   *) ac_try_echo=$ac_try;;
26980 esac
26981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26982   (eval "$ac_link") 2>conftest.er1
26983   ac_status=$?
26984   grep -v '^ *+' conftest.er1 >conftest.err
26985   rm -f conftest.er1
26986   cat conftest.err >&5
26987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988   (exit $ac_status); } && {
26989          test -z "$ac_c_werror_flag" ||
26990          test ! -s conftest.err
26991        } && test -s conftest$ac_exeext &&
26992        $as_test_x conftest$ac_exeext; then
26993
26994                       { echo "$as_me:$LINENO: result: yes" >&5
26995 echo "${ECHO_T}yes" >&6; }
26996
26997 cat >>confdefs.h <<\_ACEOF
26998 #define HAVE_LIBWRAP 1
26999 _ACEOF
27000
27001                       TCPW_MSG="yes"
27002                       LIBS="$saved_LIBS"
27003                       WRAPLIBS="-lwrap"
27004
27005 else
27006   echo "$as_me: failed program was:" >&5
27007 sed 's/^/| /' conftest.$ac_ext >&5
27008
27009
27010                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27011 echo "$as_me: error: *** libwrap missing" >&2;}
27012    { (exit 1); exit 1; }; }
27013
27014
27015 fi
27016
27017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27018       conftest$ac_exeext conftest.$ac_ext
27019
27020
27021 fi
27022
27023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27024       conftest$ac_exeext conftest.$ac_ext
27025        fi
27026
27027
27028 fi
27029
27030
27031 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27032 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27033
27034 # Check whether --with-openssl was given.
27035 if test "${with_openssl+set}" = set; then
27036   withval=$with_openssl;
27037         with_openssl_directory=${withval}
27038
27039
27040 fi
27041
27042
27043 if test "x$with_openssl_directory" != "xno"; then
27044    OPENSSL_LIBS="-lssl -lcrypto"
27045    OPENSSL_INC=""
27046
27047    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27048       #
27049       # Make sure the $with_openssl_directory also makes sense
27050       #
27051       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27052          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27053          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27054       fi
27055    fi
27056
27057    saved_LIBS="${LIBS}"
27058    saved_CFLAGS="${CFLAGS}"
27059    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27060    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27061
27062    cat >conftest.$ac_ext <<_ACEOF
27063 /* confdefs.h.  */
27064 _ACEOF
27065 cat confdefs.h >>conftest.$ac_ext
27066 cat >>conftest.$ac_ext <<_ACEOF
27067 /* end confdefs.h.  */
27068
27069           #include <openssl/ssl.h>
27070
27071 int
27072 main ()
27073 {
27074
27075            CRYPTO_set_id_callback(NULL);
27076
27077   ;
27078   return 0;
27079 }
27080 _ACEOF
27081 rm -f conftest.$ac_objext conftest$ac_exeext
27082 if { (ac_try="$ac_link"
27083 case "(($ac_try" in
27084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085   *) ac_try_echo=$ac_try;;
27086 esac
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088   (eval "$ac_link") 2>conftest.er1
27089   ac_status=$?
27090   grep -v '^ *+' conftest.er1 >conftest.err
27091   rm -f conftest.er1
27092   cat conftest.err >&5
27093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094   (exit $ac_status); } && {
27095          test -z "$ac_c_werror_flag" ||
27096          test ! -s conftest.err
27097        } && test -s conftest$ac_exeext &&
27098        $as_test_x conftest$ac_exeext; then
27099
27100           support_tls="yes"
27101           support_crypto="yes"
27102
27103 else
27104   echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27106
27107
27108           support_tls="no"
27109
27110
27111 fi
27112
27113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27114       conftest$ac_exeext conftest.$ac_ext
27115
27116    cat >conftest.$ac_ext <<_ACEOF
27117 /* confdefs.h.  */
27118 _ACEOF
27119 cat confdefs.h >>conftest.$ac_ext
27120 cat >>conftest.$ac_ext <<_ACEOF
27121 /* end confdefs.h.  */
27122
27123           #include <openssl/evp.h>
27124
27125 int
27126 main ()
27127 {
27128
27129           EVP_sha512();
27130
27131   ;
27132   return 0;
27133 }
27134 _ACEOF
27135 rm -f conftest.$ac_objext conftest$ac_exeext
27136 if { (ac_try="$ac_link"
27137 case "(($ac_try" in
27138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27139   *) ac_try_echo=$ac_try;;
27140 esac
27141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27142   (eval "$ac_link") 2>conftest.er1
27143   ac_status=$?
27144   grep -v '^ *+' conftest.er1 >conftest.err
27145   rm -f conftest.er1
27146   cat conftest.err >&5
27147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148   (exit $ac_status); } && {
27149          test -z "$ac_c_werror_flag" ||
27150          test ! -s conftest.err
27151        } && test -s conftest$ac_exeext &&
27152        $as_test_x conftest$ac_exeext; then
27153
27154           ac_cv_openssl_sha2="yes"
27155
27156 else
27157   echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27159
27160
27161           ac_cv_openssl_sha2="no"
27162
27163
27164 fi
27165
27166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27167       conftest$ac_exeext conftest.$ac_ext
27168
27169                cat >conftest.$ac_ext <<_ACEOF
27170 /* confdefs.h.  */
27171 _ACEOF
27172 cat confdefs.h >>conftest.$ac_ext
27173 cat >>conftest.$ac_ext <<_ACEOF
27174 /* end confdefs.h.  */
27175
27176           #include <openssl/evp.h>
27177
27178 int
27179 main ()
27180 {
27181
27182           EVP_aes_192_cbc();
27183
27184   ;
27185   return 0;
27186 }
27187 _ACEOF
27188 rm -f conftest.$ac_objext conftest$ac_exeext
27189 if { (ac_try="$ac_link"
27190 case "(($ac_try" in
27191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192   *) ac_try_echo=$ac_try;;
27193 esac
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195   (eval "$ac_link") 2>conftest.er1
27196   ac_status=$?
27197   grep -v '^ *+' conftest.er1 >conftest.err
27198   rm -f conftest.er1
27199   cat conftest.err >&5
27200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201   (exit $ac_status); } && {
27202          test -z "$ac_c_werror_flag" ||
27203          test ! -s conftest.err
27204        } && test -s conftest$ac_exeext &&
27205        $as_test_x conftest$ac_exeext; then
27206
27207           ac_cv_openssl_export="no"
27208
27209 else
27210   echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27212
27213
27214           ac_cv_openssl_export="yes"
27215
27216
27217 fi
27218
27219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27220       conftest$ac_exeext conftest.$ac_ext
27221
27222    LIBS="${saved_LIBS}"
27223    CFLAGS="${saved_CFLAGS}"
27224
27225    if test "$support_tls" = "yes"; then
27226
27227 cat >>confdefs.h <<\_ACEOF
27228 #define HAVE_OPENSSL 1
27229 _ACEOF
27230
27231
27232 cat >>confdefs.h <<\_ACEOF
27233 #define HAVE_TLS 1
27234 _ACEOF
27235
27236
27237 cat >>confdefs.h <<\_ACEOF
27238 #define HAVE_CRYPTO 1
27239 _ACEOF
27240
27241    fi
27242
27243    if test "$ac_cv_openssl_sha2" = "yes"; then
27244
27245 cat >>confdefs.h <<\_ACEOF
27246 #define HAVE_SHA2 1
27247 _ACEOF
27248
27249    fi
27250
27251    if test "$ac_cv_openssl_export" = "yes"; then
27252
27253 cat >>confdefs.h <<\_ACEOF
27254 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27255 _ACEOF
27256
27257    fi
27258 else
27259    support_tls="no"
27260    support_crypto="no"
27261    OPENSSL_LIBS=""
27262    OPENSSL_INC=""
27263 fi
27264
27265 if test "$support_tls" = "no"; then
27266    OPENSSL_LIBS=""
27267    OPENSSL_INC=""
27268 fi
27269
27270 { echo "$as_me:$LINENO: result: $support_tls" >&5
27271 echo "${ECHO_T}$support_tls" >&6; }
27272
27273
27274
27275 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27276 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27277 if test "${ac_cv_search_dlopen+set}" = set; then
27278   echo $ECHO_N "(cached) $ECHO_C" >&6
27279 else
27280   ac_func_search_save_LIBS=$LIBS
27281 cat >conftest.$ac_ext <<_ACEOF
27282 /* confdefs.h.  */
27283 _ACEOF
27284 cat confdefs.h >>conftest.$ac_ext
27285 cat >>conftest.$ac_ext <<_ACEOF
27286 /* end confdefs.h.  */
27287
27288 /* Override any GCC internal prototype to avoid an error.
27289    Use char because int might match the return type of a GCC
27290    builtin and then its argument prototype would still apply.  */
27291 #ifdef __cplusplus
27292 extern "C"
27293 #endif
27294 char dlopen ();
27295 int
27296 main ()
27297 {
27298 return dlopen ();
27299   ;
27300   return 0;
27301 }
27302 _ACEOF
27303 for ac_lib in '' dl; do
27304   if test -z "$ac_lib"; then
27305     ac_res="none required"
27306   else
27307     ac_res=-l$ac_lib
27308     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27309   fi
27310   rm -f conftest.$ac_objext conftest$ac_exeext
27311 if { (ac_try="$ac_link"
27312 case "(($ac_try" in
27313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314   *) ac_try_echo=$ac_try;;
27315 esac
27316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27317   (eval "$ac_link") 2>conftest.er1
27318   ac_status=$?
27319   grep -v '^ *+' conftest.er1 >conftest.err
27320   rm -f conftest.er1
27321   cat conftest.err >&5
27322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323   (exit $ac_status); } && {
27324          test -z "$ac_c_werror_flag" ||
27325          test ! -s conftest.err
27326        } && test -s conftest$ac_exeext &&
27327        $as_test_x conftest$ac_exeext; then
27328   ac_cv_search_dlopen=$ac_res
27329 else
27330   echo "$as_me: failed program was:" >&5
27331 sed 's/^/| /' conftest.$ac_ext >&5
27332
27333
27334 fi
27335
27336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27337       conftest$ac_exeext
27338   if test "${ac_cv_search_dlopen+set}" = set; then
27339   break
27340 fi
27341 done
27342 if test "${ac_cv_search_dlopen+set}" = set; then
27343   :
27344 else
27345   ac_cv_search_dlopen=no
27346 fi
27347 rm conftest.$ac_ext
27348 LIBS=$ac_func_search_save_LIBS
27349 fi
27350 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27351 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27352 ac_res=$ac_cv_search_dlopen
27353 if test "$ac_res" != no; then
27354   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27355
27356 fi
27357
27358
27359 working_dir=`eval echo ${prefix}/var/bacula/working`
27360
27361 # Check whether --with-working-dir was given.
27362 if test "${with_working_dir+set}" = set; then
27363   withval=$with_working_dir;
27364        if test "x$withval" != "xno" ; then
27365          working_dir=$withval
27366        fi
27367
27368
27369 fi
27370
27371
27372
27373
27374 archivedir=/tmp
27375
27376 # Check whether --with-archivedir was given.
27377 if test "${with_archivedir+set}" = set; then
27378   withval=$with_archivedir;
27379        if test "x$withval" != "xno" ; then
27380           archivedir=$withval
27381        fi
27382
27383
27384 fi
27385
27386
27387
27388
27389 basename=`hostname`
27390
27391 # Check whether --with-basename was given.
27392 if test "${with_basename+set}" = set; then
27393   withval=$with_basename;
27394        if test "x$withval" != "xno" ; then
27395           basename=$withval
27396        fi
27397
27398
27399 fi
27400
27401
27402
27403
27404 hostname=`uname -n | cut -d '.' -f 1`
27405 if test x${hostname} = x ; then
27406   hostname="localhost"
27407 fi
27408
27409 # Check whether --with-hostname was given.
27410 if test "${with_hostname+set}" = set; then
27411   withval=$with_hostname;
27412        if test "x$withval" != "xno" ; then
27413          hostname=$withval
27414        fi
27415
27416
27417 fi
27418
27419
27420
27421
27422
27423 scriptdir=`eval echo ${sysconfdir}`
27424
27425 # Check whether --with-scriptdir was given.
27426 if test "${with_scriptdir+set}" = set; then
27427   withval=$with_scriptdir;
27428        if test "x$withval" != "xno" ; then
27429           scriptdir=$withval
27430        fi
27431
27432
27433 fi
27434
27435
27436
27437
27438
27439 bsrdir=/tmp
27440
27441 # Check whether --with-bsrdir was given.
27442 if test "${with_bsrdir+set}" = set; then
27443   withval=$with_bsrdir;
27444        if test "x$withval" != "xno" ; then
27445           bsrdir=$withval
27446        fi
27447
27448
27449 fi
27450
27451
27452
27453
27454 logdir=/tmp
27455
27456 # Check whether --with-logdir was given.
27457 if test "${with_logdir+set}" = set; then
27458   withval=$with_logdir;
27459        if test "x$withval" != "xno" ; then
27460           logdir=$withval
27461        fi
27462
27463
27464 fi
27465
27466
27467
27468
27469
27470 # ------------------------------------------
27471 # Where to place plugindir (plugin files)
27472 # ------------------------------------------
27473 plugindir=`eval echo ${libdir}`
27474
27475 # Check whether --with-plugindir was given.
27476 if test "${with_plugindir+set}" = set; then
27477   withval=$with_plugindir;
27478        if test "x$withval" != "xno" ; then
27479           plugindir=$withval
27480        fi
27481
27482
27483 fi
27484
27485
27486
27487
27488 dump_email=root@localhost
27489
27490 # Check whether --with-dump-email was given.
27491 if test "${with_dump_email+set}" = set; then
27492   withval=$with_dump_email;
27493        if test "x$withval" != "xno" ; then
27494           dump_email=$withval
27495        fi
27496
27497
27498 fi
27499
27500
27501
27502
27503 job_email=root@localhost
27504
27505 # Check whether --with-job-email was given.
27506 if test "${with_job_email+set}" = set; then
27507   withval=$with_job_email;
27508        if test "x$withval" != "xno" ; then
27509           job_email=$withval
27510        fi
27511
27512
27513 fi
27514
27515
27516
27517
27518 smtp_host=localhost
27519
27520 # Check whether --with-smtp_host was given.
27521 if test "${with_smtp_host+set}" = set; then
27522   withval=$with_smtp_host;
27523        if test "x$withval" != "xno" ; then
27524           smtp_host=$withval
27525        fi
27526
27527
27528 fi
27529
27530
27531
27532
27533 piddir=/var/run
27534
27535 # Check whether --with-pid-dir was given.
27536 if test "${with_pid_dir+set}" = set; then
27537   withval=$with_pid_dir;
27538        if test "x$withval" != "xno" ; then
27539           piddir=$withval
27540        fi
27541
27542
27543 fi
27544
27545
27546 cat >>confdefs.h <<_ACEOF
27547 #define _PATH_BACULA_PIDDIR "$piddir"
27548 _ACEOF
27549
27550
27551
27552 subsysdir=/var/run/subsys
27553 if test -d /var/run/subsys; then
27554    subsysdir=/var/run/subsys
27555 elif test -d /var/lock/subsys; then
27556    subsysdir=/var/lock/subsys
27557 else
27558    subsysdir=/var/run/subsys
27559 fi
27560
27561 # Check whether --with-subsys-dir was given.
27562 if test "${with_subsys_dir+set}" = set; then
27563   withval=$with_subsys_dir;
27564        if test "x$withval" != "xno" ; then
27565           subsysdir=$withval
27566        fi
27567
27568
27569 fi
27570
27571
27572
27573
27574 baseport=9101
27575
27576 # Check whether --with-baseport was given.
27577 if test "${with_baseport+set}" = set; then
27578   withval=$with_baseport;
27579        if test "x$withval" != "xno" ; then
27580           baseport=$withval
27581        fi
27582
27583
27584 fi
27585
27586
27587
27588 dir_port=`expr $baseport`
27589 fd_port=`expr $baseport + 1`
27590 sd_port=`expr $fd_port + 1`
27591
27592
27593
27594
27595
27596 dir_password=
27597
27598 # Check whether --with-dir-password was given.
27599 if test "${with_dir_password+set}" = set; then
27600   withval=$with_dir_password;
27601        if test "x$withval" != "xno" ; then
27602           dir_password=$withval
27603        fi
27604
27605
27606 fi
27607
27608
27609 if test "x$dir_password" = "x" ; then
27610    if test "x$OPENSSL" = "xnone" ; then
27611       key=`autoconf/randpass 33`
27612    else
27613       key=`openssl rand -base64 33`
27614    fi
27615    dir_password=$key
27616 fi
27617
27618 fd_password=
27619
27620 # Check whether --with-fd-password was given.
27621 if test "${with_fd_password+set}" = set; then
27622   withval=$with_fd_password;
27623        if test "x$withval" != "xno" ; then
27624           fd_password=$withval
27625        fi
27626
27627
27628 fi
27629
27630
27631 if test "x$fd_password" = "x" ; then
27632    if test "x$OPENSSL" = "xnone" ; then
27633       key=`autoconf/randpass 37`
27634    else
27635       key=`openssl rand -base64 33`
27636    fi
27637    fd_password=$key
27638 fi
27639
27640 sd_password=
27641
27642 # Check whether --with-sd-password was given.
27643 if test "${with_sd_password+set}" = set; then
27644   withval=$with_sd_password;
27645        if test "x$withval" != "xno" ; then
27646           sd_password=$withval
27647        fi
27648
27649
27650 fi
27651
27652
27653 if test "x$sd_password" = "x" ; then
27654    if test "x$OPENSSL" = "xnone" ; then
27655       key=`autoconf/randpass 41`
27656    else
27657       key=`openssl rand -base64 33`
27658    fi
27659    sd_password=$key
27660 fi
27661
27662 mon_dir_password=
27663
27664 # Check whether --with-mon-dir-password was given.
27665 if test "${with_mon_dir_password+set}" = set; then
27666   withval=$with_mon_dir_password;
27667        if test "x$withval" != "xno" ; then
27668           mon_dir_password=$withval
27669        fi
27670
27671
27672 fi
27673
27674
27675 if test "x$mon_dir_password" = "x" ; then
27676    if test "x$OPENSSL" = "xnone" ; then
27677       key=`autoconf/randpass 33`
27678    else
27679       key=`openssl rand -base64 33`
27680    fi
27681    mon_dir_password=$key
27682 fi
27683
27684 mon_fd_password=
27685
27686 # Check whether --with-mon-fd-password was given.
27687 if test "${with_mon_fd_password+set}" = set; then
27688   withval=$with_mon_fd_password;
27689        if test "x$withval" != "xno" ; then
27690           mon_fd_password=$withval
27691        fi
27692
27693
27694 fi
27695
27696
27697 if test "x$mon_fd_password" = "x" ; then
27698    if test "x$OPENSSL" = "xnone" ; then
27699       key=`autoconf/randpass 37`
27700    else
27701       key=`openssl rand -base64 33`
27702    fi
27703    mon_fd_password=$key
27704 fi
27705
27706 mon_sd_password=
27707
27708 # Check whether --with-mon-sd-password was given.
27709 if test "${with_mon_sd_password+set}" = set; then
27710   withval=$with_mon_sd_password;
27711        if test "x$withval" != "xno" ; then
27712           mon_sd_password=$withval
27713        fi
27714
27715
27716 fi
27717
27718
27719 if test "x$mon_sd_password" = "x" ; then
27720    if test "x$OPENSSL" = "xnone" ; then
27721       key=`autoconf/randpass 41`
27722    else
27723       key=`openssl rand -base64 33`
27724    fi
27725    mon_sd_password=$key
27726 fi
27727
27728
27729
27730
27731
27732
27733
27734
27735 db_name=bacula
27736
27737 # Check whether --with-db_name was given.
27738 if test "${with_db_name+set}" = set; then
27739   withval=$with_db_name;
27740        if test "x$withval" != "x" ; then
27741           db_name=$withval
27742        fi
27743
27744
27745 fi
27746
27747
27748
27749 db_user=bacula
27750
27751 # Check whether --with-db_user was given.
27752 if test "${with_db_user+set}" = set; then
27753   withval=$with_db_user;
27754        if test "x$withval" != "x" ; then
27755           db_user=$withval
27756        fi
27757
27758
27759 fi
27760
27761
27762
27763 db_password=
27764
27765 # Check whether --with-db_password was given.
27766 if test "${with_db_password+set}" = set; then
27767   withval=$with_db_password;
27768        if test "x$withval" != "x" ; then
27769           db_password=$withval
27770        fi
27771
27772
27773 fi
27774
27775
27776
27777 db_port=" "
27778
27779 # Check whether --with-db_port was given.
27780 if test "${with_db_port+set}" = set; then
27781   withval=$with_db_port;
27782        if test "x$withval" != "x" ; then
27783           db_port=$withval
27784        fi
27785
27786
27787 fi
27788
27789
27790
27791 #
27792 # Handle users and groups for each daemon
27793 #
27794 dir_user=
27795
27796 # Check whether --with-dir_user was given.
27797 if test "${with_dir_user+set}" = set; then
27798   withval=$with_dir_user;
27799        if test "x$withval" != "x" ; then
27800            dir_user=$withval
27801        fi
27802
27803
27804 fi
27805
27806
27807 dir_group=
27808
27809 # Check whether --with-dir_group was given.
27810 if test "${with_dir_group+set}" = set; then
27811   withval=$with_dir_group;
27812        if test "x$withval" != "x" ; then
27813           dir_group=$withval
27814        fi
27815
27816
27817 fi
27818
27819
27820 sd_user=
27821
27822 # Check whether --with-sd_user was given.
27823 if test "${with_sd_user+set}" = set; then
27824   withval=$with_sd_user;
27825        if test "x$withval" != "x" ; then
27826           sd_user=$withval
27827        fi
27828
27829
27830 fi
27831
27832
27833 sd_group=
27834
27835 # Check whether --with-sd_group was given.
27836 if test "${with_sd_group+set}" = set; then
27837   withval=$with_sd_group;
27838        if test "x$withval" != "x" ; then
27839           sd_group=$withval
27840        fi
27841
27842
27843 fi
27844
27845
27846 fd_user=
27847
27848 # Check whether --with-fd_user was given.
27849 if test "${with_fd_user+set}" = set; then
27850   withval=$with_fd_user;
27851        if test "x$withval" != "x" ; then
27852           fd_user=$withval
27853        fi
27854
27855
27856 fi
27857
27858
27859 fd_group=
27860
27861 # Check whether --with-fd_group was given.
27862 if test "${with_fd_group+set}" = set; then
27863   withval=$with_fd_group;
27864        if test "x$withval" != "x" ; then
27865           fd_group=$withval
27866        fi
27867
27868
27869 fi
27870
27871
27872
27873
27874
27875
27876
27877
27878
27879 SBINPERM=0754
27880
27881 # Check whether --with-sbin-perm was given.
27882 if test "${with_sbin_perm+set}" = set; then
27883   withval=$with_sbin_perm;
27884        if test "x$withval" != "x" ; then
27885           SBINPERM=$withval
27886        fi
27887
27888
27889 fi
27890
27891
27892
27893
27894 SQL_LIB=
27895
27896 db_found=no
27897 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27898 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27899
27900 # Check whether --with-postgresql was given.
27901 if test "${with_postgresql+set}" = set; then
27902   withval=$with_postgresql;
27903   if test "$withval" != "no"; then
27904       if test "$db_found" = "yes"; then
27905           { echo "$as_me:$LINENO: result: error" >&5
27906 echo "${ECHO_T}error" >&6; }
27907           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27908 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27909    { (exit 1); exit 1; }; };
27910       fi
27911       if test "$withval" = "yes"; then
27912           PG_CONFIG=`which pg_config`
27913           if test -n "$PG_CONFIG";then
27914               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27915               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27916               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27917           elif test -f /usr/local/include/libpq-fe.h; then
27918               POSTGRESQL_INCDIR=/usr/local/include
27919               if test -d /usr/local/lib64; then
27920                  POSTGRESQL_LIBDIR=/usr/local/lib64
27921               else
27922                  POSTGRESQL_LIBDIR=/usr/local/lib
27923               fi
27924               POSTGRESQL_BINDIR=/usr/local/bin
27925           elif test -f /usr/include/libpq-fe.h; then
27926               POSTGRESQL_INCDIR=/usr/include
27927               if test -d /usr/lib64; then
27928                  POSTGRESQL_LIBDIR=/usr/lib64
27929               else
27930                  POSTGRESQL_LIBDIR=/usr/lib
27931               fi
27932               POSTGRESQL_BINDIR=/usr/bin
27933           elif test -f /usr/include/pgsql/libpq-fe.h; then
27934               POSTGRESQL_INCDIR=/usr/include/pgsql
27935               if test -d /usr/lib64/pgsql; then
27936                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27937               else
27938                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27939               fi
27940               POSTGRESQL_BINDIR=/usr/bin
27941           elif test -f /usr/include/postgresql/libpq-fe.h; then
27942               POSTGRESQL_INCDIR=/usr/include/postgresql
27943               if test -d /usr/lib64/postgresql; then
27944                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27945               else
27946                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27947               fi
27948               POSTGRESQL_BINDIR=/usr/bin
27949           else
27950               { echo "$as_me:$LINENO: result: no" >&5
27951 echo "${ECHO_T}no" >&6; }
27952               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27953 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27954    { (exit 1); exit 1; }; }
27955           fi
27956       elif test -f $withval/include/libpq-fe.h; then
27957           POSTGRESQL_INCDIR=$withval/include
27958           POSTGRESQL_LIBDIR=$withval/lib
27959           POSTGRESQL_BINDIR=$withval/bin
27960       elif test -f $withval/include/postgresql/libpq-fe.h; then
27961           POSTGRESQL_INCDIR=$withval/include/postgresql
27962      if test -d $withval/lib64; then
27963          POSTGRESQL_LIBDIR=$withval/lib64
27964      else
27965          POSTGRESQL_LIBDIR=$withval/lib
27966      fi
27967           POSTGRESQL_BINDIR=$withval/bin
27968       else
27969           { echo "$as_me:$LINENO: result: no" >&5
27970 echo "${ECHO_T}no" >&6; }
27971           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27972 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27973    { (exit 1); exit 1; }; }
27974       fi
27975       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27976       { echo "$as_me:$LINENO: checking for crypt" >&5
27977 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27978 if test "${ac_cv_func_crypt+set}" = set; then
27979   echo $ECHO_N "(cached) $ECHO_C" >&6
27980 else
27981   cat >conftest.$ac_ext <<_ACEOF
27982 /* confdefs.h.  */
27983 _ACEOF
27984 cat confdefs.h >>conftest.$ac_ext
27985 cat >>conftest.$ac_ext <<_ACEOF
27986 /* end confdefs.h.  */
27987 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27989 #define crypt innocuous_crypt
27990
27991 /* System header to define __stub macros and hopefully few prototypes,
27992     which can conflict with char crypt (); below.
27993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27994     <limits.h> exists even on freestanding compilers.  */
27995
27996 #ifdef __STDC__
27997 # include <limits.h>
27998 #else
27999 # include <assert.h>
28000 #endif
28001
28002 #undef crypt
28003
28004 /* Override any GCC internal prototype to avoid an error.
28005    Use char because int might match the return type of a GCC
28006    builtin and then its argument prototype would still apply.  */
28007 #ifdef __cplusplus
28008 extern "C"
28009 #endif
28010 char crypt ();
28011 /* The GNU C library defines this for functions which it implements
28012     to always fail with ENOSYS.  Some functions are actually named
28013     something starting with __ and the normal name is an alias.  */
28014 #if defined __stub_crypt || defined __stub___crypt
28015 choke me
28016 #endif
28017
28018 int
28019 main ()
28020 {
28021 return crypt ();
28022   ;
28023   return 0;
28024 }
28025 _ACEOF
28026 rm -f conftest.$ac_objext conftest$ac_exeext
28027 if { (ac_try="$ac_link"
28028 case "(($ac_try" in
28029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030   *) ac_try_echo=$ac_try;;
28031 esac
28032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033   (eval "$ac_link") 2>conftest.er1
28034   ac_status=$?
28035   grep -v '^ *+' conftest.er1 >conftest.err
28036   rm -f conftest.er1
28037   cat conftest.err >&5
28038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039   (exit $ac_status); } && {
28040          test -z "$ac_c_werror_flag" ||
28041          test ! -s conftest.err
28042        } && test -s conftest$ac_exeext &&
28043        $as_test_x conftest$ac_exeext; then
28044   ac_cv_func_crypt=yes
28045 else
28046   echo "$as_me: failed program was:" >&5
28047 sed 's/^/| /' conftest.$ac_ext >&5
28048
28049         ac_cv_func_crypt=no
28050 fi
28051
28052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28053       conftest$ac_exeext conftest.$ac_ext
28054 fi
28055 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28056 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28057 if test $ac_cv_func_crypt = yes; then
28058   :
28059 else
28060   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28061 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28062 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28063   echo $ECHO_N "(cached) $ECHO_C" >&6
28064 else
28065   ac_check_lib_save_LIBS=$LIBS
28066 LIBS="-lcrypt  $LIBS"
28067 cat >conftest.$ac_ext <<_ACEOF
28068 /* confdefs.h.  */
28069 _ACEOF
28070 cat confdefs.h >>conftest.$ac_ext
28071 cat >>conftest.$ac_ext <<_ACEOF
28072 /* end confdefs.h.  */
28073
28074 /* Override any GCC internal prototype to avoid an error.
28075    Use char because int might match the return type of a GCC
28076    builtin and then its argument prototype would still apply.  */
28077 #ifdef __cplusplus
28078 extern "C"
28079 #endif
28080 char crypt ();
28081 int
28082 main ()
28083 {
28084 return crypt ();
28085   ;
28086   return 0;
28087 }
28088 _ACEOF
28089 rm -f conftest.$ac_objext conftest$ac_exeext
28090 if { (ac_try="$ac_link"
28091 case "(($ac_try" in
28092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28093   *) ac_try_echo=$ac_try;;
28094 esac
28095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28096   (eval "$ac_link") 2>conftest.er1
28097   ac_status=$?
28098   grep -v '^ *+' conftest.er1 >conftest.err
28099   rm -f conftest.er1
28100   cat conftest.err >&5
28101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102   (exit $ac_status); } && {
28103          test -z "$ac_c_werror_flag" ||
28104          test ! -s conftest.err
28105        } && test -s conftest$ac_exeext &&
28106        $as_test_x conftest$ac_exeext; then
28107   ac_cv_lib_crypt_crypt=yes
28108 else
28109   echo "$as_me: failed program was:" >&5
28110 sed 's/^/| /' conftest.$ac_ext >&5
28111
28112         ac_cv_lib_crypt_crypt=no
28113 fi
28114
28115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28116       conftest$ac_exeext conftest.$ac_ext
28117 LIBS=$ac_check_lib_save_LIBS
28118 fi
28119 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28120 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28121 if test $ac_cv_lib_crypt_crypt = yes; then
28122   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28123 fi
28124
28125 fi
28126
28127       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28128       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28129       SQL_BINDIR=$POSTGRESQL_BINDIR
28130       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28131
28132       cat >>confdefs.h <<\_ACEOF
28133 #define HAVE_POSTGRESQL 1
28134 _ACEOF
28135
28136       { echo "$as_me:$LINENO: result: yes" >&5
28137 echo "${ECHO_T}yes" >&6; }
28138       db_found=yes
28139       support_postgresql=yes
28140       db_type=PostgreSQL
28141       DB_TYPE=postgresql
28142   else
28143       { echo "$as_me:$LINENO: result: no" >&5
28144 echo "${ECHO_T}no" >&6; }
28145   fi
28146
28147 else
28148
28149   { echo "$as_me:$LINENO: result: no" >&5
28150 echo "${ECHO_T}no" >&6; }
28151
28152 fi
28153
28154
28155
28156
28157
28158
28159
28160
28161 db_found=no
28162 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28163 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28164
28165 # Check whether --with-mysql was given.
28166 if test "${with_mysql+set}" = set; then
28167   withval=$with_mysql;
28168   if test "$withval" != "no"; then
28169         if test "$withval" = "yes"; then
28170            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28171                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28172                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28173                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28174                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28175                    else
28176                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28177                    fi
28178                    MYSQL_BINDIR=/usr/local/mysql/bin
28179            elif test -f /usr/include/mysql/mysql.h; then
28180                    MYSQL_INCDIR=/usr/include/mysql
28181                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28182                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28183                            MYSQL_LIBDIR=/usr/lib64/mysql
28184                    elif test -f /usr/lib64/libmysqlclient_r.a \
28185                         -o -f /usr/lib64/libmysqlclient_r.so; then
28186                            MYSQL_LIBDIR=/usr/lib64
28187                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28188                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28189                            MYSQL_LIBDIR=/usr/lib/mysql
28190                    else
28191                            MYSQL_LIBDIR=/usr/lib
28192                    fi
28193                    MYSQL_BINDIR=/usr/bin
28194            elif test -f /usr/include/mysql.h; then
28195                    MYSQL_INCDIR=/usr/include
28196                    if test -f /usr/lib64/libmysqlclient_r.a \
28197                         -o -f /usr/lib64/libmysqlclient_r.so; then
28198                            MYSQL_LIBDIR=/usr/lib64
28199                    else
28200                            MYSQL_LIBDIR=/usr/lib
28201                    fi
28202                    MYSQL_BINDIR=/usr/bin
28203            elif test -f /usr/local/include/mysql/mysql.h; then
28204                    MYSQL_INCDIR=/usr/local/include/mysql
28205                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28206                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28207                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28208                    else
28209                            MYSQL_LIBDIR=/usr/local/lib/mysql
28210                    fi
28211                    MYSQL_BINDIR=/usr/local/bin
28212            elif test -f /usr/local/include/mysql.h; then
28213                    MYSQL_INCDIR=/usr/local/include
28214                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28215                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28216                            MYSQL_LIBDIR=/usr/local/lib64
28217                    else
28218                            MYSQL_LIBDIR=/usr/local/lib
28219                    fi
28220                    MYSQL_BINDIR=/usr/local/bin
28221            else
28222               { echo "$as_me:$LINENO: result: no" >&5
28223 echo "${ECHO_T}no" >&6; }
28224               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28225 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28226    { (exit 1); exit 1; }; }
28227            fi
28228         else
28229            if test -f $withval/include/mysql/mysql.h; then
28230               MYSQL_INCDIR=$withval/include/mysql
28231               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28232                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28233                  MYSQL_LIBDIR=$withval/lib64/mysql
28234               elif test -f $withval/lib64/libmysqlclient_r.a \
28235                    -o -f $withval/lib64/libmysqlclient_r.so; then
28236                  MYSQL_LIBDIR=$withval/lib64
28237               elif test -f $withval/lib/libmysqlclient_r.a \
28238                    -o -f $withval/lib/libmysqlclient_r.so; then
28239                  MYSQL_LIBDIR=$withval/lib
28240               else
28241                  MYSQL_LIBDIR=$withval/lib/mysql
28242               fi
28243               MYSQL_BINDIR=$withval/bin
28244            elif test -f $withval/include/mysql.h; then
28245               MYSQL_INCDIR=$withval/include
28246               if test -f $withval/lib64/libmysqlclient_r.a \
28247                    -o -f $withval/lib64/libmysqlclient_r.so; then
28248                  MYSQL_LIBDIR=$withval/lib64
28249               else
28250                  MYSQL_LIBDIR=$withval/lib
28251               fi
28252               MYSQL_BINDIR=$withval/bin
28253            else
28254               { echo "$as_me:$LINENO: result: no" >&5
28255 echo "${ECHO_T}no" >&6; }
28256               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28257 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28258    { (exit 1); exit 1; }; }
28259            fi
28260         fi
28261     SQL_INCLUDE=-I$MYSQL_INCDIR
28262     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28263          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28264        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28265        cat >>confdefs.h <<\_ACEOF
28266 #define HAVE_THREAD_SAFE_MYSQL 1
28267 _ACEOF
28268
28269     fi
28270     SQL_BINDIR=$MYSQL_BINDIR
28271     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28272
28273     cat >>confdefs.h <<\_ACEOF
28274 #define HAVE_MYSQL 1
28275 _ACEOF
28276
28277     { echo "$as_me:$LINENO: result: yes" >&5
28278 echo "${ECHO_T}yes" >&6; }
28279     db_found=yes
28280     support_mysql=yes
28281     db_type=MySQL
28282     DB_TYPE=mysql
28283
28284   else
28285         { echo "$as_me:$LINENO: result: no" >&5
28286 echo "${ECHO_T}no" >&6; }
28287   fi
28288
28289
28290 fi
28291
28292
28293
28294 # Check whether --with-embedded-mysql was given.
28295 if test "${with_embedded_mysql+set}" = set; then
28296   withval=$with_embedded_mysql;
28297   if test "$withval" != "no"; then
28298         if test "$withval" = "yes"; then
28299                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28300                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28301                         if test -d /usr/local/mysql/lib64/mysql; then
28302                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28303                         else
28304                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28305                         fi
28306                         MYSQL_BINDIR=/usr/local/mysql/bin
28307                 elif test -f /usr/include/mysql/mysql.h; then
28308                         MYSQL_INCDIR=/usr/include/mysql
28309                         if test -d /usr/lib64/mysql; then
28310                                 MYSQL_LIBDIR=/usr/lib64/mysql
28311                         else
28312                                 MYSQL_LIBDIR=/usr/lib/mysql
28313                         fi
28314                         MYSQL_BINDIR=/usr/bin
28315                 elif test -f /usr/include/mysql.h; then
28316                         MYSQL_INCDIR=/usr/include
28317                         if test -d /usr/lib64; then
28318                                 MYSQL_LIBDIR=/usr/lib64
28319                         else
28320                                 MYSQL_LIBDIR=/usr/lib
28321                         fi
28322                         MYSQL_BINDIR=/usr/bin
28323                 elif test -f /usr/local/include/mysql/mysql.h; then
28324                         MYSQL_INCDIR=/usr/local/include/mysql
28325                         if test -d /usr/local/lib64/mysql; then
28326                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28327                         else
28328                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28329                         fi
28330                         MYSQL_BINDIR=/usr/local/bin
28331                 elif test -f /usr/local/include/mysql.h; then
28332                         MYSQL_INCDIR=/usr/local/include
28333                         if test -d /usr/local/lib64; then
28334                                 MYSQL_LIBDIR=/usr/local/lib64
28335                         else
28336                                 MYSQL_LIBDIR=/usr/local/lib
28337                         fi
28338                         MYSQL_BINDIR=/usr/local/bin
28339                 else
28340                    { echo "$as_me:$LINENO: result: no" >&5
28341 echo "${ECHO_T}no" >&6; }
28342                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28343 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28344    { (exit 1); exit 1; }; }
28345                 fi
28346         else
28347                 if test -f $withval/include/mysql/mysql.h; then
28348                         MYSQL_INCDIR=$withval/include/mysql
28349                         if test -d $withval/lib64/mysql; then
28350                                 MYSQL_LIBDIR=$withval/lib64/mysql
28351                         else
28352                                 MYSQL_LIBDIR=$withval/lib/mysql
28353                         fi
28354                         MYSQL_BINDIR=$withval/bin
28355                 elif test -f $withval/include/mysql.h; then
28356                         MYSQL_INCDIR=$withval/include
28357                         if test -d $withval/lib64; then
28358                                 MYSQL_LIBDIR=$withval/lib64
28359                         else
28360                                 MYSQL_LIBDIR=$withval/lib
28361                         fi
28362                         MYSQL_BINDIR=$withval/bin
28363                 else
28364                    { echo "$as_me:$LINENO: result: no" >&5
28365 echo "${ECHO_T}no" >&6; }
28366                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28367 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28368    { (exit 1); exit 1; }; }
28369                 fi
28370         fi
28371     SQL_INCLUDE=-I$MYSQL_INCDIR
28372     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28373     SQL_BINDIR=$MYSQL_BINDIR
28374     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28375
28376     cat >>confdefs.h <<\_ACEOF
28377 #define HAVE_MYSQL 1
28378 _ACEOF
28379
28380     cat >>confdefs.h <<\_ACEOF
28381 #define HAVE_EMBEDDED_MYSQL 1
28382 _ACEOF
28383
28384     { echo "$as_me:$LINENO: result: yes" >&5
28385 echo "${ECHO_T}yes" >&6; }
28386     db_found=yes
28387     support_mysql=yes
28388     db_type=MySQL
28389     DB_TYPE=mysql
28390
28391   else
28392         { echo "$as_me:$LINENO: result: no" >&5
28393 echo "${ECHO_T}no" >&6; }
28394   fi
28395
28396
28397 fi
28398
28399
28400
28401
28402
28403
28404
28405
28406
28407
28408 db_found=no
28409 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28410 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28411
28412 # Check whether --with-sqlite3 was given.
28413 if test "${with_sqlite3+set}" = set; then
28414   withval=$with_sqlite3;
28415   if test "$withval" != "no"; then
28416      if test "$withval" = "yes"; then
28417         if test -f /usr/local/include/sqlite3.h; then
28418            SQLITE_INCDIR=/usr/local/include
28419            if test -d /usr/local/lib64; then
28420               SQLITE_LIBDIR=/usr/local/lib64
28421            else
28422               SQLITE_LIBDIR=/usr/local/lib
28423            fi
28424            SQLITE_BINDIR=/usr/local/bin
28425         elif test -f /usr/include/sqlite3.h; then
28426            SQLITE_INCDIR=/usr/include
28427            if test -d /usr/lib64; then
28428               SQLITE_LIBDIR=/usr/lib64
28429            else
28430               SQLITE_LIBDIR=/usr/lib
28431            fi
28432            SQLITE_BINDIR=/usr/bin
28433         elif test -f $prefix/include/sqlite3.h; then
28434            SQLITE_INCDIR=$prefix/include
28435            if test -d $prefix/lib64; then
28436               SQLITE_LIBDIR=$prefix/lib64
28437            else
28438               SQLITE_LIBDIR=$prefix/lib
28439            fi
28440            SQLITE_BINDIR=$prefix/bin
28441         else
28442            { echo "$as_me:$LINENO: result: no" >&5
28443 echo "${ECHO_T}no" >&6; }
28444            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28445 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28446    { (exit 1); exit 1; }; }
28447         fi
28448      else
28449         if test -f $withval/sqlite3.h; then
28450            SQLITE_INCDIR=$withval
28451            SQLITE_LIBDIR=$withval
28452            SQLITE_BINDIR=$withval
28453         elif test -f $withval/include/sqlite3.h; then
28454            SQLITE_INCDIR=$withval/include
28455            if test -d $withval/lib64; then
28456               SQLITE_LIBDIR=$withval/lib64
28457            else
28458               SQLITE_LIBDIR=$withval/lib
28459            fi
28460            SQLITE_BINDIR=$withval/bin
28461         else
28462            { echo "$as_me:$LINENO: result: no" >&5
28463 echo "${ECHO_T}no" >&6; }
28464            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28465 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28466    { (exit 1); exit 1; }; }
28467         fi
28468      fi
28469      SQL_INCLUDE=-I$SQLITE_INCDIR
28470      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28471      SQL_BINDIR=$SQLITE_BINDIR
28472      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28473
28474      cat >>confdefs.h <<\_ACEOF
28475 #define HAVE_SQLITE3 1
28476 _ACEOF
28477
28478      { echo "$as_me:$LINENO: result: yes" >&5
28479 echo "${ECHO_T}yes" >&6; }
28480      db_found=yes
28481      support_sqlite3=yes
28482      db_type=SQLite3
28483      DB_TYPE=sqlite3
28484
28485   else
28486      { echo "$as_me:$LINENO: result: no" >&5
28487 echo "${ECHO_T}no" >&6; }
28488   fi
28489
28490 else
28491
28492   { echo "$as_me:$LINENO: result: no" >&5
28493 echo "${ECHO_T}no" >&6; }
28494
28495 fi
28496
28497
28498
28499
28500
28501
28502
28503
28504 db_found=no
28505 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28506 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28507
28508 # Check whether --with-sqlite was given.
28509 if test "${with_sqlite+set}" = set; then
28510   withval=$with_sqlite;
28511   if test "$withval" != "no"; then
28512      if test "$withval" = "yes"; then
28513         if test -f /usr/local/include/sqlite.h; then
28514            SQLITE_INCDIR=/usr/local/include
28515            if test -d /usr/local/lib64; then
28516               SQLITE_LIBDIR=/usr/local/lib64
28517            else
28518               SQLITE_LIBDIR=/usr/local/lib
28519            fi
28520            SQLITE_BINDIR=/usr/local/bin
28521         elif test -f /usr/include/sqlite.h; then
28522            SQLITE_INCDIR=/usr/include
28523            if test -d /usr/lib64; then
28524               SQLITE_LIBDIR=/usr/lib64
28525            else
28526               SQLITE_LIBDIR=/usr/lib
28527            fi
28528            SQLITE_BINDIR=/usr/bin
28529         elif test -f $prefix/include/sqlite.h; then
28530            SQLITE_INCDIR=$prefix/include
28531            if test -d $prefix/lib64; then
28532               SQLITE_LIBDIR=$prefix/lib64
28533            else
28534               SQLITE_LIBDIR=$prefix/lib
28535            fi
28536            SQLITE_BINDIR=$prefix/bin
28537         else
28538            { echo "$as_me:$LINENO: result: no" >&5
28539 echo "${ECHO_T}no" >&6; }
28540            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28541 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28542    { (exit 1); exit 1; }; }
28543         fi
28544      else
28545         if test -f $withval/sqlite.h; then
28546            SQLITE_INCDIR=$withval
28547            SQLITE_LIBDIR=$withval
28548            SQLITE_BINDIR=$withval
28549         elif test -f $withval/include/sqlite.h; then
28550            SQLITE_INCDIR=$withval/include
28551            if test -d $withval/lib64; then
28552               SQLITE_LIBDIR=$withval/lib64
28553            else
28554               SQLITE_LIBDIR=$withval/lib
28555            fi
28556            SQLITE_BINDIR=$withval/bin
28557         else
28558            { echo "$as_me:$LINENO: result: no" >&5
28559 echo "${ECHO_T}no" >&6; }
28560            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28561 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28562    { (exit 1); exit 1; }; }
28563         fi
28564      fi
28565      SQL_INCLUDE=-I$SQLITE_INCDIR
28566      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28567      SQL_BINDIR=$SQLITE_BINDIR
28568      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28569
28570      cat >>confdefs.h <<\_ACEOF
28571 #define HAVE_SQLITE 1
28572 _ACEOF
28573
28574      { echo "$as_me:$LINENO: result: yes" >&5
28575 echo "${ECHO_T}yes" >&6; }
28576      db_found=yes
28577      support_sqlite=yes
28578      db_type=SQLite
28579      DB_TYPE=sqlite
28580
28581   else
28582      { echo "$as_me:$LINENO: result: no" >&5
28583 echo "${ECHO_T}no" >&6; }
28584   fi
28585
28586 else
28587
28588   { echo "$as_me:$LINENO: result: no" >&5
28589 echo "${ECHO_T}no" >&6; }
28590
28591 fi
28592
28593
28594
28595
28596
28597
28598
28599
28600 db_found=no
28601 { echo "$as_me:$LINENO: checking for DBI support" >&5
28602 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28603
28604 # Check whether --with-dbi was given.
28605 if test "${with_dbi+set}" = set; then
28606   withval=$with_dbi;
28607   if test "$withval" != "no"; then
28608      if test "$withval" = "yes"; then
28609         if test -f /usr/local/include/dbi/dbi.h; then
28610            DBI_INCDIR=/usr/local/dbi/include
28611            if test -d /usr/local/lib64; then
28612               DBI_LIBDIR=/usr/local/lib64
28613            else
28614               DBI_LIBDIR=/usr/local/lib
28615            fi
28616            DBI_BINDIR=/usr/local/bin
28617         elif test -f /usr/include/dbi/dbi.h; then
28618            DBI_INCDIR=/usr/include
28619            if test -d /usr/lib64; then
28620               DBI_LIBDIR=/usr/lib64
28621            else
28622               DBI_LIBDIR=/usr/lib
28623            fi
28624            DBI_BINDIR=/usr/bin
28625         elif test -f $prefix/include/dbi/dbi.h; then
28626            DBI_INCDIR=$prefix/include
28627            if test -d $prefix/lib64; then
28628               DBI_LIBDIR=$prefix/lib64
28629            else
28630               DBI_LIBDIR=$prefix/lib
28631            fi
28632            DBI_BINDIR=$prefix/bin
28633         else
28634            { echo "$as_me:$LINENO: result: no" >&5
28635 echo "${ECHO_T}no" >&6; }
28636            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28637 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28638    { (exit 1); exit 1; }; }
28639         fi
28640         if test -d /usr/local/lib/dbd; then
28641            DRIVERDIR=/usr/local/lib/dbd
28642            if test -d /usr/local/lib64/dbd; then
28643               DRIVERDIR=/usr/local/lib64/dbd
28644            else
28645               DRIVERDIR=/usr/local/lib/dbd
28646            fi
28647         elif test -d /usr/lib/dbd; then
28648            DRIVERDIR=/usr/lib/dbd
28649            if test -d /usr/lib64/dbd; then
28650               DRIVERDIR=/usr/lib64/dbd
28651            else
28652               DRIVERDIR=/usr/lib/dbd
28653            fi
28654         elif test -d $prefix/lib/dbd; then
28655            if test -d $prefix/lib64/dbd; then
28656               DRIVERDIR=$prefix/lib64/dbd
28657            else
28658               DRIVERDIR=$prefix/lib/dbd
28659            fi
28660         else
28661            { echo "$as_me:$LINENO: result: no" >&5
28662 echo "${ECHO_T}no" >&6; }
28663            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28664 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28665    { (exit 1); exit 1; }; }
28666         fi
28667      else
28668         if test -f $withval/dbi.h; then
28669            DBI_INCDIR=$withval
28670            DBI_LIBDIR=$withval
28671            DBI_BINDIR=$withval
28672         elif test -f $withval/include/dbi/dbi.h; then
28673            DBI_INCDIR=$withval/include
28674            if test -d $withval/lib64; then
28675               DBI_LIBDIR=$withval/lib64
28676            else
28677               DBI_LIBDIR=$withval/lib
28678            fi
28679            DBI_BINDIR=$withval/bin
28680         else
28681            { echo "$as_me:$LINENO: result: no" >&5
28682 echo "${ECHO_T}no" >&6; }
28683            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28684 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28685    { (exit 1); exit 1; }; }
28686         fi
28687         if test -d $withval/dbd; then
28688            DRIVERDIR=$withval/dbd
28689         elif test -d $withval/lib/; then
28690            if test -d $withval/lib64/dbd; then
28691               DRIVERDIR=$withval/lib64/dbd
28692            else
28693               DRIVERDIR=$withval/lib/dbd
28694            fi
28695         else
28696            { echo "$as_me:$LINENO: result: no" >&5
28697 echo "${ECHO_T}no" >&6; }
28698            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28699 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28700    { (exit 1); exit 1; }; }
28701         fi
28702      fi
28703      SQL_INCLUDE=-I$DBI_INCDIR
28704      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28705      SQL_BINDIR=$DBI_BINDIR
28706      SQL_LIB=$DBI_LIBDIR/libdbi.a
28707      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28708
28709
28710 cat >>confdefs.h <<\_ACEOF
28711 #define HAVE_DBI 1
28712 _ACEOF
28713
28714      { echo "$as_me:$LINENO: result: yes" >&5
28715 echo "${ECHO_T}yes" >&6; }
28716      db_found=yes
28717      support_dbi=yes
28718      db_type=DBI
28719      DB_TYPE=dbi
28720      uncomment_dbi=" "
28721
28722   else
28723      { echo "$as_me:$LINENO: result: no" >&5
28724 echo "${ECHO_T}no" >&6; }
28725   fi
28726
28727 else
28728
28729   { echo "$as_me:$LINENO: result: no" >&5
28730 echo "${ECHO_T}no" >&6; }
28731
28732 fi
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743 db_found=no
28744 db_prog=no
28745 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28746 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28747
28748 # Check whether --with-dbi-driver was given.
28749 if test "${with_dbi_driver+set}" = set; then
28750   withval=$with_dbi_driver;
28751   if test "$withval" != "no"; then
28752      case $withval in
28753         "mysql")
28754            db_prog="mysql"
28755            if test -f /usr/local/mysql/bin/mysql; then
28756               SQL_BINDIR=/usr/local/mysql/bin
28757               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28758                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28759                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28760               else
28761                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28762               fi
28763            elif test -f /usr/bin/mysql; then
28764               SQL_BINDIR=/usr/bin
28765               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28766                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28767                   SQL_LIBDIR=/usr/lib64/mysql
28768               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28769                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28770                   SQL_LIBDIR=/usr/lib/mysql
28771               else
28772                   SQL_LIBDIR=/usr/lib
28773               fi
28774            elif test -f /usr/local/bin/mysql; then
28775               SQL_BINDIR=/usr/local/bin
28776               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28777                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28778                   SQL_LIBDIR=/usr/local/lib64/mysql
28779               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28780                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28781                   SQL_LIBDIR=/usr/local/lib/mysql
28782               else
28783                   SQL_LIBDIR=/usr/local/lib
28784               fi
28785            elif test -f $withval/bin/mysql; then
28786               SQL_BINDIR=$withval/bin
28787               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28788                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28789                   SQL_LIBDIR=$withval/lib64/mysql
28790               elif test -f $withval/lib64/libmysqlclient_r.a \
28791                   -o -f $withval/lib64/libmysqlclient_r.so; then
28792                   SQL_LIBDIR=$withval/lib64
28793               elif test -f $withval/lib/libmysqlclient_r.a \
28794                   -o -f $withval/lib/libmysqlclient_r.so; then
28795                   SQL_LIBDIR=$withval/lib/
28796               else
28797                   SQL_LIBDIR=$withval/lib/mysql
28798               fi
28799            else
28800               { echo "$as_me:$LINENO: result: no" >&5
28801 echo "${ECHO_T}no" >&6; }
28802               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28803 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28804    { (exit 1); exit 1; }; }
28805            fi
28806            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28807               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28808            else
28809               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28810            fi
28811         ;;
28812         "postgresql")
28813            db_prog="postgresql"
28814            PG_CONFIG=`which pg_config`
28815            if test -n "$PG_CONFIG"; then
28816               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28817               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28818            elif test -f /usr/local/bin/psql; then
28819               SQL_BINDIR=/usr/local/bin
28820               if test -d /usr/local/lib64; then
28821                  SQL_LIBDIR=/usr/local/lib64
28822               else
28823                  SQL_LIBDIR=/usr/local/lib
28824               fi
28825            elif test -f /usr/bin/psql; then
28826               SQL_BINDIR=/usr/local/bin
28827               if test -d /usr/lib64/postgresql; then
28828                  SQL_LIBDIR=/usr/lib64/postgresql
28829               elif test -d /usr/lib/postgresql; then
28830                  SQL_LIBDIR=/usr/lib/postgresql
28831               elif test -d /usr/lib64; then
28832                  SQL_LIBDIR=/usr/lib64
28833               else
28834                  SQL_LIBDIR=/usr/lib
28835               fi
28836            elif test -f $withval/bin/psql; then
28837               SQL_BINDIR=$withval/bin
28838               if test -d $withval/lib64; then
28839                  SQL_LIBDIR=$withval/lib64
28840               else
28841                  SQL_LIBDIR=$withval/lib
28842               fi
28843            else
28844               { echo "$as_me:$LINENO: result: no" >&5
28845 echo "${ECHO_T}no" >&6; }
28846               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28847 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28848    { (exit 1); exit 1; }; }
28849            fi
28850            if test -f $SQL_LIBDIR/libpq.so; then
28851               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28852            else
28853               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28854            fi
28855         ;;
28856         "sqlite")
28857            db_prog="sqlite"
28858            if test -f /usr/local/bin/sqlite; then
28859               SQL_BINDIR=/usr/local/bin
28860               if test -d /usr/local/lib64; then
28861                  SQL_LIBDIR=/usr/local/lib64
28862               else
28863                  SQL_LIBDIR=/usr/local/lib
28864               fi
28865            elif test -f /usr/bin/sqlite; then
28866               SQL_BINDIR=/usr/bin
28867               if test -d /usr/lib64; then
28868                  SQL_LIBDIR=/usr/lib64
28869               else
28870                  SQL_LIBDIR=/usr/lib
28871               fi
28872            elif test -f $withval/bin/sqlite; then
28873               SQL_BINDIR=$withval/bin
28874               if test -d $withval/lib64; then
28875                  SQL_LIBDIR=$withval/lib64
28876               else
28877                  SQL_LIBDIR=$withval/lib
28878               fi
28879            else
28880               { echo "$as_me:$LINENO: result: no" >&5
28881 echo "${ECHO_T}no" >&6; }
28882               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28883 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28884    { (exit 1); exit 1; }; }
28885            fi
28886            if test -f $SQL_LIBDIR/libsqlite.so; then
28887               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28888            else
28889               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28890            fi
28891         ;;
28892         "sqlite3")
28893            db_prog="sqlite3"
28894            if test -f /usr/local/bin/sqlite3; then
28895               SQL_BINDIR=/usr/local/bin
28896               if test -d /usr/local/lib64; then
28897                  SQL_LIBDIR=/usr/local/lib64
28898               else
28899                  SQL_LIBDIR=/usr/local/lib
28900               fi
28901            elif test -f /usr/bin/sqlite3; then
28902               SQL_BINDIR=/usr/bin
28903               if test -d /usr/lib64; then
28904                  SQL_LIBDIR=/usr/lib64
28905               else
28906                  SQL_LIBDIR=/usr/lib
28907               fi
28908            elif test -f $withval/bin/sqlite3; then
28909               SQL_BINDIR=$withval/bin
28910               if test -d $withval/lib64; then
28911                  SQL_LIBDIR=$withval/lib64
28912               else
28913                  SQL_LIBDIR=$withval/lib
28914               fi
28915            else
28916               { echo "$as_me:$LINENO: result: no" >&5
28917 echo "${ECHO_T}no" >&6; }
28918               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28919 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28920    { (exit 1); exit 1; }; }
28921            fi
28922            if test -f $SQL_LIBDIR/libsqlite3.so; then
28923               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28924            else
28925               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28926            fi
28927         ;;
28928         *)
28929            { echo "$as_me:$LINENO: result: no" >&5
28930 echo "${ECHO_T}no" >&6; }
28931            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28932 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28933    { (exit 1); exit 1; }; }
28934         ;;
28935      esac
28936
28937      { echo "$as_me:$LINENO: result: yes" >&5
28938 echo "${ECHO_T}yes" >&6; }
28939      DB_PROG=$db_prog
28940   else
28941      { echo "$as_me:$LINENO: result: no" >&5
28942 echo "${ECHO_T}no" >&6; }
28943   fi
28944
28945 else
28946
28947   { echo "$as_me:$LINENO: result: no" >&5
28948 echo "${ECHO_T}no" >&6; }
28949
28950 fi
28951
28952
28953
28954
28955
28956
28957
28958
28959
28960
28961 support_batch_insert=no
28962 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28963 pkg=$?
28964 if test $pkg = 0; then
28965    support_batch_insert=yes
28966    # Check whether --enable-batch-insert was given.
28967 if test "${enable_batch_insert+set}" = set; then
28968   enableval=$enable_batch_insert;
28969           if test x$enableval = xno; then
28970              support_batch_insert=no
28971           else
28972              support_batch_insert=yes
28973           fi
28974
28975
28976 fi
28977
28978 fi
28979
28980 if test x$DB_TYPE = xpostgresql; then
28981    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28982    pkg=$?
28983    if test $pkg != 0; then
28984       support_batch_insert=no
28985    fi
28986 fi
28987
28988 if test x$DB_TYPE = xdbi; then
28989    DB_TYPE=$DB_PROG
28990    db_type=$DB_PROG
28991    pkg=1
28992       if test $DB_PROG = postgresql; then
28993       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28994       pkg=$?
28995    fi
28996
28997    if test $DB_PROG = mysql; then
28998       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28999       pkg=$?
29000    fi
29001
29002    if test $DB_PROG = sqlite3; then
29003       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29004       pkg=$?
29005    fi
29006
29007    if test $pkg = 0; then
29008       # Check whether --enable-batch-insert was given.
29009 if test "${enable_batch_insert+set}" = set; then
29010   enableval=$enable_batch_insert;
29011              if test x$enableval = xno; then
29012                 support_batch_insert=no
29013              else
29014                 support_batch_insert=yes
29015              fi
29016
29017
29018 fi
29019
29020    fi
29021 else
29022       uncomment_dbi="#"
29023 fi
29024
29025
29026
29027 if test $support_batch_insert = yes ; then
29028
29029 cat >>confdefs.h <<\_ACEOF
29030 #define HAVE_BATCH_FILE_INSERT 1
29031 _ACEOF
29032
29033 fi
29034
29035 cat >>confdefs.h <<\_ACEOF
29036 #define PROTOTYPES 1
29037 _ACEOF
29038
29039
29040 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29041    if test -z "$CCOPTS"; then
29042       CCOPTS='-g -O2 -Wall'
29043    fi
29044    CFLAGS="$CCOPTS"
29045 fi
29046
29047
29048
29049 largefile_support="no"
29050
29051    # Check whether --enable-largefile was given.
29052 if test "${enable_largefile+set}" = set; then
29053   enableval=$enable_largefile;
29054 fi
29055
29056    if test "$enable_largefile" != no; then
29057      if test -n "$ac_tool_prefix"; then
29058   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29059 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29062 if test "${ac_cv_prog_GETCONF+set}" = set; then
29063   echo $ECHO_N "(cached) $ECHO_C" >&6
29064 else
29065   if test -n "$GETCONF"; then
29066   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29067 else
29068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29069 for as_dir in $PATH
29070 do
29071   IFS=$as_save_IFS
29072   test -z "$as_dir" && as_dir=.
29073   for ac_exec_ext in '' $ac_executable_extensions; do
29074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29075     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29077     break 2
29078   fi
29079 done
29080 done
29081 IFS=$as_save_IFS
29082
29083 fi
29084 fi
29085 GETCONF=$ac_cv_prog_GETCONF
29086 if test -n "$GETCONF"; then
29087   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29088 echo "${ECHO_T}$GETCONF" >&6; }
29089 else
29090   { echo "$as_me:$LINENO: result: no" >&5
29091 echo "${ECHO_T}no" >&6; }
29092 fi
29093
29094
29095 fi
29096 if test -z "$ac_cv_prog_GETCONF"; then
29097   ac_ct_GETCONF=$GETCONF
29098   # Extract the first word of "getconf", so it can be a program name with args.
29099 set dummy getconf; ac_word=$2
29100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29102 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29103   echo $ECHO_N "(cached) $ECHO_C" >&6
29104 else
29105   if test -n "$ac_ct_GETCONF"; then
29106   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29107 else
29108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29109 for as_dir in $PATH
29110 do
29111   IFS=$as_save_IFS
29112   test -z "$as_dir" && as_dir=.
29113   for ac_exec_ext in '' $ac_executable_extensions; do
29114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29115     ac_cv_prog_ac_ct_GETCONF="getconf"
29116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29117     break 2
29118   fi
29119 done
29120 done
29121 IFS=$as_save_IFS
29122
29123 fi
29124 fi
29125 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29126 if test -n "$ac_ct_GETCONF"; then
29127   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29128 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29129 else
29130   { echo "$as_me:$LINENO: result: no" >&5
29131 echo "${ECHO_T}no" >&6; }
29132 fi
29133
29134   if test "x$ac_ct_GETCONF" = x; then
29135     GETCONF=""
29136   else
29137     case $cross_compiling:$ac_tool_warned in
29138 yes:)
29139 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29140 whose name does not start with the host triplet.  If you think this
29141 configuration is useful to you, please write to autoconf@gnu.org." >&5
29142 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29143 whose name does not start with the host triplet.  If you think this
29144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29145 ac_tool_warned=yes ;;
29146 esac
29147     GETCONF=$ac_ct_GETCONF
29148   fi
29149 else
29150   GETCONF="$ac_cv_prog_GETCONF"
29151 fi
29152
29153      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29154 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29155 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29156   echo $ECHO_N "(cached) $ECHO_C" >&6
29157 else
29158   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29159         ac_cv_sys_largefile_CFLAGS=no
29160         case "$host_os" in
29161            # IRIX 6.2 and later require cc -n32.
29162            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29163              if test "$GCC" != yes; then
29164                ac_cv_sys_largefile_CFLAGS=-n32
29165              fi
29166              ac_save_CC="$CC"
29167              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29168              cat >conftest.$ac_ext <<_ACEOF
29169 /* confdefs.h.  */
29170 _ACEOF
29171 cat confdefs.h >>conftest.$ac_ext
29172 cat >>conftest.$ac_ext <<_ACEOF
29173 /* end confdefs.h.  */
29174
29175 int
29176 main ()
29177 {
29178
29179   ;
29180   return 0;
29181 }
29182 _ACEOF
29183 rm -f conftest.$ac_objext conftest$ac_exeext
29184 if { (ac_try="$ac_link"
29185 case "(($ac_try" in
29186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29187   *) ac_try_echo=$ac_try;;
29188 esac
29189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29190   (eval "$ac_link") 2>conftest.er1
29191   ac_status=$?
29192   grep -v '^ *+' conftest.er1 >conftest.err
29193   rm -f conftest.er1
29194   cat conftest.err >&5
29195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196   (exit $ac_status); } && {
29197          test -z "$ac_c_werror_flag" ||
29198          test ! -s conftest.err
29199        } && test -s conftest$ac_exeext &&
29200        $as_test_x conftest$ac_exeext; then
29201   :
29202 else
29203   echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29205
29206         ac_cv_sys_largefile_CFLAGS=no
29207 fi
29208
29209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29210       conftest$ac_exeext conftest.$ac_ext
29211              CC="$ac_save_CC"
29212            esac
29213       }
29214 fi
29215 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29216 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29217      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29218 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29219 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29220   echo $ECHO_N "(cached) $ECHO_C" >&6
29221 else
29222   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29223         ac_cv_sys_largefile_LDFLAGS=no
29224
29225       }
29226 fi
29227 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29228 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29229      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29230 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29231 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29232   echo $ECHO_N "(cached) $ECHO_C" >&6
29233 else
29234   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29235         ac_cv_sys_largefile_LIBS=no
29236
29237       }
29238 fi
29239 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29240 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29241
29242      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29243        case "$ac_flag" in
29244        no) ;;
29245        -D_FILE_OFFSET_BITS=*) ;;
29246        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29247        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29248        -D?* | -I?*)
29249          case "$ac_flag" in
29250    no) ;;
29251    ?*)
29252      case "$CPPFLAGS" in
29253      '') CPPFLAGS="$ac_flag" ;;
29254      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29255      esac ;;
29256    esac ;;
29257        *)
29258          case "$ac_flag" in
29259    no) ;;
29260    ?*)
29261      case "$CFLAGS" in
29262      '') CFLAGS="$ac_flag" ;;
29263      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29264      esac ;;
29265    esac ;;
29266        esac
29267      done
29268      case "$ac_cv_sys_largefile_LDFLAGS" in
29269    no) ;;
29270    ?*)
29271      case "$LDFLAGS" in
29272      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29273      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29274      esac ;;
29275    esac
29276      case "$ac_cv_sys_largefile_LIBS" in
29277    no) ;;
29278    ?*)
29279      case "$LIBS" in
29280      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29281      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29282      esac ;;
29283    esac
29284      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29285 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29286 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29287   echo $ECHO_N "(cached) $ECHO_C" >&6
29288 else
29289   ac_cv_sys_file_offset_bits=no
29290       ac_cv_sys_file_offset_bits=64
29291       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29292         case "$ac_flag" in
29293         -D_FILE_OFFSET_BITS)
29294           ac_cv_sys_file_offset_bits=1 ;;
29295         -D_FILE_OFFSET_BITS=*)
29296           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29297         esac
29298       done
29299
29300 fi
29301 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29302 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29303    if test "$ac_cv_sys_file_offset_bits" != no; then
29304
29305 cat >>confdefs.h <<_ACEOF
29306 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29307 _ACEOF
29308
29309    fi
29310      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29311 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29312 if test "${ac_cv_sys_largefile_source+set}" = set; then
29313   echo $ECHO_N "(cached) $ECHO_C" >&6
29314 else
29315   ac_cv_sys_largefile_source=no
29316       ac_cv_sys_largefile_source=1
29317       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29318         case "$ac_flag" in
29319         -D_LARGEFILE_SOURCE)
29320           ac_cv_sys_largefile_source=1 ;;
29321         -D_LARGEFILE_SOURCE=*)
29322           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29323         esac
29324       done
29325
29326 fi
29327 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29328 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29329    if test "$ac_cv_sys_largefile_source" != no; then
29330
29331 cat >>confdefs.h <<_ACEOF
29332 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29333 _ACEOF
29334
29335    fi
29336      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29337 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29338 if test "${ac_cv_sys_large_files+set}" = set; then
29339   echo $ECHO_N "(cached) $ECHO_C" >&6
29340 else
29341   ac_cv_sys_large_files=no
29342       ac_cv_sys_large_files=1
29343       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29344         case "$ac_flag" in
29345         -D_LARGE_FILES)
29346           ac_cv_sys_large_files=1 ;;
29347         -D_LARGE_FILES=*)
29348           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29349         esac
29350       done
29351
29352 fi
29353 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29354 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29355    if test "$ac_cv_sys_large_files" != no; then
29356
29357 cat >>confdefs.h <<_ACEOF
29358 #define _LARGE_FILES $ac_cv_sys_large_files
29359 _ACEOF
29360
29361    fi
29362    fi
29363
29364
29365 { echo "$as_me:$LINENO: checking for X" >&5
29366 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29367
29368
29369 # Check whether --with-x was given.
29370 if test "${with_x+set}" = set; then
29371   withval=$with_x;
29372 fi
29373
29374 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29375 if test "x$with_x" = xno; then
29376   # The user explicitly disabled X.
29377   have_x=disabled
29378 else
29379   case $x_includes,$x_libraries in #(
29380     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29381 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29382    { (exit 1); exit 1; }; };; #(
29383     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29384   echo $ECHO_N "(cached) $ECHO_C" >&6
29385 else
29386   # One or both of the vars are not set, and there is no cached value.
29387 ac_x_includes=no ac_x_libraries=no
29388 rm -f -r conftest.dir
29389 if mkdir conftest.dir; then
29390   cd conftest.dir
29391   cat >Imakefile <<'_ACEOF'
29392 incroot:
29393         @echo incroot='${INCROOT}'
29394 usrlibdir:
29395         @echo usrlibdir='${USRLIBDIR}'
29396 libdir:
29397         @echo libdir='${LIBDIR}'
29398 _ACEOF
29399   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29400     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29401     for ac_var in incroot usrlibdir libdir; do
29402       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29403     done
29404     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29405     for ac_extension in a so sl; do
29406       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29407          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29408         ac_im_usrlibdir=$ac_im_libdir; break
29409       fi
29410     done
29411     # Screen out bogus values from the imake configuration.  They are
29412     # bogus both because they are the default anyway, and because
29413     # using them would break gcc on systems where it needs fixed includes.
29414     case $ac_im_incroot in
29415         /usr/include) ac_x_includes= ;;
29416         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29417     esac
29418     case $ac_im_usrlibdir in
29419         /usr/lib | /lib) ;;
29420         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29421     esac
29422   fi
29423   cd ..
29424   rm -f -r conftest.dir
29425 fi
29426
29427 # Standard set of common directories for X headers.
29428 # Check X11 before X11Rn because it is often a symlink to the current release.
29429 ac_x_header_dirs='
29430 /usr/X11/include
29431 /usr/X11R6/include
29432 /usr/X11R5/include
29433 /usr/X11R4/include
29434
29435 /usr/include/X11
29436 /usr/include/X11R6
29437 /usr/include/X11R5
29438 /usr/include/X11R4
29439
29440 /usr/local/X11/include
29441 /usr/local/X11R6/include
29442 /usr/local/X11R5/include
29443 /usr/local/X11R4/include
29444
29445 /usr/local/include/X11
29446 /usr/local/include/X11R6
29447 /usr/local/include/X11R5
29448 /usr/local/include/X11R4
29449
29450 /usr/X386/include
29451 /usr/x386/include
29452 /usr/XFree86/include/X11
29453
29454 /usr/include
29455 /usr/local/include
29456 /usr/unsupported/include
29457 /usr/athena/include
29458 /usr/local/x11r5/include
29459 /usr/lpp/Xamples/include
29460
29461 /usr/openwin/include
29462 /usr/openwin/share/include'
29463
29464 if test "$ac_x_includes" = no; then
29465   # Guess where to find include files, by looking for Xlib.h.
29466   # First, try using that file with no special directory specified.
29467   cat >conftest.$ac_ext <<_ACEOF
29468 /* confdefs.h.  */
29469 _ACEOF
29470 cat confdefs.h >>conftest.$ac_ext
29471 cat >>conftest.$ac_ext <<_ACEOF
29472 /* end confdefs.h.  */
29473 #include <X11/Xlib.h>
29474 _ACEOF
29475 if { (ac_try="$ac_cpp conftest.$ac_ext"
29476 case "(($ac_try" in
29477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29478   *) ac_try_echo=$ac_try;;
29479 esac
29480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29481   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29482   ac_status=$?
29483   grep -v '^ *+' conftest.er1 >conftest.err
29484   rm -f conftest.er1
29485   cat conftest.err >&5
29486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487   (exit $ac_status); } >/dev/null && {
29488          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29489          test ! -s conftest.err
29490        }; then
29491   # We can compile using X headers with no special include directory.
29492 ac_x_includes=
29493 else
29494   echo "$as_me: failed program was:" >&5
29495 sed 's/^/| /' conftest.$ac_ext >&5
29496
29497   for ac_dir in $ac_x_header_dirs; do
29498   if test -r "$ac_dir/X11/Xlib.h"; then
29499     ac_x_includes=$ac_dir
29500     break
29501   fi
29502 done
29503 fi
29504
29505 rm -f conftest.err conftest.$ac_ext
29506 fi # $ac_x_includes = no
29507
29508 if test "$ac_x_libraries" = no; then
29509   # Check for the libraries.
29510   # See if we find them without any special options.
29511   # Don't add to $LIBS permanently.
29512   ac_save_LIBS=$LIBS
29513   LIBS="-lX11 $LIBS"
29514   cat >conftest.$ac_ext <<_ACEOF
29515 /* confdefs.h.  */
29516 _ACEOF
29517 cat confdefs.h >>conftest.$ac_ext
29518 cat >>conftest.$ac_ext <<_ACEOF
29519 /* end confdefs.h.  */
29520 #include <X11/Xlib.h>
29521 int
29522 main ()
29523 {
29524 XrmInitialize ()
29525   ;
29526   return 0;
29527 }
29528 _ACEOF
29529 rm -f conftest.$ac_objext conftest$ac_exeext
29530 if { (ac_try="$ac_link"
29531 case "(($ac_try" in
29532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533   *) ac_try_echo=$ac_try;;
29534 esac
29535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536   (eval "$ac_link") 2>conftest.er1
29537   ac_status=$?
29538   grep -v '^ *+' conftest.er1 >conftest.err
29539   rm -f conftest.er1
29540   cat conftest.err >&5
29541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542   (exit $ac_status); } && {
29543          test -z "$ac_c_werror_flag" ||
29544          test ! -s conftest.err
29545        } && test -s conftest$ac_exeext &&
29546        $as_test_x conftest$ac_exeext; then
29547   LIBS=$ac_save_LIBS
29548 # We can link X programs with no special library path.
29549 ac_x_libraries=
29550 else
29551   echo "$as_me: failed program was:" >&5
29552 sed 's/^/| /' conftest.$ac_ext >&5
29553
29554         LIBS=$ac_save_LIBS
29555 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29556 do
29557   # Don't even attempt the hair of trying to link an X program!
29558   for ac_extension in a so sl; do
29559     if test -r "$ac_dir/libX11.$ac_extension"; then
29560       ac_x_libraries=$ac_dir
29561       break 2
29562     fi
29563   done
29564 done
29565 fi
29566
29567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29568       conftest$ac_exeext conftest.$ac_ext
29569 fi # $ac_x_libraries = no
29570
29571 case $ac_x_includes,$ac_x_libraries in #(
29572   no,* | *,no | *\'*)
29573     # Didn't find X, or a directory has "'" in its name.
29574     ac_cv_have_x="have_x=no";; #(
29575   *)
29576     # Record where we found X for the cache.
29577     ac_cv_have_x="have_x=yes\
29578         ac_x_includes='$ac_x_includes'\
29579         ac_x_libraries='$ac_x_libraries'"
29580 esac
29581 fi
29582 ;; #(
29583     *) have_x=yes;;
29584   esac
29585   eval "$ac_cv_have_x"
29586 fi # $with_x != no
29587
29588 if test "$have_x" != yes; then
29589   { echo "$as_me:$LINENO: result: $have_x" >&5
29590 echo "${ECHO_T}$have_x" >&6; }
29591   no_x=yes
29592 else
29593   # If each of the values was on the command line, it overrides each guess.
29594   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29595   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29596   # Update the cache value to reflect the command line values.
29597   ac_cv_have_x="have_x=yes\
29598         ac_x_includes='$x_includes'\
29599         ac_x_libraries='$x_libraries'"
29600   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29601 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29602 fi
29603
29604 if test "$no_x" = yes; then
29605   # Not all programs may use this symbol, but it does not hurt to define it.
29606
29607 cat >>confdefs.h <<\_ACEOF
29608 #define X_DISPLAY_MISSING 1
29609 _ACEOF
29610
29611   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29612 else
29613   if test -n "$x_includes"; then
29614     X_CFLAGS="$X_CFLAGS -I$x_includes"
29615   fi
29616
29617   # It would also be nice to do this for all -L options, not just this one.
29618   if test -n "$x_libraries"; then
29619     X_LIBS="$X_LIBS -L$x_libraries"
29620     # For Solaris; some versions of Sun CC require a space after -R and
29621     # others require no space.  Words are not sufficient . . . .
29622     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29623 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29624     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29625     ac_xsave_c_werror_flag=$ac_c_werror_flag
29626     ac_c_werror_flag=yes
29627     cat >conftest.$ac_ext <<_ACEOF
29628 /* confdefs.h.  */
29629 _ACEOF
29630 cat confdefs.h >>conftest.$ac_ext
29631 cat >>conftest.$ac_ext <<_ACEOF
29632 /* end confdefs.h.  */
29633
29634 int
29635 main ()
29636 {
29637
29638   ;
29639   return 0;
29640 }
29641 _ACEOF
29642 rm -f conftest.$ac_objext conftest$ac_exeext
29643 if { (ac_try="$ac_link"
29644 case "(($ac_try" in
29645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29646   *) ac_try_echo=$ac_try;;
29647 esac
29648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29649   (eval "$ac_link") 2>conftest.er1
29650   ac_status=$?
29651   grep -v '^ *+' conftest.er1 >conftest.err
29652   rm -f conftest.er1
29653   cat conftest.err >&5
29654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29655   (exit $ac_status); } && {
29656          test -z "$ac_c_werror_flag" ||
29657          test ! -s conftest.err
29658        } && test -s conftest$ac_exeext &&
29659        $as_test_x conftest$ac_exeext; then
29660   { echo "$as_me:$LINENO: result: no" >&5
29661 echo "${ECHO_T}no" >&6; }
29662        X_LIBS="$X_LIBS -R$x_libraries"
29663 else
29664   echo "$as_me: failed program was:" >&5
29665 sed 's/^/| /' conftest.$ac_ext >&5
29666
29667         LIBS="$ac_xsave_LIBS -R $x_libraries"
29668        cat >conftest.$ac_ext <<_ACEOF
29669 /* confdefs.h.  */
29670 _ACEOF
29671 cat confdefs.h >>conftest.$ac_ext
29672 cat >>conftest.$ac_ext <<_ACEOF
29673 /* end confdefs.h.  */
29674
29675 int
29676 main ()
29677 {
29678
29679   ;
29680   return 0;
29681 }
29682 _ACEOF
29683 rm -f conftest.$ac_objext conftest$ac_exeext
29684 if { (ac_try="$ac_link"
29685 case "(($ac_try" in
29686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29687   *) ac_try_echo=$ac_try;;
29688 esac
29689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29690   (eval "$ac_link") 2>conftest.er1
29691   ac_status=$?
29692   grep -v '^ *+' conftest.er1 >conftest.err
29693   rm -f conftest.er1
29694   cat conftest.err >&5
29695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696   (exit $ac_status); } && {
29697          test -z "$ac_c_werror_flag" ||
29698          test ! -s conftest.err
29699        } && test -s conftest$ac_exeext &&
29700        $as_test_x conftest$ac_exeext; then
29701   { echo "$as_me:$LINENO: result: yes" >&5
29702 echo "${ECHO_T}yes" >&6; }
29703           X_LIBS="$X_LIBS -R $x_libraries"
29704 else
29705   echo "$as_me: failed program was:" >&5
29706 sed 's/^/| /' conftest.$ac_ext >&5
29707
29708         { echo "$as_me:$LINENO: result: neither works" >&5
29709 echo "${ECHO_T}neither works" >&6; }
29710 fi
29711
29712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29713       conftest$ac_exeext conftest.$ac_ext
29714 fi
29715
29716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29717       conftest$ac_exeext conftest.$ac_ext
29718     ac_c_werror_flag=$ac_xsave_c_werror_flag
29719     LIBS=$ac_xsave_LIBS
29720   fi
29721
29722   # Check for system-dependent libraries X programs must link with.
29723   # Do this before checking for the system-independent R6 libraries
29724   # (-lICE), since we may need -lsocket or whatever for X linking.
29725
29726   if test "$ISC" = yes; then
29727     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29728   else
29729     # Martyn Johnson says this is needed for Ultrix, if the X
29730     # libraries were built with DECnet support.  And Karl Berry says
29731     # the Alpha needs dnet_stub (dnet does not exist).
29732     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29733     cat >conftest.$ac_ext <<_ACEOF
29734 /* confdefs.h.  */
29735 _ACEOF
29736 cat confdefs.h >>conftest.$ac_ext
29737 cat >>conftest.$ac_ext <<_ACEOF
29738 /* end confdefs.h.  */
29739
29740 /* Override any GCC internal prototype to avoid an error.
29741    Use char because int might match the return type of a GCC
29742    builtin and then its argument prototype would still apply.  */
29743 #ifdef __cplusplus
29744 extern "C"
29745 #endif
29746 char XOpenDisplay ();
29747 int
29748 main ()
29749 {
29750 return XOpenDisplay ();
29751   ;
29752   return 0;
29753 }
29754 _ACEOF
29755 rm -f conftest.$ac_objext conftest$ac_exeext
29756 if { (ac_try="$ac_link"
29757 case "(($ac_try" in
29758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29759   *) ac_try_echo=$ac_try;;
29760 esac
29761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29762   (eval "$ac_link") 2>conftest.er1
29763   ac_status=$?
29764   grep -v '^ *+' conftest.er1 >conftest.err
29765   rm -f conftest.er1
29766   cat conftest.err >&5
29767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768   (exit $ac_status); } && {
29769          test -z "$ac_c_werror_flag" ||
29770          test ! -s conftest.err
29771        } && test -s conftest$ac_exeext &&
29772        $as_test_x conftest$ac_exeext; then
29773   :
29774 else
29775   echo "$as_me: failed program was:" >&5
29776 sed 's/^/| /' conftest.$ac_ext >&5
29777
29778         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29779 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29780 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29781   echo $ECHO_N "(cached) $ECHO_C" >&6
29782 else
29783   ac_check_lib_save_LIBS=$LIBS
29784 LIBS="-ldnet  $LIBS"
29785 cat >conftest.$ac_ext <<_ACEOF
29786 /* confdefs.h.  */
29787 _ACEOF
29788 cat confdefs.h >>conftest.$ac_ext
29789 cat >>conftest.$ac_ext <<_ACEOF
29790 /* end confdefs.h.  */
29791
29792 /* Override any GCC internal prototype to avoid an error.
29793    Use char because int might match the return type of a GCC
29794    builtin and then its argument prototype would still apply.  */
29795 #ifdef __cplusplus
29796 extern "C"
29797 #endif
29798 char dnet_ntoa ();
29799 int
29800 main ()
29801 {
29802 return dnet_ntoa ();
29803   ;
29804   return 0;
29805 }
29806 _ACEOF
29807 rm -f conftest.$ac_objext conftest$ac_exeext
29808 if { (ac_try="$ac_link"
29809 case "(($ac_try" in
29810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811   *) ac_try_echo=$ac_try;;
29812 esac
29813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29814   (eval "$ac_link") 2>conftest.er1
29815   ac_status=$?
29816   grep -v '^ *+' conftest.er1 >conftest.err
29817   rm -f conftest.er1
29818   cat conftest.err >&5
29819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820   (exit $ac_status); } && {
29821          test -z "$ac_c_werror_flag" ||
29822          test ! -s conftest.err
29823        } && test -s conftest$ac_exeext &&
29824        $as_test_x conftest$ac_exeext; then
29825   ac_cv_lib_dnet_dnet_ntoa=yes
29826 else
29827   echo "$as_me: failed program was:" >&5
29828 sed 's/^/| /' conftest.$ac_ext >&5
29829
29830         ac_cv_lib_dnet_dnet_ntoa=no
29831 fi
29832
29833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29834       conftest$ac_exeext conftest.$ac_ext
29835 LIBS=$ac_check_lib_save_LIBS
29836 fi
29837 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29838 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29839 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29840   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29841 fi
29842
29843     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29844       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29845 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29846 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29847   echo $ECHO_N "(cached) $ECHO_C" >&6
29848 else
29849   ac_check_lib_save_LIBS=$LIBS
29850 LIBS="-ldnet_stub  $LIBS"
29851 cat >conftest.$ac_ext <<_ACEOF
29852 /* confdefs.h.  */
29853 _ACEOF
29854 cat confdefs.h >>conftest.$ac_ext
29855 cat >>conftest.$ac_ext <<_ACEOF
29856 /* end confdefs.h.  */
29857
29858 /* Override any GCC internal prototype to avoid an error.
29859    Use char because int might match the return type of a GCC
29860    builtin and then its argument prototype would still apply.  */
29861 #ifdef __cplusplus
29862 extern "C"
29863 #endif
29864 char dnet_ntoa ();
29865 int
29866 main ()
29867 {
29868 return dnet_ntoa ();
29869   ;
29870   return 0;
29871 }
29872 _ACEOF
29873 rm -f conftest.$ac_objext conftest$ac_exeext
29874 if { (ac_try="$ac_link"
29875 case "(($ac_try" in
29876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29877   *) ac_try_echo=$ac_try;;
29878 esac
29879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29880   (eval "$ac_link") 2>conftest.er1
29881   ac_status=$?
29882   grep -v '^ *+' conftest.er1 >conftest.err
29883   rm -f conftest.er1
29884   cat conftest.err >&5
29885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886   (exit $ac_status); } && {
29887          test -z "$ac_c_werror_flag" ||
29888          test ! -s conftest.err
29889        } && test -s conftest$ac_exeext &&
29890        $as_test_x conftest$ac_exeext; then
29891   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29892 else
29893   echo "$as_me: failed program was:" >&5
29894 sed 's/^/| /' conftest.$ac_ext >&5
29895
29896         ac_cv_lib_dnet_stub_dnet_ntoa=no
29897 fi
29898
29899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29900       conftest$ac_exeext conftest.$ac_ext
29901 LIBS=$ac_check_lib_save_LIBS
29902 fi
29903 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29904 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29905 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29906   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29907 fi
29908
29909     fi
29910 fi
29911
29912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29913       conftest$ac_exeext conftest.$ac_ext
29914     LIBS="$ac_xsave_LIBS"
29915
29916     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29917     # to get the SysV transport functions.
29918     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29919     # needs -lnsl.
29920     # The nsl library prevents programs from opening the X display
29921     # on Irix 5.2, according to T.E. Dickey.
29922     # The functions gethostbyname, getservbyname, and inet_addr are
29923     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29924     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29925 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29926 if test "${ac_cv_func_gethostbyname+set}" = set; then
29927   echo $ECHO_N "(cached) $ECHO_C" >&6
29928 else
29929   cat >conftest.$ac_ext <<_ACEOF
29930 /* confdefs.h.  */
29931 _ACEOF
29932 cat confdefs.h >>conftest.$ac_ext
29933 cat >>conftest.$ac_ext <<_ACEOF
29934 /* end confdefs.h.  */
29935 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29937 #define gethostbyname innocuous_gethostbyname
29938
29939 /* System header to define __stub macros and hopefully few prototypes,
29940     which can conflict with char gethostbyname (); below.
29941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29942     <limits.h> exists even on freestanding compilers.  */
29943
29944 #ifdef __STDC__
29945 # include <limits.h>
29946 #else
29947 # include <assert.h>
29948 #endif
29949
29950 #undef gethostbyname
29951
29952 /* Override any GCC internal prototype to avoid an error.
29953    Use char because int might match the return type of a GCC
29954    builtin and then its argument prototype would still apply.  */
29955 #ifdef __cplusplus
29956 extern "C"
29957 #endif
29958 char gethostbyname ();
29959 /* The GNU C library defines this for functions which it implements
29960     to always fail with ENOSYS.  Some functions are actually named
29961     something starting with __ and the normal name is an alias.  */
29962 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29963 choke me
29964 #endif
29965
29966 int
29967 main ()
29968 {
29969 return gethostbyname ();
29970   ;
29971   return 0;
29972 }
29973 _ACEOF
29974 rm -f conftest.$ac_objext conftest$ac_exeext
29975 if { (ac_try="$ac_link"
29976 case "(($ac_try" in
29977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29978   *) ac_try_echo=$ac_try;;
29979 esac
29980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29981   (eval "$ac_link") 2>conftest.er1
29982   ac_status=$?
29983   grep -v '^ *+' conftest.er1 >conftest.err
29984   rm -f conftest.er1
29985   cat conftest.err >&5
29986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987   (exit $ac_status); } && {
29988          test -z "$ac_c_werror_flag" ||
29989          test ! -s conftest.err
29990        } && test -s conftest$ac_exeext &&
29991        $as_test_x conftest$ac_exeext; then
29992   ac_cv_func_gethostbyname=yes
29993 else
29994   echo "$as_me: failed program was:" >&5
29995 sed 's/^/| /' conftest.$ac_ext >&5
29996
29997         ac_cv_func_gethostbyname=no
29998 fi
29999
30000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30001       conftest$ac_exeext conftest.$ac_ext
30002 fi
30003 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30004 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30005
30006     if test $ac_cv_func_gethostbyname = no; then
30007       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30008 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30009 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30010   echo $ECHO_N "(cached) $ECHO_C" >&6
30011 else
30012   ac_check_lib_save_LIBS=$LIBS
30013 LIBS="-lnsl  $LIBS"
30014 cat >conftest.$ac_ext <<_ACEOF
30015 /* confdefs.h.  */
30016 _ACEOF
30017 cat confdefs.h >>conftest.$ac_ext
30018 cat >>conftest.$ac_ext <<_ACEOF
30019 /* end confdefs.h.  */
30020
30021 /* Override any GCC internal prototype to avoid an error.
30022    Use char because int might match the return type of a GCC
30023    builtin and then its argument prototype would still apply.  */
30024 #ifdef __cplusplus
30025 extern "C"
30026 #endif
30027 char gethostbyname ();
30028 int
30029 main ()
30030 {
30031 return gethostbyname ();
30032   ;
30033   return 0;
30034 }
30035 _ACEOF
30036 rm -f conftest.$ac_objext conftest$ac_exeext
30037 if { (ac_try="$ac_link"
30038 case "(($ac_try" in
30039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040   *) ac_try_echo=$ac_try;;
30041 esac
30042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043   (eval "$ac_link") 2>conftest.er1
30044   ac_status=$?
30045   grep -v '^ *+' conftest.er1 >conftest.err
30046   rm -f conftest.er1
30047   cat conftest.err >&5
30048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049   (exit $ac_status); } && {
30050          test -z "$ac_c_werror_flag" ||
30051          test ! -s conftest.err
30052        } && test -s conftest$ac_exeext &&
30053        $as_test_x conftest$ac_exeext; then
30054   ac_cv_lib_nsl_gethostbyname=yes
30055 else
30056   echo "$as_me: failed program was:" >&5
30057 sed 's/^/| /' conftest.$ac_ext >&5
30058
30059         ac_cv_lib_nsl_gethostbyname=no
30060 fi
30061
30062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30063       conftest$ac_exeext conftest.$ac_ext
30064 LIBS=$ac_check_lib_save_LIBS
30065 fi
30066 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30067 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30068 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30069   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30070 fi
30071
30072       if test $ac_cv_lib_nsl_gethostbyname = no; then
30073         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30074 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30075 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30076   echo $ECHO_N "(cached) $ECHO_C" >&6
30077 else
30078   ac_check_lib_save_LIBS=$LIBS
30079 LIBS="-lbsd  $LIBS"
30080 cat >conftest.$ac_ext <<_ACEOF
30081 /* confdefs.h.  */
30082 _ACEOF
30083 cat confdefs.h >>conftest.$ac_ext
30084 cat >>conftest.$ac_ext <<_ACEOF
30085 /* end confdefs.h.  */
30086
30087 /* Override any GCC internal prototype to avoid an error.
30088    Use char because int might match the return type of a GCC
30089    builtin and then its argument prototype would still apply.  */
30090 #ifdef __cplusplus
30091 extern "C"
30092 #endif
30093 char gethostbyname ();
30094 int
30095 main ()
30096 {
30097 return gethostbyname ();
30098   ;
30099   return 0;
30100 }
30101 _ACEOF
30102 rm -f conftest.$ac_objext conftest$ac_exeext
30103 if { (ac_try="$ac_link"
30104 case "(($ac_try" in
30105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30106   *) ac_try_echo=$ac_try;;
30107 esac
30108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30109   (eval "$ac_link") 2>conftest.er1
30110   ac_status=$?
30111   grep -v '^ *+' conftest.er1 >conftest.err
30112   rm -f conftest.er1
30113   cat conftest.err >&5
30114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115   (exit $ac_status); } && {
30116          test -z "$ac_c_werror_flag" ||
30117          test ! -s conftest.err
30118        } && test -s conftest$ac_exeext &&
30119        $as_test_x conftest$ac_exeext; then
30120   ac_cv_lib_bsd_gethostbyname=yes
30121 else
30122   echo "$as_me: failed program was:" >&5
30123 sed 's/^/| /' conftest.$ac_ext >&5
30124
30125         ac_cv_lib_bsd_gethostbyname=no
30126 fi
30127
30128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30129       conftest$ac_exeext conftest.$ac_ext
30130 LIBS=$ac_check_lib_save_LIBS
30131 fi
30132 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30133 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30134 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30135   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30136 fi
30137
30138       fi
30139     fi
30140
30141     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30142     # socket/setsockopt and other routines are undefined under SCO ODT
30143     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30144     # on later versions), says Simon Leinen: it contains gethostby*
30145     # variants that don't use the name server (or something).  -lsocket
30146     # must be given before -lnsl if both are needed.  We assume that
30147     # if connect needs -lnsl, so does gethostbyname.
30148     { echo "$as_me:$LINENO: checking for connect" >&5
30149 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30150 if test "${ac_cv_func_connect+set}" = set; then
30151   echo $ECHO_N "(cached) $ECHO_C" >&6
30152 else
30153   cat >conftest.$ac_ext <<_ACEOF
30154 /* confdefs.h.  */
30155 _ACEOF
30156 cat confdefs.h >>conftest.$ac_ext
30157 cat >>conftest.$ac_ext <<_ACEOF
30158 /* end confdefs.h.  */
30159 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30161 #define connect innocuous_connect
30162
30163 /* System header to define __stub macros and hopefully few prototypes,
30164     which can conflict with char connect (); below.
30165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30166     <limits.h> exists even on freestanding compilers.  */
30167
30168 #ifdef __STDC__
30169 # include <limits.h>
30170 #else
30171 # include <assert.h>
30172 #endif
30173
30174 #undef connect
30175
30176 /* Override any GCC internal prototype to avoid an error.
30177    Use char because int might match the return type of a GCC
30178    builtin and then its argument prototype would still apply.  */
30179 #ifdef __cplusplus
30180 extern "C"
30181 #endif
30182 char connect ();
30183 /* The GNU C library defines this for functions which it implements
30184     to always fail with ENOSYS.  Some functions are actually named
30185     something starting with __ and the normal name is an alias.  */
30186 #if defined __stub_connect || defined __stub___connect
30187 choke me
30188 #endif
30189
30190 int
30191 main ()
30192 {
30193 return connect ();
30194   ;
30195   return 0;
30196 }
30197 _ACEOF
30198 rm -f conftest.$ac_objext conftest$ac_exeext
30199 if { (ac_try="$ac_link"
30200 case "(($ac_try" in
30201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30202   *) ac_try_echo=$ac_try;;
30203 esac
30204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30205   (eval "$ac_link") 2>conftest.er1
30206   ac_status=$?
30207   grep -v '^ *+' conftest.er1 >conftest.err
30208   rm -f conftest.er1
30209   cat conftest.err >&5
30210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211   (exit $ac_status); } && {
30212          test -z "$ac_c_werror_flag" ||
30213          test ! -s conftest.err
30214        } && test -s conftest$ac_exeext &&
30215        $as_test_x conftest$ac_exeext; then
30216   ac_cv_func_connect=yes
30217 else
30218   echo "$as_me: failed program was:" >&5
30219 sed 's/^/| /' conftest.$ac_ext >&5
30220
30221         ac_cv_func_connect=no
30222 fi
30223
30224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30225       conftest$ac_exeext conftest.$ac_ext
30226 fi
30227 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30228 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30229
30230     if test $ac_cv_func_connect = no; then
30231       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30232 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30233 if test "${ac_cv_lib_socket_connect+set}" = set; then
30234   echo $ECHO_N "(cached) $ECHO_C" >&6
30235 else
30236   ac_check_lib_save_LIBS=$LIBS
30237 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30238 cat >conftest.$ac_ext <<_ACEOF
30239 /* confdefs.h.  */
30240 _ACEOF
30241 cat confdefs.h >>conftest.$ac_ext
30242 cat >>conftest.$ac_ext <<_ACEOF
30243 /* end confdefs.h.  */
30244
30245 /* Override any GCC internal prototype to avoid an error.
30246    Use char because int might match the return type of a GCC
30247    builtin and then its argument prototype would still apply.  */
30248 #ifdef __cplusplus
30249 extern "C"
30250 #endif
30251 char connect ();
30252 int
30253 main ()
30254 {
30255 return connect ();
30256   ;
30257   return 0;
30258 }
30259 _ACEOF
30260 rm -f conftest.$ac_objext conftest$ac_exeext
30261 if { (ac_try="$ac_link"
30262 case "(($ac_try" in
30263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30264   *) ac_try_echo=$ac_try;;
30265 esac
30266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30267   (eval "$ac_link") 2>conftest.er1
30268   ac_status=$?
30269   grep -v '^ *+' conftest.er1 >conftest.err
30270   rm -f conftest.er1
30271   cat conftest.err >&5
30272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273   (exit $ac_status); } && {
30274          test -z "$ac_c_werror_flag" ||
30275          test ! -s conftest.err
30276        } && test -s conftest$ac_exeext &&
30277        $as_test_x conftest$ac_exeext; then
30278   ac_cv_lib_socket_connect=yes
30279 else
30280   echo "$as_me: failed program was:" >&5
30281 sed 's/^/| /' conftest.$ac_ext >&5
30282
30283         ac_cv_lib_socket_connect=no
30284 fi
30285
30286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30287       conftest$ac_exeext conftest.$ac_ext
30288 LIBS=$ac_check_lib_save_LIBS
30289 fi
30290 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30291 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30292 if test $ac_cv_lib_socket_connect = yes; then
30293   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30294 fi
30295
30296     fi
30297
30298     # Guillermo Gomez says -lposix is necessary on A/UX.
30299     { echo "$as_me:$LINENO: checking for remove" >&5
30300 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30301 if test "${ac_cv_func_remove+set}" = set; then
30302   echo $ECHO_N "(cached) $ECHO_C" >&6
30303 else
30304   cat >conftest.$ac_ext <<_ACEOF
30305 /* confdefs.h.  */
30306 _ACEOF
30307 cat confdefs.h >>conftest.$ac_ext
30308 cat >>conftest.$ac_ext <<_ACEOF
30309 /* end confdefs.h.  */
30310 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30312 #define remove innocuous_remove
30313
30314 /* System header to define __stub macros and hopefully few prototypes,
30315     which can conflict with char remove (); below.
30316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30317     <limits.h> exists even on freestanding compilers.  */
30318
30319 #ifdef __STDC__
30320 # include <limits.h>
30321 #else
30322 # include <assert.h>
30323 #endif
30324
30325 #undef remove
30326
30327 /* Override any GCC internal prototype to avoid an error.
30328    Use char because int might match the return type of a GCC
30329    builtin and then its argument prototype would still apply.  */
30330 #ifdef __cplusplus
30331 extern "C"
30332 #endif
30333 char remove ();
30334 /* The GNU C library defines this for functions which it implements
30335     to always fail with ENOSYS.  Some functions are actually named
30336     something starting with __ and the normal name is an alias.  */
30337 #if defined __stub_remove || defined __stub___remove
30338 choke me
30339 #endif
30340
30341 int
30342 main ()
30343 {
30344 return remove ();
30345   ;
30346   return 0;
30347 }
30348 _ACEOF
30349 rm -f conftest.$ac_objext conftest$ac_exeext
30350 if { (ac_try="$ac_link"
30351 case "(($ac_try" in
30352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30353   *) ac_try_echo=$ac_try;;
30354 esac
30355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30356   (eval "$ac_link") 2>conftest.er1
30357   ac_status=$?
30358   grep -v '^ *+' conftest.er1 >conftest.err
30359   rm -f conftest.er1
30360   cat conftest.err >&5
30361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30362   (exit $ac_status); } && {
30363          test -z "$ac_c_werror_flag" ||
30364          test ! -s conftest.err
30365        } && test -s conftest$ac_exeext &&
30366        $as_test_x conftest$ac_exeext; then
30367   ac_cv_func_remove=yes
30368 else
30369   echo "$as_me: failed program was:" >&5
30370 sed 's/^/| /' conftest.$ac_ext >&5
30371
30372         ac_cv_func_remove=no
30373 fi
30374
30375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30376       conftest$ac_exeext conftest.$ac_ext
30377 fi
30378 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30379 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30380
30381     if test $ac_cv_func_remove = no; then
30382       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30383 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30384 if test "${ac_cv_lib_posix_remove+set}" = set; then
30385   echo $ECHO_N "(cached) $ECHO_C" >&6
30386 else
30387   ac_check_lib_save_LIBS=$LIBS
30388 LIBS="-lposix  $LIBS"
30389 cat >conftest.$ac_ext <<_ACEOF
30390 /* confdefs.h.  */
30391 _ACEOF
30392 cat confdefs.h >>conftest.$ac_ext
30393 cat >>conftest.$ac_ext <<_ACEOF
30394 /* end confdefs.h.  */
30395
30396 /* Override any GCC internal prototype to avoid an error.
30397    Use char because int might match the return type of a GCC
30398    builtin and then its argument prototype would still apply.  */
30399 #ifdef __cplusplus
30400 extern "C"
30401 #endif
30402 char remove ();
30403 int
30404 main ()
30405 {
30406 return remove ();
30407   ;
30408   return 0;
30409 }
30410 _ACEOF
30411 rm -f conftest.$ac_objext conftest$ac_exeext
30412 if { (ac_try="$ac_link"
30413 case "(($ac_try" in
30414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30415   *) ac_try_echo=$ac_try;;
30416 esac
30417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30418   (eval "$ac_link") 2>conftest.er1
30419   ac_status=$?
30420   grep -v '^ *+' conftest.er1 >conftest.err
30421   rm -f conftest.er1
30422   cat conftest.err >&5
30423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424   (exit $ac_status); } && {
30425          test -z "$ac_c_werror_flag" ||
30426          test ! -s conftest.err
30427        } && test -s conftest$ac_exeext &&
30428        $as_test_x conftest$ac_exeext; then
30429   ac_cv_lib_posix_remove=yes
30430 else
30431   echo "$as_me: failed program was:" >&5
30432 sed 's/^/| /' conftest.$ac_ext >&5
30433
30434         ac_cv_lib_posix_remove=no
30435 fi
30436
30437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30438       conftest$ac_exeext conftest.$ac_ext
30439 LIBS=$ac_check_lib_save_LIBS
30440 fi
30441 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30442 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30443 if test $ac_cv_lib_posix_remove = yes; then
30444   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30445 fi
30446
30447     fi
30448
30449     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30450     { echo "$as_me:$LINENO: checking for shmat" >&5
30451 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30452 if test "${ac_cv_func_shmat+set}" = set; then
30453   echo $ECHO_N "(cached) $ECHO_C" >&6
30454 else
30455   cat >conftest.$ac_ext <<_ACEOF
30456 /* confdefs.h.  */
30457 _ACEOF
30458 cat confdefs.h >>conftest.$ac_ext
30459 cat >>conftest.$ac_ext <<_ACEOF
30460 /* end confdefs.h.  */
30461 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30463 #define shmat innocuous_shmat
30464
30465 /* System header to define __stub macros and hopefully few prototypes,
30466     which can conflict with char shmat (); below.
30467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30468     <limits.h> exists even on freestanding compilers.  */
30469
30470 #ifdef __STDC__
30471 # include <limits.h>
30472 #else
30473 # include <assert.h>
30474 #endif
30475
30476 #undef shmat
30477
30478 /* Override any GCC internal prototype to avoid an error.
30479    Use char because int might match the return type of a GCC
30480    builtin and then its argument prototype would still apply.  */
30481 #ifdef __cplusplus
30482 extern "C"
30483 #endif
30484 char shmat ();
30485 /* The GNU C library defines this for functions which it implements
30486     to always fail with ENOSYS.  Some functions are actually named
30487     something starting with __ and the normal name is an alias.  */
30488 #if defined __stub_shmat || defined __stub___shmat
30489 choke me
30490 #endif
30491
30492 int
30493 main ()
30494 {
30495 return shmat ();
30496   ;
30497   return 0;
30498 }
30499 _ACEOF
30500 rm -f conftest.$ac_objext conftest$ac_exeext
30501 if { (ac_try="$ac_link"
30502 case "(($ac_try" in
30503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30504   *) ac_try_echo=$ac_try;;
30505 esac
30506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30507   (eval "$ac_link") 2>conftest.er1
30508   ac_status=$?
30509   grep -v '^ *+' conftest.er1 >conftest.err
30510   rm -f conftest.er1
30511   cat conftest.err >&5
30512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30513   (exit $ac_status); } && {
30514          test -z "$ac_c_werror_flag" ||
30515          test ! -s conftest.err
30516        } && test -s conftest$ac_exeext &&
30517        $as_test_x conftest$ac_exeext; then
30518   ac_cv_func_shmat=yes
30519 else
30520   echo "$as_me: failed program was:" >&5
30521 sed 's/^/| /' conftest.$ac_ext >&5
30522
30523         ac_cv_func_shmat=no
30524 fi
30525
30526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30527       conftest$ac_exeext conftest.$ac_ext
30528 fi
30529 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30530 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30531
30532     if test $ac_cv_func_shmat = no; then
30533       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30534 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30535 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30536   echo $ECHO_N "(cached) $ECHO_C" >&6
30537 else
30538   ac_check_lib_save_LIBS=$LIBS
30539 LIBS="-lipc  $LIBS"
30540 cat >conftest.$ac_ext <<_ACEOF
30541 /* confdefs.h.  */
30542 _ACEOF
30543 cat confdefs.h >>conftest.$ac_ext
30544 cat >>conftest.$ac_ext <<_ACEOF
30545 /* end confdefs.h.  */
30546
30547 /* Override any GCC internal prototype to avoid an error.
30548    Use char because int might match the return type of a GCC
30549    builtin and then its argument prototype would still apply.  */
30550 #ifdef __cplusplus
30551 extern "C"
30552 #endif
30553 char shmat ();
30554 int
30555 main ()
30556 {
30557 return shmat ();
30558   ;
30559   return 0;
30560 }
30561 _ACEOF
30562 rm -f conftest.$ac_objext conftest$ac_exeext
30563 if { (ac_try="$ac_link"
30564 case "(($ac_try" in
30565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30566   *) ac_try_echo=$ac_try;;
30567 esac
30568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30569   (eval "$ac_link") 2>conftest.er1
30570   ac_status=$?
30571   grep -v '^ *+' conftest.er1 >conftest.err
30572   rm -f conftest.er1
30573   cat conftest.err >&5
30574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575   (exit $ac_status); } && {
30576          test -z "$ac_c_werror_flag" ||
30577          test ! -s conftest.err
30578        } && test -s conftest$ac_exeext &&
30579        $as_test_x conftest$ac_exeext; then
30580   ac_cv_lib_ipc_shmat=yes
30581 else
30582   echo "$as_me: failed program was:" >&5
30583 sed 's/^/| /' conftest.$ac_ext >&5
30584
30585         ac_cv_lib_ipc_shmat=no
30586 fi
30587
30588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30589       conftest$ac_exeext conftest.$ac_ext
30590 LIBS=$ac_check_lib_save_LIBS
30591 fi
30592 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30593 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30594 if test $ac_cv_lib_ipc_shmat = yes; then
30595   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30596 fi
30597
30598     fi
30599   fi
30600
30601   # Check for libraries that X11R6 Xt/Xaw programs need.
30602   ac_save_LDFLAGS=$LDFLAGS
30603   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30604   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30605   # check for ICE first), but we must link in the order -lSM -lICE or
30606   # we get undefined symbols.  So assume we have SM if we have ICE.
30607   # These have to be linked with before -lX11, unlike the other
30608   # libraries we check for below, so use a different variable.
30609   # John Interrante, Karl Berry
30610   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30611 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30612 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30613   echo $ECHO_N "(cached) $ECHO_C" >&6
30614 else
30615   ac_check_lib_save_LIBS=$LIBS
30616 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30617 cat >conftest.$ac_ext <<_ACEOF
30618 /* confdefs.h.  */
30619 _ACEOF
30620 cat confdefs.h >>conftest.$ac_ext
30621 cat >>conftest.$ac_ext <<_ACEOF
30622 /* end confdefs.h.  */
30623
30624 /* Override any GCC internal prototype to avoid an error.
30625    Use char because int might match the return type of a GCC
30626    builtin and then its argument prototype would still apply.  */
30627 #ifdef __cplusplus
30628 extern "C"
30629 #endif
30630 char IceConnectionNumber ();
30631 int
30632 main ()
30633 {
30634 return IceConnectionNumber ();
30635   ;
30636   return 0;
30637 }
30638 _ACEOF
30639 rm -f conftest.$ac_objext conftest$ac_exeext
30640 if { (ac_try="$ac_link"
30641 case "(($ac_try" in
30642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30643   *) ac_try_echo=$ac_try;;
30644 esac
30645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30646   (eval "$ac_link") 2>conftest.er1
30647   ac_status=$?
30648   grep -v '^ *+' conftest.er1 >conftest.err
30649   rm -f conftest.er1
30650   cat conftest.err >&5
30651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652   (exit $ac_status); } && {
30653          test -z "$ac_c_werror_flag" ||
30654          test ! -s conftest.err
30655        } && test -s conftest$ac_exeext &&
30656        $as_test_x conftest$ac_exeext; then
30657   ac_cv_lib_ICE_IceConnectionNumber=yes
30658 else
30659   echo "$as_me: failed program was:" >&5
30660 sed 's/^/| /' conftest.$ac_ext >&5
30661
30662         ac_cv_lib_ICE_IceConnectionNumber=no
30663 fi
30664
30665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30666       conftest$ac_exeext conftest.$ac_ext
30667 LIBS=$ac_check_lib_save_LIBS
30668 fi
30669 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30670 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30671 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30672   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30673 fi
30674
30675   LDFLAGS=$ac_save_LDFLAGS
30676
30677 fi
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705
30706
30707
30708
30709 for ac_header in \
30710    assert.h \
30711    fcntl.h \
30712    grp.h \
30713    pwd.h \
30714    libc.h \
30715    limits.h \
30716    stdarg.h \
30717    stdlib.h \
30718    stdint.h \
30719    string.h \
30720    strings.h \
30721    termios.h \
30722    termcap.h \
30723    term.h \
30724    unistd.h \
30725    sys/bitypes.h \
30726    sys/byteorder.h \
30727    sys/ioctl.h \
30728    sys/select.h \
30729    sys/socket.h \
30730    sys/sockio.h \
30731    sys/stat.h \
30732    sys/time.h \
30733    sys/types.h \
30734    arpa/nameser.h \
30735    mtio.h \
30736    sys/mtio.h \
30737    sys/tape.h \
30738    regex.h \
30739
30740 do
30741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30743   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30746   echo $ECHO_N "(cached) $ECHO_C" >&6
30747 fi
30748 ac_res=`eval echo '${'$as_ac_Header'}'`
30749                { echo "$as_me:$LINENO: result: $ac_res" >&5
30750 echo "${ECHO_T}$ac_res" >&6; }
30751 else
30752   # Is the header compilable?
30753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30755 cat >conftest.$ac_ext <<_ACEOF
30756 /* confdefs.h.  */
30757 _ACEOF
30758 cat confdefs.h >>conftest.$ac_ext
30759 cat >>conftest.$ac_ext <<_ACEOF
30760 /* end confdefs.h.  */
30761 $ac_includes_default
30762 #include <$ac_header>
30763 _ACEOF
30764 rm -f conftest.$ac_objext
30765 if { (ac_try="$ac_compile"
30766 case "(($ac_try" in
30767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30768   *) ac_try_echo=$ac_try;;
30769 esac
30770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30771   (eval "$ac_compile") 2>conftest.er1
30772   ac_status=$?
30773   grep -v '^ *+' conftest.er1 >conftest.err
30774   rm -f conftest.er1
30775   cat conftest.err >&5
30776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777   (exit $ac_status); } && {
30778          test -z "$ac_c_werror_flag" ||
30779          test ! -s conftest.err
30780        } && test -s conftest.$ac_objext; then
30781   ac_header_compiler=yes
30782 else
30783   echo "$as_me: failed program was:" >&5
30784 sed 's/^/| /' conftest.$ac_ext >&5
30785
30786         ac_header_compiler=no
30787 fi
30788
30789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30791 echo "${ECHO_T}$ac_header_compiler" >&6; }
30792
30793 # Is the header present?
30794 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30796 cat >conftest.$ac_ext <<_ACEOF
30797 /* confdefs.h.  */
30798 _ACEOF
30799 cat confdefs.h >>conftest.$ac_ext
30800 cat >>conftest.$ac_ext <<_ACEOF
30801 /* end confdefs.h.  */
30802 #include <$ac_header>
30803 _ACEOF
30804 if { (ac_try="$ac_cpp conftest.$ac_ext"
30805 case "(($ac_try" in
30806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807   *) ac_try_echo=$ac_try;;
30808 esac
30809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30810   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30811   ac_status=$?
30812   grep -v '^ *+' conftest.er1 >conftest.err
30813   rm -f conftest.er1
30814   cat conftest.err >&5
30815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816   (exit $ac_status); } >/dev/null && {
30817          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30818          test ! -s conftest.err
30819        }; then
30820   ac_header_preproc=yes
30821 else
30822   echo "$as_me: failed program was:" >&5
30823 sed 's/^/| /' conftest.$ac_ext >&5
30824
30825   ac_header_preproc=no
30826 fi
30827
30828 rm -f conftest.err conftest.$ac_ext
30829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30830 echo "${ECHO_T}$ac_header_preproc" >&6; }
30831
30832 # So?  What about this header?
30833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30834   yes:no: )
30835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30839     ac_header_preproc=yes
30840     ;;
30841   no:yes:* )
30842     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30844     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30845 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30846     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30848     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30849 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30852     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30854
30855     ;;
30856 esac
30857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30860   echo $ECHO_N "(cached) $ECHO_C" >&6
30861 else
30862   eval "$as_ac_Header=\$ac_header_preproc"
30863 fi
30864 ac_res=`eval echo '${'$as_ac_Header'}'`
30865                { echo "$as_me:$LINENO: result: $ac_res" >&5
30866 echo "${ECHO_T}$ac_res" >&6; }
30867
30868 fi
30869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30870   cat >>confdefs.h <<_ACEOF
30871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30872 _ACEOF
30873
30874 fi
30875
30876 done
30877
30878 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30879 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30880 if test "${ac_cv_header_stdc+set}" = set; then
30881   echo $ECHO_N "(cached) $ECHO_C" >&6
30882 else
30883   cat >conftest.$ac_ext <<_ACEOF
30884 /* confdefs.h.  */
30885 _ACEOF
30886 cat confdefs.h >>conftest.$ac_ext
30887 cat >>conftest.$ac_ext <<_ACEOF
30888 /* end confdefs.h.  */
30889 #include <stdlib.h>
30890 #include <stdarg.h>
30891 #include <string.h>
30892 #include <float.h>
30893
30894 int
30895 main ()
30896 {
30897
30898   ;
30899   return 0;
30900 }
30901 _ACEOF
30902 rm -f conftest.$ac_objext
30903 if { (ac_try="$ac_compile"
30904 case "(($ac_try" in
30905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30906   *) ac_try_echo=$ac_try;;
30907 esac
30908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30909   (eval "$ac_compile") 2>conftest.er1
30910   ac_status=$?
30911   grep -v '^ *+' conftest.er1 >conftest.err
30912   rm -f conftest.er1
30913   cat conftest.err >&5
30914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30915   (exit $ac_status); } && {
30916          test -z "$ac_c_werror_flag" ||
30917          test ! -s conftest.err
30918        } && test -s conftest.$ac_objext; then
30919   ac_cv_header_stdc=yes
30920 else
30921   echo "$as_me: failed program was:" >&5
30922 sed 's/^/| /' conftest.$ac_ext >&5
30923
30924         ac_cv_header_stdc=no
30925 fi
30926
30927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30928
30929 if test $ac_cv_header_stdc = yes; then
30930   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30931   cat >conftest.$ac_ext <<_ACEOF
30932 /* confdefs.h.  */
30933 _ACEOF
30934 cat confdefs.h >>conftest.$ac_ext
30935 cat >>conftest.$ac_ext <<_ACEOF
30936 /* end confdefs.h.  */
30937 #include <string.h>
30938
30939 _ACEOF
30940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30941   $EGREP "memchr" >/dev/null 2>&1; then
30942   :
30943 else
30944   ac_cv_header_stdc=no
30945 fi
30946 rm -f conftest*
30947
30948 fi
30949
30950 if test $ac_cv_header_stdc = yes; then
30951   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30952   cat >conftest.$ac_ext <<_ACEOF
30953 /* confdefs.h.  */
30954 _ACEOF
30955 cat confdefs.h >>conftest.$ac_ext
30956 cat >>conftest.$ac_ext <<_ACEOF
30957 /* end confdefs.h.  */
30958 #include <stdlib.h>
30959
30960 _ACEOF
30961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30962   $EGREP "free" >/dev/null 2>&1; then
30963   :
30964 else
30965   ac_cv_header_stdc=no
30966 fi
30967 rm -f conftest*
30968
30969 fi
30970
30971 if test $ac_cv_header_stdc = yes; then
30972   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30973   if test "$cross_compiling" = yes; then
30974   :
30975 else
30976   cat >conftest.$ac_ext <<_ACEOF
30977 /* confdefs.h.  */
30978 _ACEOF
30979 cat confdefs.h >>conftest.$ac_ext
30980 cat >>conftest.$ac_ext <<_ACEOF
30981 /* end confdefs.h.  */
30982 #include <ctype.h>
30983 #include <stdlib.h>
30984 #if ((' ' & 0x0FF) == 0x020)
30985 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30986 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30987 #else
30988 # define ISLOWER(c) \
30989                    (('a' <= (c) && (c) <= 'i') \
30990                      || ('j' <= (c) && (c) <= 'r') \
30991                      || ('s' <= (c) && (c) <= 'z'))
30992 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30993 #endif
30994
30995 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30996 int
30997 main ()
30998 {
30999   int i;
31000   for (i = 0; i < 256; i++)
31001     if (XOR (islower (i), ISLOWER (i))
31002         || toupper (i) != TOUPPER (i))
31003       return 2;
31004   return 0;
31005 }
31006 _ACEOF
31007 rm -f conftest$ac_exeext
31008 if { (ac_try="$ac_link"
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_link") 2>&5
31015   ac_status=$?
31016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31018   { (case "(($ac_try" in
31019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31020   *) ac_try_echo=$ac_try;;
31021 esac
31022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31023   (eval "$ac_try") 2>&5
31024   ac_status=$?
31025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31026   (exit $ac_status); }; }; then
31027   :
31028 else
31029   echo "$as_me: program exited with status $ac_status" >&5
31030 echo "$as_me: failed program was:" >&5
31031 sed 's/^/| /' conftest.$ac_ext >&5
31032
31033 ( exit $ac_status )
31034 ac_cv_header_stdc=no
31035 fi
31036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31037 fi
31038
31039
31040 fi
31041 fi
31042 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31043 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31044 if test $ac_cv_header_stdc = yes; then
31045
31046 cat >>confdefs.h <<\_ACEOF
31047 #define STDC_HEADERS 1
31048 _ACEOF
31049
31050 fi
31051
31052 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31053 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31054 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31055   echo $ECHO_N "(cached) $ECHO_C" >&6
31056 else
31057   cat >conftest.$ac_ext <<_ACEOF
31058 /* confdefs.h.  */
31059 _ACEOF
31060 cat confdefs.h >>conftest.$ac_ext
31061 cat >>conftest.$ac_ext <<_ACEOF
31062 /* end confdefs.h.  */
31063 #include <sys/types.h>
31064 int
31065 main ()
31066 {
31067 return makedev(0, 0);
31068   ;
31069   return 0;
31070 }
31071 _ACEOF
31072 rm -f conftest.$ac_objext conftest$ac_exeext
31073 if { (ac_try="$ac_link"
31074 case "(($ac_try" in
31075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076   *) ac_try_echo=$ac_try;;
31077 esac
31078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079   (eval "$ac_link") 2>conftest.er1
31080   ac_status=$?
31081   grep -v '^ *+' conftest.er1 >conftest.err
31082   rm -f conftest.er1
31083   cat conftest.err >&5
31084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085   (exit $ac_status); } && {
31086          test -z "$ac_c_werror_flag" ||
31087          test ! -s conftest.err
31088        } && test -s conftest$ac_exeext &&
31089        $as_test_x conftest$ac_exeext; then
31090   ac_cv_header_sys_types_h_makedev=yes
31091 else
31092   echo "$as_me: failed program was:" >&5
31093 sed 's/^/| /' conftest.$ac_ext >&5
31094
31095         ac_cv_header_sys_types_h_makedev=no
31096 fi
31097
31098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31099       conftest$ac_exeext conftest.$ac_ext
31100
31101 fi
31102 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31103 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31104
31105 if test $ac_cv_header_sys_types_h_makedev = no; then
31106 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31107   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31108 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31109 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31110   echo $ECHO_N "(cached) $ECHO_C" >&6
31111 fi
31112 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31113 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31114 else
31115   # Is the header compilable?
31116 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31117 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31118 cat >conftest.$ac_ext <<_ACEOF
31119 /* confdefs.h.  */
31120 _ACEOF
31121 cat confdefs.h >>conftest.$ac_ext
31122 cat >>conftest.$ac_ext <<_ACEOF
31123 /* end confdefs.h.  */
31124 $ac_includes_default
31125 #include <sys/mkdev.h>
31126 _ACEOF
31127 rm -f conftest.$ac_objext
31128 if { (ac_try="$ac_compile"
31129 case "(($ac_try" in
31130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31131   *) ac_try_echo=$ac_try;;
31132 esac
31133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31134   (eval "$ac_compile") 2>conftest.er1
31135   ac_status=$?
31136   grep -v '^ *+' conftest.er1 >conftest.err
31137   rm -f conftest.er1
31138   cat conftest.err >&5
31139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140   (exit $ac_status); } && {
31141          test -z "$ac_c_werror_flag" ||
31142          test ! -s conftest.err
31143        } && test -s conftest.$ac_objext; then
31144   ac_header_compiler=yes
31145 else
31146   echo "$as_me: failed program was:" >&5
31147 sed 's/^/| /' conftest.$ac_ext >&5
31148
31149         ac_header_compiler=no
31150 fi
31151
31152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31154 echo "${ECHO_T}$ac_header_compiler" >&6; }
31155
31156 # Is the header present?
31157 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31158 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31159 cat >conftest.$ac_ext <<_ACEOF
31160 /* confdefs.h.  */
31161 _ACEOF
31162 cat confdefs.h >>conftest.$ac_ext
31163 cat >>conftest.$ac_ext <<_ACEOF
31164 /* end confdefs.h.  */
31165 #include <sys/mkdev.h>
31166 _ACEOF
31167 if { (ac_try="$ac_cpp conftest.$ac_ext"
31168 case "(($ac_try" in
31169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31170   *) ac_try_echo=$ac_try;;
31171 esac
31172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31173   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31174   ac_status=$?
31175   grep -v '^ *+' conftest.er1 >conftest.err
31176   rm -f conftest.er1
31177   cat conftest.err >&5
31178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31179   (exit $ac_status); } >/dev/null && {
31180          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31181          test ! -s conftest.err
31182        }; then
31183   ac_header_preproc=yes
31184 else
31185   echo "$as_me: failed program was:" >&5
31186 sed 's/^/| /' conftest.$ac_ext >&5
31187
31188   ac_header_preproc=no
31189 fi
31190
31191 rm -f conftest.err conftest.$ac_ext
31192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31193 echo "${ECHO_T}$ac_header_preproc" >&6; }
31194
31195 # So?  What about this header?
31196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31197   yes:no: )
31198     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31199 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31200     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31201 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31202     ac_header_preproc=yes
31203     ;;
31204   no:yes:* )
31205     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31206 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31207     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31208 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31209     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31210 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31211     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31212 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31213     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31214 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31215     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31216 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31217
31218     ;;
31219 esac
31220 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31221 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31222 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31223   echo $ECHO_N "(cached) $ECHO_C" >&6
31224 else
31225   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31226 fi
31227 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31228 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31229
31230 fi
31231 if test $ac_cv_header_sys_mkdev_h = yes; then
31232
31233 cat >>confdefs.h <<\_ACEOF
31234 #define MAJOR_IN_MKDEV 1
31235 _ACEOF
31236
31237 fi
31238
31239
31240
31241   if test $ac_cv_header_sys_mkdev_h = no; then
31242     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31243   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31244 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31245 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31246   echo $ECHO_N "(cached) $ECHO_C" >&6
31247 fi
31248 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31249 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31250 else
31251   # Is the header compilable?
31252 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31253 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31254 cat >conftest.$ac_ext <<_ACEOF
31255 /* confdefs.h.  */
31256 _ACEOF
31257 cat confdefs.h >>conftest.$ac_ext
31258 cat >>conftest.$ac_ext <<_ACEOF
31259 /* end confdefs.h.  */
31260 $ac_includes_default
31261 #include <sys/sysmacros.h>
31262 _ACEOF
31263 rm -f conftest.$ac_objext
31264 if { (ac_try="$ac_compile"
31265 case "(($ac_try" in
31266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31267   *) ac_try_echo=$ac_try;;
31268 esac
31269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31270   (eval "$ac_compile") 2>conftest.er1
31271   ac_status=$?
31272   grep -v '^ *+' conftest.er1 >conftest.err
31273   rm -f conftest.er1
31274   cat conftest.err >&5
31275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276   (exit $ac_status); } && {
31277          test -z "$ac_c_werror_flag" ||
31278          test ! -s conftest.err
31279        } && test -s conftest.$ac_objext; then
31280   ac_header_compiler=yes
31281 else
31282   echo "$as_me: failed program was:" >&5
31283 sed 's/^/| /' conftest.$ac_ext >&5
31284
31285         ac_header_compiler=no
31286 fi
31287
31288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31290 echo "${ECHO_T}$ac_header_compiler" >&6; }
31291
31292 # Is the header present?
31293 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31294 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31295 cat >conftest.$ac_ext <<_ACEOF
31296 /* confdefs.h.  */
31297 _ACEOF
31298 cat confdefs.h >>conftest.$ac_ext
31299 cat >>conftest.$ac_ext <<_ACEOF
31300 /* end confdefs.h.  */
31301 #include <sys/sysmacros.h>
31302 _ACEOF
31303 if { (ac_try="$ac_cpp conftest.$ac_ext"
31304 case "(($ac_try" in
31305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31306   *) ac_try_echo=$ac_try;;
31307 esac
31308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31309   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31310   ac_status=$?
31311   grep -v '^ *+' conftest.er1 >conftest.err
31312   rm -f conftest.er1
31313   cat conftest.err >&5
31314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315   (exit $ac_status); } >/dev/null && {
31316          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31317          test ! -s conftest.err
31318        }; then
31319   ac_header_preproc=yes
31320 else
31321   echo "$as_me: failed program was:" >&5
31322 sed 's/^/| /' conftest.$ac_ext >&5
31323
31324   ac_header_preproc=no
31325 fi
31326
31327 rm -f conftest.err conftest.$ac_ext
31328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31329 echo "${ECHO_T}$ac_header_preproc" >&6; }
31330
31331 # So?  What about this header?
31332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31333   yes:no: )
31334     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31335 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31336     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31337 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31338     ac_header_preproc=yes
31339     ;;
31340   no:yes:* )
31341     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31342 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31343     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31344 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31345     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31346 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31347     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31348 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31349     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31350 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31351     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31352 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31353
31354     ;;
31355 esac
31356 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31357 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31358 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31359   echo $ECHO_N "(cached) $ECHO_C" >&6
31360 else
31361   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31362 fi
31363 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31364 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31365
31366 fi
31367 if test $ac_cv_header_sys_sysmacros_h = yes; then
31368
31369 cat >>confdefs.h <<\_ACEOF
31370 #define MAJOR_IN_SYSMACROS 1
31371 _ACEOF
31372
31373 fi
31374
31375
31376   fi
31377 fi
31378
31379
31380
31381
31382
31383
31384 ac_header_dirent=no
31385 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31386   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31387 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31388 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31390   echo $ECHO_N "(cached) $ECHO_C" >&6
31391 else
31392   cat >conftest.$ac_ext <<_ACEOF
31393 /* confdefs.h.  */
31394 _ACEOF
31395 cat confdefs.h >>conftest.$ac_ext
31396 cat >>conftest.$ac_ext <<_ACEOF
31397 /* end confdefs.h.  */
31398 #include <sys/types.h>
31399 #include <$ac_hdr>
31400
31401 int
31402 main ()
31403 {
31404 if ((DIR *) 0)
31405 return 0;
31406   ;
31407   return 0;
31408 }
31409 _ACEOF
31410 rm -f conftest.$ac_objext
31411 if { (ac_try="$ac_compile"
31412 case "(($ac_try" in
31413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31414   *) ac_try_echo=$ac_try;;
31415 esac
31416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31417   (eval "$ac_compile") 2>conftest.er1
31418   ac_status=$?
31419   grep -v '^ *+' conftest.er1 >conftest.err
31420   rm -f conftest.er1
31421   cat conftest.err >&5
31422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423   (exit $ac_status); } && {
31424          test -z "$ac_c_werror_flag" ||
31425          test ! -s conftest.err
31426        } && test -s conftest.$ac_objext; then
31427   eval "$as_ac_Header=yes"
31428 else
31429   echo "$as_me: failed program was:" >&5
31430 sed 's/^/| /' conftest.$ac_ext >&5
31431
31432         eval "$as_ac_Header=no"
31433 fi
31434
31435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31436 fi
31437 ac_res=`eval echo '${'$as_ac_Header'}'`
31438                { echo "$as_me:$LINENO: result: $ac_res" >&5
31439 echo "${ECHO_T}$ac_res" >&6; }
31440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31441   cat >>confdefs.h <<_ACEOF
31442 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31443 _ACEOF
31444
31445 ac_header_dirent=$ac_hdr; break
31446 fi
31447
31448 done
31449 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31450 if test $ac_header_dirent = dirent.h; then
31451   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31452 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31453 if test "${ac_cv_search_opendir+set}" = set; then
31454   echo $ECHO_N "(cached) $ECHO_C" >&6
31455 else
31456   ac_func_search_save_LIBS=$LIBS
31457 cat >conftest.$ac_ext <<_ACEOF
31458 /* confdefs.h.  */
31459 _ACEOF
31460 cat confdefs.h >>conftest.$ac_ext
31461 cat >>conftest.$ac_ext <<_ACEOF
31462 /* end confdefs.h.  */
31463
31464 /* Override any GCC internal prototype to avoid an error.
31465    Use char because int might match the return type of a GCC
31466    builtin and then its argument prototype would still apply.  */
31467 #ifdef __cplusplus
31468 extern "C"
31469 #endif
31470 char opendir ();
31471 int
31472 main ()
31473 {
31474 return opendir ();
31475   ;
31476   return 0;
31477 }
31478 _ACEOF
31479 for ac_lib in '' dir; do
31480   if test -z "$ac_lib"; then
31481     ac_res="none required"
31482   else
31483     ac_res=-l$ac_lib
31484     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31485   fi
31486   rm -f conftest.$ac_objext conftest$ac_exeext
31487 if { (ac_try="$ac_link"
31488 case "(($ac_try" in
31489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31490   *) ac_try_echo=$ac_try;;
31491 esac
31492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31493   (eval "$ac_link") 2>conftest.er1
31494   ac_status=$?
31495   grep -v '^ *+' conftest.er1 >conftest.err
31496   rm -f conftest.er1
31497   cat conftest.err >&5
31498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499   (exit $ac_status); } && {
31500          test -z "$ac_c_werror_flag" ||
31501          test ! -s conftest.err
31502        } && test -s conftest$ac_exeext &&
31503        $as_test_x conftest$ac_exeext; then
31504   ac_cv_search_opendir=$ac_res
31505 else
31506   echo "$as_me: failed program was:" >&5
31507 sed 's/^/| /' conftest.$ac_ext >&5
31508
31509
31510 fi
31511
31512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31513       conftest$ac_exeext
31514   if test "${ac_cv_search_opendir+set}" = set; then
31515   break
31516 fi
31517 done
31518 if test "${ac_cv_search_opendir+set}" = set; then
31519   :
31520 else
31521   ac_cv_search_opendir=no
31522 fi
31523 rm conftest.$ac_ext
31524 LIBS=$ac_func_search_save_LIBS
31525 fi
31526 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31527 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31528 ac_res=$ac_cv_search_opendir
31529 if test "$ac_res" != no; then
31530   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31531
31532 fi
31533
31534 else
31535   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31536 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31537 if test "${ac_cv_search_opendir+set}" = set; then
31538   echo $ECHO_N "(cached) $ECHO_C" >&6
31539 else
31540   ac_func_search_save_LIBS=$LIBS
31541 cat >conftest.$ac_ext <<_ACEOF
31542 /* confdefs.h.  */
31543 _ACEOF
31544 cat confdefs.h >>conftest.$ac_ext
31545 cat >>conftest.$ac_ext <<_ACEOF
31546 /* end confdefs.h.  */
31547
31548 /* Override any GCC internal prototype to avoid an error.
31549    Use char because int might match the return type of a GCC
31550    builtin and then its argument prototype would still apply.  */
31551 #ifdef __cplusplus
31552 extern "C"
31553 #endif
31554 char opendir ();
31555 int
31556 main ()
31557 {
31558 return opendir ();
31559   ;
31560   return 0;
31561 }
31562 _ACEOF
31563 for ac_lib in '' x; do
31564   if test -z "$ac_lib"; then
31565     ac_res="none required"
31566   else
31567     ac_res=-l$ac_lib
31568     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31569   fi
31570   rm -f conftest.$ac_objext conftest$ac_exeext
31571 if { (ac_try="$ac_link"
31572 case "(($ac_try" in
31573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31574   *) ac_try_echo=$ac_try;;
31575 esac
31576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31577   (eval "$ac_link") 2>conftest.er1
31578   ac_status=$?
31579   grep -v '^ *+' conftest.er1 >conftest.err
31580   rm -f conftest.er1
31581   cat conftest.err >&5
31582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583   (exit $ac_status); } && {
31584          test -z "$ac_c_werror_flag" ||
31585          test ! -s conftest.err
31586        } && test -s conftest$ac_exeext &&
31587        $as_test_x conftest$ac_exeext; then
31588   ac_cv_search_opendir=$ac_res
31589 else
31590   echo "$as_me: failed program was:" >&5
31591 sed 's/^/| /' conftest.$ac_ext >&5
31592
31593
31594 fi
31595
31596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31597       conftest$ac_exeext
31598   if test "${ac_cv_search_opendir+set}" = set; then
31599   break
31600 fi
31601 done
31602 if test "${ac_cv_search_opendir+set}" = set; then
31603   :
31604 else
31605   ac_cv_search_opendir=no
31606 fi
31607 rm conftest.$ac_ext
31608 LIBS=$ac_func_search_save_LIBS
31609 fi
31610 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31611 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31612 ac_res=$ac_cv_search_opendir
31613 if test "$ac_res" != no; then
31614   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31615
31616 fi
31617
31618 fi
31619
31620 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31621 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31622 if test "${ac_cv_header_stat_broken+set}" = set; then
31623   echo $ECHO_N "(cached) $ECHO_C" >&6
31624 else
31625   cat >conftest.$ac_ext <<_ACEOF
31626 /* confdefs.h.  */
31627 _ACEOF
31628 cat confdefs.h >>conftest.$ac_ext
31629 cat >>conftest.$ac_ext <<_ACEOF
31630 /* end confdefs.h.  */
31631 #include <sys/types.h>
31632 #include <sys/stat.h>
31633
31634 #if defined S_ISBLK && defined S_IFDIR
31635 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31636 #endif
31637
31638 #if defined S_ISBLK && defined S_IFCHR
31639 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31640 #endif
31641
31642 #if defined S_ISLNK && defined S_IFREG
31643 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31644 #endif
31645
31646 #if defined S_ISSOCK && defined S_IFREG
31647 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31648 #endif
31649
31650 _ACEOF
31651 rm -f conftest.$ac_objext
31652 if { (ac_try="$ac_compile"
31653 case "(($ac_try" in
31654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31655   *) ac_try_echo=$ac_try;;
31656 esac
31657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31658   (eval "$ac_compile") 2>conftest.er1
31659   ac_status=$?
31660   grep -v '^ *+' conftest.er1 >conftest.err
31661   rm -f conftest.er1
31662   cat conftest.err >&5
31663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664   (exit $ac_status); } && {
31665          test -z "$ac_c_werror_flag" ||
31666          test ! -s conftest.err
31667        } && test -s conftest.$ac_objext; then
31668   ac_cv_header_stat_broken=no
31669 else
31670   echo "$as_me: failed program was:" >&5
31671 sed 's/^/| /' conftest.$ac_ext >&5
31672
31673         ac_cv_header_stat_broken=yes
31674 fi
31675
31676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31677 fi
31678 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31679 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31680 if test $ac_cv_header_stat_broken = yes; then
31681
31682 cat >>confdefs.h <<\_ACEOF
31683 #define STAT_MACROS_BROKEN 1
31684 _ACEOF
31685
31686 fi
31687
31688 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31689 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31690 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31691   echo $ECHO_N "(cached) $ECHO_C" >&6
31692 else
31693   cat >conftest.$ac_ext <<_ACEOF
31694 /* confdefs.h.  */
31695 _ACEOF
31696 cat confdefs.h >>conftest.$ac_ext
31697 cat >>conftest.$ac_ext <<_ACEOF
31698 /* end confdefs.h.  */
31699 #include <sys/types.h>
31700 #include <sys/wait.h>
31701 #ifndef WEXITSTATUS
31702 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31703 #endif
31704 #ifndef WIFEXITED
31705 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31706 #endif
31707
31708 int
31709 main ()
31710 {
31711   int s;
31712   wait (&s);
31713   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31714   ;
31715   return 0;
31716 }
31717 _ACEOF
31718 rm -f conftest.$ac_objext
31719 if { (ac_try="$ac_compile"
31720 case "(($ac_try" in
31721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31722   *) ac_try_echo=$ac_try;;
31723 esac
31724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31725   (eval "$ac_compile") 2>conftest.er1
31726   ac_status=$?
31727   grep -v '^ *+' conftest.er1 >conftest.err
31728   rm -f conftest.er1
31729   cat conftest.err >&5
31730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731   (exit $ac_status); } && {
31732          test -z "$ac_c_werror_flag" ||
31733          test ! -s conftest.err
31734        } && test -s conftest.$ac_objext; then
31735   ac_cv_header_sys_wait_h=yes
31736 else
31737   echo "$as_me: failed program was:" >&5
31738 sed 's/^/| /' conftest.$ac_ext >&5
31739
31740         ac_cv_header_sys_wait_h=no
31741 fi
31742
31743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31744 fi
31745 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31746 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31747 if test $ac_cv_header_sys_wait_h = yes; then
31748
31749 cat >>confdefs.h <<\_ACEOF
31750 #define HAVE_SYS_WAIT_H 1
31751 _ACEOF
31752
31753 fi
31754
31755 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31756 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31757 if test "${ac_cv_header_time+set}" = set; then
31758   echo $ECHO_N "(cached) $ECHO_C" >&6
31759 else
31760   cat >conftest.$ac_ext <<_ACEOF
31761 /* confdefs.h.  */
31762 _ACEOF
31763 cat confdefs.h >>conftest.$ac_ext
31764 cat >>conftest.$ac_ext <<_ACEOF
31765 /* end confdefs.h.  */
31766 #include <sys/types.h>
31767 #include <sys/time.h>
31768 #include <time.h>
31769
31770 int
31771 main ()
31772 {
31773 if ((struct tm *) 0)
31774 return 0;
31775   ;
31776   return 0;
31777 }
31778 _ACEOF
31779 rm -f conftest.$ac_objext
31780 if { (ac_try="$ac_compile"
31781 case "(($ac_try" in
31782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783   *) ac_try_echo=$ac_try;;
31784 esac
31785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31786   (eval "$ac_compile") 2>conftest.er1
31787   ac_status=$?
31788   grep -v '^ *+' conftest.er1 >conftest.err
31789   rm -f conftest.er1
31790   cat conftest.err >&5
31791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31792   (exit $ac_status); } && {
31793          test -z "$ac_c_werror_flag" ||
31794          test ! -s conftest.err
31795        } && test -s conftest.$ac_objext; then
31796   ac_cv_header_time=yes
31797 else
31798   echo "$as_me: failed program was:" >&5
31799 sed 's/^/| /' conftest.$ac_ext >&5
31800
31801         ac_cv_header_time=no
31802 fi
31803
31804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31805 fi
31806 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31807 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31808 if test $ac_cv_header_time = yes; then
31809
31810 cat >>confdefs.h <<\_ACEOF
31811 #define TIME_WITH_SYS_TIME 1
31812 _ACEOF
31813
31814 fi
31815
31816 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31817 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31818 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31819   echo $ECHO_N "(cached) $ECHO_C" >&6
31820 else
31821   cat >conftest.$ac_ext <<_ACEOF
31822 /* confdefs.h.  */
31823 _ACEOF
31824 cat confdefs.h >>conftest.$ac_ext
31825 cat >>conftest.$ac_ext <<_ACEOF
31826 /* end confdefs.h.  */
31827 $ac_includes_default
31828 int
31829 main ()
31830 {
31831 static struct stat ac_aggr;
31832 if (ac_aggr.st_blksize)
31833 return 0;
31834   ;
31835   return 0;
31836 }
31837 _ACEOF
31838 rm -f conftest.$ac_objext
31839 if { (ac_try="$ac_compile"
31840 case "(($ac_try" in
31841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31842   *) ac_try_echo=$ac_try;;
31843 esac
31844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31845   (eval "$ac_compile") 2>conftest.er1
31846   ac_status=$?
31847   grep -v '^ *+' conftest.er1 >conftest.err
31848   rm -f conftest.er1
31849   cat conftest.err >&5
31850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851   (exit $ac_status); } && {
31852          test -z "$ac_c_werror_flag" ||
31853          test ! -s conftest.err
31854        } && test -s conftest.$ac_objext; then
31855   ac_cv_member_struct_stat_st_blksize=yes
31856 else
31857   echo "$as_me: failed program was:" >&5
31858 sed 's/^/| /' conftest.$ac_ext >&5
31859
31860         cat >conftest.$ac_ext <<_ACEOF
31861 /* confdefs.h.  */
31862 _ACEOF
31863 cat confdefs.h >>conftest.$ac_ext
31864 cat >>conftest.$ac_ext <<_ACEOF
31865 /* end confdefs.h.  */
31866 $ac_includes_default
31867 int
31868 main ()
31869 {
31870 static struct stat ac_aggr;
31871 if (sizeof ac_aggr.st_blksize)
31872 return 0;
31873   ;
31874   return 0;
31875 }
31876 _ACEOF
31877 rm -f conftest.$ac_objext
31878 if { (ac_try="$ac_compile"
31879 case "(($ac_try" in
31880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31881   *) ac_try_echo=$ac_try;;
31882 esac
31883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31884   (eval "$ac_compile") 2>conftest.er1
31885   ac_status=$?
31886   grep -v '^ *+' conftest.er1 >conftest.err
31887   rm -f conftest.er1
31888   cat conftest.err >&5
31889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890   (exit $ac_status); } && {
31891          test -z "$ac_c_werror_flag" ||
31892          test ! -s conftest.err
31893        } && test -s conftest.$ac_objext; then
31894   ac_cv_member_struct_stat_st_blksize=yes
31895 else
31896   echo "$as_me: failed program was:" >&5
31897 sed 's/^/| /' conftest.$ac_ext >&5
31898
31899         ac_cv_member_struct_stat_st_blksize=no
31900 fi
31901
31902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31903 fi
31904
31905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31906 fi
31907 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31908 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31909 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31910
31911 cat >>confdefs.h <<_ACEOF
31912 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31913 _ACEOF
31914
31915
31916 cat >>confdefs.h <<\_ACEOF
31917 #define HAVE_ST_BLKSIZE 1
31918 _ACEOF
31919
31920 fi
31921
31922
31923 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31924 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31925 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31926   echo $ECHO_N "(cached) $ECHO_C" >&6
31927 else
31928   cat >conftest.$ac_ext <<_ACEOF
31929 /* confdefs.h.  */
31930 _ACEOF
31931 cat confdefs.h >>conftest.$ac_ext
31932 cat >>conftest.$ac_ext <<_ACEOF
31933 /* end confdefs.h.  */
31934 $ac_includes_default
31935 int
31936 main ()
31937 {
31938 static struct stat ac_aggr;
31939 if (ac_aggr.st_blocks)
31940 return 0;
31941   ;
31942   return 0;
31943 }
31944 _ACEOF
31945 rm -f conftest.$ac_objext
31946 if { (ac_try="$ac_compile"
31947 case "(($ac_try" in
31948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31949   *) ac_try_echo=$ac_try;;
31950 esac
31951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31952   (eval "$ac_compile") 2>conftest.er1
31953   ac_status=$?
31954   grep -v '^ *+' conftest.er1 >conftest.err
31955   rm -f conftest.er1
31956   cat conftest.err >&5
31957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958   (exit $ac_status); } && {
31959          test -z "$ac_c_werror_flag" ||
31960          test ! -s conftest.err
31961        } && test -s conftest.$ac_objext; then
31962   ac_cv_member_struct_stat_st_blocks=yes
31963 else
31964   echo "$as_me: failed program was:" >&5
31965 sed 's/^/| /' conftest.$ac_ext >&5
31966
31967         cat >conftest.$ac_ext <<_ACEOF
31968 /* confdefs.h.  */
31969 _ACEOF
31970 cat confdefs.h >>conftest.$ac_ext
31971 cat >>conftest.$ac_ext <<_ACEOF
31972 /* end confdefs.h.  */
31973 $ac_includes_default
31974 int
31975 main ()
31976 {
31977 static struct stat ac_aggr;
31978 if (sizeof ac_aggr.st_blocks)
31979 return 0;
31980   ;
31981   return 0;
31982 }
31983 _ACEOF
31984 rm -f conftest.$ac_objext
31985 if { (ac_try="$ac_compile"
31986 case "(($ac_try" in
31987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31988   *) ac_try_echo=$ac_try;;
31989 esac
31990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31991   (eval "$ac_compile") 2>conftest.er1
31992   ac_status=$?
31993   grep -v '^ *+' conftest.er1 >conftest.err
31994   rm -f conftest.er1
31995   cat conftest.err >&5
31996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997   (exit $ac_status); } && {
31998          test -z "$ac_c_werror_flag" ||
31999          test ! -s conftest.err
32000        } && test -s conftest.$ac_objext; then
32001   ac_cv_member_struct_stat_st_blocks=yes
32002 else
32003   echo "$as_me: failed program was:" >&5
32004 sed 's/^/| /' conftest.$ac_ext >&5
32005
32006         ac_cv_member_struct_stat_st_blocks=no
32007 fi
32008
32009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32010 fi
32011
32012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32013 fi
32014 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32015 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32016 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32017
32018 cat >>confdefs.h <<_ACEOF
32019 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32020 _ACEOF
32021
32022
32023 cat >>confdefs.h <<\_ACEOF
32024 #define HAVE_ST_BLOCKS 1
32025 _ACEOF
32026
32027 else
32028   case " $LIBOBJS " in
32029   *" fileblocks.$ac_objext "* ) ;;
32030   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32031  ;;
32032 esac
32033
32034 fi
32035
32036
32037 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32038 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32039 if test "${ac_cv_struct_tm+set}" = set; then
32040   echo $ECHO_N "(cached) $ECHO_C" >&6
32041 else
32042   cat >conftest.$ac_ext <<_ACEOF
32043 /* confdefs.h.  */
32044 _ACEOF
32045 cat confdefs.h >>conftest.$ac_ext
32046 cat >>conftest.$ac_ext <<_ACEOF
32047 /* end confdefs.h.  */
32048 #include <sys/types.h>
32049 #include <time.h>
32050
32051 int
32052 main ()
32053 {
32054 struct tm tm;
32055                                      int *p = &tm.tm_sec;
32056                                      return !p;
32057   ;
32058   return 0;
32059 }
32060 _ACEOF
32061 rm -f conftest.$ac_objext
32062 if { (ac_try="$ac_compile"
32063 case "(($ac_try" in
32064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32065   *) ac_try_echo=$ac_try;;
32066 esac
32067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32068   (eval "$ac_compile") 2>conftest.er1
32069   ac_status=$?
32070   grep -v '^ *+' conftest.er1 >conftest.err
32071   rm -f conftest.er1
32072   cat conftest.err >&5
32073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074   (exit $ac_status); } && {
32075          test -z "$ac_c_werror_flag" ||
32076          test ! -s conftest.err
32077        } && test -s conftest.$ac_objext; then
32078   ac_cv_struct_tm=time.h
32079 else
32080   echo "$as_me: failed program was:" >&5
32081 sed 's/^/| /' conftest.$ac_ext >&5
32082
32083         ac_cv_struct_tm=sys/time.h
32084 fi
32085
32086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32087 fi
32088 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32089 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32090 if test $ac_cv_struct_tm = sys/time.h; then
32091
32092 cat >>confdefs.h <<\_ACEOF
32093 #define TM_IN_SYS_TIME 1
32094 _ACEOF
32095
32096 fi
32097
32098 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32099 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32100 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32101   echo $ECHO_N "(cached) $ECHO_C" >&6
32102 else
32103   cat >conftest.$ac_ext <<_ACEOF
32104 /* confdefs.h.  */
32105 _ACEOF
32106 cat confdefs.h >>conftest.$ac_ext
32107 cat >>conftest.$ac_ext <<_ACEOF
32108 /* end confdefs.h.  */
32109 #include <sys/types.h>
32110 #include <$ac_cv_struct_tm>
32111
32112
32113 int
32114 main ()
32115 {
32116 static struct tm ac_aggr;
32117 if (ac_aggr.tm_zone)
32118 return 0;
32119   ;
32120   return 0;
32121 }
32122 _ACEOF
32123 rm -f conftest.$ac_objext
32124 if { (ac_try="$ac_compile"
32125 case "(($ac_try" in
32126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32127   *) ac_try_echo=$ac_try;;
32128 esac
32129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32130   (eval "$ac_compile") 2>conftest.er1
32131   ac_status=$?
32132   grep -v '^ *+' conftest.er1 >conftest.err
32133   rm -f conftest.er1
32134   cat conftest.err >&5
32135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136   (exit $ac_status); } && {
32137          test -z "$ac_c_werror_flag" ||
32138          test ! -s conftest.err
32139        } && test -s conftest.$ac_objext; then
32140   ac_cv_member_struct_tm_tm_zone=yes
32141 else
32142   echo "$as_me: failed program was:" >&5
32143 sed 's/^/| /' conftest.$ac_ext >&5
32144
32145         cat >conftest.$ac_ext <<_ACEOF
32146 /* confdefs.h.  */
32147 _ACEOF
32148 cat confdefs.h >>conftest.$ac_ext
32149 cat >>conftest.$ac_ext <<_ACEOF
32150 /* end confdefs.h.  */
32151 #include <sys/types.h>
32152 #include <$ac_cv_struct_tm>
32153
32154
32155 int
32156 main ()
32157 {
32158 static struct tm ac_aggr;
32159 if (sizeof ac_aggr.tm_zone)
32160 return 0;
32161   ;
32162   return 0;
32163 }
32164 _ACEOF
32165 rm -f conftest.$ac_objext
32166 if { (ac_try="$ac_compile"
32167 case "(($ac_try" in
32168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32169   *) ac_try_echo=$ac_try;;
32170 esac
32171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32172   (eval "$ac_compile") 2>conftest.er1
32173   ac_status=$?
32174   grep -v '^ *+' conftest.er1 >conftest.err
32175   rm -f conftest.er1
32176   cat conftest.err >&5
32177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178   (exit $ac_status); } && {
32179          test -z "$ac_c_werror_flag" ||
32180          test ! -s conftest.err
32181        } && test -s conftest.$ac_objext; then
32182   ac_cv_member_struct_tm_tm_zone=yes
32183 else
32184   echo "$as_me: failed program was:" >&5
32185 sed 's/^/| /' conftest.$ac_ext >&5
32186
32187         ac_cv_member_struct_tm_tm_zone=no
32188 fi
32189
32190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32191 fi
32192
32193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32194 fi
32195 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32196 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32197 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32198
32199 cat >>confdefs.h <<_ACEOF
32200 #define HAVE_STRUCT_TM_TM_ZONE 1
32201 _ACEOF
32202
32203
32204 fi
32205
32206 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32207
32208 cat >>confdefs.h <<\_ACEOF
32209 #define HAVE_TM_ZONE 1
32210 _ACEOF
32211
32212 else
32213   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32214 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32215 if test "${ac_cv_have_decl_tzname+set}" = set; then
32216   echo $ECHO_N "(cached) $ECHO_C" >&6
32217 else
32218   cat >conftest.$ac_ext <<_ACEOF
32219 /* confdefs.h.  */
32220 _ACEOF
32221 cat confdefs.h >>conftest.$ac_ext
32222 cat >>conftest.$ac_ext <<_ACEOF
32223 /* end confdefs.h.  */
32224 #include <time.h>
32225
32226 int
32227 main ()
32228 {
32229 #ifndef tzname
32230   (void) tzname;
32231 #endif
32232
32233   ;
32234   return 0;
32235 }
32236 _ACEOF
32237 rm -f conftest.$ac_objext
32238 if { (ac_try="$ac_compile"
32239 case "(($ac_try" in
32240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241   *) ac_try_echo=$ac_try;;
32242 esac
32243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244   (eval "$ac_compile") 2>conftest.er1
32245   ac_status=$?
32246   grep -v '^ *+' conftest.er1 >conftest.err
32247   rm -f conftest.er1
32248   cat conftest.err >&5
32249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250   (exit $ac_status); } && {
32251          test -z "$ac_c_werror_flag" ||
32252          test ! -s conftest.err
32253        } && test -s conftest.$ac_objext; then
32254   ac_cv_have_decl_tzname=yes
32255 else
32256   echo "$as_me: failed program was:" >&5
32257 sed 's/^/| /' conftest.$ac_ext >&5
32258
32259         ac_cv_have_decl_tzname=no
32260 fi
32261
32262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32263 fi
32264 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32265 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32266 if test $ac_cv_have_decl_tzname = yes; then
32267
32268 cat >>confdefs.h <<_ACEOF
32269 #define HAVE_DECL_TZNAME 1
32270 _ACEOF
32271
32272
32273 else
32274   cat >>confdefs.h <<_ACEOF
32275 #define HAVE_DECL_TZNAME 0
32276 _ACEOF
32277
32278
32279 fi
32280
32281
32282   { echo "$as_me:$LINENO: checking for tzname" >&5
32283 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32284 if test "${ac_cv_var_tzname+set}" = set; then
32285   echo $ECHO_N "(cached) $ECHO_C" >&6
32286 else
32287   cat >conftest.$ac_ext <<_ACEOF
32288 /* confdefs.h.  */
32289 _ACEOF
32290 cat confdefs.h >>conftest.$ac_ext
32291 cat >>conftest.$ac_ext <<_ACEOF
32292 /* end confdefs.h.  */
32293 #include <time.h>
32294 #if !HAVE_DECL_TZNAME
32295 extern char *tzname[];
32296 #endif
32297
32298 int
32299 main ()
32300 {
32301 return tzname[0][0];
32302   ;
32303   return 0;
32304 }
32305 _ACEOF
32306 rm -f conftest.$ac_objext conftest$ac_exeext
32307 if { (ac_try="$ac_link"
32308 case "(($ac_try" in
32309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32310   *) ac_try_echo=$ac_try;;
32311 esac
32312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32313   (eval "$ac_link") 2>conftest.er1
32314   ac_status=$?
32315   grep -v '^ *+' conftest.er1 >conftest.err
32316   rm -f conftest.er1
32317   cat conftest.err >&5
32318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319   (exit $ac_status); } && {
32320          test -z "$ac_c_werror_flag" ||
32321          test ! -s conftest.err
32322        } && test -s conftest$ac_exeext &&
32323        $as_test_x conftest$ac_exeext; then
32324   ac_cv_var_tzname=yes
32325 else
32326   echo "$as_me: failed program was:" >&5
32327 sed 's/^/| /' conftest.$ac_ext >&5
32328
32329         ac_cv_var_tzname=no
32330 fi
32331
32332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32333       conftest$ac_exeext conftest.$ac_ext
32334 fi
32335 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32336 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32337   if test $ac_cv_var_tzname = yes; then
32338
32339 cat >>confdefs.h <<\_ACEOF
32340 #define HAVE_TZNAME 1
32341 _ACEOF
32342
32343   fi
32344 fi
32345
32346
32347 { echo "$as_me:$LINENO: checking for utime.h" >&5
32348 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32349 if test "${ba_cv_header_utime_h+set}" = set; then
32350   echo $ECHO_N "(cached) $ECHO_C" >&6
32351 else
32352
32353        cat >conftest.$ac_ext <<_ACEOF
32354 /* confdefs.h.  */
32355 _ACEOF
32356 cat confdefs.h >>conftest.$ac_ext
32357 cat >>conftest.$ac_ext <<_ACEOF
32358 /* end confdefs.h.  */
32359
32360               #include <sys/types.h>
32361               #include <utime.h>
32362
32363 int
32364 main ()
32365 {
32366
32367               struct utimbuf foo
32368
32369   ;
32370   return 0;
32371 }
32372 _ACEOF
32373 rm -f conftest.$ac_objext
32374 if { (ac_try="$ac_compile"
32375 case "(($ac_try" in
32376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32377   *) ac_try_echo=$ac_try;;
32378 esac
32379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32380   (eval "$ac_compile") 2>conftest.er1
32381   ac_status=$?
32382   grep -v '^ *+' conftest.er1 >conftest.err
32383   rm -f conftest.er1
32384   cat conftest.err >&5
32385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386   (exit $ac_status); } && {
32387          test -z "$ac_c_werror_flag" ||
32388          test ! -s conftest.err
32389        } && test -s conftest.$ac_objext; then
32390
32391               ba_cv_header_utime_h=yes
32392
32393 else
32394   echo "$as_me: failed program was:" >&5
32395 sed 's/^/| /' conftest.$ac_ext >&5
32396
32397
32398               ba_cv_header_utime_h=no
32399
32400
32401 fi
32402
32403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32404
32405
32406 fi
32407 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32408 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32409 test $ba_cv_header_utime_h = yes &&
32410 cat >>confdefs.h <<\_ACEOF
32411 #define HAVE_UTIME_H 1
32412 _ACEOF
32413
32414
32415 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32416 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32417 if test "${ba_cv_header_socklen_t+set}" = set; then
32418   echo $ECHO_N "(cached) $ECHO_C" >&6
32419 else
32420
32421        cat >conftest.$ac_ext <<_ACEOF
32422 /* confdefs.h.  */
32423 _ACEOF
32424 cat confdefs.h >>conftest.$ac_ext
32425 cat >>conftest.$ac_ext <<_ACEOF
32426 /* end confdefs.h.  */
32427
32428               #include <sys/types.h>
32429               #include <sys/socket.h>
32430
32431 int
32432 main ()
32433 {
32434
32435               socklen_t x
32436
32437   ;
32438   return 0;
32439 }
32440 _ACEOF
32441 rm -f conftest.$ac_objext
32442 if { (ac_try="$ac_compile"
32443 case "(($ac_try" in
32444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32445   *) ac_try_echo=$ac_try;;
32446 esac
32447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32448   (eval "$ac_compile") 2>conftest.er1
32449   ac_status=$?
32450   grep -v '^ *+' conftest.er1 >conftest.err
32451   rm -f conftest.er1
32452   cat conftest.err >&5
32453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454   (exit $ac_status); } && {
32455          test -z "$ac_c_werror_flag" ||
32456          test ! -s conftest.err
32457        } && test -s conftest.$ac_objext; then
32458
32459              ba_cv_header_socklen_t=yes
32460
32461 else
32462   echo "$as_me: failed program was:" >&5
32463 sed 's/^/| /' conftest.$ac_ext >&5
32464
32465
32466              ba_cv_header_socklen_t=no
32467
32468
32469 fi
32470
32471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32472
32473
32474 fi
32475 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32476 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32477 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32478 #define HAVE_SOCKLEN_T 1
32479 _ACEOF
32480
32481
32482 ac_ext=cpp
32483 ac_cpp='$CXXCPP $CPPFLAGS'
32484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32487
32488 { echo "$as_me:$LINENO: checking for typeof" >&5
32489 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32490 if test "${ba_cv_have_typeof+set}" = set; then
32491   echo $ECHO_N "(cached) $ECHO_C" >&6
32492 else
32493
32494        if test "$cross_compiling" = yes; then
32495
32496               ba_cv_have_typeof=no
32497
32498
32499 else
32500   cat >conftest.$ac_ext <<_ACEOF
32501 /* confdefs.h.  */
32502 _ACEOF
32503 cat confdefs.h >>conftest.$ac_ext
32504 cat >>conftest.$ac_ext <<_ACEOF
32505 /* end confdefs.h.  */
32506
32507               main(){char *a = 0; a = (typeof a)a;}
32508
32509 _ACEOF
32510 rm -f conftest$ac_exeext
32511 if { (ac_try="$ac_link"
32512 case "(($ac_try" in
32513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514   *) ac_try_echo=$ac_try;;
32515 esac
32516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517   (eval "$ac_link") 2>&5
32518   ac_status=$?
32519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32521   { (case "(($ac_try" in
32522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32523   *) ac_try_echo=$ac_try;;
32524 esac
32525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32526   (eval "$ac_try") 2>&5
32527   ac_status=$?
32528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529   (exit $ac_status); }; }; then
32530
32531               ba_cv_have_typeof=yes
32532
32533 else
32534   echo "$as_me: program exited with status $ac_status" >&5
32535 echo "$as_me: failed program was:" >&5
32536 sed 's/^/| /' conftest.$ac_ext >&5
32537
32538 ( exit $ac_status )
32539
32540               ba_cv_have_typeof=no
32541
32542 fi
32543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32544 fi
32545
32546
32547
32548
32549 fi
32550 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32551 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32552 test $ba_cv_have_typeof = yes &&
32553 cat >>confdefs.h <<\_ACEOF
32554 #define HAVE_TYPEOF 1
32555 _ACEOF
32556
32557 ac_ext=c
32558 ac_cpp='$CPP $CPPFLAGS'
32559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32562
32563
32564 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32565 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32566 if test "${ac_cv_c_const+set}" = set; then
32567   echo $ECHO_N "(cached) $ECHO_C" >&6
32568 else
32569   cat >conftest.$ac_ext <<_ACEOF
32570 /* confdefs.h.  */
32571 _ACEOF
32572 cat confdefs.h >>conftest.$ac_ext
32573 cat >>conftest.$ac_ext <<_ACEOF
32574 /* end confdefs.h.  */
32575
32576 int
32577 main ()
32578 {
32579 /* FIXME: Include the comments suggested by Paul. */
32580 #ifndef __cplusplus
32581   /* Ultrix mips cc rejects this.  */
32582   typedef int charset[2];
32583   const charset cs;
32584   /* SunOS 4.1.1 cc rejects this.  */
32585   char const *const *pcpcc;
32586   char **ppc;
32587   /* NEC SVR4.0.2 mips cc rejects this.  */
32588   struct point {int x, y;};
32589   static struct point const zero = {0,0};
32590   /* AIX XL C 1.02.0.0 rejects this.
32591      It does not let you subtract one const X* pointer from another in
32592      an arm of an if-expression whose if-part is not a constant
32593      expression */
32594   const char *g = "string";
32595   pcpcc = &g + (g ? g-g : 0);
32596   /* HPUX 7.0 cc rejects these. */
32597   ++pcpcc;
32598   ppc = (char**) pcpcc;
32599   pcpcc = (char const *const *) ppc;
32600   { /* SCO 3.2v4 cc rejects this.  */
32601     char *t;
32602     char const *s = 0 ? (char *) 0 : (char const *) 0;
32603
32604     *t++ = 0;
32605     if (s) return 0;
32606   }
32607   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32608     int x[] = {25, 17};
32609     const int *foo = &x[0];
32610     ++foo;
32611   }
32612   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32613     typedef const int *iptr;
32614     iptr p = 0;
32615     ++p;
32616   }
32617   { /* AIX XL C 1.02.0.0 rejects this saying
32618        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32619     struct s { int j; const int *ap[3]; };
32620     struct s *b; b->j = 5;
32621   }
32622   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32623     const int foo = 10;
32624     if (!foo) return 0;
32625   }
32626   return !cs[0] && !zero.x;
32627 #endif
32628
32629   ;
32630   return 0;
32631 }
32632 _ACEOF
32633 rm -f conftest.$ac_objext
32634 if { (ac_try="$ac_compile"
32635 case "(($ac_try" in
32636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32637   *) ac_try_echo=$ac_try;;
32638 esac
32639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32640   (eval "$ac_compile") 2>conftest.er1
32641   ac_status=$?
32642   grep -v '^ *+' conftest.er1 >conftest.err
32643   rm -f conftest.er1
32644   cat conftest.err >&5
32645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646   (exit $ac_status); } && {
32647          test -z "$ac_c_werror_flag" ||
32648          test ! -s conftest.err
32649        } && test -s conftest.$ac_objext; then
32650   ac_cv_c_const=yes
32651 else
32652   echo "$as_me: failed program was:" >&5
32653 sed 's/^/| /' conftest.$ac_ext >&5
32654
32655         ac_cv_c_const=no
32656 fi
32657
32658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32659 fi
32660 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32661 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32662 if test $ac_cv_c_const = no; then
32663
32664 cat >>confdefs.h <<\_ACEOF
32665 #define const
32666 _ACEOF
32667
32668 fi
32669
32670
32671 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32672 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32673 fstype=no
32674 # The order of these tests is important.
32675 cat >conftest.$ac_ext <<_ACEOF
32676 /* confdefs.h.  */
32677 _ACEOF
32678 cat confdefs.h >>conftest.$ac_ext
32679 cat >>conftest.$ac_ext <<_ACEOF
32680 /* end confdefs.h.  */
32681
32682        #include <sys/statvfs.h>
32683        #include <sys/fstyp.h>
32684
32685 _ACEOF
32686 if { (ac_try="$ac_cpp conftest.$ac_ext"
32687 case "(($ac_try" in
32688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32689   *) ac_try_echo=$ac_try;;
32690 esac
32691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32693   ac_status=$?
32694   grep -v '^ *+' conftest.er1 >conftest.err
32695   rm -f conftest.er1
32696   cat conftest.err >&5
32697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698   (exit $ac_status); } >/dev/null && {
32699          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32700          test ! -s conftest.err
32701        }; then
32702   cat >>confdefs.h <<\_ACEOF
32703 #define FSTYPE_STATVFS 1
32704 _ACEOF
32705  fstype=SVR4
32706
32707 else
32708   echo "$as_me: failed program was:" >&5
32709 sed 's/^/| /' conftest.$ac_ext >&5
32710
32711
32712 fi
32713
32714 rm -f conftest.err conftest.$ac_ext
32715 if test $fstype = no; then
32716    cat >conftest.$ac_ext <<_ACEOF
32717 /* confdefs.h.  */
32718 _ACEOF
32719 cat confdefs.h >>conftest.$ac_ext
32720 cat >>conftest.$ac_ext <<_ACEOF
32721 /* end confdefs.h.  */
32722
32723           #include <sys/statfs.h>
32724           #include <sys/fstyp.h>
32725
32726 _ACEOF
32727 if { (ac_try="$ac_cpp conftest.$ac_ext"
32728 case "(($ac_try" in
32729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32730   *) ac_try_echo=$ac_try;;
32731 esac
32732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32734   ac_status=$?
32735   grep -v '^ *+' conftest.er1 >conftest.err
32736   rm -f conftest.er1
32737   cat conftest.err >&5
32738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739   (exit $ac_status); } >/dev/null && {
32740          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32741          test ! -s conftest.err
32742        }; then
32743   cat >>confdefs.h <<\_ACEOF
32744 #define FSTYPE_USG_STATFS 1
32745 _ACEOF
32746  fstype=SVR3
32747
32748 else
32749   echo "$as_me: failed program was:" >&5
32750 sed 's/^/| /' conftest.$ac_ext >&5
32751
32752
32753 fi
32754
32755 rm -f conftest.err conftest.$ac_ext
32756 fi
32757 if test $fstype = no; then
32758    cat >conftest.$ac_ext <<_ACEOF
32759 /* confdefs.h.  */
32760 _ACEOF
32761 cat confdefs.h >>conftest.$ac_ext
32762 cat >>conftest.$ac_ext <<_ACEOF
32763 /* end confdefs.h.  */
32764
32765           #include <sys/statfs.h>
32766           #include <sys/vmount.h>
32767
32768 _ACEOF
32769 if { (ac_try="$ac_cpp conftest.$ac_ext"
32770 case "(($ac_try" in
32771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32772   *) ac_try_echo=$ac_try;;
32773 esac
32774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32776   ac_status=$?
32777   grep -v '^ *+' conftest.er1 >conftest.err
32778   rm -f conftest.er1
32779   cat conftest.err >&5
32780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781   (exit $ac_status); } >/dev/null && {
32782          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32783          test ! -s conftest.err
32784        }; then
32785   cat >>confdefs.h <<\_ACEOF
32786 #define FSTYPE_AIX_STATFS 1
32787 _ACEOF
32788  fstype=AIX
32789
32790 else
32791   echo "$as_me: failed program was:" >&5
32792 sed 's/^/| /' conftest.$ac_ext >&5
32793
32794
32795 fi
32796
32797 rm -f conftest.err conftest.$ac_ext
32798 fi
32799 if test $fstype = no; then
32800    cat >conftest.$ac_ext <<_ACEOF
32801 /* confdefs.h.  */
32802 _ACEOF
32803 cat confdefs.h >>conftest.$ac_ext
32804 cat >>conftest.$ac_ext <<_ACEOF
32805 /* end confdefs.h.  */
32806
32807           #include <mntent.h>
32808
32809 _ACEOF
32810 if { (ac_try="$ac_cpp conftest.$ac_ext"
32811 case "(($ac_try" in
32812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32813   *) ac_try_echo=$ac_try;;
32814 esac
32815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32816   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32817   ac_status=$?
32818   grep -v '^ *+' conftest.er1 >conftest.err
32819   rm -f conftest.er1
32820   cat conftest.err >&5
32821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822   (exit $ac_status); } >/dev/null && {
32823          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32824          test ! -s conftest.err
32825        }; then
32826   cat >>confdefs.h <<\_ACEOF
32827 #define FSTYPE_MNTENT 1
32828 _ACEOF
32829  fstype=4.3BSD
32830
32831 else
32832   echo "$as_me: failed program was:" >&5
32833 sed 's/^/| /' conftest.$ac_ext >&5
32834
32835
32836 fi
32837
32838 rm -f conftest.err conftest.$ac_ext
32839 fi
32840 if test $fstype = no; then
32841    cat >conftest.$ac_ext <<_ACEOF
32842 /* confdefs.h.  */
32843 _ACEOF
32844 cat confdefs.h >>conftest.$ac_ext
32845 cat >>conftest.$ac_ext <<_ACEOF
32846 /* end confdefs.h.  */
32847 #include <sys/mount.h>
32848
32849 _ACEOF
32850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32851   $EGREP "f_type;" >/dev/null 2>&1; then
32852   cat >>confdefs.h <<\_ACEOF
32853 #define FSTYPE_STATFS 1
32854 _ACEOF
32855  fstype=4.4BSD/OSF1
32856 fi
32857 rm -f conftest*
32858
32859 fi
32860 if test $fstype = no; then
32861    cat >conftest.$ac_ext <<_ACEOF
32862 /* confdefs.h.  */
32863 _ACEOF
32864 cat confdefs.h >>conftest.$ac_ext
32865 cat >>conftest.$ac_ext <<_ACEOF
32866 /* end confdefs.h.  */
32867
32868           #include <sys/mount.h>
32869           #include <sys/fs_types.h>
32870
32871 _ACEOF
32872 if { (ac_try="$ac_cpp conftest.$ac_ext"
32873 case "(($ac_try" in
32874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32875   *) ac_try_echo=$ac_try;;
32876 esac
32877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32878   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32879   ac_status=$?
32880   grep -v '^ *+' conftest.er1 >conftest.err
32881   rm -f conftest.er1
32882   cat conftest.err >&5
32883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884   (exit $ac_status); } >/dev/null && {
32885          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32886          test ! -s conftest.err
32887        }; then
32888   cat >>confdefs.h <<\_ACEOF
32889 #define FSTYPE_GETMNT 1
32890 _ACEOF
32891  fstype=Ultrix
32892
32893 else
32894   echo "$as_me: failed program was:" >&5
32895 sed 's/^/| /' conftest.$ac_ext >&5
32896
32897
32898 fi
32899
32900 rm -f conftest.err conftest.$ac_ext
32901 fi
32902 { echo "$as_me:$LINENO: result: $fstype" >&5
32903 echo "${ECHO_T}$fstype" >&6; }
32904
32905 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32906   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32907 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32908 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32909   echo $ECHO_N "(cached) $ECHO_C" >&6
32910 fi
32911 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32912 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32913 else
32914   # Is the header compilable?
32915 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32916 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32917 cat >conftest.$ac_ext <<_ACEOF
32918 /* confdefs.h.  */
32919 _ACEOF
32920 cat confdefs.h >>conftest.$ac_ext
32921 cat >>conftest.$ac_ext <<_ACEOF
32922 /* end confdefs.h.  */
32923 $ac_includes_default
32924 #include <sys/statvfs.h>
32925 _ACEOF
32926 rm -f conftest.$ac_objext
32927 if { (ac_try="$ac_compile"
32928 case "(($ac_try" in
32929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32930   *) ac_try_echo=$ac_try;;
32931 esac
32932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32933   (eval "$ac_compile") 2>conftest.er1
32934   ac_status=$?
32935   grep -v '^ *+' conftest.er1 >conftest.err
32936   rm -f conftest.er1
32937   cat conftest.err >&5
32938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939   (exit $ac_status); } && {
32940          test -z "$ac_c_werror_flag" ||
32941          test ! -s conftest.err
32942        } && test -s conftest.$ac_objext; then
32943   ac_header_compiler=yes
32944 else
32945   echo "$as_me: failed program was:" >&5
32946 sed 's/^/| /' conftest.$ac_ext >&5
32947
32948         ac_header_compiler=no
32949 fi
32950
32951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32953 echo "${ECHO_T}$ac_header_compiler" >&6; }
32954
32955 # Is the header present?
32956 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32957 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32958 cat >conftest.$ac_ext <<_ACEOF
32959 /* confdefs.h.  */
32960 _ACEOF
32961 cat confdefs.h >>conftest.$ac_ext
32962 cat >>conftest.$ac_ext <<_ACEOF
32963 /* end confdefs.h.  */
32964 #include <sys/statvfs.h>
32965 _ACEOF
32966 if { (ac_try="$ac_cpp conftest.$ac_ext"
32967 case "(($ac_try" in
32968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969   *) ac_try_echo=$ac_try;;
32970 esac
32971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32973   ac_status=$?
32974   grep -v '^ *+' conftest.er1 >conftest.err
32975   rm -f conftest.er1
32976   cat conftest.err >&5
32977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978   (exit $ac_status); } >/dev/null && {
32979          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32980          test ! -s conftest.err
32981        }; then
32982   ac_header_preproc=yes
32983 else
32984   echo "$as_me: failed program was:" >&5
32985 sed 's/^/| /' conftest.$ac_ext >&5
32986
32987   ac_header_preproc=no
32988 fi
32989
32990 rm -f conftest.err conftest.$ac_ext
32991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32992 echo "${ECHO_T}$ac_header_preproc" >&6; }
32993
32994 # So?  What about this header?
32995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32996   yes:no: )
32997     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32998 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32999     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33000 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33001     ac_header_preproc=yes
33002     ;;
33003   no:yes:* )
33004     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33005 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33006     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33007 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33008     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33009 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33010     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33011 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33012     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33013 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33014     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33015 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33016
33017     ;;
33018 esac
33019 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33020 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33021 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33022   echo $ECHO_N "(cached) $ECHO_C" >&6
33023 else
33024   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33025 fi
33026 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33027 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33028
33029 fi
33030 if test $ac_cv_header_sys_statvfs_h = yes; then
33031
33032 cat >>confdefs.h <<\_ACEOF
33033 #define HAVE_SYS_STATVFS_H 1
33034 _ACEOF
33035
33036 fi
33037
33038
33039
33040 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33041 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33042 if test "${ac_cv_type_signal+set}" = set; then
33043   echo $ECHO_N "(cached) $ECHO_C" >&6
33044 else
33045   cat >conftest.$ac_ext <<_ACEOF
33046 /* confdefs.h.  */
33047 _ACEOF
33048 cat confdefs.h >>conftest.$ac_ext
33049 cat >>conftest.$ac_ext <<_ACEOF
33050 /* end confdefs.h.  */
33051 #include <sys/types.h>
33052 #include <signal.h>
33053
33054 int
33055 main ()
33056 {
33057 return *(signal (0, 0)) (0) == 1;
33058   ;
33059   return 0;
33060 }
33061 _ACEOF
33062 rm -f conftest.$ac_objext
33063 if { (ac_try="$ac_compile"
33064 case "(($ac_try" in
33065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33066   *) ac_try_echo=$ac_try;;
33067 esac
33068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33069   (eval "$ac_compile") 2>conftest.er1
33070   ac_status=$?
33071   grep -v '^ *+' conftest.er1 >conftest.err
33072   rm -f conftest.er1
33073   cat conftest.err >&5
33074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075   (exit $ac_status); } && {
33076          test -z "$ac_c_werror_flag" ||
33077          test ! -s conftest.err
33078        } && test -s conftest.$ac_objext; then
33079   ac_cv_type_signal=int
33080 else
33081   echo "$as_me: failed program was:" >&5
33082 sed 's/^/| /' conftest.$ac_ext >&5
33083
33084         ac_cv_type_signal=void
33085 fi
33086
33087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33088 fi
33089 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33090 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33091
33092 cat >>confdefs.h <<_ACEOF
33093 #define RETSIGTYPE $ac_cv_type_signal
33094 _ACEOF
33095
33096
33097
33098   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33099 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33100   if test "${bash_cv_signal_vintage+set}" = set; then
33101   echo $ECHO_N "(cached) $ECHO_C" >&6
33102 else
33103
33104     cat >conftest.$ac_ext <<_ACEOF
33105 /* confdefs.h.  */
33106 _ACEOF
33107 cat confdefs.h >>conftest.$ac_ext
33108 cat >>conftest.$ac_ext <<_ACEOF
33109 /* end confdefs.h.  */
33110 #include <signal.h>
33111 int
33112 main ()
33113 {
33114
33115       sigset_t ss;
33116       struct sigaction sa;
33117       sigemptyset(&ss); sigsuspend(&ss);
33118       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33119       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33120
33121   ;
33122   return 0;
33123 }
33124 _ACEOF
33125 rm -f conftest.$ac_objext conftest$ac_exeext
33126 if { (ac_try="$ac_link"
33127 case "(($ac_try" in
33128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33129   *) ac_try_echo=$ac_try;;
33130 esac
33131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33132   (eval "$ac_link") 2>conftest.er1
33133   ac_status=$?
33134   grep -v '^ *+' conftest.er1 >conftest.err
33135   rm -f conftest.er1
33136   cat conftest.err >&5
33137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138   (exit $ac_status); } && {
33139          test -z "$ac_c_werror_flag" ||
33140          test ! -s conftest.err
33141        } && test -s conftest$ac_exeext &&
33142        $as_test_x conftest$ac_exeext; then
33143   bash_cv_signal_vintage="posix"
33144 else
33145   echo "$as_me: failed program was:" >&5
33146 sed 's/^/| /' conftest.$ac_ext >&5
33147
33148
33149       cat >conftest.$ac_ext <<_ACEOF
33150 /* confdefs.h.  */
33151 _ACEOF
33152 cat confdefs.h >>conftest.$ac_ext
33153 cat >>conftest.$ac_ext <<_ACEOF
33154 /* end confdefs.h.  */
33155 #include <signal.h>
33156 int
33157 main ()
33158 {
33159
33160           int mask = sigmask(SIGINT);
33161           sigsetmask(mask); sigblock(mask); sigpause(mask);
33162
33163   ;
33164   return 0;
33165 }
33166 _ACEOF
33167 rm -f conftest.$ac_objext conftest$ac_exeext
33168 if { (ac_try="$ac_link"
33169 case "(($ac_try" in
33170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33171   *) ac_try_echo=$ac_try;;
33172 esac
33173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33174   (eval "$ac_link") 2>conftest.er1
33175   ac_status=$?
33176   grep -v '^ *+' conftest.er1 >conftest.err
33177   rm -f conftest.er1
33178   cat conftest.err >&5
33179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180   (exit $ac_status); } && {
33181          test -z "$ac_c_werror_flag" ||
33182          test ! -s conftest.err
33183        } && test -s conftest$ac_exeext &&
33184        $as_test_x conftest$ac_exeext; then
33185   bash_cv_signal_vintage="4.2bsd"
33186 else
33187   echo "$as_me: failed program was:" >&5
33188 sed 's/^/| /' conftest.$ac_ext >&5
33189
33190
33191         cat >conftest.$ac_ext <<_ACEOF
33192 /* confdefs.h.  */
33193 _ACEOF
33194 cat confdefs.h >>conftest.$ac_ext
33195 cat >>conftest.$ac_ext <<_ACEOF
33196 /* end confdefs.h.  */
33197
33198           #include <signal.h>
33199           RETSIGTYPE foo() { }
33200 int
33201 main ()
33202 {
33203
33204                   int mask = sigmask(SIGINT);
33205                   sigset(SIGINT, foo); sigrelse(SIGINT);
33206                   sighold(SIGINT); sigpause(SIGINT);
33207
33208   ;
33209   return 0;
33210 }
33211 _ACEOF
33212 rm -f conftest.$ac_objext conftest$ac_exeext
33213 if { (ac_try="$ac_link"
33214 case "(($ac_try" in
33215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33216   *) ac_try_echo=$ac_try;;
33217 esac
33218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33219   (eval "$ac_link") 2>conftest.er1
33220   ac_status=$?
33221   grep -v '^ *+' conftest.er1 >conftest.err
33222   rm -f conftest.er1
33223   cat conftest.err >&5
33224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33225   (exit $ac_status); } && {
33226          test -z "$ac_c_werror_flag" ||
33227          test ! -s conftest.err
33228        } && test -s conftest$ac_exeext &&
33229        $as_test_x conftest$ac_exeext; then
33230   bash_cv_signal_vintage="svr3"
33231 else
33232   echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33234
33235         bash_cv_signal_vintage="v7"
33236
33237 fi
33238
33239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33240       conftest$ac_exeext conftest.$ac_ext
33241
33242 fi
33243
33244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33245       conftest$ac_exeext conftest.$ac_ext
33246
33247 fi
33248
33249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33250       conftest$ac_exeext conftest.$ac_ext
33251
33252 fi
33253
33254   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33255 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33256   if test "$bash_cv_signal_vintage" = "posix"; then
33257     cat >>confdefs.h <<\_ACEOF
33258 #define HAVE_POSIX_SIGNALS 1
33259 _ACEOF
33260
33261   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33262     cat >>confdefs.h <<\_ACEOF
33263 #define HAVE_BSD_SIGNALS 1
33264 _ACEOF
33265
33266   elif test "$bash_cv_signal_vintage" = "svr3"; then
33267     cat >>confdefs.h <<\_ACEOF
33268 #define HAVE_USG_SIGHOLD 1
33269 _ACEOF
33270
33271   fi
33272
33273 { echo "$as_me:$LINENO: checking for mode_t" >&5
33274 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33275 if test "${ac_cv_type_mode_t+set}" = set; then
33276   echo $ECHO_N "(cached) $ECHO_C" >&6
33277 else
33278   cat >conftest.$ac_ext <<_ACEOF
33279 /* confdefs.h.  */
33280 _ACEOF
33281 cat confdefs.h >>conftest.$ac_ext
33282 cat >>conftest.$ac_ext <<_ACEOF
33283 /* end confdefs.h.  */
33284 $ac_includes_default
33285 typedef mode_t ac__type_new_;
33286 int
33287 main ()
33288 {
33289 if ((ac__type_new_ *) 0)
33290   return 0;
33291 if (sizeof (ac__type_new_))
33292   return 0;
33293   ;
33294   return 0;
33295 }
33296 _ACEOF
33297 rm -f conftest.$ac_objext
33298 if { (ac_try="$ac_compile"
33299 case "(($ac_try" in
33300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33301   *) ac_try_echo=$ac_try;;
33302 esac
33303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33304   (eval "$ac_compile") 2>conftest.er1
33305   ac_status=$?
33306   grep -v '^ *+' conftest.er1 >conftest.err
33307   rm -f conftest.er1
33308   cat conftest.err >&5
33309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33310   (exit $ac_status); } && {
33311          test -z "$ac_c_werror_flag" ||
33312          test ! -s conftest.err
33313        } && test -s conftest.$ac_objext; then
33314   ac_cv_type_mode_t=yes
33315 else
33316   echo "$as_me: failed program was:" >&5
33317 sed 's/^/| /' conftest.$ac_ext >&5
33318
33319         ac_cv_type_mode_t=no
33320 fi
33321
33322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33323 fi
33324 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33325 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33326 if test $ac_cv_type_mode_t = yes; then
33327   :
33328 else
33329
33330 cat >>confdefs.h <<_ACEOF
33331 #define mode_t int
33332 _ACEOF
33333
33334 fi
33335
33336 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33337 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33338 if test "${ac_cv_type_uid_t+set}" = set; then
33339   echo $ECHO_N "(cached) $ECHO_C" >&6
33340 else
33341   cat >conftest.$ac_ext <<_ACEOF
33342 /* confdefs.h.  */
33343 _ACEOF
33344 cat confdefs.h >>conftest.$ac_ext
33345 cat >>conftest.$ac_ext <<_ACEOF
33346 /* end confdefs.h.  */
33347 #include <sys/types.h>
33348
33349 _ACEOF
33350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33351   $EGREP "uid_t" >/dev/null 2>&1; then
33352   ac_cv_type_uid_t=yes
33353 else
33354   ac_cv_type_uid_t=no
33355 fi
33356 rm -f conftest*
33357
33358 fi
33359 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33360 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33361 if test $ac_cv_type_uid_t = no; then
33362
33363 cat >>confdefs.h <<\_ACEOF
33364 #define uid_t int
33365 _ACEOF
33366
33367
33368 cat >>confdefs.h <<\_ACEOF
33369 #define gid_t int
33370 _ACEOF
33371
33372 fi
33373
33374 { echo "$as_me:$LINENO: checking for size_t" >&5
33375 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33376 if test "${ac_cv_type_size_t+set}" = set; then
33377   echo $ECHO_N "(cached) $ECHO_C" >&6
33378 else
33379   cat >conftest.$ac_ext <<_ACEOF
33380 /* confdefs.h.  */
33381 _ACEOF
33382 cat confdefs.h >>conftest.$ac_ext
33383 cat >>conftest.$ac_ext <<_ACEOF
33384 /* end confdefs.h.  */
33385 $ac_includes_default
33386 typedef size_t ac__type_new_;
33387 int
33388 main ()
33389 {
33390 if ((ac__type_new_ *) 0)
33391   return 0;
33392 if (sizeof (ac__type_new_))
33393   return 0;
33394   ;
33395   return 0;
33396 }
33397 _ACEOF
33398 rm -f conftest.$ac_objext
33399 if { (ac_try="$ac_compile"
33400 case "(($ac_try" in
33401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33402   *) ac_try_echo=$ac_try;;
33403 esac
33404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33405   (eval "$ac_compile") 2>conftest.er1
33406   ac_status=$?
33407   grep -v '^ *+' conftest.er1 >conftest.err
33408   rm -f conftest.er1
33409   cat conftest.err >&5
33410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411   (exit $ac_status); } && {
33412          test -z "$ac_c_werror_flag" ||
33413          test ! -s conftest.err
33414        } && test -s conftest.$ac_objext; then
33415   ac_cv_type_size_t=yes
33416 else
33417   echo "$as_me: failed program was:" >&5
33418 sed 's/^/| /' conftest.$ac_ext >&5
33419
33420         ac_cv_type_size_t=no
33421 fi
33422
33423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33424 fi
33425 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33426 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33427 if test $ac_cv_type_size_t = yes; then
33428   :
33429 else
33430
33431 cat >>confdefs.h <<_ACEOF
33432 #define size_t unsigned int
33433 _ACEOF
33434
33435 fi
33436
33437 { echo "$as_me:$LINENO: checking for pid_t" >&5
33438 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33439 if test "${ac_cv_type_pid_t+set}" = set; then
33440   echo $ECHO_N "(cached) $ECHO_C" >&6
33441 else
33442   cat >conftest.$ac_ext <<_ACEOF
33443 /* confdefs.h.  */
33444 _ACEOF
33445 cat confdefs.h >>conftest.$ac_ext
33446 cat >>conftest.$ac_ext <<_ACEOF
33447 /* end confdefs.h.  */
33448 $ac_includes_default
33449 typedef pid_t ac__type_new_;
33450 int
33451 main ()
33452 {
33453 if ((ac__type_new_ *) 0)
33454   return 0;
33455 if (sizeof (ac__type_new_))
33456   return 0;
33457   ;
33458   return 0;
33459 }
33460 _ACEOF
33461 rm -f conftest.$ac_objext
33462 if { (ac_try="$ac_compile"
33463 case "(($ac_try" in
33464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465   *) ac_try_echo=$ac_try;;
33466 esac
33467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468   (eval "$ac_compile") 2>conftest.er1
33469   ac_status=$?
33470   grep -v '^ *+' conftest.er1 >conftest.err
33471   rm -f conftest.er1
33472   cat conftest.err >&5
33473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474   (exit $ac_status); } && {
33475          test -z "$ac_c_werror_flag" ||
33476          test ! -s conftest.err
33477        } && test -s conftest.$ac_objext; then
33478   ac_cv_type_pid_t=yes
33479 else
33480   echo "$as_me: failed program was:" >&5
33481 sed 's/^/| /' conftest.$ac_ext >&5
33482
33483         ac_cv_type_pid_t=no
33484 fi
33485
33486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33487 fi
33488 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33489 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33490 if test $ac_cv_type_pid_t = yes; then
33491   :
33492 else
33493
33494 cat >>confdefs.h <<_ACEOF
33495 #define pid_t int
33496 _ACEOF
33497
33498 fi
33499
33500 { echo "$as_me:$LINENO: checking for off_t" >&5
33501 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33502 if test "${ac_cv_type_off_t+set}" = set; then
33503   echo $ECHO_N "(cached) $ECHO_C" >&6
33504 else
33505   cat >conftest.$ac_ext <<_ACEOF
33506 /* confdefs.h.  */
33507 _ACEOF
33508 cat confdefs.h >>conftest.$ac_ext
33509 cat >>conftest.$ac_ext <<_ACEOF
33510 /* end confdefs.h.  */
33511 $ac_includes_default
33512 typedef off_t ac__type_new_;
33513 int
33514 main ()
33515 {
33516 if ((ac__type_new_ *) 0)
33517   return 0;
33518 if (sizeof (ac__type_new_))
33519   return 0;
33520   ;
33521   return 0;
33522 }
33523 _ACEOF
33524 rm -f conftest.$ac_objext
33525 if { (ac_try="$ac_compile"
33526 case "(($ac_try" in
33527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33528   *) ac_try_echo=$ac_try;;
33529 esac
33530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33531   (eval "$ac_compile") 2>conftest.er1
33532   ac_status=$?
33533   grep -v '^ *+' conftest.er1 >conftest.err
33534   rm -f conftest.er1
33535   cat conftest.err >&5
33536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537   (exit $ac_status); } && {
33538          test -z "$ac_c_werror_flag" ||
33539          test ! -s conftest.err
33540        } && test -s conftest.$ac_objext; then
33541   ac_cv_type_off_t=yes
33542 else
33543   echo "$as_me: failed program was:" >&5
33544 sed 's/^/| /' conftest.$ac_ext >&5
33545
33546         ac_cv_type_off_t=no
33547 fi
33548
33549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33550 fi
33551 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33552 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33553 if test $ac_cv_type_off_t = yes; then
33554   :
33555 else
33556
33557 cat >>confdefs.h <<_ACEOF
33558 #define off_t long int
33559 _ACEOF
33560
33561 fi
33562
33563
33564   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33565 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33566 if test "${ac_cv_type_intptr_t+set}" = set; then
33567   echo $ECHO_N "(cached) $ECHO_C" >&6
33568 else
33569   cat >conftest.$ac_ext <<_ACEOF
33570 /* confdefs.h.  */
33571 _ACEOF
33572 cat confdefs.h >>conftest.$ac_ext
33573 cat >>conftest.$ac_ext <<_ACEOF
33574 /* end confdefs.h.  */
33575 $ac_includes_default
33576 typedef intptr_t ac__type_new_;
33577 int
33578 main ()
33579 {
33580 if ((ac__type_new_ *) 0)
33581   return 0;
33582 if (sizeof (ac__type_new_))
33583   return 0;
33584   ;
33585   return 0;
33586 }
33587 _ACEOF
33588 rm -f conftest.$ac_objext
33589 if { (ac_try="$ac_compile"
33590 case "(($ac_try" in
33591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33592   *) ac_try_echo=$ac_try;;
33593 esac
33594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33595   (eval "$ac_compile") 2>conftest.er1
33596   ac_status=$?
33597   grep -v '^ *+' conftest.er1 >conftest.err
33598   rm -f conftest.er1
33599   cat conftest.err >&5
33600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601   (exit $ac_status); } && {
33602          test -z "$ac_c_werror_flag" ||
33603          test ! -s conftest.err
33604        } && test -s conftest.$ac_objext; then
33605   ac_cv_type_intptr_t=yes
33606 else
33607   echo "$as_me: failed program was:" >&5
33608 sed 's/^/| /' conftest.$ac_ext >&5
33609
33610         ac_cv_type_intptr_t=no
33611 fi
33612
33613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33614 fi
33615 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33616 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33617 if test $ac_cv_type_intptr_t = yes; then
33618
33619 cat >>confdefs.h <<\_ACEOF
33620 #define HAVE_INTPTR_T 1
33621 _ACEOF
33622
33623 else
33624   for ac_type in 'int' 'long int' 'long long int'; do
33625        cat >conftest.$ac_ext <<_ACEOF
33626 /* confdefs.h.  */
33627 _ACEOF
33628 cat confdefs.h >>conftest.$ac_ext
33629 cat >>conftest.$ac_ext <<_ACEOF
33630 /* end confdefs.h.  */
33631 $ac_includes_default
33632 int
33633 main ()
33634 {
33635 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33636 test_array [0] = 0
33637
33638   ;
33639   return 0;
33640 }
33641 _ACEOF
33642 rm -f conftest.$ac_objext
33643 if { (ac_try="$ac_compile"
33644 case "(($ac_try" in
33645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33646   *) ac_try_echo=$ac_try;;
33647 esac
33648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33649   (eval "$ac_compile") 2>conftest.er1
33650   ac_status=$?
33651   grep -v '^ *+' conftest.er1 >conftest.err
33652   rm -f conftest.er1
33653   cat conftest.err >&5
33654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655   (exit $ac_status); } && {
33656          test -z "$ac_c_werror_flag" ||
33657          test ! -s conftest.err
33658        } && test -s conftest.$ac_objext; then
33659
33660 cat >>confdefs.h <<_ACEOF
33661 #define intptr_t $ac_type
33662 _ACEOF
33663
33664           ac_type=
33665 else
33666   echo "$as_me: failed program was:" >&5
33667 sed 's/^/| /' conftest.$ac_ext >&5
33668
33669
33670 fi
33671
33672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33673        test -z "$ac_type" && break
33674      done
33675 fi
33676
33677
33678
33679   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33680 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33681 if test "${ac_cv_type_uintptr_t+set}" = set; then
33682   echo $ECHO_N "(cached) $ECHO_C" >&6
33683 else
33684   cat >conftest.$ac_ext <<_ACEOF
33685 /* confdefs.h.  */
33686 _ACEOF
33687 cat confdefs.h >>conftest.$ac_ext
33688 cat >>conftest.$ac_ext <<_ACEOF
33689 /* end confdefs.h.  */
33690 $ac_includes_default
33691 typedef uintptr_t ac__type_new_;
33692 int
33693 main ()
33694 {
33695 if ((ac__type_new_ *) 0)
33696   return 0;
33697 if (sizeof (ac__type_new_))
33698   return 0;
33699   ;
33700   return 0;
33701 }
33702 _ACEOF
33703 rm -f conftest.$ac_objext
33704 if { (ac_try="$ac_compile"
33705 case "(($ac_try" in
33706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33707   *) ac_try_echo=$ac_try;;
33708 esac
33709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33710   (eval "$ac_compile") 2>conftest.er1
33711   ac_status=$?
33712   grep -v '^ *+' conftest.er1 >conftest.err
33713   rm -f conftest.er1
33714   cat conftest.err >&5
33715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716   (exit $ac_status); } && {
33717          test -z "$ac_c_werror_flag" ||
33718          test ! -s conftest.err
33719        } && test -s conftest.$ac_objext; then
33720   ac_cv_type_uintptr_t=yes
33721 else
33722   echo "$as_me: failed program was:" >&5
33723 sed 's/^/| /' conftest.$ac_ext >&5
33724
33725         ac_cv_type_uintptr_t=no
33726 fi
33727
33728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33729 fi
33730 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33731 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33732 if test $ac_cv_type_uintptr_t = yes; then
33733
33734 cat >>confdefs.h <<\_ACEOF
33735 #define HAVE_UINTPTR_T 1
33736 _ACEOF
33737
33738 else
33739   for ac_type in 'unsigned int' 'unsigned long int' \
33740         'unsigned long long int'; do
33741        cat >conftest.$ac_ext <<_ACEOF
33742 /* confdefs.h.  */
33743 _ACEOF
33744 cat confdefs.h >>conftest.$ac_ext
33745 cat >>conftest.$ac_ext <<_ACEOF
33746 /* end confdefs.h.  */
33747 $ac_includes_default
33748 int
33749 main ()
33750 {
33751 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33752 test_array [0] = 0
33753
33754   ;
33755   return 0;
33756 }
33757 _ACEOF
33758 rm -f conftest.$ac_objext
33759 if { (ac_try="$ac_compile"
33760 case "(($ac_try" in
33761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762   *) ac_try_echo=$ac_try;;
33763 esac
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765   (eval "$ac_compile") 2>conftest.er1
33766   ac_status=$?
33767   grep -v '^ *+' conftest.er1 >conftest.err
33768   rm -f conftest.er1
33769   cat conftest.err >&5
33770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33771   (exit $ac_status); } && {
33772          test -z "$ac_c_werror_flag" ||
33773          test ! -s conftest.err
33774        } && test -s conftest.$ac_objext; then
33775
33776 cat >>confdefs.h <<_ACEOF
33777 #define uintptr_t $ac_type
33778 _ACEOF
33779
33780           ac_type=
33781 else
33782   echo "$as_me: failed program was:" >&5
33783 sed 's/^/| /' conftest.$ac_ext >&5
33784
33785
33786 fi
33787
33788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33789        test -z "$ac_type" && break
33790      done
33791 fi
33792
33793
33794 { echo "$as_me:$LINENO: checking for ino_t" >&5
33795 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33796 if test "${ac_cv_type_ino_t+set}" = set; then
33797   echo $ECHO_N "(cached) $ECHO_C" >&6
33798 else
33799   cat >conftest.$ac_ext <<_ACEOF
33800 /* confdefs.h.  */
33801 _ACEOF
33802 cat confdefs.h >>conftest.$ac_ext
33803 cat >>conftest.$ac_ext <<_ACEOF
33804 /* end confdefs.h.  */
33805 $ac_includes_default
33806 typedef ino_t ac__type_new_;
33807 int
33808 main ()
33809 {
33810 if ((ac__type_new_ *) 0)
33811   return 0;
33812 if (sizeof (ac__type_new_))
33813   return 0;
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   ac_cv_type_ino_t=yes
33836 else
33837   echo "$as_me: failed program was:" >&5
33838 sed 's/^/| /' conftest.$ac_ext >&5
33839
33840         ac_cv_type_ino_t=no
33841 fi
33842
33843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33844 fi
33845 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33846 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33847 if test $ac_cv_type_ino_t = yes; then
33848   :
33849 else
33850
33851 cat >>confdefs.h <<_ACEOF
33852 #define ino_t unsigned long
33853 _ACEOF
33854
33855 fi
33856
33857 { echo "$as_me:$LINENO: checking for dev_t" >&5
33858 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33859 if test "${ac_cv_type_dev_t+set}" = set; then
33860   echo $ECHO_N "(cached) $ECHO_C" >&6
33861 else
33862   cat >conftest.$ac_ext <<_ACEOF
33863 /* confdefs.h.  */
33864 _ACEOF
33865 cat confdefs.h >>conftest.$ac_ext
33866 cat >>conftest.$ac_ext <<_ACEOF
33867 /* end confdefs.h.  */
33868 $ac_includes_default
33869 typedef dev_t ac__type_new_;
33870 int
33871 main ()
33872 {
33873 if ((ac__type_new_ *) 0)
33874   return 0;
33875 if (sizeof (ac__type_new_))
33876   return 0;
33877   ;
33878   return 0;
33879 }
33880 _ACEOF
33881 rm -f conftest.$ac_objext
33882 if { (ac_try="$ac_compile"
33883 case "(($ac_try" in
33884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33885   *) ac_try_echo=$ac_try;;
33886 esac
33887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33888   (eval "$ac_compile") 2>conftest.er1
33889   ac_status=$?
33890   grep -v '^ *+' conftest.er1 >conftest.err
33891   rm -f conftest.er1
33892   cat conftest.err >&5
33893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894   (exit $ac_status); } && {
33895          test -z "$ac_c_werror_flag" ||
33896          test ! -s conftest.err
33897        } && test -s conftest.$ac_objext; then
33898   ac_cv_type_dev_t=yes
33899 else
33900   echo "$as_me: failed program was:" >&5
33901 sed 's/^/| /' conftest.$ac_ext >&5
33902
33903         ac_cv_type_dev_t=no
33904 fi
33905
33906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33907 fi
33908 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33909 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33910 if test $ac_cv_type_dev_t = yes; then
33911   :
33912 else
33913
33914 cat >>confdefs.h <<_ACEOF
33915 #define dev_t unsigned long
33916 _ACEOF
33917
33918 fi
33919
33920 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33921 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33922 if test "${ac_cv_type_daddr_t+set}" = set; then
33923   echo $ECHO_N "(cached) $ECHO_C" >&6
33924 else
33925   cat >conftest.$ac_ext <<_ACEOF
33926 /* confdefs.h.  */
33927 _ACEOF
33928 cat confdefs.h >>conftest.$ac_ext
33929 cat >>conftest.$ac_ext <<_ACEOF
33930 /* end confdefs.h.  */
33931 $ac_includes_default
33932 typedef daddr_t ac__type_new_;
33933 int
33934 main ()
33935 {
33936 if ((ac__type_new_ *) 0)
33937   return 0;
33938 if (sizeof (ac__type_new_))
33939   return 0;
33940   ;
33941   return 0;
33942 }
33943 _ACEOF
33944 rm -f conftest.$ac_objext
33945 if { (ac_try="$ac_compile"
33946 case "(($ac_try" in
33947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33948   *) ac_try_echo=$ac_try;;
33949 esac
33950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33951   (eval "$ac_compile") 2>conftest.er1
33952   ac_status=$?
33953   grep -v '^ *+' conftest.er1 >conftest.err
33954   rm -f conftest.er1
33955   cat conftest.err >&5
33956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957   (exit $ac_status); } && {
33958          test -z "$ac_c_werror_flag" ||
33959          test ! -s conftest.err
33960        } && test -s conftest.$ac_objext; then
33961   ac_cv_type_daddr_t=yes
33962 else
33963   echo "$as_me: failed program was:" >&5
33964 sed 's/^/| /' conftest.$ac_ext >&5
33965
33966         ac_cv_type_daddr_t=no
33967 fi
33968
33969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33970 fi
33971 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33972 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33973 if test $ac_cv_type_daddr_t = yes; then
33974   :
33975 else
33976
33977 cat >>confdefs.h <<_ACEOF
33978 #define daddr_t long
33979 _ACEOF
33980
33981 fi
33982
33983 { echo "$as_me:$LINENO: checking for major_t" >&5
33984 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33985 if test "${ac_cv_type_major_t+set}" = set; then
33986   echo $ECHO_N "(cached) $ECHO_C" >&6
33987 else
33988   cat >conftest.$ac_ext <<_ACEOF
33989 /* confdefs.h.  */
33990 _ACEOF
33991 cat confdefs.h >>conftest.$ac_ext
33992 cat >>conftest.$ac_ext <<_ACEOF
33993 /* end confdefs.h.  */
33994 $ac_includes_default
33995 typedef major_t ac__type_new_;
33996 int
33997 main ()
33998 {
33999 if ((ac__type_new_ *) 0)
34000   return 0;
34001 if (sizeof (ac__type_new_))
34002   return 0;
34003   ;
34004   return 0;
34005 }
34006 _ACEOF
34007 rm -f conftest.$ac_objext
34008 if { (ac_try="$ac_compile"
34009 case "(($ac_try" in
34010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34011   *) ac_try_echo=$ac_try;;
34012 esac
34013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34014   (eval "$ac_compile") 2>conftest.er1
34015   ac_status=$?
34016   grep -v '^ *+' conftest.er1 >conftest.err
34017   rm -f conftest.er1
34018   cat conftest.err >&5
34019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020   (exit $ac_status); } && {
34021          test -z "$ac_c_werror_flag" ||
34022          test ! -s conftest.err
34023        } && test -s conftest.$ac_objext; then
34024   ac_cv_type_major_t=yes
34025 else
34026   echo "$as_me: failed program was:" >&5
34027 sed 's/^/| /' conftest.$ac_ext >&5
34028
34029         ac_cv_type_major_t=no
34030 fi
34031
34032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34033 fi
34034 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34035 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34036 if test $ac_cv_type_major_t = yes; then
34037   :
34038 else
34039
34040 cat >>confdefs.h <<_ACEOF
34041 #define major_t int
34042 _ACEOF
34043
34044 fi
34045
34046 { echo "$as_me:$LINENO: checking for minor_t" >&5
34047 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34048 if test "${ac_cv_type_minor_t+set}" = set; then
34049   echo $ECHO_N "(cached) $ECHO_C" >&6
34050 else
34051   cat >conftest.$ac_ext <<_ACEOF
34052 /* confdefs.h.  */
34053 _ACEOF
34054 cat confdefs.h >>conftest.$ac_ext
34055 cat >>conftest.$ac_ext <<_ACEOF
34056 /* end confdefs.h.  */
34057 $ac_includes_default
34058 typedef minor_t ac__type_new_;
34059 int
34060 main ()
34061 {
34062 if ((ac__type_new_ *) 0)
34063   return 0;
34064 if (sizeof (ac__type_new_))
34065   return 0;
34066   ;
34067   return 0;
34068 }
34069 _ACEOF
34070 rm -f conftest.$ac_objext
34071 if { (ac_try="$ac_compile"
34072 case "(($ac_try" in
34073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34074   *) ac_try_echo=$ac_try;;
34075 esac
34076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34077   (eval "$ac_compile") 2>conftest.er1
34078   ac_status=$?
34079   grep -v '^ *+' conftest.er1 >conftest.err
34080   rm -f conftest.er1
34081   cat conftest.err >&5
34082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083   (exit $ac_status); } && {
34084          test -z "$ac_c_werror_flag" ||
34085          test ! -s conftest.err
34086        } && test -s conftest.$ac_objext; then
34087   ac_cv_type_minor_t=yes
34088 else
34089   echo "$as_me: failed program was:" >&5
34090 sed 's/^/| /' conftest.$ac_ext >&5
34091
34092         ac_cv_type_minor_t=no
34093 fi
34094
34095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34096 fi
34097 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34098 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34099 if test $ac_cv_type_minor_t = yes; then
34100   :
34101 else
34102
34103 cat >>confdefs.h <<_ACEOF
34104 #define minor_t int
34105 _ACEOF
34106
34107 fi
34108
34109 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34110 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34111 if test "${ac_cv_type_ssize_t+set}" = set; then
34112   echo $ECHO_N "(cached) $ECHO_C" >&6
34113 else
34114   cat >conftest.$ac_ext <<_ACEOF
34115 /* confdefs.h.  */
34116 _ACEOF
34117 cat confdefs.h >>conftest.$ac_ext
34118 cat >>conftest.$ac_ext <<_ACEOF
34119 /* end confdefs.h.  */
34120 $ac_includes_default
34121 typedef ssize_t ac__type_new_;
34122 int
34123 main ()
34124 {
34125 if ((ac__type_new_ *) 0)
34126   return 0;
34127 if (sizeof (ac__type_new_))
34128   return 0;
34129   ;
34130   return 0;
34131 }
34132 _ACEOF
34133 rm -f conftest.$ac_objext
34134 if { (ac_try="$ac_compile"
34135 case "(($ac_try" in
34136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34137   *) ac_try_echo=$ac_try;;
34138 esac
34139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34140   (eval "$ac_compile") 2>conftest.er1
34141   ac_status=$?
34142   grep -v '^ *+' conftest.er1 >conftest.err
34143   rm -f conftest.er1
34144   cat conftest.err >&5
34145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146   (exit $ac_status); } && {
34147          test -z "$ac_c_werror_flag" ||
34148          test ! -s conftest.err
34149        } && test -s conftest.$ac_objext; then
34150   ac_cv_type_ssize_t=yes
34151 else
34152   echo "$as_me: failed program was:" >&5
34153 sed 's/^/| /' conftest.$ac_ext >&5
34154
34155         ac_cv_type_ssize_t=no
34156 fi
34157
34158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34159 fi
34160 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34161 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34162 if test $ac_cv_type_ssize_t = yes; then
34163   :
34164 else
34165
34166 cat >>confdefs.h <<_ACEOF
34167 #define ssize_t int
34168 _ACEOF
34169
34170 fi
34171
34172 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34173 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34174 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34175   echo $ECHO_N "(cached) $ECHO_C" >&6
34176 else
34177   cat >conftest.$ac_ext <<_ACEOF
34178 /* confdefs.h.  */
34179 _ACEOF
34180 cat confdefs.h >>conftest.$ac_ext
34181 cat >>conftest.$ac_ext <<_ACEOF
34182 /* end confdefs.h.  */
34183 $ac_includes_default
34184 int
34185 main ()
34186 {
34187 static struct stat ac_aggr;
34188 if (ac_aggr.st_blocks)
34189 return 0;
34190   ;
34191   return 0;
34192 }
34193 _ACEOF
34194 rm -f conftest.$ac_objext
34195 if { (ac_try="$ac_compile"
34196 case "(($ac_try" in
34197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34198   *) ac_try_echo=$ac_try;;
34199 esac
34200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34201   (eval "$ac_compile") 2>conftest.er1
34202   ac_status=$?
34203   grep -v '^ *+' conftest.er1 >conftest.err
34204   rm -f conftest.er1
34205   cat conftest.err >&5
34206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207   (exit $ac_status); } && {
34208          test -z "$ac_c_werror_flag" ||
34209          test ! -s conftest.err
34210        } && test -s conftest.$ac_objext; then
34211   ac_cv_member_struct_stat_st_blocks=yes
34212 else
34213   echo "$as_me: failed program was:" >&5
34214 sed 's/^/| /' conftest.$ac_ext >&5
34215
34216         cat >conftest.$ac_ext <<_ACEOF
34217 /* confdefs.h.  */
34218 _ACEOF
34219 cat confdefs.h >>conftest.$ac_ext
34220 cat >>conftest.$ac_ext <<_ACEOF
34221 /* end confdefs.h.  */
34222 $ac_includes_default
34223 int
34224 main ()
34225 {
34226 static struct stat ac_aggr;
34227 if (sizeof ac_aggr.st_blocks)
34228 return 0;
34229   ;
34230   return 0;
34231 }
34232 _ACEOF
34233 rm -f conftest.$ac_objext
34234 if { (ac_try="$ac_compile"
34235 case "(($ac_try" in
34236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34237   *) ac_try_echo=$ac_try;;
34238 esac
34239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34240   (eval "$ac_compile") 2>conftest.er1
34241   ac_status=$?
34242   grep -v '^ *+' conftest.er1 >conftest.err
34243   rm -f conftest.er1
34244   cat conftest.err >&5
34245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34246   (exit $ac_status); } && {
34247          test -z "$ac_c_werror_flag" ||
34248          test ! -s conftest.err
34249        } && test -s conftest.$ac_objext; then
34250   ac_cv_member_struct_stat_st_blocks=yes
34251 else
34252   echo "$as_me: failed program was:" >&5
34253 sed 's/^/| /' conftest.$ac_ext >&5
34254
34255         ac_cv_member_struct_stat_st_blocks=no
34256 fi
34257
34258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34259 fi
34260
34261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34262 fi
34263 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34264 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34265 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34266
34267 cat >>confdefs.h <<_ACEOF
34268 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34269 _ACEOF
34270
34271
34272 cat >>confdefs.h <<\_ACEOF
34273 #define HAVE_ST_BLOCKS 1
34274 _ACEOF
34275
34276 else
34277   case " $LIBOBJS " in
34278   *" fileblocks.$ac_objext "* ) ;;
34279   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34280  ;;
34281 esac
34282
34283 fi
34284
34285
34286 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34287 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34288 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34289   echo $ECHO_N "(cached) $ECHO_C" >&6
34290 else
34291   cat >conftest.$ac_ext <<_ACEOF
34292 /* confdefs.h.  */
34293 _ACEOF
34294 cat confdefs.h >>conftest.$ac_ext
34295 cat >>conftest.$ac_ext <<_ACEOF
34296 /* end confdefs.h.  */
34297 $ac_includes_default
34298 int
34299 main ()
34300 {
34301 static struct stat ac_aggr;
34302 if (ac_aggr.st_rdev)
34303 return 0;
34304   ;
34305   return 0;
34306 }
34307 _ACEOF
34308 rm -f conftest.$ac_objext
34309 if { (ac_try="$ac_compile"
34310 case "(($ac_try" in
34311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34312   *) ac_try_echo=$ac_try;;
34313 esac
34314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34315   (eval "$ac_compile") 2>conftest.er1
34316   ac_status=$?
34317   grep -v '^ *+' conftest.er1 >conftest.err
34318   rm -f conftest.er1
34319   cat conftest.err >&5
34320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321   (exit $ac_status); } && {
34322          test -z "$ac_c_werror_flag" ||
34323          test ! -s conftest.err
34324        } && test -s conftest.$ac_objext; then
34325   ac_cv_member_struct_stat_st_rdev=yes
34326 else
34327   echo "$as_me: failed program was:" >&5
34328 sed 's/^/| /' conftest.$ac_ext >&5
34329
34330         cat >conftest.$ac_ext <<_ACEOF
34331 /* confdefs.h.  */
34332 _ACEOF
34333 cat confdefs.h >>conftest.$ac_ext
34334 cat >>conftest.$ac_ext <<_ACEOF
34335 /* end confdefs.h.  */
34336 $ac_includes_default
34337 int
34338 main ()
34339 {
34340 static struct stat ac_aggr;
34341 if (sizeof ac_aggr.st_rdev)
34342 return 0;
34343   ;
34344   return 0;
34345 }
34346 _ACEOF
34347 rm -f conftest.$ac_objext
34348 if { (ac_try="$ac_compile"
34349 case "(($ac_try" in
34350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34351   *) ac_try_echo=$ac_try;;
34352 esac
34353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34354   (eval "$ac_compile") 2>conftest.er1
34355   ac_status=$?
34356   grep -v '^ *+' conftest.er1 >conftest.err
34357   rm -f conftest.er1
34358   cat conftest.err >&5
34359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34360   (exit $ac_status); } && {
34361          test -z "$ac_c_werror_flag" ||
34362          test ! -s conftest.err
34363        } && test -s conftest.$ac_objext; then
34364   ac_cv_member_struct_stat_st_rdev=yes
34365 else
34366   echo "$as_me: failed program was:" >&5
34367 sed 's/^/| /' conftest.$ac_ext >&5
34368
34369         ac_cv_member_struct_stat_st_rdev=no
34370 fi
34371
34372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34373 fi
34374
34375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34376 fi
34377 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34378 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34379 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34380
34381 cat >>confdefs.h <<_ACEOF
34382 #define HAVE_STRUCT_STAT_ST_RDEV 1
34383 _ACEOF
34384
34385
34386 cat >>confdefs.h <<\_ACEOF
34387 #define HAVE_ST_RDEV 1
34388 _ACEOF
34389
34390 fi
34391
34392
34393 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34394 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34395 if test "${ac_cv_struct_tm+set}" = set; then
34396   echo $ECHO_N "(cached) $ECHO_C" >&6
34397 else
34398   cat >conftest.$ac_ext <<_ACEOF
34399 /* confdefs.h.  */
34400 _ACEOF
34401 cat confdefs.h >>conftest.$ac_ext
34402 cat >>conftest.$ac_ext <<_ACEOF
34403 /* end confdefs.h.  */
34404 #include <sys/types.h>
34405 #include <time.h>
34406
34407 int
34408 main ()
34409 {
34410 struct tm tm;
34411                                      int *p = &tm.tm_sec;
34412                                      return !p;
34413   ;
34414   return 0;
34415 }
34416 _ACEOF
34417 rm -f conftest.$ac_objext
34418 if { (ac_try="$ac_compile"
34419 case "(($ac_try" in
34420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34421   *) ac_try_echo=$ac_try;;
34422 esac
34423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34424   (eval "$ac_compile") 2>conftest.er1
34425   ac_status=$?
34426   grep -v '^ *+' conftest.er1 >conftest.err
34427   rm -f conftest.er1
34428   cat conftest.err >&5
34429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34430   (exit $ac_status); } && {
34431          test -z "$ac_c_werror_flag" ||
34432          test ! -s conftest.err
34433        } && test -s conftest.$ac_objext; then
34434   ac_cv_struct_tm=time.h
34435 else
34436   echo "$as_me: failed program was:" >&5
34437 sed 's/^/| /' conftest.$ac_ext >&5
34438
34439         ac_cv_struct_tm=sys/time.h
34440 fi
34441
34442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34443 fi
34444 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34445 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34446 if test $ac_cv_struct_tm = sys/time.h; then
34447
34448 cat >>confdefs.h <<\_ACEOF
34449 #define TM_IN_SYS_TIME 1
34450 _ACEOF
34451
34452 fi
34453
34454 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34455 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34456 if test "${ac_cv_c_const+set}" = set; then
34457   echo $ECHO_N "(cached) $ECHO_C" >&6
34458 else
34459   cat >conftest.$ac_ext <<_ACEOF
34460 /* confdefs.h.  */
34461 _ACEOF
34462 cat confdefs.h >>conftest.$ac_ext
34463 cat >>conftest.$ac_ext <<_ACEOF
34464 /* end confdefs.h.  */
34465
34466 int
34467 main ()
34468 {
34469 /* FIXME: Include the comments suggested by Paul. */
34470 #ifndef __cplusplus
34471   /* Ultrix mips cc rejects this.  */
34472   typedef int charset[2];
34473   const charset cs;
34474   /* SunOS 4.1.1 cc rejects this.  */
34475   char const *const *pcpcc;
34476   char **ppc;
34477   /* NEC SVR4.0.2 mips cc rejects this.  */
34478   struct point {int x, y;};
34479   static struct point const zero = {0,0};
34480   /* AIX XL C 1.02.0.0 rejects this.
34481      It does not let you subtract one const X* pointer from another in
34482      an arm of an if-expression whose if-part is not a constant
34483      expression */
34484   const char *g = "string";
34485   pcpcc = &g + (g ? g-g : 0);
34486   /* HPUX 7.0 cc rejects these. */
34487   ++pcpcc;
34488   ppc = (char**) pcpcc;
34489   pcpcc = (char const *const *) ppc;
34490   { /* SCO 3.2v4 cc rejects this.  */
34491     char *t;
34492     char const *s = 0 ? (char *) 0 : (char const *) 0;
34493
34494     *t++ = 0;
34495     if (s) return 0;
34496   }
34497   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34498     int x[] = {25, 17};
34499     const int *foo = &x[0];
34500     ++foo;
34501   }
34502   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34503     typedef const int *iptr;
34504     iptr p = 0;
34505     ++p;
34506   }
34507   { /* AIX XL C 1.02.0.0 rejects this saying
34508        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34509     struct s { int j; const int *ap[3]; };
34510     struct s *b; b->j = 5;
34511   }
34512   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34513     const int foo = 10;
34514     if (!foo) return 0;
34515   }
34516   return !cs[0] && !zero.x;
34517 #endif
34518
34519   ;
34520   return 0;
34521 }
34522 _ACEOF
34523 rm -f conftest.$ac_objext
34524 if { (ac_try="$ac_compile"
34525 case "(($ac_try" in
34526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34527   *) ac_try_echo=$ac_try;;
34528 esac
34529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34530   (eval "$ac_compile") 2>conftest.er1
34531   ac_status=$?
34532   grep -v '^ *+' conftest.er1 >conftest.err
34533   rm -f conftest.er1
34534   cat conftest.err >&5
34535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34536   (exit $ac_status); } && {
34537          test -z "$ac_c_werror_flag" ||
34538          test ! -s conftest.err
34539        } && test -s conftest.$ac_objext; then
34540   ac_cv_c_const=yes
34541 else
34542   echo "$as_me: failed program was:" >&5
34543 sed 's/^/| /' conftest.$ac_ext >&5
34544
34545         ac_cv_c_const=no
34546 fi
34547
34548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34549 fi
34550 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34551 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34552 if test $ac_cv_c_const = no; then
34553
34554 cat >>confdefs.h <<\_ACEOF
34555 #define const
34556 _ACEOF
34557
34558 fi
34559
34560
34561 { echo "$as_me:$LINENO: checking for char" >&5
34562 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34563 if test "${ac_cv_type_char+set}" = set; then
34564   echo $ECHO_N "(cached) $ECHO_C" >&6
34565 else
34566   cat >conftest.$ac_ext <<_ACEOF
34567 /* confdefs.h.  */
34568 _ACEOF
34569 cat confdefs.h >>conftest.$ac_ext
34570 cat >>conftest.$ac_ext <<_ACEOF
34571 /* end confdefs.h.  */
34572 $ac_includes_default
34573 typedef char ac__type_new_;
34574 int
34575 main ()
34576 {
34577 if ((ac__type_new_ *) 0)
34578   return 0;
34579 if (sizeof (ac__type_new_))
34580   return 0;
34581   ;
34582   return 0;
34583 }
34584 _ACEOF
34585 rm -f conftest.$ac_objext
34586 if { (ac_try="$ac_compile"
34587 case "(($ac_try" in
34588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34589   *) ac_try_echo=$ac_try;;
34590 esac
34591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34592   (eval "$ac_compile") 2>conftest.er1
34593   ac_status=$?
34594   grep -v '^ *+' conftest.er1 >conftest.err
34595   rm -f conftest.er1
34596   cat conftest.err >&5
34597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598   (exit $ac_status); } && {
34599          test -z "$ac_c_werror_flag" ||
34600          test ! -s conftest.err
34601        } && test -s conftest.$ac_objext; then
34602   ac_cv_type_char=yes
34603 else
34604   echo "$as_me: failed program was:" >&5
34605 sed 's/^/| /' conftest.$ac_ext >&5
34606
34607         ac_cv_type_char=no
34608 fi
34609
34610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34611 fi
34612 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34613 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34614
34615 # The cast to long int works around a bug in the HP C Compiler
34616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34618 # This bug is HP SR number 8606223364.
34619 { echo "$as_me:$LINENO: checking size of char" >&5
34620 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34621 if test "${ac_cv_sizeof_char+set}" = set; then
34622   echo $ECHO_N "(cached) $ECHO_C" >&6
34623 else
34624   if test "$cross_compiling" = yes; then
34625   # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
34634 int
34635 main ()
34636 {
34637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34638 test_array [0] = 0
34639
34640   ;
34641   return 0;
34642 }
34643 _ACEOF
34644 rm -f conftest.$ac_objext
34645 if { (ac_try="$ac_compile"
34646 case "(($ac_try" in
34647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34648   *) ac_try_echo=$ac_try;;
34649 esac
34650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34651   (eval "$ac_compile") 2>conftest.er1
34652   ac_status=$?
34653   grep -v '^ *+' conftest.er1 >conftest.err
34654   rm -f conftest.er1
34655   cat conftest.err >&5
34656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34657   (exit $ac_status); } && {
34658          test -z "$ac_c_werror_flag" ||
34659          test ! -s conftest.err
34660        } && test -s conftest.$ac_objext; then
34661   ac_lo=0 ac_mid=0
34662   while :; do
34663     cat >conftest.$ac_ext <<_ACEOF
34664 /* confdefs.h.  */
34665 _ACEOF
34666 cat confdefs.h >>conftest.$ac_ext
34667 cat >>conftest.$ac_ext <<_ACEOF
34668 /* end confdefs.h.  */
34669 $ac_includes_default
34670    typedef char ac__type_sizeof_;
34671 int
34672 main ()
34673 {
34674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34675 test_array [0] = 0
34676
34677   ;
34678   return 0;
34679 }
34680 _ACEOF
34681 rm -f conftest.$ac_objext
34682 if { (ac_try="$ac_compile"
34683 case "(($ac_try" in
34684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34685   *) ac_try_echo=$ac_try;;
34686 esac
34687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34688   (eval "$ac_compile") 2>conftest.er1
34689   ac_status=$?
34690   grep -v '^ *+' conftest.er1 >conftest.err
34691   rm -f conftest.er1
34692   cat conftest.err >&5
34693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694   (exit $ac_status); } && {
34695          test -z "$ac_c_werror_flag" ||
34696          test ! -s conftest.err
34697        } && test -s conftest.$ac_objext; then
34698   ac_hi=$ac_mid; break
34699 else
34700   echo "$as_me: failed program was:" >&5
34701 sed 's/^/| /' conftest.$ac_ext >&5
34702
34703         ac_lo=`expr $ac_mid + 1`
34704                         if test $ac_lo -le $ac_mid; then
34705                           ac_lo= ac_hi=
34706                           break
34707                         fi
34708                         ac_mid=`expr 2 '*' $ac_mid + 1`
34709 fi
34710
34711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34712   done
34713 else
34714   echo "$as_me: failed program was:" >&5
34715 sed 's/^/| /' conftest.$ac_ext >&5
34716
34717         cat >conftest.$ac_ext <<_ACEOF
34718 /* confdefs.h.  */
34719 _ACEOF
34720 cat confdefs.h >>conftest.$ac_ext
34721 cat >>conftest.$ac_ext <<_ACEOF
34722 /* end confdefs.h.  */
34723 $ac_includes_default
34724    typedef char ac__type_sizeof_;
34725 int
34726 main ()
34727 {
34728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34729 test_array [0] = 0
34730
34731   ;
34732   return 0;
34733 }
34734 _ACEOF
34735 rm -f conftest.$ac_objext
34736 if { (ac_try="$ac_compile"
34737 case "(($ac_try" in
34738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34739   *) ac_try_echo=$ac_try;;
34740 esac
34741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34742   (eval "$ac_compile") 2>conftest.er1
34743   ac_status=$?
34744   grep -v '^ *+' conftest.er1 >conftest.err
34745   rm -f conftest.er1
34746   cat conftest.err >&5
34747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34748   (exit $ac_status); } && {
34749          test -z "$ac_c_werror_flag" ||
34750          test ! -s conftest.err
34751        } && test -s conftest.$ac_objext; then
34752   ac_hi=-1 ac_mid=-1
34753   while :; do
34754     cat >conftest.$ac_ext <<_ACEOF
34755 /* confdefs.h.  */
34756 _ACEOF
34757 cat confdefs.h >>conftest.$ac_ext
34758 cat >>conftest.$ac_ext <<_ACEOF
34759 /* end confdefs.h.  */
34760 $ac_includes_default
34761    typedef char ac__type_sizeof_;
34762 int
34763 main ()
34764 {
34765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34766 test_array [0] = 0
34767
34768   ;
34769   return 0;
34770 }
34771 _ACEOF
34772 rm -f conftest.$ac_objext
34773 if { (ac_try="$ac_compile"
34774 case "(($ac_try" in
34775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34776   *) ac_try_echo=$ac_try;;
34777 esac
34778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34779   (eval "$ac_compile") 2>conftest.er1
34780   ac_status=$?
34781   grep -v '^ *+' conftest.er1 >conftest.err
34782   rm -f conftest.er1
34783   cat conftest.err >&5
34784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785   (exit $ac_status); } && {
34786          test -z "$ac_c_werror_flag" ||
34787          test ! -s conftest.err
34788        } && test -s conftest.$ac_objext; then
34789   ac_lo=$ac_mid; break
34790 else
34791   echo "$as_me: failed program was:" >&5
34792 sed 's/^/| /' conftest.$ac_ext >&5
34793
34794         ac_hi=`expr '(' $ac_mid ')' - 1`
34795                         if test $ac_mid -le $ac_hi; then
34796                           ac_lo= ac_hi=
34797                           break
34798                         fi
34799                         ac_mid=`expr 2 '*' $ac_mid`
34800 fi
34801
34802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34803   done
34804 else
34805   echo "$as_me: failed program was:" >&5
34806 sed 's/^/| /' conftest.$ac_ext >&5
34807
34808         ac_lo= ac_hi=
34809 fi
34810
34811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34812 fi
34813
34814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34815 # Binary search between lo and hi bounds.
34816 while test "x$ac_lo" != "x$ac_hi"; do
34817   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34818   cat >conftest.$ac_ext <<_ACEOF
34819 /* confdefs.h.  */
34820 _ACEOF
34821 cat confdefs.h >>conftest.$ac_ext
34822 cat >>conftest.$ac_ext <<_ACEOF
34823 /* end confdefs.h.  */
34824 $ac_includes_default
34825    typedef char ac__type_sizeof_;
34826 int
34827 main ()
34828 {
34829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34830 test_array [0] = 0
34831
34832   ;
34833   return 0;
34834 }
34835 _ACEOF
34836 rm -f conftest.$ac_objext
34837 if { (ac_try="$ac_compile"
34838 case "(($ac_try" in
34839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34840   *) ac_try_echo=$ac_try;;
34841 esac
34842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34843   (eval "$ac_compile") 2>conftest.er1
34844   ac_status=$?
34845   grep -v '^ *+' conftest.er1 >conftest.err
34846   rm -f conftest.er1
34847   cat conftest.err >&5
34848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849   (exit $ac_status); } && {
34850          test -z "$ac_c_werror_flag" ||
34851          test ! -s conftest.err
34852        } && test -s conftest.$ac_objext; then
34853   ac_hi=$ac_mid
34854 else
34855   echo "$as_me: failed program was:" >&5
34856 sed 's/^/| /' conftest.$ac_ext >&5
34857
34858         ac_lo=`expr '(' $ac_mid ')' + 1`
34859 fi
34860
34861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34862 done
34863 case $ac_lo in
34864 ?*) ac_cv_sizeof_char=$ac_lo;;
34865 '') if test "$ac_cv_type_char" = yes; then
34866      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34867 See \`config.log' for more details." >&5
34868 echo "$as_me: error: cannot compute sizeof (char)
34869 See \`config.log' for more details." >&2;}
34870    { (exit 77); exit 77; }; }
34871    else
34872      ac_cv_sizeof_char=0
34873    fi ;;
34874 esac
34875 else
34876   cat >conftest.$ac_ext <<_ACEOF
34877 /* confdefs.h.  */
34878 _ACEOF
34879 cat confdefs.h >>conftest.$ac_ext
34880 cat >>conftest.$ac_ext <<_ACEOF
34881 /* end confdefs.h.  */
34882 $ac_includes_default
34883    typedef char ac__type_sizeof_;
34884 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34885 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34886 #include <stdio.h>
34887 #include <stdlib.h>
34888 int
34889 main ()
34890 {
34891
34892   FILE *f = fopen ("conftest.val", "w");
34893   if (! f)
34894     return 1;
34895   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34896     {
34897       long int i = longval ();
34898       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34899         return 1;
34900       fprintf (f, "%ld\n", i);
34901     }
34902   else
34903     {
34904       unsigned long int i = ulongval ();
34905       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34906         return 1;
34907       fprintf (f, "%lu\n", i);
34908     }
34909   return ferror (f) || fclose (f) != 0;
34910
34911   ;
34912   return 0;
34913 }
34914 _ACEOF
34915 rm -f conftest$ac_exeext
34916 if { (ac_try="$ac_link"
34917 case "(($ac_try" in
34918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34919   *) ac_try_echo=$ac_try;;
34920 esac
34921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34922   (eval "$ac_link") 2>&5
34923   ac_status=$?
34924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34926   { (case "(($ac_try" in
34927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34928   *) ac_try_echo=$ac_try;;
34929 esac
34930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34931   (eval "$ac_try") 2>&5
34932   ac_status=$?
34933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934   (exit $ac_status); }; }; then
34935   ac_cv_sizeof_char=`cat conftest.val`
34936 else
34937   echo "$as_me: program exited with status $ac_status" >&5
34938 echo "$as_me: failed program was:" >&5
34939 sed 's/^/| /' conftest.$ac_ext >&5
34940
34941 ( exit $ac_status )
34942 if test "$ac_cv_type_char" = yes; then
34943      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34944 See \`config.log' for more details." >&5
34945 echo "$as_me: error: cannot compute sizeof (char)
34946 See \`config.log' for more details." >&2;}
34947    { (exit 77); exit 77; }; }
34948    else
34949      ac_cv_sizeof_char=0
34950    fi
34951 fi
34952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34953 fi
34954 rm -f conftest.val
34955 fi
34956 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34957 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34958
34959
34960
34961 cat >>confdefs.h <<_ACEOF
34962 #define SIZEOF_CHAR $ac_cv_sizeof_char
34963 _ACEOF
34964
34965
34966 { echo "$as_me:$LINENO: checking for short int" >&5
34967 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34968 if test "${ac_cv_type_short_int+set}" = set; then
34969   echo $ECHO_N "(cached) $ECHO_C" >&6
34970 else
34971   cat >conftest.$ac_ext <<_ACEOF
34972 /* confdefs.h.  */
34973 _ACEOF
34974 cat confdefs.h >>conftest.$ac_ext
34975 cat >>conftest.$ac_ext <<_ACEOF
34976 /* end confdefs.h.  */
34977 $ac_includes_default
34978 typedef short int ac__type_new_;
34979 int
34980 main ()
34981 {
34982 if ((ac__type_new_ *) 0)
34983   return 0;
34984 if (sizeof (ac__type_new_))
34985   return 0;
34986   ;
34987   return 0;
34988 }
34989 _ACEOF
34990 rm -f conftest.$ac_objext
34991 if { (ac_try="$ac_compile"
34992 case "(($ac_try" in
34993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34994   *) ac_try_echo=$ac_try;;
34995 esac
34996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34997   (eval "$ac_compile") 2>conftest.er1
34998   ac_status=$?
34999   grep -v '^ *+' conftest.er1 >conftest.err
35000   rm -f conftest.er1
35001   cat conftest.err >&5
35002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003   (exit $ac_status); } && {
35004          test -z "$ac_c_werror_flag" ||
35005          test ! -s conftest.err
35006        } && test -s conftest.$ac_objext; then
35007   ac_cv_type_short_int=yes
35008 else
35009   echo "$as_me: failed program was:" >&5
35010 sed 's/^/| /' conftest.$ac_ext >&5
35011
35012         ac_cv_type_short_int=no
35013 fi
35014
35015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35016 fi
35017 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35018 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35019
35020 # The cast to long int works around a bug in the HP C Compiler
35021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35023 # This bug is HP SR number 8606223364.
35024 { echo "$as_me:$LINENO: checking size of short int" >&5
35025 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35026 if test "${ac_cv_sizeof_short_int+set}" = set; then
35027   echo $ECHO_N "(cached) $ECHO_C" >&6
35028 else
35029   if test "$cross_compiling" = yes; then
35030   # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
35039 int
35040 main ()
35041 {
35042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35043 test_array [0] = 0
35044
35045   ;
35046   return 0;
35047 }
35048 _ACEOF
35049 rm -f conftest.$ac_objext
35050 if { (ac_try="$ac_compile"
35051 case "(($ac_try" in
35052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35053   *) ac_try_echo=$ac_try;;
35054 esac
35055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35056   (eval "$ac_compile") 2>conftest.er1
35057   ac_status=$?
35058   grep -v '^ *+' conftest.er1 >conftest.err
35059   rm -f conftest.er1
35060   cat conftest.err >&5
35061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35062   (exit $ac_status); } && {
35063          test -z "$ac_c_werror_flag" ||
35064          test ! -s conftest.err
35065        } && test -s conftest.$ac_objext; then
35066   ac_lo=0 ac_mid=0
35067   while :; do
35068     cat >conftest.$ac_ext <<_ACEOF
35069 /* confdefs.h.  */
35070 _ACEOF
35071 cat confdefs.h >>conftest.$ac_ext
35072 cat >>conftest.$ac_ext <<_ACEOF
35073 /* end confdefs.h.  */
35074 $ac_includes_default
35075    typedef short int ac__type_sizeof_;
35076 int
35077 main ()
35078 {
35079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35080 test_array [0] = 0
35081
35082   ;
35083   return 0;
35084 }
35085 _ACEOF
35086 rm -f conftest.$ac_objext
35087 if { (ac_try="$ac_compile"
35088 case "(($ac_try" in
35089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35090   *) ac_try_echo=$ac_try;;
35091 esac
35092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35093   (eval "$ac_compile") 2>conftest.er1
35094   ac_status=$?
35095   grep -v '^ *+' conftest.er1 >conftest.err
35096   rm -f conftest.er1
35097   cat conftest.err >&5
35098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099   (exit $ac_status); } && {
35100          test -z "$ac_c_werror_flag" ||
35101          test ! -s conftest.err
35102        } && test -s conftest.$ac_objext; then
35103   ac_hi=$ac_mid; break
35104 else
35105   echo "$as_me: failed program was:" >&5
35106 sed 's/^/| /' conftest.$ac_ext >&5
35107
35108         ac_lo=`expr $ac_mid + 1`
35109                         if test $ac_lo -le $ac_mid; then
35110                           ac_lo= ac_hi=
35111                           break
35112                         fi
35113                         ac_mid=`expr 2 '*' $ac_mid + 1`
35114 fi
35115
35116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35117   done
35118 else
35119   echo "$as_me: failed program was:" >&5
35120 sed 's/^/| /' conftest.$ac_ext >&5
35121
35122         cat >conftest.$ac_ext <<_ACEOF
35123 /* confdefs.h.  */
35124 _ACEOF
35125 cat confdefs.h >>conftest.$ac_ext
35126 cat >>conftest.$ac_ext <<_ACEOF
35127 /* end confdefs.h.  */
35128 $ac_includes_default
35129    typedef short int ac__type_sizeof_;
35130 int
35131 main ()
35132 {
35133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35134 test_array [0] = 0
35135
35136   ;
35137   return 0;
35138 }
35139 _ACEOF
35140 rm -f conftest.$ac_objext
35141 if { (ac_try="$ac_compile"
35142 case "(($ac_try" in
35143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35144   *) ac_try_echo=$ac_try;;
35145 esac
35146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35147   (eval "$ac_compile") 2>conftest.er1
35148   ac_status=$?
35149   grep -v '^ *+' conftest.er1 >conftest.err
35150   rm -f conftest.er1
35151   cat conftest.err >&5
35152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35153   (exit $ac_status); } && {
35154          test -z "$ac_c_werror_flag" ||
35155          test ! -s conftest.err
35156        } && test -s conftest.$ac_objext; then
35157   ac_hi=-1 ac_mid=-1
35158   while :; do
35159     cat >conftest.$ac_ext <<_ACEOF
35160 /* confdefs.h.  */
35161 _ACEOF
35162 cat confdefs.h >>conftest.$ac_ext
35163 cat >>conftest.$ac_ext <<_ACEOF
35164 /* end confdefs.h.  */
35165 $ac_includes_default
35166    typedef short int ac__type_sizeof_;
35167 int
35168 main ()
35169 {
35170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35171 test_array [0] = 0
35172
35173   ;
35174   return 0;
35175 }
35176 _ACEOF
35177 rm -f conftest.$ac_objext
35178 if { (ac_try="$ac_compile"
35179 case "(($ac_try" in
35180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35181   *) ac_try_echo=$ac_try;;
35182 esac
35183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35184   (eval "$ac_compile") 2>conftest.er1
35185   ac_status=$?
35186   grep -v '^ *+' conftest.er1 >conftest.err
35187   rm -f conftest.er1
35188   cat conftest.err >&5
35189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35190   (exit $ac_status); } && {
35191          test -z "$ac_c_werror_flag" ||
35192          test ! -s conftest.err
35193        } && test -s conftest.$ac_objext; then
35194   ac_lo=$ac_mid; break
35195 else
35196   echo "$as_me: failed program was:" >&5
35197 sed 's/^/| /' conftest.$ac_ext >&5
35198
35199         ac_hi=`expr '(' $ac_mid ')' - 1`
35200                         if test $ac_mid -le $ac_hi; then
35201                           ac_lo= ac_hi=
35202                           break
35203                         fi
35204                         ac_mid=`expr 2 '*' $ac_mid`
35205 fi
35206
35207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35208   done
35209 else
35210   echo "$as_me: failed program was:" >&5
35211 sed 's/^/| /' conftest.$ac_ext >&5
35212
35213         ac_lo= ac_hi=
35214 fi
35215
35216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35217 fi
35218
35219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35220 # Binary search between lo and hi bounds.
35221 while test "x$ac_lo" != "x$ac_hi"; do
35222   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35223   cat >conftest.$ac_ext <<_ACEOF
35224 /* confdefs.h.  */
35225 _ACEOF
35226 cat confdefs.h >>conftest.$ac_ext
35227 cat >>conftest.$ac_ext <<_ACEOF
35228 /* end confdefs.h.  */
35229 $ac_includes_default
35230    typedef short int ac__type_sizeof_;
35231 int
35232 main ()
35233 {
35234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35235 test_array [0] = 0
35236
35237   ;
35238   return 0;
35239 }
35240 _ACEOF
35241 rm -f conftest.$ac_objext
35242 if { (ac_try="$ac_compile"
35243 case "(($ac_try" in
35244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35245   *) ac_try_echo=$ac_try;;
35246 esac
35247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35248   (eval "$ac_compile") 2>conftest.er1
35249   ac_status=$?
35250   grep -v '^ *+' conftest.er1 >conftest.err
35251   rm -f conftest.er1
35252   cat conftest.err >&5
35253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254   (exit $ac_status); } && {
35255          test -z "$ac_c_werror_flag" ||
35256          test ! -s conftest.err
35257        } && test -s conftest.$ac_objext; then
35258   ac_hi=$ac_mid
35259 else
35260   echo "$as_me: failed program was:" >&5
35261 sed 's/^/| /' conftest.$ac_ext >&5
35262
35263         ac_lo=`expr '(' $ac_mid ')' + 1`
35264 fi
35265
35266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35267 done
35268 case $ac_lo in
35269 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35270 '') if test "$ac_cv_type_short_int" = yes; then
35271      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35272 See \`config.log' for more details." >&5
35273 echo "$as_me: error: cannot compute sizeof (short int)
35274 See \`config.log' for more details." >&2;}
35275    { (exit 77); exit 77; }; }
35276    else
35277      ac_cv_sizeof_short_int=0
35278    fi ;;
35279 esac
35280 else
35281   cat >conftest.$ac_ext <<_ACEOF
35282 /* confdefs.h.  */
35283 _ACEOF
35284 cat confdefs.h >>conftest.$ac_ext
35285 cat >>conftest.$ac_ext <<_ACEOF
35286 /* end confdefs.h.  */
35287 $ac_includes_default
35288    typedef short int ac__type_sizeof_;
35289 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35290 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35291 #include <stdio.h>
35292 #include <stdlib.h>
35293 int
35294 main ()
35295 {
35296
35297   FILE *f = fopen ("conftest.val", "w");
35298   if (! f)
35299     return 1;
35300   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35301     {
35302       long int i = longval ();
35303       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35304         return 1;
35305       fprintf (f, "%ld\n", i);
35306     }
35307   else
35308     {
35309       unsigned long int i = ulongval ();
35310       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35311         return 1;
35312       fprintf (f, "%lu\n", i);
35313     }
35314   return ferror (f) || fclose (f) != 0;
35315
35316   ;
35317   return 0;
35318 }
35319 _ACEOF
35320 rm -f conftest$ac_exeext
35321 if { (ac_try="$ac_link"
35322 case "(($ac_try" in
35323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35324   *) ac_try_echo=$ac_try;;
35325 esac
35326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35327   (eval "$ac_link") 2>&5
35328   ac_status=$?
35329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35331   { (case "(($ac_try" in
35332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35333   *) ac_try_echo=$ac_try;;
35334 esac
35335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35336   (eval "$ac_try") 2>&5
35337   ac_status=$?
35338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35339   (exit $ac_status); }; }; then
35340   ac_cv_sizeof_short_int=`cat conftest.val`
35341 else
35342   echo "$as_me: program exited with status $ac_status" >&5
35343 echo "$as_me: failed program was:" >&5
35344 sed 's/^/| /' conftest.$ac_ext >&5
35345
35346 ( exit $ac_status )
35347 if test "$ac_cv_type_short_int" = yes; then
35348      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35349 See \`config.log' for more details." >&5
35350 echo "$as_me: error: cannot compute sizeof (short int)
35351 See \`config.log' for more details." >&2;}
35352    { (exit 77); exit 77; }; }
35353    else
35354      ac_cv_sizeof_short_int=0
35355    fi
35356 fi
35357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35358 fi
35359 rm -f conftest.val
35360 fi
35361 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35362 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35363
35364
35365
35366 cat >>confdefs.h <<_ACEOF
35367 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35368 _ACEOF
35369
35370
35371 { echo "$as_me:$LINENO: checking for int" >&5
35372 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35373 if test "${ac_cv_type_int+set}" = set; then
35374   echo $ECHO_N "(cached) $ECHO_C" >&6
35375 else
35376   cat >conftest.$ac_ext <<_ACEOF
35377 /* confdefs.h.  */
35378 _ACEOF
35379 cat confdefs.h >>conftest.$ac_ext
35380 cat >>conftest.$ac_ext <<_ACEOF
35381 /* end confdefs.h.  */
35382 $ac_includes_default
35383 typedef int ac__type_new_;
35384 int
35385 main ()
35386 {
35387 if ((ac__type_new_ *) 0)
35388   return 0;
35389 if (sizeof (ac__type_new_))
35390   return 0;
35391   ;
35392   return 0;
35393 }
35394 _ACEOF
35395 rm -f conftest.$ac_objext
35396 if { (ac_try="$ac_compile"
35397 case "(($ac_try" in
35398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35399   *) ac_try_echo=$ac_try;;
35400 esac
35401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35402   (eval "$ac_compile") 2>conftest.er1
35403   ac_status=$?
35404   grep -v '^ *+' conftest.er1 >conftest.err
35405   rm -f conftest.er1
35406   cat conftest.err >&5
35407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408   (exit $ac_status); } && {
35409          test -z "$ac_c_werror_flag" ||
35410          test ! -s conftest.err
35411        } && test -s conftest.$ac_objext; then
35412   ac_cv_type_int=yes
35413 else
35414   echo "$as_me: failed program was:" >&5
35415 sed 's/^/| /' conftest.$ac_ext >&5
35416
35417         ac_cv_type_int=no
35418 fi
35419
35420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35421 fi
35422 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35423 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35424
35425 # The cast to long int works around a bug in the HP C Compiler
35426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35428 # This bug is HP SR number 8606223364.
35429 { echo "$as_me:$LINENO: checking size of int" >&5
35430 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35431 if test "${ac_cv_sizeof_int+set}" = set; then
35432   echo $ECHO_N "(cached) $ECHO_C" >&6
35433 else
35434   if test "$cross_compiling" = yes; then
35435   # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
35444 int
35445 main ()
35446 {
35447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35448 test_array [0] = 0
35449
35450   ;
35451   return 0;
35452 }
35453 _ACEOF
35454 rm -f conftest.$ac_objext
35455 if { (ac_try="$ac_compile"
35456 case "(($ac_try" in
35457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35458   *) ac_try_echo=$ac_try;;
35459 esac
35460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35461   (eval "$ac_compile") 2>conftest.er1
35462   ac_status=$?
35463   grep -v '^ *+' conftest.er1 >conftest.err
35464   rm -f conftest.er1
35465   cat conftest.err >&5
35466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35467   (exit $ac_status); } && {
35468          test -z "$ac_c_werror_flag" ||
35469          test ! -s conftest.err
35470        } && test -s conftest.$ac_objext; then
35471   ac_lo=0 ac_mid=0
35472   while :; do
35473     cat >conftest.$ac_ext <<_ACEOF
35474 /* confdefs.h.  */
35475 _ACEOF
35476 cat confdefs.h >>conftest.$ac_ext
35477 cat >>conftest.$ac_ext <<_ACEOF
35478 /* end confdefs.h.  */
35479 $ac_includes_default
35480    typedef int ac__type_sizeof_;
35481 int
35482 main ()
35483 {
35484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35485 test_array [0] = 0
35486
35487   ;
35488   return 0;
35489 }
35490 _ACEOF
35491 rm -f conftest.$ac_objext
35492 if { (ac_try="$ac_compile"
35493 case "(($ac_try" in
35494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35495   *) ac_try_echo=$ac_try;;
35496 esac
35497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35498   (eval "$ac_compile") 2>conftest.er1
35499   ac_status=$?
35500   grep -v '^ *+' conftest.er1 >conftest.err
35501   rm -f conftest.er1
35502   cat conftest.err >&5
35503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35504   (exit $ac_status); } && {
35505          test -z "$ac_c_werror_flag" ||
35506          test ! -s conftest.err
35507        } && test -s conftest.$ac_objext; then
35508   ac_hi=$ac_mid; break
35509 else
35510   echo "$as_me: failed program was:" >&5
35511 sed 's/^/| /' conftest.$ac_ext >&5
35512
35513         ac_lo=`expr $ac_mid + 1`
35514                         if test $ac_lo -le $ac_mid; then
35515                           ac_lo= ac_hi=
35516                           break
35517                         fi
35518                         ac_mid=`expr 2 '*' $ac_mid + 1`
35519 fi
35520
35521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35522   done
35523 else
35524   echo "$as_me: failed program was:" >&5
35525 sed 's/^/| /' conftest.$ac_ext >&5
35526
35527         cat >conftest.$ac_ext <<_ACEOF
35528 /* confdefs.h.  */
35529 _ACEOF
35530 cat confdefs.h >>conftest.$ac_ext
35531 cat >>conftest.$ac_ext <<_ACEOF
35532 /* end confdefs.h.  */
35533 $ac_includes_default
35534    typedef int ac__type_sizeof_;
35535 int
35536 main ()
35537 {
35538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35539 test_array [0] = 0
35540
35541   ;
35542   return 0;
35543 }
35544 _ACEOF
35545 rm -f conftest.$ac_objext
35546 if { (ac_try="$ac_compile"
35547 case "(($ac_try" in
35548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35549   *) ac_try_echo=$ac_try;;
35550 esac
35551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35552   (eval "$ac_compile") 2>conftest.er1
35553   ac_status=$?
35554   grep -v '^ *+' conftest.er1 >conftest.err
35555   rm -f conftest.er1
35556   cat conftest.err >&5
35557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558   (exit $ac_status); } && {
35559          test -z "$ac_c_werror_flag" ||
35560          test ! -s conftest.err
35561        } && test -s conftest.$ac_objext; then
35562   ac_hi=-1 ac_mid=-1
35563   while :; do
35564     cat >conftest.$ac_ext <<_ACEOF
35565 /* confdefs.h.  */
35566 _ACEOF
35567 cat confdefs.h >>conftest.$ac_ext
35568 cat >>conftest.$ac_ext <<_ACEOF
35569 /* end confdefs.h.  */
35570 $ac_includes_default
35571    typedef int ac__type_sizeof_;
35572 int
35573 main ()
35574 {
35575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35576 test_array [0] = 0
35577
35578   ;
35579   return 0;
35580 }
35581 _ACEOF
35582 rm -f conftest.$ac_objext
35583 if { (ac_try="$ac_compile"
35584 case "(($ac_try" in
35585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35586   *) ac_try_echo=$ac_try;;
35587 esac
35588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35589   (eval "$ac_compile") 2>conftest.er1
35590   ac_status=$?
35591   grep -v '^ *+' conftest.er1 >conftest.err
35592   rm -f conftest.er1
35593   cat conftest.err >&5
35594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595   (exit $ac_status); } && {
35596          test -z "$ac_c_werror_flag" ||
35597          test ! -s conftest.err
35598        } && test -s conftest.$ac_objext; then
35599   ac_lo=$ac_mid; break
35600 else
35601   echo "$as_me: failed program was:" >&5
35602 sed 's/^/| /' conftest.$ac_ext >&5
35603
35604         ac_hi=`expr '(' $ac_mid ')' - 1`
35605                         if test $ac_mid -le $ac_hi; then
35606                           ac_lo= ac_hi=
35607                           break
35608                         fi
35609                         ac_mid=`expr 2 '*' $ac_mid`
35610 fi
35611
35612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35613   done
35614 else
35615   echo "$as_me: failed program was:" >&5
35616 sed 's/^/| /' conftest.$ac_ext >&5
35617
35618         ac_lo= ac_hi=
35619 fi
35620
35621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35622 fi
35623
35624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35625 # Binary search between lo and hi bounds.
35626 while test "x$ac_lo" != "x$ac_hi"; do
35627   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35628   cat >conftest.$ac_ext <<_ACEOF
35629 /* confdefs.h.  */
35630 _ACEOF
35631 cat confdefs.h >>conftest.$ac_ext
35632 cat >>conftest.$ac_ext <<_ACEOF
35633 /* end confdefs.h.  */
35634 $ac_includes_default
35635    typedef int ac__type_sizeof_;
35636 int
35637 main ()
35638 {
35639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35640 test_array [0] = 0
35641
35642   ;
35643   return 0;
35644 }
35645 _ACEOF
35646 rm -f conftest.$ac_objext
35647 if { (ac_try="$ac_compile"
35648 case "(($ac_try" in
35649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35650   *) ac_try_echo=$ac_try;;
35651 esac
35652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35653   (eval "$ac_compile") 2>conftest.er1
35654   ac_status=$?
35655   grep -v '^ *+' conftest.er1 >conftest.err
35656   rm -f conftest.er1
35657   cat conftest.err >&5
35658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35659   (exit $ac_status); } && {
35660          test -z "$ac_c_werror_flag" ||
35661          test ! -s conftest.err
35662        } && test -s conftest.$ac_objext; then
35663   ac_hi=$ac_mid
35664 else
35665   echo "$as_me: failed program was:" >&5
35666 sed 's/^/| /' conftest.$ac_ext >&5
35667
35668         ac_lo=`expr '(' $ac_mid ')' + 1`
35669 fi
35670
35671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35672 done
35673 case $ac_lo in
35674 ?*) ac_cv_sizeof_int=$ac_lo;;
35675 '') if test "$ac_cv_type_int" = yes; then
35676      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35677 See \`config.log' for more details." >&5
35678 echo "$as_me: error: cannot compute sizeof (int)
35679 See \`config.log' for more details." >&2;}
35680    { (exit 77); exit 77; }; }
35681    else
35682      ac_cv_sizeof_int=0
35683    fi ;;
35684 esac
35685 else
35686   cat >conftest.$ac_ext <<_ACEOF
35687 /* confdefs.h.  */
35688 _ACEOF
35689 cat confdefs.h >>conftest.$ac_ext
35690 cat >>conftest.$ac_ext <<_ACEOF
35691 /* end confdefs.h.  */
35692 $ac_includes_default
35693    typedef int ac__type_sizeof_;
35694 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35695 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35696 #include <stdio.h>
35697 #include <stdlib.h>
35698 int
35699 main ()
35700 {
35701
35702   FILE *f = fopen ("conftest.val", "w");
35703   if (! f)
35704     return 1;
35705   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35706     {
35707       long int i = longval ();
35708       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35709         return 1;
35710       fprintf (f, "%ld\n", i);
35711     }
35712   else
35713     {
35714       unsigned long int i = ulongval ();
35715       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35716         return 1;
35717       fprintf (f, "%lu\n", i);
35718     }
35719   return ferror (f) || fclose (f) != 0;
35720
35721   ;
35722   return 0;
35723 }
35724 _ACEOF
35725 rm -f conftest$ac_exeext
35726 if { (ac_try="$ac_link"
35727 case "(($ac_try" in
35728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35729   *) ac_try_echo=$ac_try;;
35730 esac
35731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35732   (eval "$ac_link") 2>&5
35733   ac_status=$?
35734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35736   { (case "(($ac_try" in
35737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35738   *) ac_try_echo=$ac_try;;
35739 esac
35740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35741   (eval "$ac_try") 2>&5
35742   ac_status=$?
35743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744   (exit $ac_status); }; }; then
35745   ac_cv_sizeof_int=`cat conftest.val`
35746 else
35747   echo "$as_me: program exited with status $ac_status" >&5
35748 echo "$as_me: failed program was:" >&5
35749 sed 's/^/| /' conftest.$ac_ext >&5
35750
35751 ( exit $ac_status )
35752 if test "$ac_cv_type_int" = yes; then
35753      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35754 See \`config.log' for more details." >&5
35755 echo "$as_me: error: cannot compute sizeof (int)
35756 See \`config.log' for more details." >&2;}
35757    { (exit 77); exit 77; }; }
35758    else
35759      ac_cv_sizeof_int=0
35760    fi
35761 fi
35762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35763 fi
35764 rm -f conftest.val
35765 fi
35766 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35767 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35768
35769
35770
35771 cat >>confdefs.h <<_ACEOF
35772 #define SIZEOF_INT $ac_cv_sizeof_int
35773 _ACEOF
35774
35775
35776 { echo "$as_me:$LINENO: checking for long int" >&5
35777 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35778 if test "${ac_cv_type_long_int+set}" = set; then
35779   echo $ECHO_N "(cached) $ECHO_C" >&6
35780 else
35781   cat >conftest.$ac_ext <<_ACEOF
35782 /* confdefs.h.  */
35783 _ACEOF
35784 cat confdefs.h >>conftest.$ac_ext
35785 cat >>conftest.$ac_ext <<_ACEOF
35786 /* end confdefs.h.  */
35787 $ac_includes_default
35788 typedef long int ac__type_new_;
35789 int
35790 main ()
35791 {
35792 if ((ac__type_new_ *) 0)
35793   return 0;
35794 if (sizeof (ac__type_new_))
35795   return 0;
35796   ;
35797   return 0;
35798 }
35799 _ACEOF
35800 rm -f conftest.$ac_objext
35801 if { (ac_try="$ac_compile"
35802 case "(($ac_try" in
35803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35804   *) ac_try_echo=$ac_try;;
35805 esac
35806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35807   (eval "$ac_compile") 2>conftest.er1
35808   ac_status=$?
35809   grep -v '^ *+' conftest.er1 >conftest.err
35810   rm -f conftest.er1
35811   cat conftest.err >&5
35812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35813   (exit $ac_status); } && {
35814          test -z "$ac_c_werror_flag" ||
35815          test ! -s conftest.err
35816        } && test -s conftest.$ac_objext; then
35817   ac_cv_type_long_int=yes
35818 else
35819   echo "$as_me: failed program was:" >&5
35820 sed 's/^/| /' conftest.$ac_ext >&5
35821
35822         ac_cv_type_long_int=no
35823 fi
35824
35825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35826 fi
35827 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35828 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35829
35830 # The cast to long int works around a bug in the HP C Compiler
35831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35832 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35833 # This bug is HP SR number 8606223364.
35834 { echo "$as_me:$LINENO: checking size of long int" >&5
35835 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35836 if test "${ac_cv_sizeof_long_int+set}" = set; then
35837   echo $ECHO_N "(cached) $ECHO_C" >&6
35838 else
35839   if test "$cross_compiling" = yes; then
35840   # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
35849 int
35850 main ()
35851 {
35852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35853 test_array [0] = 0
35854
35855   ;
35856   return 0;
35857 }
35858 _ACEOF
35859 rm -f conftest.$ac_objext
35860 if { (ac_try="$ac_compile"
35861 case "(($ac_try" in
35862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35863   *) ac_try_echo=$ac_try;;
35864 esac
35865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35866   (eval "$ac_compile") 2>conftest.er1
35867   ac_status=$?
35868   grep -v '^ *+' conftest.er1 >conftest.err
35869   rm -f conftest.er1
35870   cat conftest.err >&5
35871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872   (exit $ac_status); } && {
35873          test -z "$ac_c_werror_flag" ||
35874          test ! -s conftest.err
35875        } && test -s conftest.$ac_objext; then
35876   ac_lo=0 ac_mid=0
35877   while :; do
35878     cat >conftest.$ac_ext <<_ACEOF
35879 /* confdefs.h.  */
35880 _ACEOF
35881 cat confdefs.h >>conftest.$ac_ext
35882 cat >>conftest.$ac_ext <<_ACEOF
35883 /* end confdefs.h.  */
35884 $ac_includes_default
35885    typedef long int ac__type_sizeof_;
35886 int
35887 main ()
35888 {
35889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35890 test_array [0] = 0
35891
35892   ;
35893   return 0;
35894 }
35895 _ACEOF
35896 rm -f conftest.$ac_objext
35897 if { (ac_try="$ac_compile"
35898 case "(($ac_try" in
35899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35900   *) ac_try_echo=$ac_try;;
35901 esac
35902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35903   (eval "$ac_compile") 2>conftest.er1
35904   ac_status=$?
35905   grep -v '^ *+' conftest.er1 >conftest.err
35906   rm -f conftest.er1
35907   cat conftest.err >&5
35908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35909   (exit $ac_status); } && {
35910          test -z "$ac_c_werror_flag" ||
35911          test ! -s conftest.err
35912        } && test -s conftest.$ac_objext; then
35913   ac_hi=$ac_mid; break
35914 else
35915   echo "$as_me: failed program was:" >&5
35916 sed 's/^/| /' conftest.$ac_ext >&5
35917
35918         ac_lo=`expr $ac_mid + 1`
35919                         if test $ac_lo -le $ac_mid; then
35920                           ac_lo= ac_hi=
35921                           break
35922                         fi
35923                         ac_mid=`expr 2 '*' $ac_mid + 1`
35924 fi
35925
35926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35927   done
35928 else
35929   echo "$as_me: failed program was:" >&5
35930 sed 's/^/| /' conftest.$ac_ext >&5
35931
35932         cat >conftest.$ac_ext <<_ACEOF
35933 /* confdefs.h.  */
35934 _ACEOF
35935 cat confdefs.h >>conftest.$ac_ext
35936 cat >>conftest.$ac_ext <<_ACEOF
35937 /* end confdefs.h.  */
35938 $ac_includes_default
35939    typedef long int ac__type_sizeof_;
35940 int
35941 main ()
35942 {
35943 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35944 test_array [0] = 0
35945
35946   ;
35947   return 0;
35948 }
35949 _ACEOF
35950 rm -f conftest.$ac_objext
35951 if { (ac_try="$ac_compile"
35952 case "(($ac_try" in
35953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35954   *) ac_try_echo=$ac_try;;
35955 esac
35956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35957   (eval "$ac_compile") 2>conftest.er1
35958   ac_status=$?
35959   grep -v '^ *+' conftest.er1 >conftest.err
35960   rm -f conftest.er1
35961   cat conftest.err >&5
35962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35963   (exit $ac_status); } && {
35964          test -z "$ac_c_werror_flag" ||
35965          test ! -s conftest.err
35966        } && test -s conftest.$ac_objext; then
35967   ac_hi=-1 ac_mid=-1
35968   while :; do
35969     cat >conftest.$ac_ext <<_ACEOF
35970 /* confdefs.h.  */
35971 _ACEOF
35972 cat confdefs.h >>conftest.$ac_ext
35973 cat >>conftest.$ac_ext <<_ACEOF
35974 /* end confdefs.h.  */
35975 $ac_includes_default
35976    typedef long int ac__type_sizeof_;
35977 int
35978 main ()
35979 {
35980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35981 test_array [0] = 0
35982
35983   ;
35984   return 0;
35985 }
35986 _ACEOF
35987 rm -f conftest.$ac_objext
35988 if { (ac_try="$ac_compile"
35989 case "(($ac_try" in
35990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35991   *) ac_try_echo=$ac_try;;
35992 esac
35993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35994   (eval "$ac_compile") 2>conftest.er1
35995   ac_status=$?
35996   grep -v '^ *+' conftest.er1 >conftest.err
35997   rm -f conftest.er1
35998   cat conftest.err >&5
35999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000   (exit $ac_status); } && {
36001          test -z "$ac_c_werror_flag" ||
36002          test ! -s conftest.err
36003        } && test -s conftest.$ac_objext; then
36004   ac_lo=$ac_mid; break
36005 else
36006   echo "$as_me: failed program was:" >&5
36007 sed 's/^/| /' conftest.$ac_ext >&5
36008
36009         ac_hi=`expr '(' $ac_mid ')' - 1`
36010                         if test $ac_mid -le $ac_hi; then
36011                           ac_lo= ac_hi=
36012                           break
36013                         fi
36014                         ac_mid=`expr 2 '*' $ac_mid`
36015 fi
36016
36017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36018   done
36019 else
36020   echo "$as_me: failed program was:" >&5
36021 sed 's/^/| /' conftest.$ac_ext >&5
36022
36023         ac_lo= ac_hi=
36024 fi
36025
36026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36027 fi
36028
36029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36030 # Binary search between lo and hi bounds.
36031 while test "x$ac_lo" != "x$ac_hi"; do
36032   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36033   cat >conftest.$ac_ext <<_ACEOF
36034 /* confdefs.h.  */
36035 _ACEOF
36036 cat confdefs.h >>conftest.$ac_ext
36037 cat >>conftest.$ac_ext <<_ACEOF
36038 /* end confdefs.h.  */
36039 $ac_includes_default
36040    typedef long int ac__type_sizeof_;
36041 int
36042 main ()
36043 {
36044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36045 test_array [0] = 0
36046
36047   ;
36048   return 0;
36049 }
36050 _ACEOF
36051 rm -f conftest.$ac_objext
36052 if { (ac_try="$ac_compile"
36053 case "(($ac_try" in
36054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36055   *) ac_try_echo=$ac_try;;
36056 esac
36057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36058   (eval "$ac_compile") 2>conftest.er1
36059   ac_status=$?
36060   grep -v '^ *+' conftest.er1 >conftest.err
36061   rm -f conftest.er1
36062   cat conftest.err >&5
36063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064   (exit $ac_status); } && {
36065          test -z "$ac_c_werror_flag" ||
36066          test ! -s conftest.err
36067        } && test -s conftest.$ac_objext; then
36068   ac_hi=$ac_mid
36069 else
36070   echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.$ac_ext >&5
36072
36073         ac_lo=`expr '(' $ac_mid ')' + 1`
36074 fi
36075
36076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36077 done
36078 case $ac_lo in
36079 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36080 '') if test "$ac_cv_type_long_int" = yes; then
36081      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36082 See \`config.log' for more details." >&5
36083 echo "$as_me: error: cannot compute sizeof (long int)
36084 See \`config.log' for more details." >&2;}
36085    { (exit 77); exit 77; }; }
36086    else
36087      ac_cv_sizeof_long_int=0
36088    fi ;;
36089 esac
36090 else
36091   cat >conftest.$ac_ext <<_ACEOF
36092 /* confdefs.h.  */
36093 _ACEOF
36094 cat confdefs.h >>conftest.$ac_ext
36095 cat >>conftest.$ac_ext <<_ACEOF
36096 /* end confdefs.h.  */
36097 $ac_includes_default
36098    typedef long int ac__type_sizeof_;
36099 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36100 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36101 #include <stdio.h>
36102 #include <stdlib.h>
36103 int
36104 main ()
36105 {
36106
36107   FILE *f = fopen ("conftest.val", "w");
36108   if (! f)
36109     return 1;
36110   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36111     {
36112       long int i = longval ();
36113       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36114         return 1;
36115       fprintf (f, "%ld\n", i);
36116     }
36117   else
36118     {
36119       unsigned long int i = ulongval ();
36120       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36121         return 1;
36122       fprintf (f, "%lu\n", i);
36123     }
36124   return ferror (f) || fclose (f) != 0;
36125
36126   ;
36127   return 0;
36128 }
36129 _ACEOF
36130 rm -f conftest$ac_exeext
36131 if { (ac_try="$ac_link"
36132 case "(($ac_try" in
36133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36134   *) ac_try_echo=$ac_try;;
36135 esac
36136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36137   (eval "$ac_link") 2>&5
36138   ac_status=$?
36139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36141   { (case "(($ac_try" in
36142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36143   *) ac_try_echo=$ac_try;;
36144 esac
36145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36146   (eval "$ac_try") 2>&5
36147   ac_status=$?
36148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36149   (exit $ac_status); }; }; then
36150   ac_cv_sizeof_long_int=`cat conftest.val`
36151 else
36152   echo "$as_me: program exited with status $ac_status" >&5
36153 echo "$as_me: failed program was:" >&5
36154 sed 's/^/| /' conftest.$ac_ext >&5
36155
36156 ( exit $ac_status )
36157 if test "$ac_cv_type_long_int" = yes; then
36158      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36159 See \`config.log' for more details." >&5
36160 echo "$as_me: error: cannot compute sizeof (long int)
36161 See \`config.log' for more details." >&2;}
36162    { (exit 77); exit 77; }; }
36163    else
36164      ac_cv_sizeof_long_int=0
36165    fi
36166 fi
36167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36168 fi
36169 rm -f conftest.val
36170 fi
36171 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36172 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36173
36174
36175
36176 cat >>confdefs.h <<_ACEOF
36177 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36178 _ACEOF
36179
36180
36181 { echo "$as_me:$LINENO: checking for long long int" >&5
36182 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36183 if test "${ac_cv_type_long_long_int+set}" = set; then
36184   echo $ECHO_N "(cached) $ECHO_C" >&6
36185 else
36186   cat >conftest.$ac_ext <<_ACEOF
36187 /* confdefs.h.  */
36188 _ACEOF
36189 cat confdefs.h >>conftest.$ac_ext
36190 cat >>conftest.$ac_ext <<_ACEOF
36191 /* end confdefs.h.  */
36192 $ac_includes_default
36193 typedef long long int ac__type_new_;
36194 int
36195 main ()
36196 {
36197 if ((ac__type_new_ *) 0)
36198   return 0;
36199 if (sizeof (ac__type_new_))
36200   return 0;
36201   ;
36202   return 0;
36203 }
36204 _ACEOF
36205 rm -f conftest.$ac_objext
36206 if { (ac_try="$ac_compile"
36207 case "(($ac_try" in
36208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36209   *) ac_try_echo=$ac_try;;
36210 esac
36211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36212   (eval "$ac_compile") 2>conftest.er1
36213   ac_status=$?
36214   grep -v '^ *+' conftest.er1 >conftest.err
36215   rm -f conftest.er1
36216   cat conftest.err >&5
36217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218   (exit $ac_status); } && {
36219          test -z "$ac_c_werror_flag" ||
36220          test ! -s conftest.err
36221        } && test -s conftest.$ac_objext; then
36222   ac_cv_type_long_long_int=yes
36223 else
36224   echo "$as_me: failed program was:" >&5
36225 sed 's/^/| /' conftest.$ac_ext >&5
36226
36227         ac_cv_type_long_long_int=no
36228 fi
36229
36230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36231 fi
36232 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36233 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36234
36235 # The cast to long int works around a bug in the HP C Compiler
36236 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36237 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36238 # This bug is HP SR number 8606223364.
36239 { echo "$as_me:$LINENO: checking size of long long int" >&5
36240 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36241 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36242   echo $ECHO_N "(cached) $ECHO_C" >&6
36243 else
36244   if test "$cross_compiling" = yes; then
36245   # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
36254 int
36255 main ()
36256 {
36257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36258 test_array [0] = 0
36259
36260   ;
36261   return 0;
36262 }
36263 _ACEOF
36264 rm -f conftest.$ac_objext
36265 if { (ac_try="$ac_compile"
36266 case "(($ac_try" in
36267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36268   *) ac_try_echo=$ac_try;;
36269 esac
36270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36271   (eval "$ac_compile") 2>conftest.er1
36272   ac_status=$?
36273   grep -v '^ *+' conftest.er1 >conftest.err
36274   rm -f conftest.er1
36275   cat conftest.err >&5
36276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277   (exit $ac_status); } && {
36278          test -z "$ac_c_werror_flag" ||
36279          test ! -s conftest.err
36280        } && test -s conftest.$ac_objext; then
36281   ac_lo=0 ac_mid=0
36282   while :; do
36283     cat >conftest.$ac_ext <<_ACEOF
36284 /* confdefs.h.  */
36285 _ACEOF
36286 cat confdefs.h >>conftest.$ac_ext
36287 cat >>conftest.$ac_ext <<_ACEOF
36288 /* end confdefs.h.  */
36289 $ac_includes_default
36290    typedef long long int ac__type_sizeof_;
36291 int
36292 main ()
36293 {
36294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36295 test_array [0] = 0
36296
36297   ;
36298   return 0;
36299 }
36300 _ACEOF
36301 rm -f conftest.$ac_objext
36302 if { (ac_try="$ac_compile"
36303 case "(($ac_try" in
36304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36305   *) ac_try_echo=$ac_try;;
36306 esac
36307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36308   (eval "$ac_compile") 2>conftest.er1
36309   ac_status=$?
36310   grep -v '^ *+' conftest.er1 >conftest.err
36311   rm -f conftest.er1
36312   cat conftest.err >&5
36313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314   (exit $ac_status); } && {
36315          test -z "$ac_c_werror_flag" ||
36316          test ! -s conftest.err
36317        } && test -s conftest.$ac_objext; then
36318   ac_hi=$ac_mid; break
36319 else
36320   echo "$as_me: failed program was:" >&5
36321 sed 's/^/| /' conftest.$ac_ext >&5
36322
36323         ac_lo=`expr $ac_mid + 1`
36324                         if test $ac_lo -le $ac_mid; then
36325                           ac_lo= ac_hi=
36326                           break
36327                         fi
36328                         ac_mid=`expr 2 '*' $ac_mid + 1`
36329 fi
36330
36331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36332   done
36333 else
36334   echo "$as_me: failed program was:" >&5
36335 sed 's/^/| /' conftest.$ac_ext >&5
36336
36337         cat >conftest.$ac_ext <<_ACEOF
36338 /* confdefs.h.  */
36339 _ACEOF
36340 cat confdefs.h >>conftest.$ac_ext
36341 cat >>conftest.$ac_ext <<_ACEOF
36342 /* end confdefs.h.  */
36343 $ac_includes_default
36344    typedef long long int ac__type_sizeof_;
36345 int
36346 main ()
36347 {
36348 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36349 test_array [0] = 0
36350
36351   ;
36352   return 0;
36353 }
36354 _ACEOF
36355 rm -f conftest.$ac_objext
36356 if { (ac_try="$ac_compile"
36357 case "(($ac_try" in
36358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36359   *) ac_try_echo=$ac_try;;
36360 esac
36361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36362   (eval "$ac_compile") 2>conftest.er1
36363   ac_status=$?
36364   grep -v '^ *+' conftest.er1 >conftest.err
36365   rm -f conftest.er1
36366   cat conftest.err >&5
36367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36368   (exit $ac_status); } && {
36369          test -z "$ac_c_werror_flag" ||
36370          test ! -s conftest.err
36371        } && test -s conftest.$ac_objext; then
36372   ac_hi=-1 ac_mid=-1
36373   while :; do
36374     cat >conftest.$ac_ext <<_ACEOF
36375 /* confdefs.h.  */
36376 _ACEOF
36377 cat confdefs.h >>conftest.$ac_ext
36378 cat >>conftest.$ac_ext <<_ACEOF
36379 /* end confdefs.h.  */
36380 $ac_includes_default
36381    typedef long long int ac__type_sizeof_;
36382 int
36383 main ()
36384 {
36385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36386 test_array [0] = 0
36387
36388   ;
36389   return 0;
36390 }
36391 _ACEOF
36392 rm -f conftest.$ac_objext
36393 if { (ac_try="$ac_compile"
36394 case "(($ac_try" in
36395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36396   *) ac_try_echo=$ac_try;;
36397 esac
36398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36399   (eval "$ac_compile") 2>conftest.er1
36400   ac_status=$?
36401   grep -v '^ *+' conftest.er1 >conftest.err
36402   rm -f conftest.er1
36403   cat conftest.err >&5
36404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405   (exit $ac_status); } && {
36406          test -z "$ac_c_werror_flag" ||
36407          test ! -s conftest.err
36408        } && test -s conftest.$ac_objext; then
36409   ac_lo=$ac_mid; break
36410 else
36411   echo "$as_me: failed program was:" >&5
36412 sed 's/^/| /' conftest.$ac_ext >&5
36413
36414         ac_hi=`expr '(' $ac_mid ')' - 1`
36415                         if test $ac_mid -le $ac_hi; then
36416                           ac_lo= ac_hi=
36417                           break
36418                         fi
36419                         ac_mid=`expr 2 '*' $ac_mid`
36420 fi
36421
36422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36423   done
36424 else
36425   echo "$as_me: failed program was:" >&5
36426 sed 's/^/| /' conftest.$ac_ext >&5
36427
36428         ac_lo= ac_hi=
36429 fi
36430
36431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36432 fi
36433
36434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36435 # Binary search between lo and hi bounds.
36436 while test "x$ac_lo" != "x$ac_hi"; do
36437   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36438   cat >conftest.$ac_ext <<_ACEOF
36439 /* confdefs.h.  */
36440 _ACEOF
36441 cat confdefs.h >>conftest.$ac_ext
36442 cat >>conftest.$ac_ext <<_ACEOF
36443 /* end confdefs.h.  */
36444 $ac_includes_default
36445    typedef long long int ac__type_sizeof_;
36446 int
36447 main ()
36448 {
36449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36450 test_array [0] = 0
36451
36452   ;
36453   return 0;
36454 }
36455 _ACEOF
36456 rm -f conftest.$ac_objext
36457 if { (ac_try="$ac_compile"
36458 case "(($ac_try" in
36459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36460   *) ac_try_echo=$ac_try;;
36461 esac
36462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36463   (eval "$ac_compile") 2>conftest.er1
36464   ac_status=$?
36465   grep -v '^ *+' conftest.er1 >conftest.err
36466   rm -f conftest.er1
36467   cat conftest.err >&5
36468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36469   (exit $ac_status); } && {
36470          test -z "$ac_c_werror_flag" ||
36471          test ! -s conftest.err
36472        } && test -s conftest.$ac_objext; then
36473   ac_hi=$ac_mid
36474 else
36475   echo "$as_me: failed program was:" >&5
36476 sed 's/^/| /' conftest.$ac_ext >&5
36477
36478         ac_lo=`expr '(' $ac_mid ')' + 1`
36479 fi
36480
36481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36482 done
36483 case $ac_lo in
36484 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36485 '') if test "$ac_cv_type_long_long_int" = yes; then
36486      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36487 See \`config.log' for more details." >&5
36488 echo "$as_me: error: cannot compute sizeof (long long int)
36489 See \`config.log' for more details." >&2;}
36490    { (exit 77); exit 77; }; }
36491    else
36492      ac_cv_sizeof_long_long_int=0
36493    fi ;;
36494 esac
36495 else
36496   cat >conftest.$ac_ext <<_ACEOF
36497 /* confdefs.h.  */
36498 _ACEOF
36499 cat confdefs.h >>conftest.$ac_ext
36500 cat >>conftest.$ac_ext <<_ACEOF
36501 /* end confdefs.h.  */
36502 $ac_includes_default
36503    typedef long long int ac__type_sizeof_;
36504 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36505 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36506 #include <stdio.h>
36507 #include <stdlib.h>
36508 int
36509 main ()
36510 {
36511
36512   FILE *f = fopen ("conftest.val", "w");
36513   if (! f)
36514     return 1;
36515   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36516     {
36517       long int i = longval ();
36518       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36519         return 1;
36520       fprintf (f, "%ld\n", i);
36521     }
36522   else
36523     {
36524       unsigned long int i = ulongval ();
36525       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36526         return 1;
36527       fprintf (f, "%lu\n", i);
36528     }
36529   return ferror (f) || fclose (f) != 0;
36530
36531   ;
36532   return 0;
36533 }
36534 _ACEOF
36535 rm -f conftest$ac_exeext
36536 if { (ac_try="$ac_link"
36537 case "(($ac_try" in
36538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36539   *) ac_try_echo=$ac_try;;
36540 esac
36541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36542   (eval "$ac_link") 2>&5
36543   ac_status=$?
36544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36546   { (case "(($ac_try" in
36547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36548   *) ac_try_echo=$ac_try;;
36549 esac
36550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36551   (eval "$ac_try") 2>&5
36552   ac_status=$?
36553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554   (exit $ac_status); }; }; then
36555   ac_cv_sizeof_long_long_int=`cat conftest.val`
36556 else
36557   echo "$as_me: program exited with status $ac_status" >&5
36558 echo "$as_me: failed program was:" >&5
36559 sed 's/^/| /' conftest.$ac_ext >&5
36560
36561 ( exit $ac_status )
36562 if test "$ac_cv_type_long_long_int" = yes; then
36563      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36564 See \`config.log' for more details." >&5
36565 echo "$as_me: error: cannot compute sizeof (long long int)
36566 See \`config.log' for more details." >&2;}
36567    { (exit 77); exit 77; }; }
36568    else
36569      ac_cv_sizeof_long_long_int=0
36570    fi
36571 fi
36572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36573 fi
36574 rm -f conftest.val
36575 fi
36576 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36577 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36578
36579
36580
36581 cat >>confdefs.h <<_ACEOF
36582 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36583 _ACEOF
36584
36585
36586 { echo "$as_me:$LINENO: checking for int *" >&5
36587 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36588 if test "${ac_cv_type_int_p+set}" = set; then
36589   echo $ECHO_N "(cached) $ECHO_C" >&6
36590 else
36591   cat >conftest.$ac_ext <<_ACEOF
36592 /* confdefs.h.  */
36593 _ACEOF
36594 cat confdefs.h >>conftest.$ac_ext
36595 cat >>conftest.$ac_ext <<_ACEOF
36596 /* end confdefs.h.  */
36597 $ac_includes_default
36598 typedef int * ac__type_new_;
36599 int
36600 main ()
36601 {
36602 if ((ac__type_new_ *) 0)
36603   return 0;
36604 if (sizeof (ac__type_new_))
36605   return 0;
36606   ;
36607   return 0;
36608 }
36609 _ACEOF
36610 rm -f conftest.$ac_objext
36611 if { (ac_try="$ac_compile"
36612 case "(($ac_try" in
36613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36614   *) ac_try_echo=$ac_try;;
36615 esac
36616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36617   (eval "$ac_compile") 2>conftest.er1
36618   ac_status=$?
36619   grep -v '^ *+' conftest.er1 >conftest.err
36620   rm -f conftest.er1
36621   cat conftest.err >&5
36622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623   (exit $ac_status); } && {
36624          test -z "$ac_c_werror_flag" ||
36625          test ! -s conftest.err
36626        } && test -s conftest.$ac_objext; then
36627   ac_cv_type_int_p=yes
36628 else
36629   echo "$as_me: failed program was:" >&5
36630 sed 's/^/| /' conftest.$ac_ext >&5
36631
36632         ac_cv_type_int_p=no
36633 fi
36634
36635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36636 fi
36637 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36638 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36639
36640 # The cast to long int works around a bug in the HP C Compiler
36641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36643 # This bug is HP SR number 8606223364.
36644 { echo "$as_me:$LINENO: checking size of int *" >&5
36645 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36646 if test "${ac_cv_sizeof_int_p+set}" = set; then
36647   echo $ECHO_N "(cached) $ECHO_C" >&6
36648 else
36649   if test "$cross_compiling" = yes; then
36650   # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
36659 int
36660 main ()
36661 {
36662 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36663 test_array [0] = 0
36664
36665   ;
36666   return 0;
36667 }
36668 _ACEOF
36669 rm -f conftest.$ac_objext
36670 if { (ac_try="$ac_compile"
36671 case "(($ac_try" in
36672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36673   *) ac_try_echo=$ac_try;;
36674 esac
36675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36676   (eval "$ac_compile") 2>conftest.er1
36677   ac_status=$?
36678   grep -v '^ *+' conftest.er1 >conftest.err
36679   rm -f conftest.er1
36680   cat conftest.err >&5
36681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36682   (exit $ac_status); } && {
36683          test -z "$ac_c_werror_flag" ||
36684          test ! -s conftest.err
36685        } && test -s conftest.$ac_objext; then
36686   ac_lo=0 ac_mid=0
36687   while :; do
36688     cat >conftest.$ac_ext <<_ACEOF
36689 /* confdefs.h.  */
36690 _ACEOF
36691 cat confdefs.h >>conftest.$ac_ext
36692 cat >>conftest.$ac_ext <<_ACEOF
36693 /* end confdefs.h.  */
36694 $ac_includes_default
36695    typedef int * ac__type_sizeof_;
36696 int
36697 main ()
36698 {
36699 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36700 test_array [0] = 0
36701
36702   ;
36703   return 0;
36704 }
36705 _ACEOF
36706 rm -f conftest.$ac_objext
36707 if { (ac_try="$ac_compile"
36708 case "(($ac_try" in
36709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36710   *) ac_try_echo=$ac_try;;
36711 esac
36712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36713   (eval "$ac_compile") 2>conftest.er1
36714   ac_status=$?
36715   grep -v '^ *+' conftest.er1 >conftest.err
36716   rm -f conftest.er1
36717   cat conftest.err >&5
36718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719   (exit $ac_status); } && {
36720          test -z "$ac_c_werror_flag" ||
36721          test ! -s conftest.err
36722        } && test -s conftest.$ac_objext; then
36723   ac_hi=$ac_mid; break
36724 else
36725   echo "$as_me: failed program was:" >&5
36726 sed 's/^/| /' conftest.$ac_ext >&5
36727
36728         ac_lo=`expr $ac_mid + 1`
36729                         if test $ac_lo -le $ac_mid; then
36730                           ac_lo= ac_hi=
36731                           break
36732                         fi
36733                         ac_mid=`expr 2 '*' $ac_mid + 1`
36734 fi
36735
36736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36737   done
36738 else
36739   echo "$as_me: failed program was:" >&5
36740 sed 's/^/| /' conftest.$ac_ext >&5
36741
36742         cat >conftest.$ac_ext <<_ACEOF
36743 /* confdefs.h.  */
36744 _ACEOF
36745 cat confdefs.h >>conftest.$ac_ext
36746 cat >>conftest.$ac_ext <<_ACEOF
36747 /* end confdefs.h.  */
36748 $ac_includes_default
36749    typedef int * ac__type_sizeof_;
36750 int
36751 main ()
36752 {
36753 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36754 test_array [0] = 0
36755
36756   ;
36757   return 0;
36758 }
36759 _ACEOF
36760 rm -f conftest.$ac_objext
36761 if { (ac_try="$ac_compile"
36762 case "(($ac_try" in
36763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36764   *) ac_try_echo=$ac_try;;
36765 esac
36766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36767   (eval "$ac_compile") 2>conftest.er1
36768   ac_status=$?
36769   grep -v '^ *+' conftest.er1 >conftest.err
36770   rm -f conftest.er1
36771   cat conftest.err >&5
36772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773   (exit $ac_status); } && {
36774          test -z "$ac_c_werror_flag" ||
36775          test ! -s conftest.err
36776        } && test -s conftest.$ac_objext; then
36777   ac_hi=-1 ac_mid=-1
36778   while :; do
36779     cat >conftest.$ac_ext <<_ACEOF
36780 /* confdefs.h.  */
36781 _ACEOF
36782 cat confdefs.h >>conftest.$ac_ext
36783 cat >>conftest.$ac_ext <<_ACEOF
36784 /* end confdefs.h.  */
36785 $ac_includes_default
36786    typedef int * ac__type_sizeof_;
36787 int
36788 main ()
36789 {
36790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36791 test_array [0] = 0
36792
36793   ;
36794   return 0;
36795 }
36796 _ACEOF
36797 rm -f conftest.$ac_objext
36798 if { (ac_try="$ac_compile"
36799 case "(($ac_try" in
36800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36801   *) ac_try_echo=$ac_try;;
36802 esac
36803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36804   (eval "$ac_compile") 2>conftest.er1
36805   ac_status=$?
36806   grep -v '^ *+' conftest.er1 >conftest.err
36807   rm -f conftest.er1
36808   cat conftest.err >&5
36809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810   (exit $ac_status); } && {
36811          test -z "$ac_c_werror_flag" ||
36812          test ! -s conftest.err
36813        } && test -s conftest.$ac_objext; then
36814   ac_lo=$ac_mid; break
36815 else
36816   echo "$as_me: failed program was:" >&5
36817 sed 's/^/| /' conftest.$ac_ext >&5
36818
36819         ac_hi=`expr '(' $ac_mid ')' - 1`
36820                         if test $ac_mid -le $ac_hi; then
36821                           ac_lo= ac_hi=
36822                           break
36823                         fi
36824                         ac_mid=`expr 2 '*' $ac_mid`
36825 fi
36826
36827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36828   done
36829 else
36830   echo "$as_me: failed program was:" >&5
36831 sed 's/^/| /' conftest.$ac_ext >&5
36832
36833         ac_lo= ac_hi=
36834 fi
36835
36836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36837 fi
36838
36839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36840 # Binary search between lo and hi bounds.
36841 while test "x$ac_lo" != "x$ac_hi"; do
36842   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36843   cat >conftest.$ac_ext <<_ACEOF
36844 /* confdefs.h.  */
36845 _ACEOF
36846 cat confdefs.h >>conftest.$ac_ext
36847 cat >>conftest.$ac_ext <<_ACEOF
36848 /* end confdefs.h.  */
36849 $ac_includes_default
36850    typedef int * ac__type_sizeof_;
36851 int
36852 main ()
36853 {
36854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36855 test_array [0] = 0
36856
36857   ;
36858   return 0;
36859 }
36860 _ACEOF
36861 rm -f conftest.$ac_objext
36862 if { (ac_try="$ac_compile"
36863 case "(($ac_try" in
36864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36865   *) ac_try_echo=$ac_try;;
36866 esac
36867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36868   (eval "$ac_compile") 2>conftest.er1
36869   ac_status=$?
36870   grep -v '^ *+' conftest.er1 >conftest.err
36871   rm -f conftest.er1
36872   cat conftest.err >&5
36873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874   (exit $ac_status); } && {
36875          test -z "$ac_c_werror_flag" ||
36876          test ! -s conftest.err
36877        } && test -s conftest.$ac_objext; then
36878   ac_hi=$ac_mid
36879 else
36880   echo "$as_me: failed program was:" >&5
36881 sed 's/^/| /' conftest.$ac_ext >&5
36882
36883         ac_lo=`expr '(' $ac_mid ')' + 1`
36884 fi
36885
36886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36887 done
36888 case $ac_lo in
36889 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36890 '') if test "$ac_cv_type_int_p" = yes; then
36891      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36892 See \`config.log' for more details." >&5
36893 echo "$as_me: error: cannot compute sizeof (int *)
36894 See \`config.log' for more details." >&2;}
36895    { (exit 77); exit 77; }; }
36896    else
36897      ac_cv_sizeof_int_p=0
36898    fi ;;
36899 esac
36900 else
36901   cat >conftest.$ac_ext <<_ACEOF
36902 /* confdefs.h.  */
36903 _ACEOF
36904 cat confdefs.h >>conftest.$ac_ext
36905 cat >>conftest.$ac_ext <<_ACEOF
36906 /* end confdefs.h.  */
36907 $ac_includes_default
36908    typedef int * ac__type_sizeof_;
36909 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36910 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36911 #include <stdio.h>
36912 #include <stdlib.h>
36913 int
36914 main ()
36915 {
36916
36917   FILE *f = fopen ("conftest.val", "w");
36918   if (! f)
36919     return 1;
36920   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36921     {
36922       long int i = longval ();
36923       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36924         return 1;
36925       fprintf (f, "%ld\n", i);
36926     }
36927   else
36928     {
36929       unsigned long int i = ulongval ();
36930       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36931         return 1;
36932       fprintf (f, "%lu\n", i);
36933     }
36934   return ferror (f) || fclose (f) != 0;
36935
36936   ;
36937   return 0;
36938 }
36939 _ACEOF
36940 rm -f conftest$ac_exeext
36941 if { (ac_try="$ac_link"
36942 case "(($ac_try" in
36943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36944   *) ac_try_echo=$ac_try;;
36945 esac
36946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36947   (eval "$ac_link") 2>&5
36948   ac_status=$?
36949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36950   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36951   { (case "(($ac_try" in
36952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36953   *) ac_try_echo=$ac_try;;
36954 esac
36955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36956   (eval "$ac_try") 2>&5
36957   ac_status=$?
36958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959   (exit $ac_status); }; }; then
36960   ac_cv_sizeof_int_p=`cat conftest.val`
36961 else
36962   echo "$as_me: program exited with status $ac_status" >&5
36963 echo "$as_me: failed program was:" >&5
36964 sed 's/^/| /' conftest.$ac_ext >&5
36965
36966 ( exit $ac_status )
36967 if test "$ac_cv_type_int_p" = yes; then
36968      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36969 See \`config.log' for more details." >&5
36970 echo "$as_me: error: cannot compute sizeof (int *)
36971 See \`config.log' for more details." >&2;}
36972    { (exit 77); exit 77; }; }
36973    else
36974      ac_cv_sizeof_int_p=0
36975    fi
36976 fi
36977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36978 fi
36979 rm -f conftest.val
36980 fi
36981 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36982 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36983
36984
36985
36986 cat >>confdefs.h <<_ACEOF
36987 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36988 _ACEOF
36989
36990
36991
36992 { echo "$as_me:$LINENO: checking for u_int type" >&5
36993 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36994 if test "${ac_cv_have_u_int+set}" = set; then
36995   echo $ECHO_N "(cached) $ECHO_C" >&6
36996 else
36997
36998        cat >conftest.$ac_ext <<_ACEOF
36999 /* confdefs.h.  */
37000 _ACEOF
37001 cat confdefs.h >>conftest.$ac_ext
37002 cat >>conftest.$ac_ext <<_ACEOF
37003 /* end confdefs.h.  */
37004
37005               #include <sys/types.h>
37006
37007 int
37008 main ()
37009 {
37010
37011               u_int a; a = 1;
37012
37013   ;
37014   return 0;
37015 }
37016 _ACEOF
37017 rm -f conftest.$ac_objext
37018 if { (ac_try="$ac_compile"
37019 case "(($ac_try" in
37020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37021   *) ac_try_echo=$ac_try;;
37022 esac
37023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37024   (eval "$ac_compile") 2>conftest.er1
37025   ac_status=$?
37026   grep -v '^ *+' conftest.er1 >conftest.err
37027   rm -f conftest.er1
37028   cat conftest.err >&5
37029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37030   (exit $ac_status); } && {
37031          test -z "$ac_c_werror_flag" ||
37032          test ! -s conftest.err
37033        } && test -s conftest.$ac_objext; then
37034
37035               ac_cv_have_u_int="yes"
37036
37037 else
37038   echo "$as_me: failed program was:" >&5
37039 sed 's/^/| /' conftest.$ac_ext >&5
37040
37041
37042               ac_cv_have_u_int="no"
37043
37044
37045 fi
37046
37047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37048
37049
37050 fi
37051 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37052 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37053 if test "x$ac_cv_have_u_int" = "xyes" ; then
37054    cat >>confdefs.h <<\_ACEOF
37055 #define HAVE_U_INT 1
37056 _ACEOF
37057
37058    have_u_int=1
37059 fi
37060
37061 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37062 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37063 if test "${ac_cv_have_intmax_t+set}" = set; then
37064   echo $ECHO_N "(cached) $ECHO_C" >&6
37065 else
37066
37067        cat >conftest.$ac_ext <<_ACEOF
37068 /* confdefs.h.  */
37069 _ACEOF
37070 cat confdefs.h >>conftest.$ac_ext
37071 cat >>conftest.$ac_ext <<_ACEOF
37072 /* end confdefs.h.  */
37073
37074               #include <sys/types.h>
37075
37076 int
37077 main ()
37078 {
37079
37080               intmax_t a; a = 1;
37081
37082   ;
37083   return 0;
37084 }
37085 _ACEOF
37086 rm -f conftest.$ac_objext
37087 if { (ac_try="$ac_compile"
37088 case "(($ac_try" in
37089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37090   *) ac_try_echo=$ac_try;;
37091 esac
37092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37093   (eval "$ac_compile") 2>conftest.er1
37094   ac_status=$?
37095   grep -v '^ *+' conftest.er1 >conftest.err
37096   rm -f conftest.er1
37097   cat conftest.err >&5
37098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099   (exit $ac_status); } && {
37100          test -z "$ac_c_werror_flag" ||
37101          test ! -s conftest.err
37102        } && test -s conftest.$ac_objext; then
37103
37104               ac_cv_have_intmax_t="yes"
37105
37106 else
37107   echo "$as_me: failed program was:" >&5
37108 sed 's/^/| /' conftest.$ac_ext >&5
37109
37110
37111               cat >conftest.$ac_ext <<_ACEOF
37112 /* confdefs.h.  */
37113 _ACEOF
37114 cat confdefs.h >>conftest.$ac_ext
37115 cat >>conftest.$ac_ext <<_ACEOF
37116 /* end confdefs.h.  */
37117
37118                      #include <stdint.h>
37119
37120 int
37121 main ()
37122 {
37123
37124                      intmax_t a; a = 1;
37125
37126   ;
37127   return 0;
37128 }
37129 _ACEOF
37130 rm -f conftest.$ac_objext
37131 if { (ac_try="$ac_compile"
37132 case "(($ac_try" in
37133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37134   *) ac_try_echo=$ac_try;;
37135 esac
37136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37137   (eval "$ac_compile") 2>conftest.er1
37138   ac_status=$?
37139   grep -v '^ *+' conftest.er1 >conftest.err
37140   rm -f conftest.er1
37141   cat conftest.err >&5
37142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37143   (exit $ac_status); } && {
37144          test -z "$ac_c_werror_flag" ||
37145          test ! -s conftest.err
37146        } && test -s conftest.$ac_objext; then
37147
37148                      ac_cv_have_intmax_t="yes"
37149
37150 else
37151   echo "$as_me: failed program was:" >&5
37152 sed 's/^/| /' conftest.$ac_ext >&5
37153
37154
37155                      ac_cv_have_intmax_t="no"
37156
37157
37158 fi
37159
37160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37161
37162
37163 fi
37164
37165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37166
37167
37168 fi
37169 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37170 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37171 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37172    cat >>confdefs.h <<\_ACEOF
37173 #define HAVE_INTMAX_T 1
37174 _ACEOF
37175
37176    have_intmax_t=1
37177 fi
37178
37179 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37180 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37181 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37182   echo $ECHO_N "(cached) $ECHO_C" >&6
37183 else
37184
37185        cat >conftest.$ac_ext <<_ACEOF
37186 /* confdefs.h.  */
37187 _ACEOF
37188 cat confdefs.h >>conftest.$ac_ext
37189 cat >>conftest.$ac_ext <<_ACEOF
37190 /* end confdefs.h.  */
37191
37192               #include <sys/types.h>
37193
37194 int
37195 main ()
37196 {
37197
37198               u_intmax_t a; a = 1;
37199
37200   ;
37201   return 0;
37202 }
37203 _ACEOF
37204 rm -f conftest.$ac_objext
37205 if { (ac_try="$ac_compile"
37206 case "(($ac_try" in
37207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37208   *) ac_try_echo=$ac_try;;
37209 esac
37210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37211   (eval "$ac_compile") 2>conftest.er1
37212   ac_status=$?
37213   grep -v '^ *+' conftest.er1 >conftest.err
37214   rm -f conftest.er1
37215   cat conftest.err >&5
37216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37217   (exit $ac_status); } && {
37218          test -z "$ac_c_werror_flag" ||
37219          test ! -s conftest.err
37220        } && test -s conftest.$ac_objext; then
37221
37222               ac_cv_have_u_intmax_t="yes"
37223
37224 else
37225   echo "$as_me: failed program was:" >&5
37226 sed 's/^/| /' conftest.$ac_ext >&5
37227
37228
37229               cat >conftest.$ac_ext <<_ACEOF
37230 /* confdefs.h.  */
37231 _ACEOF
37232 cat confdefs.h >>conftest.$ac_ext
37233 cat >>conftest.$ac_ext <<_ACEOF
37234 /* end confdefs.h.  */
37235
37236                      #include <stdint.h>
37237
37238 int
37239 main ()
37240 {
37241
37242                     u_intmax_t a; a = 1;
37243
37244   ;
37245   return 0;
37246 }
37247 _ACEOF
37248 rm -f conftest.$ac_objext
37249 if { (ac_try="$ac_compile"
37250 case "(($ac_try" in
37251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37252   *) ac_try_echo=$ac_try;;
37253 esac
37254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37255   (eval "$ac_compile") 2>conftest.er1
37256   ac_status=$?
37257   grep -v '^ *+' conftest.er1 >conftest.err
37258   rm -f conftest.er1
37259   cat conftest.err >&5
37260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261   (exit $ac_status); } && {
37262          test -z "$ac_c_werror_flag" ||
37263          test ! -s conftest.err
37264        } && test -s conftest.$ac_objext; then
37265
37266                     ac_cv_have_u_intmax_t="yes"
37267
37268 else
37269   echo "$as_me: failed program was:" >&5
37270 sed 's/^/| /' conftest.$ac_ext >&5
37271
37272
37273                     ac_cv_have_u_intmax_t="no"
37274
37275
37276 fi
37277
37278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37279
37280
37281 fi
37282
37283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37284
37285
37286 fi
37287 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37288 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37289 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37290    cat >>confdefs.h <<\_ACEOF
37291 #define HAVE_U_INTMAX_T 1
37292 _ACEOF
37293
37294    have_u_intmax_t=1
37295 fi
37296
37297 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37298 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37299 if test "${ac_cv_have_intxx_t+set}" = set; then
37300   echo $ECHO_N "(cached) $ECHO_C" >&6
37301 else
37302
37303        cat >conftest.$ac_ext <<_ACEOF
37304 /* confdefs.h.  */
37305 _ACEOF
37306 cat confdefs.h >>conftest.$ac_ext
37307 cat >>conftest.$ac_ext <<_ACEOF
37308 /* end confdefs.h.  */
37309
37310               #include <sys/types.h>
37311
37312 int
37313 main ()
37314 {
37315
37316               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37317
37318   ;
37319   return 0;
37320 }
37321 _ACEOF
37322 rm -f conftest.$ac_objext
37323 if { (ac_try="$ac_compile"
37324 case "(($ac_try" in
37325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37326   *) ac_try_echo=$ac_try;;
37327 esac
37328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37329   (eval "$ac_compile") 2>conftest.er1
37330   ac_status=$?
37331   grep -v '^ *+' conftest.er1 >conftest.err
37332   rm -f conftest.er1
37333   cat conftest.err >&5
37334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37335   (exit $ac_status); } && {
37336          test -z "$ac_c_werror_flag" ||
37337          test ! -s conftest.err
37338        } && test -s conftest.$ac_objext; then
37339
37340               ac_cv_have_intxx_t="yes"
37341
37342 else
37343   echo "$as_me: failed program was:" >&5
37344 sed 's/^/| /' conftest.$ac_ext >&5
37345
37346
37347               ac_cv_have_intxx_t="no"
37348
37349
37350 fi
37351
37352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37353
37354
37355 fi
37356 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37357 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37358 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37359    cat >>confdefs.h <<\_ACEOF
37360 #define HAVE_INTXX_T 1
37361 _ACEOF
37362
37363    have_intxx_t=1
37364 fi
37365
37366 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37367 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37368 if test "${ac_cv_have_int64_t+set}" = set; then
37369   echo $ECHO_N "(cached) $ECHO_C" >&6
37370 else
37371
37372        cat >conftest.$ac_ext <<_ACEOF
37373 /* confdefs.h.  */
37374 _ACEOF
37375 cat confdefs.h >>conftest.$ac_ext
37376 cat >>conftest.$ac_ext <<_ACEOF
37377 /* end confdefs.h.  */
37378
37379               #include <sys/types.h>
37380
37381 int
37382 main ()
37383 {
37384
37385               int64_t a; a = 1;
37386
37387   ;
37388   return 0;
37389 }
37390 _ACEOF
37391 rm -f conftest.$ac_objext
37392 if { (ac_try="$ac_compile"
37393 case "(($ac_try" in
37394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37395   *) ac_try_echo=$ac_try;;
37396 esac
37397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37398   (eval "$ac_compile") 2>conftest.er1
37399   ac_status=$?
37400   grep -v '^ *+' conftest.er1 >conftest.err
37401   rm -f conftest.er1
37402   cat conftest.err >&5
37403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404   (exit $ac_status); } && {
37405          test -z "$ac_c_werror_flag" ||
37406          test ! -s conftest.err
37407        } && test -s conftest.$ac_objext; then
37408
37409               ac_cv_have_int64_t="yes"
37410
37411 else
37412   echo "$as_me: failed program was:" >&5
37413 sed 's/^/| /' conftest.$ac_ext >&5
37414
37415
37416               ac_cv_have_int64_t="no"
37417
37418
37419 fi
37420
37421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37422
37423
37424 fi
37425 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37426 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37427 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37428    cat >>confdefs.h <<\_ACEOF
37429 #define HAVE_INT64_T 1
37430 _ACEOF
37431
37432    have_int64_t=1
37433 fi
37434
37435 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37436 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37437 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37438   echo $ECHO_N "(cached) $ECHO_C" >&6
37439 else
37440
37441        cat >conftest.$ac_ext <<_ACEOF
37442 /* confdefs.h.  */
37443 _ACEOF
37444 cat confdefs.h >>conftest.$ac_ext
37445 cat >>conftest.$ac_ext <<_ACEOF
37446 /* end confdefs.h.  */
37447
37448               #include <sys/types.h>
37449
37450 int
37451 main ()
37452 {
37453
37454               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37455
37456   ;
37457   return 0;
37458 }
37459 _ACEOF
37460 rm -f conftest.$ac_objext
37461 if { (ac_try="$ac_compile"
37462 case "(($ac_try" in
37463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37464   *) ac_try_echo=$ac_try;;
37465 esac
37466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37467   (eval "$ac_compile") 2>conftest.er1
37468   ac_status=$?
37469   grep -v '^ *+' conftest.er1 >conftest.err
37470   rm -f conftest.er1
37471   cat conftest.err >&5
37472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37473   (exit $ac_status); } && {
37474          test -z "$ac_c_werror_flag" ||
37475          test ! -s conftest.err
37476        } && test -s conftest.$ac_objext; then
37477
37478              ac_cv_have_u_intxx_t="yes"
37479
37480 else
37481   echo "$as_me: failed program was:" >&5
37482 sed 's/^/| /' conftest.$ac_ext >&5
37483
37484
37485              ac_cv_have_u_intxx_t="no"
37486
37487
37488 fi
37489
37490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37491
37492
37493 fi
37494 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37495 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37496 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37497    cat >>confdefs.h <<\_ACEOF
37498 #define HAVE_U_INTXX_T 1
37499 _ACEOF
37500
37501    have_u_intxx_t=1
37502 fi
37503
37504 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37505 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37506 if test "${ac_cv_have_u_int64_t+set}" = set; then
37507   echo $ECHO_N "(cached) $ECHO_C" >&6
37508 else
37509
37510        cat >conftest.$ac_ext <<_ACEOF
37511 /* confdefs.h.  */
37512 _ACEOF
37513 cat confdefs.h >>conftest.$ac_ext
37514 cat >>conftest.$ac_ext <<_ACEOF
37515 /* end confdefs.h.  */
37516
37517               #include <sys/types.h>
37518
37519 int
37520 main ()
37521 {
37522
37523               u_int64_t a; a = 1;
37524
37525   ;
37526   return 0;
37527 }
37528 _ACEOF
37529 rm -f conftest.$ac_objext
37530 if { (ac_try="$ac_compile"
37531 case "(($ac_try" in
37532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37533   *) ac_try_echo=$ac_try;;
37534 esac
37535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37536   (eval "$ac_compile") 2>conftest.er1
37537   ac_status=$?
37538   grep -v '^ *+' conftest.er1 >conftest.err
37539   rm -f conftest.er1
37540   cat conftest.err >&5
37541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37542   (exit $ac_status); } && {
37543          test -z "$ac_c_werror_flag" ||
37544          test ! -s conftest.err
37545        } && test -s conftest.$ac_objext; then
37546
37547              ac_cv_have_u_int64_t="yes"
37548
37549 else
37550   echo "$as_me: failed program was:" >&5
37551 sed 's/^/| /' conftest.$ac_ext >&5
37552
37553
37554              ac_cv_have_u_int64_t="no"
37555
37556
37557 fi
37558
37559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37560
37561
37562 fi
37563 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37564 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37565 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37566    cat >>confdefs.h <<\_ACEOF
37567 #define HAVE_U_INT64_T 1
37568 _ACEOF
37569
37570    have_u_int64_t=1
37571 fi
37572
37573 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37574     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37575 then
37576    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37577 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37578    cat >conftest.$ac_ext <<_ACEOF
37579 /* confdefs.h.  */
37580 _ACEOF
37581 cat confdefs.h >>conftest.$ac_ext
37582 cat >>conftest.$ac_ext <<_ACEOF
37583 /* end confdefs.h.  */
37584
37585           #include <sys/bitypes.h>
37586
37587 int
37588 main ()
37589 {
37590
37591           int8_t a; int16_t b; int32_t c;
37592           u_int8_t e; u_int16_t f; u_int32_t g;
37593           a = b = c = e = f = g = 1;
37594
37595   ;
37596   return 0;
37597 }
37598 _ACEOF
37599 rm -f conftest.$ac_objext
37600 if { (ac_try="$ac_compile"
37601 case "(($ac_try" in
37602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37603   *) ac_try_echo=$ac_try;;
37604 esac
37605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37606   (eval "$ac_compile") 2>conftest.er1
37607   ac_status=$?
37608   grep -v '^ *+' conftest.er1 >conftest.err
37609   rm -f conftest.er1
37610   cat conftest.err >&5
37611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37612   (exit $ac_status); } && {
37613          test -z "$ac_c_werror_flag" ||
37614          test ! -s conftest.err
37615        } && test -s conftest.$ac_objext; then
37616
37617           cat >>confdefs.h <<\_ACEOF
37618 #define HAVE_U_INTXX_T 1
37619 _ACEOF
37620
37621           cat >>confdefs.h <<\_ACEOF
37622 #define HAVE_INTXX_T 1
37623 _ACEOF
37624
37625           cat >>confdefs.h <<\_ACEOF
37626 #define HAVE_SYS_BITYPES_H 1
37627 _ACEOF
37628
37629           { echo "$as_me:$LINENO: result: yes" >&5
37630 echo "${ECHO_T}yes" >&6; }
37631
37632 else
37633   echo "$as_me: failed program was:" >&5
37634 sed 's/^/| /' conftest.$ac_ext >&5
37635
37636
37637           { echo "$as_me:$LINENO: result: no" >&5
37638 echo "${ECHO_T}no" >&6; }
37639
37640
37641 fi
37642
37643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37644 fi
37645
37646 if test -z "$have_u_intxx_t" ; then
37647    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37648 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37649 if test "${ac_cv_have_uintxx_t+set}" = set; then
37650   echo $ECHO_N "(cached) $ECHO_C" >&6
37651 else
37652
37653           cat >conftest.$ac_ext <<_ACEOF
37654 /* confdefs.h.  */
37655 _ACEOF
37656 cat confdefs.h >>conftest.$ac_ext
37657 cat >>conftest.$ac_ext <<_ACEOF
37658 /* end confdefs.h.  */
37659
37660                  #include <sys/types.h>
37661
37662 int
37663 main ()
37664 {
37665
37666                  uint8_t a; uint16_t b;
37667                  uint32_t c; a = b = c = 1;
37668
37669   ;
37670   return 0;
37671 }
37672 _ACEOF
37673 rm -f conftest.$ac_objext
37674 if { (ac_try="$ac_compile"
37675 case "(($ac_try" in
37676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37677   *) ac_try_echo=$ac_try;;
37678 esac
37679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37680   (eval "$ac_compile") 2>conftest.er1
37681   ac_status=$?
37682   grep -v '^ *+' conftest.er1 >conftest.err
37683   rm -f conftest.er1
37684   cat conftest.err >&5
37685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37686   (exit $ac_status); } && {
37687          test -z "$ac_c_werror_flag" ||
37688          test ! -s conftest.err
37689        } && test -s conftest.$ac_objext; then
37690
37691                 ac_cv_have_uintxx_t="yes"
37692
37693 else
37694   echo "$as_me: failed program was:" >&5
37695 sed 's/^/| /' conftest.$ac_ext >&5
37696
37697
37698                 ac_cv_have_uintxx_t="no"
37699
37700
37701 fi
37702
37703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37704
37705
37706 fi
37707 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37708 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37709    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37710       cat >>confdefs.h <<\_ACEOF
37711 #define HAVE_UINTXX_T 1
37712 _ACEOF
37713
37714    fi
37715 fi
37716
37717 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37718     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37719 then
37720    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37721 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37722    cat >conftest.$ac_ext <<_ACEOF
37723 /* confdefs.h.  */
37724 _ACEOF
37725 cat confdefs.h >>conftest.$ac_ext
37726 cat >>conftest.$ac_ext <<_ACEOF
37727 /* end confdefs.h.  */
37728
37729           #include <sys/bitypes.h>
37730
37731 int
37732 main ()
37733 {
37734
37735           int64_t a; u_int64_t b;
37736           a = b = 1;
37737
37738   ;
37739   return 0;
37740 }
37741 _ACEOF
37742 rm -f conftest.$ac_objext
37743 if { (ac_try="$ac_compile"
37744 case "(($ac_try" in
37745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37746   *) ac_try_echo=$ac_try;;
37747 esac
37748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37749   (eval "$ac_compile") 2>conftest.er1
37750   ac_status=$?
37751   grep -v '^ *+' conftest.er1 >conftest.err
37752   rm -f conftest.er1
37753   cat conftest.err >&5
37754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37755   (exit $ac_status); } && {
37756          test -z "$ac_c_werror_flag" ||
37757          test ! -s conftest.err
37758        } && test -s conftest.$ac_objext; then
37759
37760           cat >>confdefs.h <<\_ACEOF
37761 #define HAVE_U_INT64_T 1
37762 _ACEOF
37763
37764           cat >>confdefs.h <<\_ACEOF
37765 #define HAVE_INT64_T 1
37766 _ACEOF
37767
37768           { echo "$as_me:$LINENO: result: yes" >&5
37769 echo "${ECHO_T}yes" >&6; }
37770
37771 else
37772   echo "$as_me: failed program was:" >&5
37773 sed 's/^/| /' conftest.$ac_ext >&5
37774
37775
37776           { echo "$as_me:$LINENO: result: no" >&5
37777 echo "${ECHO_T}no" >&6; }
37778
37779
37780 fi
37781
37782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37783 fi
37784
37785 if (test -z "$have_uintxx_t" && \
37786     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37787 then
37788    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37789 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37790    cat >conftest.$ac_ext <<_ACEOF
37791 /* confdefs.h.  */
37792 _ACEOF
37793 cat confdefs.h >>conftest.$ac_ext
37794 cat >>conftest.$ac_ext <<_ACEOF
37795 /* end confdefs.h.  */
37796
37797           #include <sys/bitypes.h>
37798
37799 int
37800 main ()
37801 {
37802
37803           uint8_t a; uint16_t b;
37804           uint32_t c; a = b = c = 1;
37805
37806   ;
37807   return 0;
37808 }
37809 _ACEOF
37810 rm -f conftest.$ac_objext
37811 if { (ac_try="$ac_compile"
37812 case "(($ac_try" in
37813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37814   *) ac_try_echo=$ac_try;;
37815 esac
37816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37817   (eval "$ac_compile") 2>conftest.er1
37818   ac_status=$?
37819   grep -v '^ *+' conftest.er1 >conftest.err
37820   rm -f conftest.er1
37821   cat conftest.err >&5
37822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37823   (exit $ac_status); } && {
37824          test -z "$ac_c_werror_flag" ||
37825          test ! -s conftest.err
37826        } && test -s conftest.$ac_objext; then
37827
37828           cat >>confdefs.h <<\_ACEOF
37829 #define HAVE_UINTXX_T 1
37830 _ACEOF
37831
37832           { echo "$as_me:$LINENO: result: yes" >&5
37833 echo "${ECHO_T}yes" >&6; }
37834
37835 else
37836   echo "$as_me: failed program was:" >&5
37837 sed 's/^/| /' conftest.$ac_ext >&5
37838
37839
37840           { echo "$as_me:$LINENO: result: no" >&5
37841 echo "${ECHO_T}no" >&6; }
37842
37843
37844 fi
37845
37846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37847 fi
37848
37849
37850
37851
37852
37853
37854
37855
37856
37857
37858
37859
37860
37861
37862 for ac_func in \
37863    fork \
37864    getcwd \
37865    gethostname \
37866    getpid \
37867    gettimeofday \
37868    setpgid \
37869    setpgrp \
37870    setsid \
37871    signal \
37872    strerror \
37873    strncmp \
37874    strncpy \
37875    vfprintf \
37876
37877 do
37878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37882   echo $ECHO_N "(cached) $ECHO_C" >&6
37883 else
37884   cat >conftest.$ac_ext <<_ACEOF
37885 /* confdefs.h.  */
37886 _ACEOF
37887 cat confdefs.h >>conftest.$ac_ext
37888 cat >>conftest.$ac_ext <<_ACEOF
37889 /* end confdefs.h.  */
37890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37892 #define $ac_func innocuous_$ac_func
37893
37894 /* System header to define __stub macros and hopefully few prototypes,
37895     which can conflict with char $ac_func (); below.
37896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37897     <limits.h> exists even on freestanding compilers.  */
37898
37899 #ifdef __STDC__
37900 # include <limits.h>
37901 #else
37902 # include <assert.h>
37903 #endif
37904
37905 #undef $ac_func
37906
37907 /* Override any GCC internal prototype to avoid an error.
37908    Use char because int might match the return type of a GCC
37909    builtin and then its argument prototype would still apply.  */
37910 #ifdef __cplusplus
37911 extern "C"
37912 #endif
37913 char $ac_func ();
37914 /* The GNU C library defines this for functions which it implements
37915     to always fail with ENOSYS.  Some functions are actually named
37916     something starting with __ and the normal name is an alias.  */
37917 #if defined __stub_$ac_func || defined __stub___$ac_func
37918 choke me
37919 #endif
37920
37921 int
37922 main ()
37923 {
37924 return $ac_func ();
37925   ;
37926   return 0;
37927 }
37928 _ACEOF
37929 rm -f conftest.$ac_objext conftest$ac_exeext
37930 if { (ac_try="$ac_link"
37931 case "(($ac_try" in
37932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37933   *) ac_try_echo=$ac_try;;
37934 esac
37935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37936   (eval "$ac_link") 2>conftest.er1
37937   ac_status=$?
37938   grep -v '^ *+' conftest.er1 >conftest.err
37939   rm -f conftest.er1
37940   cat conftest.err >&5
37941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37942   (exit $ac_status); } && {
37943          test -z "$ac_c_werror_flag" ||
37944          test ! -s conftest.err
37945        } && test -s conftest$ac_exeext &&
37946        $as_test_x conftest$ac_exeext; then
37947   eval "$as_ac_var=yes"
37948 else
37949   echo "$as_me: failed program was:" >&5
37950 sed 's/^/| /' conftest.$ac_ext >&5
37951
37952         eval "$as_ac_var=no"
37953 fi
37954
37955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37956       conftest$ac_exeext conftest.$ac_ext
37957 fi
37958 ac_res=`eval echo '${'$as_ac_var'}'`
37959                { echo "$as_me:$LINENO: result: $ac_res" >&5
37960 echo "${ECHO_T}$ac_res" >&6; }
37961 if test `eval echo '${'$as_ac_var'}'` = yes; then
37962   cat >>confdefs.h <<_ACEOF
37963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37964 _ACEOF
37965
37966 else
37967   echo 'configure: cannot find needed function.'; exit 1
37968
37969 fi
37970 done
37971
37972
37973
37974 for ac_func in fchdir
37975 do
37976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37980   echo $ECHO_N "(cached) $ECHO_C" >&6
37981 else
37982   cat >conftest.$ac_ext <<_ACEOF
37983 /* confdefs.h.  */
37984 _ACEOF
37985 cat confdefs.h >>conftest.$ac_ext
37986 cat >>conftest.$ac_ext <<_ACEOF
37987 /* end confdefs.h.  */
37988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37990 #define $ac_func innocuous_$ac_func
37991
37992 /* System header to define __stub macros and hopefully few prototypes,
37993     which can conflict with char $ac_func (); below.
37994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37995     <limits.h> exists even on freestanding compilers.  */
37996
37997 #ifdef __STDC__
37998 # include <limits.h>
37999 #else
38000 # include <assert.h>
38001 #endif
38002
38003 #undef $ac_func
38004
38005 /* Override any GCC internal prototype to avoid an error.
38006    Use char because int might match the return type of a GCC
38007    builtin and then its argument prototype would still apply.  */
38008 #ifdef __cplusplus
38009 extern "C"
38010 #endif
38011 char $ac_func ();
38012 /* The GNU C library defines this for functions which it implements
38013     to always fail with ENOSYS.  Some functions are actually named
38014     something starting with __ and the normal name is an alias.  */
38015 #if defined __stub_$ac_func || defined __stub___$ac_func
38016 choke me
38017 #endif
38018
38019 int
38020 main ()
38021 {
38022 return $ac_func ();
38023   ;
38024   return 0;
38025 }
38026 _ACEOF
38027 rm -f conftest.$ac_objext conftest$ac_exeext
38028 if { (ac_try="$ac_link"
38029 case "(($ac_try" in
38030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38031   *) ac_try_echo=$ac_try;;
38032 esac
38033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38034   (eval "$ac_link") 2>conftest.er1
38035   ac_status=$?
38036   grep -v '^ *+' conftest.er1 >conftest.err
38037   rm -f conftest.er1
38038   cat conftest.err >&5
38039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38040   (exit $ac_status); } && {
38041          test -z "$ac_c_werror_flag" ||
38042          test ! -s conftest.err
38043        } && test -s conftest$ac_exeext &&
38044        $as_test_x conftest$ac_exeext; then
38045   eval "$as_ac_var=yes"
38046 else
38047   echo "$as_me: failed program was:" >&5
38048 sed 's/^/| /' conftest.$ac_ext >&5
38049
38050         eval "$as_ac_var=no"
38051 fi
38052
38053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38054       conftest$ac_exeext conftest.$ac_ext
38055 fi
38056 ac_res=`eval echo '${'$as_ac_var'}'`
38057                { echo "$as_me:$LINENO: result: $ac_res" >&5
38058 echo "${ECHO_T}$ac_res" >&6; }
38059 if test `eval echo '${'$as_ac_var'}'` = yes; then
38060   cat >>confdefs.h <<_ACEOF
38061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38062 _ACEOF
38063  cat >>confdefs.h <<\_ACEOF
38064 #define HAVE_FCHDIR 1
38065 _ACEOF
38066
38067 fi
38068 done
38069
38070
38071 for ac_func in strtoll
38072 do
38073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38077   echo $ECHO_N "(cached) $ECHO_C" >&6
38078 else
38079   cat >conftest.$ac_ext <<_ACEOF
38080 /* confdefs.h.  */
38081 _ACEOF
38082 cat confdefs.h >>conftest.$ac_ext
38083 cat >>conftest.$ac_ext <<_ACEOF
38084 /* end confdefs.h.  */
38085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38087 #define $ac_func innocuous_$ac_func
38088
38089 /* System header to define __stub macros and hopefully few prototypes,
38090     which can conflict with char $ac_func (); below.
38091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38092     <limits.h> exists even on freestanding compilers.  */
38093
38094 #ifdef __STDC__
38095 # include <limits.h>
38096 #else
38097 # include <assert.h>
38098 #endif
38099
38100 #undef $ac_func
38101
38102 /* Override any GCC internal prototype to avoid an error.
38103    Use char because int might match the return type of a GCC
38104    builtin and then its argument prototype would still apply.  */
38105 #ifdef __cplusplus
38106 extern "C"
38107 #endif
38108 char $ac_func ();
38109 /* The GNU C library defines this for functions which it implements
38110     to always fail with ENOSYS.  Some functions are actually named
38111     something starting with __ and the normal name is an alias.  */
38112 #if defined __stub_$ac_func || defined __stub___$ac_func
38113 choke me
38114 #endif
38115
38116 int
38117 main ()
38118 {
38119 return $ac_func ();
38120   ;
38121   return 0;
38122 }
38123 _ACEOF
38124 rm -f conftest.$ac_objext conftest$ac_exeext
38125 if { (ac_try="$ac_link"
38126 case "(($ac_try" in
38127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38128   *) ac_try_echo=$ac_try;;
38129 esac
38130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38131   (eval "$ac_link") 2>conftest.er1
38132   ac_status=$?
38133   grep -v '^ *+' conftest.er1 >conftest.err
38134   rm -f conftest.er1
38135   cat conftest.err >&5
38136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137   (exit $ac_status); } && {
38138          test -z "$ac_c_werror_flag" ||
38139          test ! -s conftest.err
38140        } && test -s conftest$ac_exeext &&
38141        $as_test_x conftest$ac_exeext; then
38142   eval "$as_ac_var=yes"
38143 else
38144   echo "$as_me: failed program was:" >&5
38145 sed 's/^/| /' conftest.$ac_ext >&5
38146
38147         eval "$as_ac_var=no"
38148 fi
38149
38150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38151       conftest$ac_exeext conftest.$ac_ext
38152 fi
38153 ac_res=`eval echo '${'$as_ac_var'}'`
38154                { echo "$as_me:$LINENO: result: $ac_res" >&5
38155 echo "${ECHO_T}$ac_res" >&6; }
38156 if test `eval echo '${'$as_ac_var'}'` = yes; then
38157   cat >>confdefs.h <<_ACEOF
38158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38159 _ACEOF
38160  cat >>confdefs.h <<\_ACEOF
38161 #define HAVE_STRTOLL 1
38162 _ACEOF
38163
38164 fi
38165 done
38166
38167
38168 for ac_func in posix_fadvise
38169 do
38170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38174   echo $ECHO_N "(cached) $ECHO_C" >&6
38175 else
38176   cat >conftest.$ac_ext <<_ACEOF
38177 /* confdefs.h.  */
38178 _ACEOF
38179 cat confdefs.h >>conftest.$ac_ext
38180 cat >>conftest.$ac_ext <<_ACEOF
38181 /* end confdefs.h.  */
38182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38184 #define $ac_func innocuous_$ac_func
38185
38186 /* System header to define __stub macros and hopefully few prototypes,
38187     which can conflict with char $ac_func (); below.
38188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38189     <limits.h> exists even on freestanding compilers.  */
38190
38191 #ifdef __STDC__
38192 # include <limits.h>
38193 #else
38194 # include <assert.h>
38195 #endif
38196
38197 #undef $ac_func
38198
38199 /* Override any GCC internal prototype to avoid an error.
38200    Use char because int might match the return type of a GCC
38201    builtin and then its argument prototype would still apply.  */
38202 #ifdef __cplusplus
38203 extern "C"
38204 #endif
38205 char $ac_func ();
38206 /* The GNU C library defines this for functions which it implements
38207     to always fail with ENOSYS.  Some functions are actually named
38208     something starting with __ and the normal name is an alias.  */
38209 #if defined __stub_$ac_func || defined __stub___$ac_func
38210 choke me
38211 #endif
38212
38213 int
38214 main ()
38215 {
38216 return $ac_func ();
38217   ;
38218   return 0;
38219 }
38220 _ACEOF
38221 rm -f conftest.$ac_objext conftest$ac_exeext
38222 if { (ac_try="$ac_link"
38223 case "(($ac_try" in
38224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38225   *) ac_try_echo=$ac_try;;
38226 esac
38227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38228   (eval "$ac_link") 2>conftest.er1
38229   ac_status=$?
38230   grep -v '^ *+' conftest.er1 >conftest.err
38231   rm -f conftest.er1
38232   cat conftest.err >&5
38233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38234   (exit $ac_status); } && {
38235          test -z "$ac_c_werror_flag" ||
38236          test ! -s conftest.err
38237        } && test -s conftest$ac_exeext &&
38238        $as_test_x conftest$ac_exeext; then
38239   eval "$as_ac_var=yes"
38240 else
38241   echo "$as_me: failed program was:" >&5
38242 sed 's/^/| /' conftest.$ac_ext >&5
38243
38244         eval "$as_ac_var=no"
38245 fi
38246
38247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38248       conftest$ac_exeext conftest.$ac_ext
38249 fi
38250 ac_res=`eval echo '${'$as_ac_var'}'`
38251                { echo "$as_me:$LINENO: result: $ac_res" >&5
38252 echo "${ECHO_T}$ac_res" >&6; }
38253 if test `eval echo '${'$as_ac_var'}'` = yes; then
38254   cat >>confdefs.h <<_ACEOF
38255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38256 _ACEOF
38257
38258 fi
38259 done
38260
38261
38262 for ac_func in fdatasync
38263 do
38264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38268   echo $ECHO_N "(cached) $ECHO_C" >&6
38269 else
38270   cat >conftest.$ac_ext <<_ACEOF
38271 /* confdefs.h.  */
38272 _ACEOF
38273 cat confdefs.h >>conftest.$ac_ext
38274 cat >>conftest.$ac_ext <<_ACEOF
38275 /* end confdefs.h.  */
38276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38278 #define $ac_func innocuous_$ac_func
38279
38280 /* System header to define __stub macros and hopefully few prototypes,
38281     which can conflict with char $ac_func (); below.
38282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38283     <limits.h> exists even on freestanding compilers.  */
38284
38285 #ifdef __STDC__
38286 # include <limits.h>
38287 #else
38288 # include <assert.h>
38289 #endif
38290
38291 #undef $ac_func
38292
38293 /* Override any GCC internal prototype to avoid an error.
38294    Use char because int might match the return type of a GCC
38295    builtin and then its argument prototype would still apply.  */
38296 #ifdef __cplusplus
38297 extern "C"
38298 #endif
38299 char $ac_func ();
38300 /* The GNU C library defines this for functions which it implements
38301     to always fail with ENOSYS.  Some functions are actually named
38302     something starting with __ and the normal name is an alias.  */
38303 #if defined __stub_$ac_func || defined __stub___$ac_func
38304 choke me
38305 #endif
38306
38307 int
38308 main ()
38309 {
38310 return $ac_func ();
38311   ;
38312   return 0;
38313 }
38314 _ACEOF
38315 rm -f conftest.$ac_objext conftest$ac_exeext
38316 if { (ac_try="$ac_link"
38317 case "(($ac_try" in
38318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38319   *) ac_try_echo=$ac_try;;
38320 esac
38321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38322   (eval "$ac_link") 2>conftest.er1
38323   ac_status=$?
38324   grep -v '^ *+' conftest.er1 >conftest.err
38325   rm -f conftest.er1
38326   cat conftest.err >&5
38327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38328   (exit $ac_status); } && {
38329          test -z "$ac_c_werror_flag" ||
38330          test ! -s conftest.err
38331        } && test -s conftest$ac_exeext &&
38332        $as_test_x conftest$ac_exeext; then
38333   eval "$as_ac_var=yes"
38334 else
38335   echo "$as_me: failed program was:" >&5
38336 sed 's/^/| /' conftest.$ac_ext >&5
38337
38338         eval "$as_ac_var=no"
38339 fi
38340
38341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38342       conftest$ac_exeext conftest.$ac_ext
38343 fi
38344 ac_res=`eval echo '${'$as_ac_var'}'`
38345                { echo "$as_me:$LINENO: result: $ac_res" >&5
38346 echo "${ECHO_T}$ac_res" >&6; }
38347 if test `eval echo '${'$as_ac_var'}'` = yes; then
38348   cat >>confdefs.h <<_ACEOF
38349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38350 _ACEOF
38351
38352 fi
38353 done
38354
38355
38356
38357 for ac_func in chflags
38358 do
38359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38363   echo $ECHO_N "(cached) $ECHO_C" >&6
38364 else
38365   cat >conftest.$ac_ext <<_ACEOF
38366 /* confdefs.h.  */
38367 _ACEOF
38368 cat confdefs.h >>conftest.$ac_ext
38369 cat >>conftest.$ac_ext <<_ACEOF
38370 /* end confdefs.h.  */
38371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38373 #define $ac_func innocuous_$ac_func
38374
38375 /* System header to define __stub macros and hopefully few prototypes,
38376     which can conflict with char $ac_func (); below.
38377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38378     <limits.h> exists even on freestanding compilers.  */
38379
38380 #ifdef __STDC__
38381 # include <limits.h>
38382 #else
38383 # include <assert.h>
38384 #endif
38385
38386 #undef $ac_func
38387
38388 /* Override any GCC internal prototype to avoid an error.
38389    Use char because int might match the return type of a GCC
38390    builtin and then its argument prototype would still apply.  */
38391 #ifdef __cplusplus
38392 extern "C"
38393 #endif
38394 char $ac_func ();
38395 /* The GNU C library defines this for functions which it implements
38396     to always fail with ENOSYS.  Some functions are actually named
38397     something starting with __ and the normal name is an alias.  */
38398 #if defined __stub_$ac_func || defined __stub___$ac_func
38399 choke me
38400 #endif
38401
38402 int
38403 main ()
38404 {
38405 return $ac_func ();
38406   ;
38407   return 0;
38408 }
38409 _ACEOF
38410 rm -f conftest.$ac_objext conftest$ac_exeext
38411 if { (ac_try="$ac_link"
38412 case "(($ac_try" in
38413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38414   *) ac_try_echo=$ac_try;;
38415 esac
38416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38417   (eval "$ac_link") 2>conftest.er1
38418   ac_status=$?
38419   grep -v '^ *+' conftest.er1 >conftest.err
38420   rm -f conftest.er1
38421   cat conftest.err >&5
38422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38423   (exit $ac_status); } && {
38424          test -z "$ac_c_werror_flag" ||
38425          test ! -s conftest.err
38426        } && test -s conftest$ac_exeext &&
38427        $as_test_x conftest$ac_exeext; then
38428   eval "$as_ac_var=yes"
38429 else
38430   echo "$as_me: failed program was:" >&5
38431 sed 's/^/| /' conftest.$ac_ext >&5
38432
38433         eval "$as_ac_var=no"
38434 fi
38435
38436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38437       conftest$ac_exeext conftest.$ac_ext
38438 fi
38439 ac_res=`eval echo '${'$as_ac_var'}'`
38440                { echo "$as_me:$LINENO: result: $ac_res" >&5
38441 echo "${ECHO_T}$ac_res" >&6; }
38442 if test `eval echo '${'$as_ac_var'}'` = yes; then
38443   cat >>confdefs.h <<_ACEOF
38444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38445 _ACEOF
38446
38447 fi
38448 done
38449
38450
38451
38452
38453
38454
38455 for ac_func in snprintf vsnprintf gethostid fseeko
38456 do
38457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38461   echo $ECHO_N "(cached) $ECHO_C" >&6
38462 else
38463   cat >conftest.$ac_ext <<_ACEOF
38464 /* confdefs.h.  */
38465 _ACEOF
38466 cat confdefs.h >>conftest.$ac_ext
38467 cat >>conftest.$ac_ext <<_ACEOF
38468 /* end confdefs.h.  */
38469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38471 #define $ac_func innocuous_$ac_func
38472
38473 /* System header to define __stub macros and hopefully few prototypes,
38474     which can conflict with char $ac_func (); below.
38475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38476     <limits.h> exists even on freestanding compilers.  */
38477
38478 #ifdef __STDC__
38479 # include <limits.h>
38480 #else
38481 # include <assert.h>
38482 #endif
38483
38484 #undef $ac_func
38485
38486 /* Override any GCC internal prototype to avoid an error.
38487    Use char because int might match the return type of a GCC
38488    builtin and then its argument prototype would still apply.  */
38489 #ifdef __cplusplus
38490 extern "C"
38491 #endif
38492 char $ac_func ();
38493 /* The GNU C library defines this for functions which it implements
38494     to always fail with ENOSYS.  Some functions are actually named
38495     something starting with __ and the normal name is an alias.  */
38496 #if defined __stub_$ac_func || defined __stub___$ac_func
38497 choke me
38498 #endif
38499
38500 int
38501 main ()
38502 {
38503 return $ac_func ();
38504   ;
38505   return 0;
38506 }
38507 _ACEOF
38508 rm -f conftest.$ac_objext conftest$ac_exeext
38509 if { (ac_try="$ac_link"
38510 case "(($ac_try" in
38511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38512   *) ac_try_echo=$ac_try;;
38513 esac
38514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38515   (eval "$ac_link") 2>conftest.er1
38516   ac_status=$?
38517   grep -v '^ *+' conftest.er1 >conftest.err
38518   rm -f conftest.er1
38519   cat conftest.err >&5
38520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521   (exit $ac_status); } && {
38522          test -z "$ac_c_werror_flag" ||
38523          test ! -s conftest.err
38524        } && test -s conftest$ac_exeext &&
38525        $as_test_x conftest$ac_exeext; then
38526   eval "$as_ac_var=yes"
38527 else
38528   echo "$as_me: failed program was:" >&5
38529 sed 's/^/| /' conftest.$ac_ext >&5
38530
38531         eval "$as_ac_var=no"
38532 fi
38533
38534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38535       conftest$ac_exeext conftest.$ac_ext
38536 fi
38537 ac_res=`eval echo '${'$as_ac_var'}'`
38538                { echo "$as_me:$LINENO: result: $ac_res" >&5
38539 echo "${ECHO_T}$ac_res" >&6; }
38540 if test `eval echo '${'$as_ac_var'}'` = yes; then
38541   cat >>confdefs.h <<_ACEOF
38542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38543 _ACEOF
38544
38545 fi
38546 done
38547
38548
38549 { echo "$as_me:$LINENO: checking for va_copy" >&5
38550 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38551 if test "${ba_cv_va_copy+set}" = set; then
38552   echo $ECHO_N "(cached) $ECHO_C" >&6
38553 else
38554
38555        cat >conftest.$ac_ext <<_ACEOF
38556 /* confdefs.h.  */
38557 _ACEOF
38558 cat confdefs.h >>conftest.$ac_ext
38559 cat >>conftest.$ac_ext <<_ACEOF
38560 /* end confdefs.h.  */
38561
38562               #include <stdarg.h>
38563               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38564               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38565
38566 int
38567 main ()
38568 {
38569
38570               call_use_va_copy(1,2,3)
38571
38572   ;
38573   return 0;
38574 }
38575 _ACEOF
38576 rm -f conftest.$ac_objext conftest$ac_exeext
38577 if { (ac_try="$ac_link"
38578 case "(($ac_try" in
38579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38580   *) ac_try_echo=$ac_try;;
38581 esac
38582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38583   (eval "$ac_link") 2>conftest.er1
38584   ac_status=$?
38585   grep -v '^ *+' conftest.er1 >conftest.err
38586   rm -f conftest.er1
38587   cat conftest.err >&5
38588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38589   (exit $ac_status); } && {
38590          test -z "$ac_c_werror_flag" ||
38591          test ! -s conftest.err
38592        } && test -s conftest$ac_exeext &&
38593        $as_test_x conftest$ac_exeext; then
38594
38595               ba_cv_va_copy=yes,
38596
38597 else
38598   echo "$as_me: failed program was:" >&5
38599 sed 's/^/| /' conftest.$ac_ext >&5
38600
38601
38602               ba_cv_va_copy=no
38603
38604
38605 fi
38606
38607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38608       conftest$ac_exeext conftest.$ac_ext
38609
38610
38611 fi
38612 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38613 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38614 test $ba_cv_va_copy = yes &&
38615 cat >>confdefs.h <<\_ACEOF
38616 #define HAVE_VA_COPY 1
38617 _ACEOF
38618
38619
38620
38621
38622
38623
38624 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38625 do
38626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38630   echo $ECHO_N "(cached) $ECHO_C" >&6
38631 else
38632   cat >conftest.$ac_ext <<_ACEOF
38633 /* confdefs.h.  */
38634 _ACEOF
38635 cat confdefs.h >>conftest.$ac_ext
38636 cat >>conftest.$ac_ext <<_ACEOF
38637 /* end confdefs.h.  */
38638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38640 #define $ac_func innocuous_$ac_func
38641
38642 /* System header to define __stub macros and hopefully few prototypes,
38643     which can conflict with char $ac_func (); below.
38644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38645     <limits.h> exists even on freestanding compilers.  */
38646
38647 #ifdef __STDC__
38648 # include <limits.h>
38649 #else
38650 # include <assert.h>
38651 #endif
38652
38653 #undef $ac_func
38654
38655 /* Override any GCC internal prototype to avoid an error.
38656    Use char because int might match the return type of a GCC
38657    builtin and then its argument prototype would still apply.  */
38658 #ifdef __cplusplus
38659 extern "C"
38660 #endif
38661 char $ac_func ();
38662 /* The GNU C library defines this for functions which it implements
38663     to always fail with ENOSYS.  Some functions are actually named
38664     something starting with __ and the normal name is an alias.  */
38665 #if defined __stub_$ac_func || defined __stub___$ac_func
38666 choke me
38667 #endif
38668
38669 int
38670 main ()
38671 {
38672 return $ac_func ();
38673   ;
38674   return 0;
38675 }
38676 _ACEOF
38677 rm -f conftest.$ac_objext conftest$ac_exeext
38678 if { (ac_try="$ac_link"
38679 case "(($ac_try" in
38680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38681   *) ac_try_echo=$ac_try;;
38682 esac
38683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38684   (eval "$ac_link") 2>conftest.er1
38685   ac_status=$?
38686   grep -v '^ *+' conftest.er1 >conftest.err
38687   rm -f conftest.er1
38688   cat conftest.err >&5
38689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690   (exit $ac_status); } && {
38691          test -z "$ac_c_werror_flag" ||
38692          test ! -s conftest.err
38693        } && test -s conftest$ac_exeext &&
38694        $as_test_x conftest$ac_exeext; then
38695   eval "$as_ac_var=yes"
38696 else
38697   echo "$as_me: failed program was:" >&5
38698 sed 's/^/| /' conftest.$ac_ext >&5
38699
38700         eval "$as_ac_var=no"
38701 fi
38702
38703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38704       conftest$ac_exeext conftest.$ac_ext
38705 fi
38706 ac_res=`eval echo '${'$as_ac_var'}'`
38707                { echo "$as_me:$LINENO: result: $ac_res" >&5
38708 echo "${ECHO_T}$ac_res" >&6; }
38709 if test `eval echo '${'$as_ac_var'}'` = yes; then
38710   cat >>confdefs.h <<_ACEOF
38711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38712 _ACEOF
38713
38714 fi
38715 done
38716
38717
38718 # If resolver functions are not in libc check for -lnsl or -lresolv.
38719 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38720 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38721 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38722   echo $ECHO_N "(cached) $ECHO_C" >&6
38723 else
38724   cat >conftest.$ac_ext <<_ACEOF
38725 /* confdefs.h.  */
38726 _ACEOF
38727 cat confdefs.h >>conftest.$ac_ext
38728 cat >>conftest.$ac_ext <<_ACEOF
38729 /* end confdefs.h.  */
38730 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38732 #define gethostbyname_r innocuous_gethostbyname_r
38733
38734 /* System header to define __stub macros and hopefully few prototypes,
38735     which can conflict with char gethostbyname_r (); below.
38736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38737     <limits.h> exists even on freestanding compilers.  */
38738
38739 #ifdef __STDC__
38740 # include <limits.h>
38741 #else
38742 # include <assert.h>
38743 #endif
38744
38745 #undef gethostbyname_r
38746
38747 /* Override any GCC internal prototype to avoid an error.
38748    Use char because int might match the return type of a GCC
38749    builtin and then its argument prototype would still apply.  */
38750 #ifdef __cplusplus
38751 extern "C"
38752 #endif
38753 char gethostbyname_r ();
38754 /* The GNU C library defines this for functions which it implements
38755     to always fail with ENOSYS.  Some functions are actually named
38756     something starting with __ and the normal name is an alias.  */
38757 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38758 choke me
38759 #endif
38760
38761 int
38762 main ()
38763 {
38764 return gethostbyname_r ();
38765   ;
38766   return 0;
38767 }
38768 _ACEOF
38769 rm -f conftest.$ac_objext conftest$ac_exeext
38770 if { (ac_try="$ac_link"
38771 case "(($ac_try" in
38772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38773   *) ac_try_echo=$ac_try;;
38774 esac
38775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38776   (eval "$ac_link") 2>conftest.er1
38777   ac_status=$?
38778   grep -v '^ *+' conftest.er1 >conftest.err
38779   rm -f conftest.er1
38780   cat conftest.err >&5
38781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38782   (exit $ac_status); } && {
38783          test -z "$ac_c_werror_flag" ||
38784          test ! -s conftest.err
38785        } && test -s conftest$ac_exeext &&
38786        $as_test_x conftest$ac_exeext; then
38787   ac_cv_func_gethostbyname_r=yes
38788 else
38789   echo "$as_me: failed program was:" >&5
38790 sed 's/^/| /' conftest.$ac_ext >&5
38791
38792         ac_cv_func_gethostbyname_r=no
38793 fi
38794
38795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38796       conftest$ac_exeext conftest.$ac_ext
38797 fi
38798 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38799 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38800 if test $ac_cv_func_gethostbyname_r = yes; then
38801   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38802 echo "${ECHO_T}using libc's resolver" >&6; }
38803 else
38804
38805 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38806 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38807 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38808   echo $ECHO_N "(cached) $ECHO_C" >&6
38809 else
38810   ac_check_lib_save_LIBS=$LIBS
38811 LIBS="-lnsl  $LIBS"
38812 cat >conftest.$ac_ext <<_ACEOF
38813 /* confdefs.h.  */
38814 _ACEOF
38815 cat confdefs.h >>conftest.$ac_ext
38816 cat >>conftest.$ac_ext <<_ACEOF
38817 /* end confdefs.h.  */
38818
38819 /* Override any GCC internal prototype to avoid an error.
38820    Use char because int might match the return type of a GCC
38821    builtin and then its argument prototype would still apply.  */
38822 #ifdef __cplusplus
38823 extern "C"
38824 #endif
38825 char gethostbyname_r ();
38826 int
38827 main ()
38828 {
38829 return gethostbyname_r ();
38830   ;
38831   return 0;
38832 }
38833 _ACEOF
38834 rm -f conftest.$ac_objext conftest$ac_exeext
38835 if { (ac_try="$ac_link"
38836 case "(($ac_try" in
38837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38838   *) ac_try_echo=$ac_try;;
38839 esac
38840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38841   (eval "$ac_link") 2>conftest.er1
38842   ac_status=$?
38843   grep -v '^ *+' conftest.er1 >conftest.err
38844   rm -f conftest.er1
38845   cat conftest.err >&5
38846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38847   (exit $ac_status); } && {
38848          test -z "$ac_c_werror_flag" ||
38849          test ! -s conftest.err
38850        } && test -s conftest$ac_exeext &&
38851        $as_test_x conftest$ac_exeext; then
38852   ac_cv_lib_nsl_gethostbyname_r=yes
38853 else
38854   echo "$as_me: failed program was:" >&5
38855 sed 's/^/| /' conftest.$ac_ext >&5
38856
38857         ac_cv_lib_nsl_gethostbyname_r=no
38858 fi
38859
38860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38861       conftest$ac_exeext conftest.$ac_ext
38862 LIBS=$ac_check_lib_save_LIBS
38863 fi
38864 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38865 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38866 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38867   cat >>confdefs.h <<_ACEOF
38868 #define HAVE_LIBNSL 1
38869 _ACEOF
38870
38871   LIBS="-lnsl $LIBS"
38872
38873 fi
38874
38875
38876 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38877 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38878 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38879   echo $ECHO_N "(cached) $ECHO_C" >&6
38880 else
38881   ac_check_lib_save_LIBS=$LIBS
38882 LIBS="-lresolv  $LIBS"
38883 cat >conftest.$ac_ext <<_ACEOF
38884 /* confdefs.h.  */
38885 _ACEOF
38886 cat confdefs.h >>conftest.$ac_ext
38887 cat >>conftest.$ac_ext <<_ACEOF
38888 /* end confdefs.h.  */
38889
38890 /* Override any GCC internal prototype to avoid an error.
38891    Use char because int might match the return type of a GCC
38892    builtin and then its argument prototype would still apply.  */
38893 #ifdef __cplusplus
38894 extern "C"
38895 #endif
38896 char gethostbyname_r ();
38897 int
38898 main ()
38899 {
38900 return gethostbyname_r ();
38901   ;
38902   return 0;
38903 }
38904 _ACEOF
38905 rm -f conftest.$ac_objext conftest$ac_exeext
38906 if { (ac_try="$ac_link"
38907 case "(($ac_try" in
38908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38909   *) ac_try_echo=$ac_try;;
38910 esac
38911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38912   (eval "$ac_link") 2>conftest.er1
38913   ac_status=$?
38914   grep -v '^ *+' conftest.er1 >conftest.err
38915   rm -f conftest.er1
38916   cat conftest.err >&5
38917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38918   (exit $ac_status); } && {
38919          test -z "$ac_c_werror_flag" ||
38920          test ! -s conftest.err
38921        } && test -s conftest$ac_exeext &&
38922        $as_test_x conftest$ac_exeext; then
38923   ac_cv_lib_resolv_gethostbyname_r=yes
38924 else
38925   echo "$as_me: failed program was:" >&5
38926 sed 's/^/| /' conftest.$ac_ext >&5
38927
38928         ac_cv_lib_resolv_gethostbyname_r=no
38929 fi
38930
38931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38932       conftest$ac_exeext conftest.$ac_ext
38933 LIBS=$ac_check_lib_save_LIBS
38934 fi
38935 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38936 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38937 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38938   cat >>confdefs.h <<_ACEOF
38939 #define HAVE_LIBRESOLV 1
38940 _ACEOF
38941
38942   LIBS="-lresolv $LIBS"
38943
38944 fi
38945
38946 fi
38947
38948
38949
38950 for ac_func in inet_pton
38951 do
38952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38956   echo $ECHO_N "(cached) $ECHO_C" >&6
38957 else
38958   cat >conftest.$ac_ext <<_ACEOF
38959 /* confdefs.h.  */
38960 _ACEOF
38961 cat confdefs.h >>conftest.$ac_ext
38962 cat >>conftest.$ac_ext <<_ACEOF
38963 /* end confdefs.h.  */
38964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38966 #define $ac_func innocuous_$ac_func
38967
38968 /* System header to define __stub macros and hopefully few prototypes,
38969     which can conflict with char $ac_func (); below.
38970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38971     <limits.h> exists even on freestanding compilers.  */
38972
38973 #ifdef __STDC__
38974 # include <limits.h>
38975 #else
38976 # include <assert.h>
38977 #endif
38978
38979 #undef $ac_func
38980
38981 /* Override any GCC internal prototype to avoid an error.
38982    Use char because int might match the return type of a GCC
38983    builtin and then its argument prototype would still apply.  */
38984 #ifdef __cplusplus
38985 extern "C"
38986 #endif
38987 char $ac_func ();
38988 /* The GNU C library defines this for functions which it implements
38989     to always fail with ENOSYS.  Some functions are actually named
38990     something starting with __ and the normal name is an alias.  */
38991 #if defined __stub_$ac_func || defined __stub___$ac_func
38992 choke me
38993 #endif
38994
38995 int
38996 main ()
38997 {
38998 return $ac_func ();
38999   ;
39000   return 0;
39001 }
39002 _ACEOF
39003 rm -f conftest.$ac_objext conftest$ac_exeext
39004 if { (ac_try="$ac_link"
39005 case "(($ac_try" in
39006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39007   *) ac_try_echo=$ac_try;;
39008 esac
39009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39010   (eval "$ac_link") 2>conftest.er1
39011   ac_status=$?
39012   grep -v '^ *+' conftest.er1 >conftest.err
39013   rm -f conftest.er1
39014   cat conftest.err >&5
39015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39016   (exit $ac_status); } && {
39017          test -z "$ac_c_werror_flag" ||
39018          test ! -s conftest.err
39019        } && test -s conftest$ac_exeext &&
39020        $as_test_x conftest$ac_exeext; then
39021   eval "$as_ac_var=yes"
39022 else
39023   echo "$as_me: failed program was:" >&5
39024 sed 's/^/| /' conftest.$ac_ext >&5
39025
39026         eval "$as_ac_var=no"
39027 fi
39028
39029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39030       conftest$ac_exeext conftest.$ac_ext
39031 fi
39032 ac_res=`eval echo '${'$as_ac_var'}'`
39033                { echo "$as_me:$LINENO: result: $ac_res" >&5
39034 echo "${ECHO_T}$ac_res" >&6; }
39035 if test `eval echo '${'$as_ac_var'}'` = yes; then
39036   cat >>confdefs.h <<_ACEOF
39037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39038 _ACEOF
39039  cat >>confdefs.h <<\_ACEOF
39040 #define HAVE_INET_PTON 1
39041 _ACEOF
39042
39043 fi
39044 done
39045
39046
39047 for ac_func in inet_ntop
39048 do
39049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39053   echo $ECHO_N "(cached) $ECHO_C" >&6
39054 else
39055   cat >conftest.$ac_ext <<_ACEOF
39056 /* confdefs.h.  */
39057 _ACEOF
39058 cat confdefs.h >>conftest.$ac_ext
39059 cat >>conftest.$ac_ext <<_ACEOF
39060 /* end confdefs.h.  */
39061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39063 #define $ac_func innocuous_$ac_func
39064
39065 /* System header to define __stub macros and hopefully few prototypes,
39066     which can conflict with char $ac_func (); below.
39067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39068     <limits.h> exists even on freestanding compilers.  */
39069
39070 #ifdef __STDC__
39071 # include <limits.h>
39072 #else
39073 # include <assert.h>
39074 #endif
39075
39076 #undef $ac_func
39077
39078 /* Override any GCC internal prototype to avoid an error.
39079    Use char because int might match the return type of a GCC
39080    builtin and then its argument prototype would still apply.  */
39081 #ifdef __cplusplus
39082 extern "C"
39083 #endif
39084 char $ac_func ();
39085 /* The GNU C library defines this for functions which it implements
39086     to always fail with ENOSYS.  Some functions are actually named
39087     something starting with __ and the normal name is an alias.  */
39088 #if defined __stub_$ac_func || defined __stub___$ac_func
39089 choke me
39090 #endif
39091
39092 int
39093 main ()
39094 {
39095 return $ac_func ();
39096   ;
39097   return 0;
39098 }
39099 _ACEOF
39100 rm -f conftest.$ac_objext conftest$ac_exeext
39101 if { (ac_try="$ac_link"
39102 case "(($ac_try" in
39103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39104   *) ac_try_echo=$ac_try;;
39105 esac
39106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39107   (eval "$ac_link") 2>conftest.er1
39108   ac_status=$?
39109   grep -v '^ *+' conftest.er1 >conftest.err
39110   rm -f conftest.er1
39111   cat conftest.err >&5
39112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39113   (exit $ac_status); } && {
39114          test -z "$ac_c_werror_flag" ||
39115          test ! -s conftest.err
39116        } && test -s conftest$ac_exeext &&
39117        $as_test_x conftest$ac_exeext; then
39118   eval "$as_ac_var=yes"
39119 else
39120   echo "$as_me: failed program was:" >&5
39121 sed 's/^/| /' conftest.$ac_ext >&5
39122
39123         eval "$as_ac_var=no"
39124 fi
39125
39126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39127       conftest$ac_exeext conftest.$ac_ext
39128 fi
39129 ac_res=`eval echo '${'$as_ac_var'}'`
39130                { echo "$as_me:$LINENO: result: $ac_res" >&5
39131 echo "${ECHO_T}$ac_res" >&6; }
39132 if test `eval echo '${'$as_ac_var'}'` = yes; then
39133   cat >>confdefs.h <<_ACEOF
39134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39135 _ACEOF
39136  cat >>confdefs.h <<\_ACEOF
39137 #define HAVE_INET_NTOP 1
39138 _ACEOF
39139
39140 fi
39141 done
39142
39143
39144 for ac_func in gethostbyname2
39145 do
39146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39150   echo $ECHO_N "(cached) $ECHO_C" >&6
39151 else
39152   cat >conftest.$ac_ext <<_ACEOF
39153 /* confdefs.h.  */
39154 _ACEOF
39155 cat confdefs.h >>conftest.$ac_ext
39156 cat >>conftest.$ac_ext <<_ACEOF
39157 /* end confdefs.h.  */
39158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39160 #define $ac_func innocuous_$ac_func
39161
39162 /* System header to define __stub macros and hopefully few prototypes,
39163     which can conflict with char $ac_func (); below.
39164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39165     <limits.h> exists even on freestanding compilers.  */
39166
39167 #ifdef __STDC__
39168 # include <limits.h>
39169 #else
39170 # include <assert.h>
39171 #endif
39172
39173 #undef $ac_func
39174
39175 /* Override any GCC internal prototype to avoid an error.
39176    Use char because int might match the return type of a GCC
39177    builtin and then its argument prototype would still apply.  */
39178 #ifdef __cplusplus
39179 extern "C"
39180 #endif
39181 char $ac_func ();
39182 /* The GNU C library defines this for functions which it implements
39183     to always fail with ENOSYS.  Some functions are actually named
39184     something starting with __ and the normal name is an alias.  */
39185 #if defined __stub_$ac_func || defined __stub___$ac_func
39186 choke me
39187 #endif
39188
39189 int
39190 main ()
39191 {
39192 return $ac_func ();
39193   ;
39194   return 0;
39195 }
39196 _ACEOF
39197 rm -f conftest.$ac_objext conftest$ac_exeext
39198 if { (ac_try="$ac_link"
39199 case "(($ac_try" in
39200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39201   *) ac_try_echo=$ac_try;;
39202 esac
39203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39204   (eval "$ac_link") 2>conftest.er1
39205   ac_status=$?
39206   grep -v '^ *+' conftest.er1 >conftest.err
39207   rm -f conftest.er1
39208   cat conftest.err >&5
39209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39210   (exit $ac_status); } && {
39211          test -z "$ac_c_werror_flag" ||
39212          test ! -s conftest.err
39213        } && test -s conftest$ac_exeext &&
39214        $as_test_x conftest$ac_exeext; then
39215   eval "$as_ac_var=yes"
39216 else
39217   echo "$as_me: failed program was:" >&5
39218 sed 's/^/| /' conftest.$ac_ext >&5
39219
39220         eval "$as_ac_var=no"
39221 fi
39222
39223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39224       conftest$ac_exeext conftest.$ac_ext
39225 fi
39226 ac_res=`eval echo '${'$as_ac_var'}'`
39227                { echo "$as_me:$LINENO: result: $ac_res" >&5
39228 echo "${ECHO_T}$ac_res" >&6; }
39229 if test `eval echo '${'$as_ac_var'}'` = yes; then
39230   cat >>confdefs.h <<_ACEOF
39231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39232 _ACEOF
39233  cat >>confdefs.h <<\_ACEOF
39234 #define HAVE_GETHOSTBYNAME2 1
39235 _ACEOF
39236
39237 fi
39238 done
39239
39240
39241 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39242 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39243 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39244   echo $ECHO_N "(cached) $ECHO_C" >&6
39245 else
39246
39247        cat >conftest.$ac_ext <<_ACEOF
39248 /* confdefs.h.  */
39249 _ACEOF
39250 cat confdefs.h >>conftest.$ac_ext
39251 cat >>conftest.$ac_ext <<_ACEOF
39252 /* end confdefs.h.  */
39253
39254               #include <sys/socket.h>
39255
39256 int
39257 main ()
39258 {
39259
39260               struct sockaddr s; s.sa_len;
39261
39262   ;
39263   return 0;
39264 }
39265 _ACEOF
39266 rm -f conftest.$ac_objext
39267 if { (ac_try="$ac_compile"
39268 case "(($ac_try" in
39269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39270   *) ac_try_echo=$ac_try;;
39271 esac
39272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39273   (eval "$ac_compile") 2>conftest.er1
39274   ac_status=$?
39275   grep -v '^ *+' conftest.er1 >conftest.err
39276   rm -f conftest.er1
39277   cat conftest.err >&5
39278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39279   (exit $ac_status); } && {
39280          test -z "$ac_c_werror_flag" ||
39281          test ! -s conftest.err
39282        } && test -s conftest.$ac_objext; then
39283
39284              ac_cv_struct_sockaddr_sa_len=yes
39285
39286 else
39287   echo "$as_me: failed program was:" >&5
39288 sed 's/^/| /' conftest.$ac_ext >&5
39289
39290         ac_cv_struct_sockaddr_sa_len=no
39291
39292
39293 fi
39294
39295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39296
39297
39298 fi
39299 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39300 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39301
39302 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39303
39304 cat >>confdefs.h <<\_ACEOF
39305 #define HAVE_SA_LEN 1
39306 _ACEOF
39307
39308 fi
39309
39310
39311 for ac_func in strftime
39312 do
39313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39317   echo $ECHO_N "(cached) $ECHO_C" >&6
39318 else
39319   cat >conftest.$ac_ext <<_ACEOF
39320 /* confdefs.h.  */
39321 _ACEOF
39322 cat confdefs.h >>conftest.$ac_ext
39323 cat >>conftest.$ac_ext <<_ACEOF
39324 /* end confdefs.h.  */
39325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39327 #define $ac_func innocuous_$ac_func
39328
39329 /* System header to define __stub macros and hopefully few prototypes,
39330     which can conflict with char $ac_func (); below.
39331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39332     <limits.h> exists even on freestanding compilers.  */
39333
39334 #ifdef __STDC__
39335 # include <limits.h>
39336 #else
39337 # include <assert.h>
39338 #endif
39339
39340 #undef $ac_func
39341
39342 /* Override any GCC internal prototype to avoid an error.
39343    Use char because int might match the return type of a GCC
39344    builtin and then its argument prototype would still apply.  */
39345 #ifdef __cplusplus
39346 extern "C"
39347 #endif
39348 char $ac_func ();
39349 /* The GNU C library defines this for functions which it implements
39350     to always fail with ENOSYS.  Some functions are actually named
39351     something starting with __ and the normal name is an alias.  */
39352 #if defined __stub_$ac_func || defined __stub___$ac_func
39353 choke me
39354 #endif
39355
39356 int
39357 main ()
39358 {
39359 return $ac_func ();
39360   ;
39361   return 0;
39362 }
39363 _ACEOF
39364 rm -f conftest.$ac_objext conftest$ac_exeext
39365 if { (ac_try="$ac_link"
39366 case "(($ac_try" in
39367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39368   *) ac_try_echo=$ac_try;;
39369 esac
39370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39371   (eval "$ac_link") 2>conftest.er1
39372   ac_status=$?
39373   grep -v '^ *+' conftest.er1 >conftest.err
39374   rm -f conftest.er1
39375   cat conftest.err >&5
39376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39377   (exit $ac_status); } && {
39378          test -z "$ac_c_werror_flag" ||
39379          test ! -s conftest.err
39380        } && test -s conftest$ac_exeext &&
39381        $as_test_x conftest$ac_exeext; then
39382   eval "$as_ac_var=yes"
39383 else
39384   echo "$as_me: failed program was:" >&5
39385 sed 's/^/| /' conftest.$ac_ext >&5
39386
39387         eval "$as_ac_var=no"
39388 fi
39389
39390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39391       conftest$ac_exeext conftest.$ac_ext
39392 fi
39393 ac_res=`eval echo '${'$as_ac_var'}'`
39394                { echo "$as_me:$LINENO: result: $ac_res" >&5
39395 echo "${ECHO_T}$ac_res" >&6; }
39396 if test `eval echo '${'$as_ac_var'}'` = yes; then
39397   cat >>confdefs.h <<_ACEOF
39398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39399 _ACEOF
39400
39401 else
39402   # strftime is in -lintl on SCO UNIX.
39403 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39404 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39405 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39406   echo $ECHO_N "(cached) $ECHO_C" >&6
39407 else
39408   ac_check_lib_save_LIBS=$LIBS
39409 LIBS="-lintl  $LIBS"
39410 cat >conftest.$ac_ext <<_ACEOF
39411 /* confdefs.h.  */
39412 _ACEOF
39413 cat confdefs.h >>conftest.$ac_ext
39414 cat >>conftest.$ac_ext <<_ACEOF
39415 /* end confdefs.h.  */
39416
39417 /* Override any GCC internal prototype to avoid an error.
39418    Use char because int might match the return type of a GCC
39419    builtin and then its argument prototype would still apply.  */
39420 #ifdef __cplusplus
39421 extern "C"
39422 #endif
39423 char strftime ();
39424 int
39425 main ()
39426 {
39427 return strftime ();
39428   ;
39429   return 0;
39430 }
39431 _ACEOF
39432 rm -f conftest.$ac_objext conftest$ac_exeext
39433 if { (ac_try="$ac_link"
39434 case "(($ac_try" in
39435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39436   *) ac_try_echo=$ac_try;;
39437 esac
39438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39439   (eval "$ac_link") 2>conftest.er1
39440   ac_status=$?
39441   grep -v '^ *+' conftest.er1 >conftest.err
39442   rm -f conftest.er1
39443   cat conftest.err >&5
39444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39445   (exit $ac_status); } && {
39446          test -z "$ac_c_werror_flag" ||
39447          test ! -s conftest.err
39448        } && test -s conftest$ac_exeext &&
39449        $as_test_x conftest$ac_exeext; then
39450   ac_cv_lib_intl_strftime=yes
39451 else
39452   echo "$as_me: failed program was:" >&5
39453 sed 's/^/| /' conftest.$ac_ext >&5
39454
39455         ac_cv_lib_intl_strftime=no
39456 fi
39457
39458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39459       conftest$ac_exeext conftest.$ac_ext
39460 LIBS=$ac_check_lib_save_LIBS
39461 fi
39462 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39463 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39464 if test $ac_cv_lib_intl_strftime = yes; then
39465   cat >>confdefs.h <<\_ACEOF
39466 #define HAVE_STRFTIME 1
39467 _ACEOF
39468
39469 LIBS="-lintl $LIBS"
39470 fi
39471
39472 fi
39473 done
39474
39475
39476 for ac_func in vprintf
39477 do
39478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39482   echo $ECHO_N "(cached) $ECHO_C" >&6
39483 else
39484   cat >conftest.$ac_ext <<_ACEOF
39485 /* confdefs.h.  */
39486 _ACEOF
39487 cat confdefs.h >>conftest.$ac_ext
39488 cat >>conftest.$ac_ext <<_ACEOF
39489 /* end confdefs.h.  */
39490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39492 #define $ac_func innocuous_$ac_func
39493
39494 /* System header to define __stub macros and hopefully few prototypes,
39495     which can conflict with char $ac_func (); below.
39496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39497     <limits.h> exists even on freestanding compilers.  */
39498
39499 #ifdef __STDC__
39500 # include <limits.h>
39501 #else
39502 # include <assert.h>
39503 #endif
39504
39505 #undef $ac_func
39506
39507 /* Override any GCC internal prototype to avoid an error.
39508    Use char because int might match the return type of a GCC
39509    builtin and then its argument prototype would still apply.  */
39510 #ifdef __cplusplus
39511 extern "C"
39512 #endif
39513 char $ac_func ();
39514 /* The GNU C library defines this for functions which it implements
39515     to always fail with ENOSYS.  Some functions are actually named
39516     something starting with __ and the normal name is an alias.  */
39517 #if defined __stub_$ac_func || defined __stub___$ac_func
39518 choke me
39519 #endif
39520
39521 int
39522 main ()
39523 {
39524 return $ac_func ();
39525   ;
39526   return 0;
39527 }
39528 _ACEOF
39529 rm -f conftest.$ac_objext conftest$ac_exeext
39530 if { (ac_try="$ac_link"
39531 case "(($ac_try" in
39532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39533   *) ac_try_echo=$ac_try;;
39534 esac
39535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39536   (eval "$ac_link") 2>conftest.er1
39537   ac_status=$?
39538   grep -v '^ *+' conftest.er1 >conftest.err
39539   rm -f conftest.er1
39540   cat conftest.err >&5
39541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39542   (exit $ac_status); } && {
39543          test -z "$ac_c_werror_flag" ||
39544          test ! -s conftest.err
39545        } && test -s conftest$ac_exeext &&
39546        $as_test_x conftest$ac_exeext; then
39547   eval "$as_ac_var=yes"
39548 else
39549   echo "$as_me: failed program was:" >&5
39550 sed 's/^/| /' conftest.$ac_ext >&5
39551
39552         eval "$as_ac_var=no"
39553 fi
39554
39555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39556       conftest$ac_exeext conftest.$ac_ext
39557 fi
39558 ac_res=`eval echo '${'$as_ac_var'}'`
39559                { echo "$as_me:$LINENO: result: $ac_res" >&5
39560 echo "${ECHO_T}$ac_res" >&6; }
39561 if test `eval echo '${'$as_ac_var'}'` = yes; then
39562   cat >>confdefs.h <<_ACEOF
39563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39564 _ACEOF
39565
39566 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39567 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39568 if test "${ac_cv_func__doprnt+set}" = set; then
39569   echo $ECHO_N "(cached) $ECHO_C" >&6
39570 else
39571   cat >conftest.$ac_ext <<_ACEOF
39572 /* confdefs.h.  */
39573 _ACEOF
39574 cat confdefs.h >>conftest.$ac_ext
39575 cat >>conftest.$ac_ext <<_ACEOF
39576 /* end confdefs.h.  */
39577 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39579 #define _doprnt innocuous__doprnt
39580
39581 /* System header to define __stub macros and hopefully few prototypes,
39582     which can conflict with char _doprnt (); below.
39583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39584     <limits.h> exists even on freestanding compilers.  */
39585
39586 #ifdef __STDC__
39587 # include <limits.h>
39588 #else
39589 # include <assert.h>
39590 #endif
39591
39592 #undef _doprnt
39593
39594 /* Override any GCC internal prototype to avoid an error.
39595    Use char because int might match the return type of a GCC
39596    builtin and then its argument prototype would still apply.  */
39597 #ifdef __cplusplus
39598 extern "C"
39599 #endif
39600 char _doprnt ();
39601 /* The GNU C library defines this for functions which it implements
39602     to always fail with ENOSYS.  Some functions are actually named
39603     something starting with __ and the normal name is an alias.  */
39604 #if defined __stub__doprnt || defined __stub____doprnt
39605 choke me
39606 #endif
39607
39608 int
39609 main ()
39610 {
39611 return _doprnt ();
39612   ;
39613   return 0;
39614 }
39615 _ACEOF
39616 rm -f conftest.$ac_objext conftest$ac_exeext
39617 if { (ac_try="$ac_link"
39618 case "(($ac_try" in
39619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39620   *) ac_try_echo=$ac_try;;
39621 esac
39622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39623   (eval "$ac_link") 2>conftest.er1
39624   ac_status=$?
39625   grep -v '^ *+' conftest.er1 >conftest.err
39626   rm -f conftest.er1
39627   cat conftest.err >&5
39628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39629   (exit $ac_status); } && {
39630          test -z "$ac_c_werror_flag" ||
39631          test ! -s conftest.err
39632        } && test -s conftest$ac_exeext &&
39633        $as_test_x conftest$ac_exeext; then
39634   ac_cv_func__doprnt=yes
39635 else
39636   echo "$as_me: failed program was:" >&5
39637 sed 's/^/| /' conftest.$ac_ext >&5
39638
39639         ac_cv_func__doprnt=no
39640 fi
39641
39642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39643       conftest$ac_exeext conftest.$ac_ext
39644 fi
39645 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39646 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39647 if test $ac_cv_func__doprnt = yes; then
39648
39649 cat >>confdefs.h <<\_ACEOF
39650 #define HAVE_DOPRNT 1
39651 _ACEOF
39652
39653 fi
39654
39655 fi
39656 done
39657
39658
39659 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39660 # for constant arguments.  Useless!
39661 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39662 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39663 if test "${ac_cv_working_alloca_h+set}" = set; then
39664   echo $ECHO_N "(cached) $ECHO_C" >&6
39665 else
39666   cat >conftest.$ac_ext <<_ACEOF
39667 /* confdefs.h.  */
39668 _ACEOF
39669 cat confdefs.h >>conftest.$ac_ext
39670 cat >>conftest.$ac_ext <<_ACEOF
39671 /* end confdefs.h.  */
39672 #include <alloca.h>
39673 int
39674 main ()
39675 {
39676 char *p = (char *) alloca (2 * sizeof (int));
39677                           if (p) return 0;
39678   ;
39679   return 0;
39680 }
39681 _ACEOF
39682 rm -f conftest.$ac_objext conftest$ac_exeext
39683 if { (ac_try="$ac_link"
39684 case "(($ac_try" in
39685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39686   *) ac_try_echo=$ac_try;;
39687 esac
39688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39689   (eval "$ac_link") 2>conftest.er1
39690   ac_status=$?
39691   grep -v '^ *+' conftest.er1 >conftest.err
39692   rm -f conftest.er1
39693   cat conftest.err >&5
39694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39695   (exit $ac_status); } && {
39696          test -z "$ac_c_werror_flag" ||
39697          test ! -s conftest.err
39698        } && test -s conftest$ac_exeext &&
39699        $as_test_x conftest$ac_exeext; then
39700   ac_cv_working_alloca_h=yes
39701 else
39702   echo "$as_me: failed program was:" >&5
39703 sed 's/^/| /' conftest.$ac_ext >&5
39704
39705         ac_cv_working_alloca_h=no
39706 fi
39707
39708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39709       conftest$ac_exeext conftest.$ac_ext
39710 fi
39711 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39712 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39713 if test $ac_cv_working_alloca_h = yes; then
39714
39715 cat >>confdefs.h <<\_ACEOF
39716 #define HAVE_ALLOCA_H 1
39717 _ACEOF
39718
39719 fi
39720
39721 { echo "$as_me:$LINENO: checking for alloca" >&5
39722 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39723 if test "${ac_cv_func_alloca_works+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 #ifdef __GNUC__
39733 # define alloca __builtin_alloca
39734 #else
39735 # ifdef _MSC_VER
39736 #  include <malloc.h>
39737 #  define alloca _alloca
39738 # else
39739 #  ifdef HAVE_ALLOCA_H
39740 #   include <alloca.h>
39741 #  else
39742 #   ifdef _AIX
39743  #pragma alloca
39744 #   else
39745 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39746 char *alloca ();
39747 #    endif
39748 #   endif
39749 #  endif
39750 # endif
39751 #endif
39752
39753 int
39754 main ()
39755 {
39756 char *p = (char *) alloca (1);
39757                                     if (p) return 0;
39758   ;
39759   return 0;
39760 }
39761 _ACEOF
39762 rm -f conftest.$ac_objext conftest$ac_exeext
39763 if { (ac_try="$ac_link"
39764 case "(($ac_try" in
39765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39766   *) ac_try_echo=$ac_try;;
39767 esac
39768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39769   (eval "$ac_link") 2>conftest.er1
39770   ac_status=$?
39771   grep -v '^ *+' conftest.er1 >conftest.err
39772   rm -f conftest.er1
39773   cat conftest.err >&5
39774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39775   (exit $ac_status); } && {
39776          test -z "$ac_c_werror_flag" ||
39777          test ! -s conftest.err
39778        } && test -s conftest$ac_exeext &&
39779        $as_test_x conftest$ac_exeext; then
39780   ac_cv_func_alloca_works=yes
39781 else
39782   echo "$as_me: failed program was:" >&5
39783 sed 's/^/| /' conftest.$ac_ext >&5
39784
39785         ac_cv_func_alloca_works=no
39786 fi
39787
39788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39789       conftest$ac_exeext conftest.$ac_ext
39790 fi
39791 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39792 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39793
39794 if test $ac_cv_func_alloca_works = yes; then
39795
39796 cat >>confdefs.h <<\_ACEOF
39797 #define HAVE_ALLOCA 1
39798 _ACEOF
39799
39800 else
39801   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39802 # that cause trouble.  Some versions do not even contain alloca or
39803 # contain a buggy version.  If you still want to use their alloca,
39804 # use ar to extract alloca.o from them instead of compiling alloca.c.
39805
39806 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39807
39808 cat >>confdefs.h <<\_ACEOF
39809 #define C_ALLOCA 1
39810 _ACEOF
39811
39812
39813 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39814 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39815 if test "${ac_cv_os_cray+set}" = set; then
39816   echo $ECHO_N "(cached) $ECHO_C" >&6
39817 else
39818   cat >conftest.$ac_ext <<_ACEOF
39819 /* confdefs.h.  */
39820 _ACEOF
39821 cat confdefs.h >>conftest.$ac_ext
39822 cat >>conftest.$ac_ext <<_ACEOF
39823 /* end confdefs.h.  */
39824 #if defined CRAY && ! defined CRAY2
39825 webecray
39826 #else
39827 wenotbecray
39828 #endif
39829
39830 _ACEOF
39831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39832   $EGREP "webecray" >/dev/null 2>&1; then
39833   ac_cv_os_cray=yes
39834 else
39835   ac_cv_os_cray=no
39836 fi
39837 rm -f conftest*
39838
39839 fi
39840 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39841 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39842 if test $ac_cv_os_cray = yes; then
39843   for ac_func in _getb67 GETB67 getb67; do
39844     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39848   echo $ECHO_N "(cached) $ECHO_C" >&6
39849 else
39850   cat >conftest.$ac_ext <<_ACEOF
39851 /* confdefs.h.  */
39852 _ACEOF
39853 cat confdefs.h >>conftest.$ac_ext
39854 cat >>conftest.$ac_ext <<_ACEOF
39855 /* end confdefs.h.  */
39856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39858 #define $ac_func innocuous_$ac_func
39859
39860 /* System header to define __stub macros and hopefully few prototypes,
39861     which can conflict with char $ac_func (); below.
39862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39863     <limits.h> exists even on freestanding compilers.  */
39864
39865 #ifdef __STDC__
39866 # include <limits.h>
39867 #else
39868 # include <assert.h>
39869 #endif
39870
39871 #undef $ac_func
39872
39873 /* Override any GCC internal prototype to avoid an error.
39874    Use char because int might match the return type of a GCC
39875    builtin and then its argument prototype would still apply.  */
39876 #ifdef __cplusplus
39877 extern "C"
39878 #endif
39879 char $ac_func ();
39880 /* The GNU C library defines this for functions which it implements
39881     to always fail with ENOSYS.  Some functions are actually named
39882     something starting with __ and the normal name is an alias.  */
39883 #if defined __stub_$ac_func || defined __stub___$ac_func
39884 choke me
39885 #endif
39886
39887 int
39888 main ()
39889 {
39890 return $ac_func ();
39891   ;
39892   return 0;
39893 }
39894 _ACEOF
39895 rm -f conftest.$ac_objext conftest$ac_exeext
39896 if { (ac_try="$ac_link"
39897 case "(($ac_try" in
39898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39899   *) ac_try_echo=$ac_try;;
39900 esac
39901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39902   (eval "$ac_link") 2>conftest.er1
39903   ac_status=$?
39904   grep -v '^ *+' conftest.er1 >conftest.err
39905   rm -f conftest.er1
39906   cat conftest.err >&5
39907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39908   (exit $ac_status); } && {
39909          test -z "$ac_c_werror_flag" ||
39910          test ! -s conftest.err
39911        } && test -s conftest$ac_exeext &&
39912        $as_test_x conftest$ac_exeext; then
39913   eval "$as_ac_var=yes"
39914 else
39915   echo "$as_me: failed program was:" >&5
39916 sed 's/^/| /' conftest.$ac_ext >&5
39917
39918         eval "$as_ac_var=no"
39919 fi
39920
39921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39922       conftest$ac_exeext conftest.$ac_ext
39923 fi
39924 ac_res=`eval echo '${'$as_ac_var'}'`
39925                { echo "$as_me:$LINENO: result: $ac_res" >&5
39926 echo "${ECHO_T}$ac_res" >&6; }
39927 if test `eval echo '${'$as_ac_var'}'` = yes; then
39928
39929 cat >>confdefs.h <<_ACEOF
39930 #define CRAY_STACKSEG_END $ac_func
39931 _ACEOF
39932
39933     break
39934 fi
39935
39936   done
39937 fi
39938
39939 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39940 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39941 if test "${ac_cv_c_stack_direction+set}" = set; then
39942   echo $ECHO_N "(cached) $ECHO_C" >&6
39943 else
39944   if test "$cross_compiling" = yes; then
39945   ac_cv_c_stack_direction=0
39946 else
39947   cat >conftest.$ac_ext <<_ACEOF
39948 /* confdefs.h.  */
39949 _ACEOF
39950 cat confdefs.h >>conftest.$ac_ext
39951 cat >>conftest.$ac_ext <<_ACEOF
39952 /* end confdefs.h.  */
39953 $ac_includes_default
39954 int
39955 find_stack_direction ()
39956 {
39957   static char *addr = 0;
39958   auto char dummy;
39959   if (addr == 0)
39960     {
39961       addr = &dummy;
39962       return find_stack_direction ();
39963     }
39964   else
39965     return (&dummy > addr) ? 1 : -1;
39966 }
39967
39968 int
39969 main ()
39970 {
39971   return find_stack_direction () < 0;
39972 }
39973 _ACEOF
39974 rm -f conftest$ac_exeext
39975 if { (ac_try="$ac_link"
39976 case "(($ac_try" in
39977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39978   *) ac_try_echo=$ac_try;;
39979 esac
39980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39981   (eval "$ac_link") 2>&5
39982   ac_status=$?
39983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39985   { (case "(($ac_try" in
39986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39987   *) ac_try_echo=$ac_try;;
39988 esac
39989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39990   (eval "$ac_try") 2>&5
39991   ac_status=$?
39992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39993   (exit $ac_status); }; }; then
39994   ac_cv_c_stack_direction=1
39995 else
39996   echo "$as_me: program exited with status $ac_status" >&5
39997 echo "$as_me: failed program was:" >&5
39998 sed 's/^/| /' conftest.$ac_ext >&5
39999
40000 ( exit $ac_status )
40001 ac_cv_c_stack_direction=-1
40002 fi
40003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40004 fi
40005
40006
40007 fi
40008 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40009 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40010
40011 cat >>confdefs.h <<_ACEOF
40012 #define STACK_DIRECTION $ac_cv_c_stack_direction
40013 _ACEOF
40014
40015
40016 fi
40017
40018 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40019 # -lseq on Dynix/PTX, -lgen on Unixware.
40020 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40021 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40022 if test "${ac_cv_search_getmntent+set}" = set; then
40023   echo $ECHO_N "(cached) $ECHO_C" >&6
40024 else
40025   ac_func_search_save_LIBS=$LIBS
40026 cat >conftest.$ac_ext <<_ACEOF
40027 /* confdefs.h.  */
40028 _ACEOF
40029 cat confdefs.h >>conftest.$ac_ext
40030 cat >>conftest.$ac_ext <<_ACEOF
40031 /* end confdefs.h.  */
40032
40033 /* Override any GCC internal prototype to avoid an error.
40034    Use char because int might match the return type of a GCC
40035    builtin and then its argument prototype would still apply.  */
40036 #ifdef __cplusplus
40037 extern "C"
40038 #endif
40039 char getmntent ();
40040 int
40041 main ()
40042 {
40043 return getmntent ();
40044   ;
40045   return 0;
40046 }
40047 _ACEOF
40048 for ac_lib in '' sun seq gen; do
40049   if test -z "$ac_lib"; then
40050     ac_res="none required"
40051   else
40052     ac_res=-l$ac_lib
40053     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40054   fi
40055   rm -f conftest.$ac_objext conftest$ac_exeext
40056 if { (ac_try="$ac_link"
40057 case "(($ac_try" in
40058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40059   *) ac_try_echo=$ac_try;;
40060 esac
40061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40062   (eval "$ac_link") 2>conftest.er1
40063   ac_status=$?
40064   grep -v '^ *+' conftest.er1 >conftest.err
40065   rm -f conftest.er1
40066   cat conftest.err >&5
40067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40068   (exit $ac_status); } && {
40069          test -z "$ac_c_werror_flag" ||
40070          test ! -s conftest.err
40071        } && test -s conftest$ac_exeext &&
40072        $as_test_x conftest$ac_exeext; then
40073   ac_cv_search_getmntent=$ac_res
40074 else
40075   echo "$as_me: failed program was:" >&5
40076 sed 's/^/| /' conftest.$ac_ext >&5
40077
40078
40079 fi
40080
40081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40082       conftest$ac_exeext
40083   if test "${ac_cv_search_getmntent+set}" = set; then
40084   break
40085 fi
40086 done
40087 if test "${ac_cv_search_getmntent+set}" = set; then
40088   :
40089 else
40090   ac_cv_search_getmntent=no
40091 fi
40092 rm conftest.$ac_ext
40093 LIBS=$ac_func_search_save_LIBS
40094 fi
40095 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40096 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40097 ac_res=$ac_cv_search_getmntent
40098 if test "$ac_res" != no; then
40099   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40100   ac_cv_func_getmntent=yes
40101
40102 cat >>confdefs.h <<\_ACEOF
40103 #define HAVE_GETMNTENT 1
40104 _ACEOF
40105
40106 else
40107   ac_cv_func_getmntent=no
40108 fi
40109
40110
40111 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40112 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40113 if test "${ac_cv_func_closedir_void+set}" = set; then
40114   echo $ECHO_N "(cached) $ECHO_C" >&6
40115 else
40116   if test "$cross_compiling" = yes; then
40117   ac_cv_func_closedir_void=yes
40118 else
40119   cat >conftest.$ac_ext <<_ACEOF
40120 /* confdefs.h.  */
40121 _ACEOF
40122 cat confdefs.h >>conftest.$ac_ext
40123 cat >>conftest.$ac_ext <<_ACEOF
40124 /* end confdefs.h.  */
40125 $ac_includes_default
40126 #include <$ac_header_dirent>
40127 #ifndef __cplusplus
40128 int closedir ();
40129 #endif
40130
40131 int
40132 main ()
40133 {
40134 return closedir (opendir (".")) != 0;
40135   ;
40136   return 0;
40137 }
40138 _ACEOF
40139 rm -f conftest$ac_exeext
40140 if { (ac_try="$ac_link"
40141 case "(($ac_try" in
40142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40143   *) ac_try_echo=$ac_try;;
40144 esac
40145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40146   (eval "$ac_link") 2>&5
40147   ac_status=$?
40148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40150   { (case "(($ac_try" in
40151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40152   *) ac_try_echo=$ac_try;;
40153 esac
40154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40155   (eval "$ac_try") 2>&5
40156   ac_status=$?
40157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40158   (exit $ac_status); }; }; then
40159   ac_cv_func_closedir_void=no
40160 else
40161   echo "$as_me: program exited with status $ac_status" >&5
40162 echo "$as_me: failed program was:" >&5
40163 sed 's/^/| /' conftest.$ac_ext >&5
40164
40165 ( exit $ac_status )
40166 ac_cv_func_closedir_void=yes
40167 fi
40168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40169 fi
40170
40171
40172 fi
40173 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40174 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40175 if test $ac_cv_func_closedir_void = yes; then
40176
40177 cat >>confdefs.h <<\_ACEOF
40178 #define CLOSEDIR_VOID 1
40179 _ACEOF
40180
40181 fi
40182
40183 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40184 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40185 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40186   echo $ECHO_N "(cached) $ECHO_C" >&6
40187 else
40188   if test "$cross_compiling" = yes; then
40189   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40190 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40191    { (exit 1); exit 1; }; }
40192 else
40193   cat >conftest.$ac_ext <<_ACEOF
40194 /* confdefs.h.  */
40195 _ACEOF
40196 cat confdefs.h >>conftest.$ac_ext
40197 cat >>conftest.$ac_ext <<_ACEOF
40198 /* end confdefs.h.  */
40199 $ac_includes_default
40200 int
40201 main ()
40202 {
40203 /* If this system has a BSD-style setpgrp which takes arguments,
40204   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40205   exit successfully. */
40206   return setpgrp (1,1) != -1;
40207   ;
40208   return 0;
40209 }
40210 _ACEOF
40211 rm -f conftest$ac_exeext
40212 if { (ac_try="$ac_link"
40213 case "(($ac_try" in
40214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40215   *) ac_try_echo=$ac_try;;
40216 esac
40217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40218   (eval "$ac_link") 2>&5
40219   ac_status=$?
40220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40222   { (case "(($ac_try" in
40223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40224   *) ac_try_echo=$ac_try;;
40225 esac
40226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40227   (eval "$ac_try") 2>&5
40228   ac_status=$?
40229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40230   (exit $ac_status); }; }; then
40231   ac_cv_func_setpgrp_void=no
40232 else
40233   echo "$as_me: program exited with status $ac_status" >&5
40234 echo "$as_me: failed program was:" >&5
40235 sed 's/^/| /' conftest.$ac_ext >&5
40236
40237 ( exit $ac_status )
40238 ac_cv_func_setpgrp_void=yes
40239 fi
40240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40241 fi
40242
40243
40244 fi
40245 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40246 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40247 if test $ac_cv_func_setpgrp_void = yes; then
40248
40249 cat >>confdefs.h <<\_ACEOF
40250 #define SETPGRP_VOID 1
40251 _ACEOF
40252
40253 fi
40254             # AC_FUNC_FNMATCH    dnl use local version
40255
40256 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40257 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40258 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40259   echo $ECHO_N "(cached) $ECHO_C" >&6
40260 else
40261   ac_check_lib_save_LIBS=$LIBS
40262 LIBS="-lintl  $LIBS"
40263 cat >conftest.$ac_ext <<_ACEOF
40264 /* confdefs.h.  */
40265 _ACEOF
40266 cat confdefs.h >>conftest.$ac_ext
40267 cat >>conftest.$ac_ext <<_ACEOF
40268 /* end confdefs.h.  */
40269
40270 /* Override any GCC internal prototype to avoid an error.
40271    Use char because int might match the return type of a GCC
40272    builtin and then its argument prototype would still apply.  */
40273 #ifdef __cplusplus
40274 extern "C"
40275 #endif
40276 char gettext ();
40277 int
40278 main ()
40279 {
40280 return gettext ();
40281   ;
40282   return 0;
40283 }
40284 _ACEOF
40285 rm -f conftest.$ac_objext conftest$ac_exeext
40286 if { (ac_try="$ac_link"
40287 case "(($ac_try" in
40288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40289   *) ac_try_echo=$ac_try;;
40290 esac
40291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40292   (eval "$ac_link") 2>conftest.er1
40293   ac_status=$?
40294   grep -v '^ *+' conftest.er1 >conftest.err
40295   rm -f conftest.er1
40296   cat conftest.err >&5
40297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40298   (exit $ac_status); } && {
40299          test -z "$ac_c_werror_flag" ||
40300          test ! -s conftest.err
40301        } && test -s conftest$ac_exeext &&
40302        $as_test_x conftest$ac_exeext; then
40303   ac_cv_lib_intl_gettext=yes
40304 else
40305   echo "$as_me: failed program was:" >&5
40306 sed 's/^/| /' conftest.$ac_ext >&5
40307
40308         ac_cv_lib_intl_gettext=no
40309 fi
40310
40311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40312       conftest$ac_exeext conftest.$ac_ext
40313 LIBS=$ac_check_lib_save_LIBS
40314 fi
40315 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40316 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40317 if test $ac_cv_lib_intl_gettext = yes; then
40318   LIBS="$LIBS -lintl"
40319 fi
40320
40321
40322
40323 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40324 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40325 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40326   echo $ECHO_N "(cached) $ECHO_C" >&6
40327 else
40328   ac_check_lib_save_LIBS=$LIBS
40329 LIBS="-lsun  $LIBS"
40330 cat >conftest.$ac_ext <<_ACEOF
40331 /* confdefs.h.  */
40332 _ACEOF
40333 cat confdefs.h >>conftest.$ac_ext
40334 cat >>conftest.$ac_ext <<_ACEOF
40335 /* end confdefs.h.  */
40336
40337 /* Override any GCC internal prototype to avoid an error.
40338    Use char because int might match the return type of a GCC
40339    builtin and then its argument prototype would still apply.  */
40340 #ifdef __cplusplus
40341 extern "C"
40342 #endif
40343 char getpwnam ();
40344 int
40345 main ()
40346 {
40347 return getpwnam ();
40348   ;
40349   return 0;
40350 }
40351 _ACEOF
40352 rm -f conftest.$ac_objext conftest$ac_exeext
40353 if { (ac_try="$ac_link"
40354 case "(($ac_try" in
40355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40356   *) ac_try_echo=$ac_try;;
40357 esac
40358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40359   (eval "$ac_link") 2>conftest.er1
40360   ac_status=$?
40361   grep -v '^ *+' conftest.er1 >conftest.err
40362   rm -f conftest.er1
40363   cat conftest.err >&5
40364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365   (exit $ac_status); } && {
40366          test -z "$ac_c_werror_flag" ||
40367          test ! -s conftest.err
40368        } && test -s conftest$ac_exeext &&
40369        $as_test_x conftest$ac_exeext; then
40370   ac_cv_lib_sun_getpwnam=yes
40371 else
40372   echo "$as_me: failed program was:" >&5
40373 sed 's/^/| /' conftest.$ac_ext >&5
40374
40375         ac_cv_lib_sun_getpwnam=no
40376 fi
40377
40378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40379       conftest$ac_exeext conftest.$ac_ext
40380 LIBS=$ac_check_lib_save_LIBS
40381 fi
40382 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40383 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40384 if test $ac_cv_lib_sun_getpwnam = yes; then
40385   cat >>confdefs.h <<_ACEOF
40386 #define HAVE_LIBSUN 1
40387 _ACEOF
40388
40389   LIBS="-lsun $LIBS"
40390
40391 fi
40392
40393
40394
40395 for ac_header in zlib.h
40396 do
40397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40399   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40402   echo $ECHO_N "(cached) $ECHO_C" >&6
40403 fi
40404 ac_res=`eval echo '${'$as_ac_Header'}'`
40405                { echo "$as_me:$LINENO: result: $ac_res" >&5
40406 echo "${ECHO_T}$ac_res" >&6; }
40407 else
40408   # Is the header compilable?
40409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40411 cat >conftest.$ac_ext <<_ACEOF
40412 /* confdefs.h.  */
40413 _ACEOF
40414 cat confdefs.h >>conftest.$ac_ext
40415 cat >>conftest.$ac_ext <<_ACEOF
40416 /* end confdefs.h.  */
40417 $ac_includes_default
40418 #include <$ac_header>
40419 _ACEOF
40420 rm -f conftest.$ac_objext
40421 if { (ac_try="$ac_compile"
40422 case "(($ac_try" in
40423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40424   *) ac_try_echo=$ac_try;;
40425 esac
40426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40427   (eval "$ac_compile") 2>conftest.er1
40428   ac_status=$?
40429   grep -v '^ *+' conftest.er1 >conftest.err
40430   rm -f conftest.er1
40431   cat conftest.err >&5
40432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40433   (exit $ac_status); } && {
40434          test -z "$ac_c_werror_flag" ||
40435          test ! -s conftest.err
40436        } && test -s conftest.$ac_objext; then
40437   ac_header_compiler=yes
40438 else
40439   echo "$as_me: failed program was:" >&5
40440 sed 's/^/| /' conftest.$ac_ext >&5
40441
40442         ac_header_compiler=no
40443 fi
40444
40445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40447 echo "${ECHO_T}$ac_header_compiler" >&6; }
40448
40449 # Is the header present?
40450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40452 cat >conftest.$ac_ext <<_ACEOF
40453 /* confdefs.h.  */
40454 _ACEOF
40455 cat confdefs.h >>conftest.$ac_ext
40456 cat >>conftest.$ac_ext <<_ACEOF
40457 /* end confdefs.h.  */
40458 #include <$ac_header>
40459 _ACEOF
40460 if { (ac_try="$ac_cpp conftest.$ac_ext"
40461 case "(($ac_try" in
40462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40463   *) ac_try_echo=$ac_try;;
40464 esac
40465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40466   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40467   ac_status=$?
40468   grep -v '^ *+' conftest.er1 >conftest.err
40469   rm -f conftest.er1
40470   cat conftest.err >&5
40471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472   (exit $ac_status); } >/dev/null && {
40473          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40474          test ! -s conftest.err
40475        }; then
40476   ac_header_preproc=yes
40477 else
40478   echo "$as_me: failed program was:" >&5
40479 sed 's/^/| /' conftest.$ac_ext >&5
40480
40481   ac_header_preproc=no
40482 fi
40483
40484 rm -f conftest.err conftest.$ac_ext
40485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40486 echo "${ECHO_T}$ac_header_preproc" >&6; }
40487
40488 # So?  What about this header?
40489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40490   yes:no: )
40491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40495     ac_header_preproc=yes
40496     ;;
40497   no:yes:* )
40498     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40500     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40501 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40502     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40504     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40505 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40508     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40510
40511     ;;
40512 esac
40513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40516   echo $ECHO_N "(cached) $ECHO_C" >&6
40517 else
40518   eval "$as_ac_Header=\$ac_header_preproc"
40519 fi
40520 ac_res=`eval echo '${'$as_ac_Header'}'`
40521                { echo "$as_me:$LINENO: result: $ac_res" >&5
40522 echo "${ECHO_T}$ac_res" >&6; }
40523
40524 fi
40525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40526   cat >>confdefs.h <<_ACEOF
40527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40528 _ACEOF
40529
40530 fi
40531
40532 done
40533
40534 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40535 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40536 if test "${ac_cv_lib_z_deflate+set}" = set; then
40537   echo $ECHO_N "(cached) $ECHO_C" >&6
40538 else
40539   ac_check_lib_save_LIBS=$LIBS
40540 LIBS="-lz  $LIBS"
40541 cat >conftest.$ac_ext <<_ACEOF
40542 /* confdefs.h.  */
40543 _ACEOF
40544 cat confdefs.h >>conftest.$ac_ext
40545 cat >>conftest.$ac_ext <<_ACEOF
40546 /* end confdefs.h.  */
40547
40548 /* Override any GCC internal prototype to avoid an error.
40549    Use char because int might match the return type of a GCC
40550    builtin and then its argument prototype would still apply.  */
40551 #ifdef __cplusplus
40552 extern "C"
40553 #endif
40554 char deflate ();
40555 int
40556 main ()
40557 {
40558 return deflate ();
40559   ;
40560   return 0;
40561 }
40562 _ACEOF
40563 rm -f conftest.$ac_objext conftest$ac_exeext
40564 if { (ac_try="$ac_link"
40565 case "(($ac_try" in
40566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40567   *) ac_try_echo=$ac_try;;
40568 esac
40569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40570   (eval "$ac_link") 2>conftest.er1
40571   ac_status=$?
40572   grep -v '^ *+' conftest.er1 >conftest.err
40573   rm -f conftest.er1
40574   cat conftest.err >&5
40575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40576   (exit $ac_status); } && {
40577          test -z "$ac_c_werror_flag" ||
40578          test ! -s conftest.err
40579        } && test -s conftest$ac_exeext &&
40580        $as_test_x conftest$ac_exeext; then
40581   ac_cv_lib_z_deflate=yes
40582 else
40583   echo "$as_me: failed program was:" >&5
40584 sed 's/^/| /' conftest.$ac_ext >&5
40585
40586         ac_cv_lib_z_deflate=no
40587 fi
40588
40589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40590       conftest$ac_exeext conftest.$ac_ext
40591 LIBS=$ac_check_lib_save_LIBS
40592 fi
40593 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40594 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40595 if test $ac_cv_lib_z_deflate = yes; then
40596   FDLIBS="-lz"
40597 fi
40598
40599 have_zlib=no
40600 if test x$FDLIBS = x-lz; then
40601    cat >>confdefs.h <<\_ACEOF
40602 #define HAVE_LIBZ 1
40603 _ACEOF
40604
40605    have_zlib=yes
40606 fi
40607
40608 support_acl=auto
40609 # Check whether --enable-acl was given.
40610 if test "${enable_acl+set}" = set; then
40611   enableval=$enable_acl;
40612        if test x$enableval = xyes; then
40613           support_acl=yes
40614        elif test x$enableval = xno; then
40615           support_acl=no
40616        fi
40617
40618
40619 fi
40620
40621
40622 have_acl=no
40623 have_extended_acl=no
40624 if test x$support_acl = xyes -o x$support_acl = xauto; then
40625    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40626   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40627 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40628 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40629   echo $ECHO_N "(cached) $ECHO_C" >&6
40630 fi
40631 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40632 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40633 else
40634   # Is the header compilable?
40635 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40636 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40637 cat >conftest.$ac_ext <<_ACEOF
40638 /* confdefs.h.  */
40639 _ACEOF
40640 cat confdefs.h >>conftest.$ac_ext
40641 cat >>conftest.$ac_ext <<_ACEOF
40642 /* end confdefs.h.  */
40643 $ac_includes_default
40644 #include <sys/acl.h>
40645 _ACEOF
40646 rm -f conftest.$ac_objext
40647 if { (ac_try="$ac_compile"
40648 case "(($ac_try" in
40649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40650   *) ac_try_echo=$ac_try;;
40651 esac
40652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40653   (eval "$ac_compile") 2>conftest.er1
40654   ac_status=$?
40655   grep -v '^ *+' conftest.er1 >conftest.err
40656   rm -f conftest.er1
40657   cat conftest.err >&5
40658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40659   (exit $ac_status); } && {
40660          test -z "$ac_c_werror_flag" ||
40661          test ! -s conftest.err
40662        } && test -s conftest.$ac_objext; then
40663   ac_header_compiler=yes
40664 else
40665   echo "$as_me: failed program was:" >&5
40666 sed 's/^/| /' conftest.$ac_ext >&5
40667
40668         ac_header_compiler=no
40669 fi
40670
40671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40673 echo "${ECHO_T}$ac_header_compiler" >&6; }
40674
40675 # Is the header present?
40676 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40677 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40678 cat >conftest.$ac_ext <<_ACEOF
40679 /* confdefs.h.  */
40680 _ACEOF
40681 cat confdefs.h >>conftest.$ac_ext
40682 cat >>conftest.$ac_ext <<_ACEOF
40683 /* end confdefs.h.  */
40684 #include <sys/acl.h>
40685 _ACEOF
40686 if { (ac_try="$ac_cpp conftest.$ac_ext"
40687 case "(($ac_try" in
40688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40689   *) ac_try_echo=$ac_try;;
40690 esac
40691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40693   ac_status=$?
40694   grep -v '^ *+' conftest.er1 >conftest.err
40695   rm -f conftest.er1
40696   cat conftest.err >&5
40697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40698   (exit $ac_status); } >/dev/null && {
40699          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40700          test ! -s conftest.err
40701        }; then
40702   ac_header_preproc=yes
40703 else
40704   echo "$as_me: failed program was:" >&5
40705 sed 's/^/| /' conftest.$ac_ext >&5
40706
40707   ac_header_preproc=no
40708 fi
40709
40710 rm -f conftest.err conftest.$ac_ext
40711 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40712 echo "${ECHO_T}$ac_header_preproc" >&6; }
40713
40714 # So?  What about this header?
40715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40716   yes:no: )
40717     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40718 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40719     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40720 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40721     ac_header_preproc=yes
40722     ;;
40723   no:yes:* )
40724     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40725 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40726     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40727 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40728     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40729 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40730     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40731 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40732     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40733 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40734     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40735 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40736
40737     ;;
40738 esac
40739 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40740 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40741 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40742   echo $ECHO_N "(cached) $ECHO_C" >&6
40743 else
40744   ac_cv_header_sys_acl_h=$ac_header_preproc
40745 fi
40746 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40747 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40748
40749 fi
40750 if test $ac_cv_header_sys_acl_h = yes; then
40751
40752 cat >>confdefs.h <<\_ACEOF
40753 #define HAVE_SYS_ACL_H 1
40754 _ACEOF
40755
40756 fi
40757
40758
40759    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40760 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40761 if test "${ac_cv_func_acl_get_file+set}" = set; then
40762   echo $ECHO_N "(cached) $ECHO_C" >&6
40763 else
40764   cat >conftest.$ac_ext <<_ACEOF
40765 /* confdefs.h.  */
40766 _ACEOF
40767 cat confdefs.h >>conftest.$ac_ext
40768 cat >>conftest.$ac_ext <<_ACEOF
40769 /* end confdefs.h.  */
40770 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40772 #define acl_get_file innocuous_acl_get_file
40773
40774 /* System header to define __stub macros and hopefully few prototypes,
40775     which can conflict with char acl_get_file (); below.
40776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40777     <limits.h> exists even on freestanding compilers.  */
40778
40779 #ifdef __STDC__
40780 # include <limits.h>
40781 #else
40782 # include <assert.h>
40783 #endif
40784
40785 #undef acl_get_file
40786
40787 /* Override any GCC internal prototype to avoid an error.
40788    Use char because int might match the return type of a GCC
40789    builtin and then its argument prototype would still apply.  */
40790 #ifdef __cplusplus
40791 extern "C"
40792 #endif
40793 char acl_get_file ();
40794 /* The GNU C library defines this for functions which it implements
40795     to always fail with ENOSYS.  Some functions are actually named
40796     something starting with __ and the normal name is an alias.  */
40797 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40798 choke me
40799 #endif
40800
40801 int
40802 main ()
40803 {
40804 return acl_get_file ();
40805   ;
40806   return 0;
40807 }
40808 _ACEOF
40809 rm -f conftest.$ac_objext conftest$ac_exeext
40810 if { (ac_try="$ac_link"
40811 case "(($ac_try" in
40812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40813   *) ac_try_echo=$ac_try;;
40814 esac
40815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40816   (eval "$ac_link") 2>conftest.er1
40817   ac_status=$?
40818   grep -v '^ *+' conftest.er1 >conftest.err
40819   rm -f conftest.er1
40820   cat conftest.err >&5
40821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40822   (exit $ac_status); } && {
40823          test -z "$ac_c_werror_flag" ||
40824          test ! -s conftest.err
40825        } && test -s conftest$ac_exeext &&
40826        $as_test_x conftest$ac_exeext; then
40827   ac_cv_func_acl_get_file=yes
40828 else
40829   echo "$as_me: failed program was:" >&5
40830 sed 's/^/| /' conftest.$ac_ext >&5
40831
40832         ac_cv_func_acl_get_file=no
40833 fi
40834
40835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40836       conftest$ac_exeext conftest.$ac_ext
40837 fi
40838 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40839 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40840 if test $ac_cv_func_acl_get_file = yes; then
40841
40842           have_acl=yes
40843
40844 else
40845
40846           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40847 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40848 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40849   echo $ECHO_N "(cached) $ECHO_C" >&6
40850 else
40851   ac_check_lib_save_LIBS=$LIBS
40852 LIBS="-lacl  $LIBS"
40853 cat >conftest.$ac_ext <<_ACEOF
40854 /* confdefs.h.  */
40855 _ACEOF
40856 cat confdefs.h >>conftest.$ac_ext
40857 cat >>conftest.$ac_ext <<_ACEOF
40858 /* end confdefs.h.  */
40859
40860 /* Override any GCC internal prototype to avoid an error.
40861    Use char because int might match the return type of a GCC
40862    builtin and then its argument prototype would still apply.  */
40863 #ifdef __cplusplus
40864 extern "C"
40865 #endif
40866 char acl_get_file ();
40867 int
40868 main ()
40869 {
40870 return acl_get_file ();
40871   ;
40872   return 0;
40873 }
40874 _ACEOF
40875 rm -f conftest.$ac_objext conftest$ac_exeext
40876 if { (ac_try="$ac_link"
40877 case "(($ac_try" in
40878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40879   *) ac_try_echo=$ac_try;;
40880 esac
40881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40882   (eval "$ac_link") 2>conftest.er1
40883   ac_status=$?
40884   grep -v '^ *+' conftest.er1 >conftest.err
40885   rm -f conftest.er1
40886   cat conftest.err >&5
40887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40888   (exit $ac_status); } && {
40889          test -z "$ac_c_werror_flag" ||
40890          test ! -s conftest.err
40891        } && test -s conftest$ac_exeext &&
40892        $as_test_x conftest$ac_exeext; then
40893   ac_cv_lib_acl_acl_get_file=yes
40894 else
40895   echo "$as_me: failed program was:" >&5
40896 sed 's/^/| /' conftest.$ac_ext >&5
40897
40898         ac_cv_lib_acl_acl_get_file=no
40899 fi
40900
40901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40902       conftest$ac_exeext conftest.$ac_ext
40903 LIBS=$ac_check_lib_save_LIBS
40904 fi
40905 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40906 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40907 if test $ac_cv_lib_acl_acl_get_file = yes; then
40908
40909                  have_acl=yes;
40910                  FDLIBS="-lacl $FDLIBS"
40911
40912 else
40913
40914                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40915 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40916 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40917   echo $ECHO_N "(cached) $ECHO_C" >&6
40918 else
40919   ac_check_lib_save_LIBS=$LIBS
40920 LIBS="-lpacl  $LIBS"
40921 cat >conftest.$ac_ext <<_ACEOF
40922 /* confdefs.h.  */
40923 _ACEOF
40924 cat confdefs.h >>conftest.$ac_ext
40925 cat >>conftest.$ac_ext <<_ACEOF
40926 /* end confdefs.h.  */
40927
40928 /* Override any GCC internal prototype to avoid an error.
40929    Use char because int might match the return type of a GCC
40930    builtin and then its argument prototype would still apply.  */
40931 #ifdef __cplusplus
40932 extern "C"
40933 #endif
40934 char acl_get_file ();
40935 int
40936 main ()
40937 {
40938 return acl_get_file ();
40939   ;
40940   return 0;
40941 }
40942 _ACEOF
40943 rm -f conftest.$ac_objext conftest$ac_exeext
40944 if { (ac_try="$ac_link"
40945 case "(($ac_try" in
40946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40947   *) ac_try_echo=$ac_try;;
40948 esac
40949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40950   (eval "$ac_link") 2>conftest.er1
40951   ac_status=$?
40952   grep -v '^ *+' conftest.er1 >conftest.err
40953   rm -f conftest.er1
40954   cat conftest.err >&5
40955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40956   (exit $ac_status); } && {
40957          test -z "$ac_c_werror_flag" ||
40958          test ! -s conftest.err
40959        } && test -s conftest$ac_exeext &&
40960        $as_test_x conftest$ac_exeext; then
40961   ac_cv_lib_pacl_acl_get_file=yes
40962 else
40963   echo "$as_me: failed program was:" >&5
40964 sed 's/^/| /' conftest.$ac_ext >&5
40965
40966         ac_cv_lib_pacl_acl_get_file=no
40967 fi
40968
40969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40970       conftest$ac_exeext conftest.$ac_ext
40971 LIBS=$ac_check_lib_save_LIBS
40972 fi
40973 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40974 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40975 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40976
40977                         have_acl=yes;
40978                         FDLIBS="-lpacl $FDLIBS"
40979
40980 else
40981
40982                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40983 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40984 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40985   echo $ECHO_N "(cached) $ECHO_C" >&6
40986 else
40987   ac_check_lib_save_LIBS=$LIBS
40988 LIBS="-lsec  $LIBS"
40989 cat >conftest.$ac_ext <<_ACEOF
40990 /* confdefs.h.  */
40991 _ACEOF
40992 cat confdefs.h >>conftest.$ac_ext
40993 cat >>conftest.$ac_ext <<_ACEOF
40994 /* end confdefs.h.  */
40995
40996 /* Override any GCC internal prototype to avoid an error.
40997    Use char because int might match the return type of a GCC
40998    builtin and then its argument prototype would still apply.  */
40999 #ifdef __cplusplus
41000 extern "C"
41001 #endif
41002 char acltotext ();
41003 int
41004 main ()
41005 {
41006 return acltotext ();
41007   ;
41008   return 0;
41009 }
41010 _ACEOF
41011 rm -f conftest.$ac_objext conftest$ac_exeext
41012 if { (ac_try="$ac_link"
41013 case "(($ac_try" in
41014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41015   *) ac_try_echo=$ac_try;;
41016 esac
41017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41018   (eval "$ac_link") 2>conftest.er1
41019   ac_status=$?
41020   grep -v '^ *+' conftest.er1 >conftest.err
41021   rm -f conftest.er1
41022   cat conftest.err >&5
41023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41024   (exit $ac_status); } && {
41025          test -z "$ac_c_werror_flag" ||
41026          test ! -s conftest.err
41027        } && test -s conftest$ac_exeext &&
41028        $as_test_x conftest$ac_exeext; then
41029   ac_cv_lib_sec_acltotext=yes
41030 else
41031   echo "$as_me: failed program was:" >&5
41032 sed 's/^/| /' conftest.$ac_ext >&5
41033
41034         ac_cv_lib_sec_acltotext=no
41035 fi
41036
41037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41038       conftest$ac_exeext conftest.$ac_ext
41039 LIBS=$ac_check_lib_save_LIBS
41040 fi
41041 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41042 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41043 if test $ac_cv_lib_sec_acltotext = yes; then
41044
41045                                have_acl=yes;
41046                                FDLIBS="-lsec $FDLIBS"
41047
41048                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41049 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41050 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41051   echo $ECHO_N "(cached) $ECHO_C" >&6
41052 else
41053   ac_check_lib_save_LIBS=$LIBS
41054 LIBS="-lsec  $LIBS"
41055 cat >conftest.$ac_ext <<_ACEOF
41056 /* confdefs.h.  */
41057 _ACEOF
41058 cat confdefs.h >>conftest.$ac_ext
41059 cat >>conftest.$ac_ext <<_ACEOF
41060 /* end confdefs.h.  */
41061
41062 /* Override any GCC internal prototype to avoid an error.
41063    Use char because int might match the return type of a GCC
41064    builtin and then its argument prototype would still apply.  */
41065 #ifdef __cplusplus
41066 extern "C"
41067 #endif
41068 char acl_totext ();
41069 int
41070 main ()
41071 {
41072 return acl_totext ();
41073   ;
41074   return 0;
41075 }
41076 _ACEOF
41077 rm -f conftest.$ac_objext conftest$ac_exeext
41078 if { (ac_try="$ac_link"
41079 case "(($ac_try" in
41080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41081   *) ac_try_echo=$ac_try;;
41082 esac
41083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41084   (eval "$ac_link") 2>conftest.er1
41085   ac_status=$?
41086   grep -v '^ *+' conftest.er1 >conftest.err
41087   rm -f conftest.er1
41088   cat conftest.err >&5
41089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41090   (exit $ac_status); } && {
41091          test -z "$ac_c_werror_flag" ||
41092          test ! -s conftest.err
41093        } && test -s conftest$ac_exeext &&
41094        $as_test_x conftest$ac_exeext; then
41095   ac_cv_lib_sec_acl_totext=yes
41096 else
41097   echo "$as_me: failed program was:" >&5
41098 sed 's/^/| /' conftest.$ac_ext >&5
41099
41100         ac_cv_lib_sec_acl_totext=no
41101 fi
41102
41103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41104       conftest$ac_exeext conftest.$ac_ext
41105 LIBS=$ac_check_lib_save_LIBS
41106 fi
41107 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41108 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41109 if test $ac_cv_lib_sec_acl_totext = yes; then
41110
41111                                       have_extended_acl=yes
41112
41113
41114 fi
41115
41116
41117
41118 fi
41119
41120
41121
41122 fi
41123
41124
41125
41126 fi
41127
41128
41129
41130 fi
41131
41132
41133    if test x$support_acl = xyes -a $have_acl != yes; then
41134       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41135   please either load the acl libraries or rerun configure without --enable-acl" >&5
41136 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41137   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41138    { (exit 1); exit 1; }; }
41139    else
41140       if test $have_acl = yes; then
41141
41142 cat >>confdefs.h <<\_ACEOF
41143 #define HAVE_ACL
41144 _ACEOF
41145
41146       fi
41147
41148       if test $have_extended_acl = yes; then
41149
41150 cat >>confdefs.h <<\_ACEOF
41151 #define HAVE_EXTENDED_ACL
41152 _ACEOF
41153
41154       fi
41155    fi
41156 fi
41157
41158 support_xattr=auto
41159 # Check whether --enable-xattr was given.
41160 if test "${enable_xattr+set}" = set; then
41161   enableval=$enable_xattr;
41162        if test x$enableval = xyes; then
41163           support_xattr=yes
41164        elif test x$enableval = xno; then
41165           support_xattr=no
41166        fi
41167
41168
41169 fi
41170
41171
41172 have_xattr=no
41173 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41174    if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41175   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41176 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41177 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41178   echo $ECHO_N "(cached) $ECHO_C" >&6
41179 fi
41180 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41181 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41182 else
41183   # Is the header compilable?
41184 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41185 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41186 cat >conftest.$ac_ext <<_ACEOF
41187 /* confdefs.h.  */
41188 _ACEOF
41189 cat confdefs.h >>conftest.$ac_ext
41190 cat >>conftest.$ac_ext <<_ACEOF
41191 /* end confdefs.h.  */
41192 $ac_includes_default
41193 #include <sys/xattr.h>
41194 _ACEOF
41195 rm -f conftest.$ac_objext
41196 if { (ac_try="$ac_compile"
41197 case "(($ac_try" in
41198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41199   *) ac_try_echo=$ac_try;;
41200 esac
41201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41202   (eval "$ac_compile") 2>conftest.er1
41203   ac_status=$?
41204   grep -v '^ *+' conftest.er1 >conftest.err
41205   rm -f conftest.er1
41206   cat conftest.err >&5
41207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41208   (exit $ac_status); } && {
41209          test -z "$ac_c_werror_flag" ||
41210          test ! -s conftest.err
41211        } && test -s conftest.$ac_objext; then
41212   ac_header_compiler=yes
41213 else
41214   echo "$as_me: failed program was:" >&5
41215 sed 's/^/| /' conftest.$ac_ext >&5
41216
41217         ac_header_compiler=no
41218 fi
41219
41220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41222 echo "${ECHO_T}$ac_header_compiler" >&6; }
41223
41224 # Is the header present?
41225 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41226 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41227 cat >conftest.$ac_ext <<_ACEOF
41228 /* confdefs.h.  */
41229 _ACEOF
41230 cat confdefs.h >>conftest.$ac_ext
41231 cat >>conftest.$ac_ext <<_ACEOF
41232 /* end confdefs.h.  */
41233 #include <sys/xattr.h>
41234 _ACEOF
41235 if { (ac_try="$ac_cpp conftest.$ac_ext"
41236 case "(($ac_try" in
41237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41238   *) ac_try_echo=$ac_try;;
41239 esac
41240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41242   ac_status=$?
41243   grep -v '^ *+' conftest.er1 >conftest.err
41244   rm -f conftest.er1
41245   cat conftest.err >&5
41246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41247   (exit $ac_status); } >/dev/null && {
41248          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41249          test ! -s conftest.err
41250        }; then
41251   ac_header_preproc=yes
41252 else
41253   echo "$as_me: failed program was:" >&5
41254 sed 's/^/| /' conftest.$ac_ext >&5
41255
41256   ac_header_preproc=no
41257 fi
41258
41259 rm -f conftest.err conftest.$ac_ext
41260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41261 echo "${ECHO_T}$ac_header_preproc" >&6; }
41262
41263 # So?  What about this header?
41264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41265   yes:no: )
41266     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41267 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41268     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41269 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41270     ac_header_preproc=yes
41271     ;;
41272   no:yes:* )
41273     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41274 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41275     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
41276 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
41277     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41278 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41279     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41280 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41281     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41282 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41283     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41284 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41285
41286     ;;
41287 esac
41288 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41289 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41290 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41291   echo $ECHO_N "(cached) $ECHO_C" >&6
41292 else
41293   ac_cv_header_sys_xattr_h=$ac_header_preproc
41294 fi
41295 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41296 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41297
41298 fi
41299 if test $ac_cv_header_sys_xattr_h = yes; then
41300
41301 cat >>confdefs.h <<\_ACEOF
41302 #define HAVE_SYS_XATTR_H 1
41303 _ACEOF
41304
41305 fi
41306
41307
41308
41309
41310
41311 for ac_func in llistxattr lgetxattr lsetxattr
41312 do
41313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41317   echo $ECHO_N "(cached) $ECHO_C" >&6
41318 else
41319   cat >conftest.$ac_ext <<_ACEOF
41320 /* confdefs.h.  */
41321 _ACEOF
41322 cat confdefs.h >>conftest.$ac_ext
41323 cat >>conftest.$ac_ext <<_ACEOF
41324 /* end confdefs.h.  */
41325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41327 #define $ac_func innocuous_$ac_func
41328
41329 /* System header to define __stub macros and hopefully few prototypes,
41330     which can conflict with char $ac_func (); below.
41331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41332     <limits.h> exists even on freestanding compilers.  */
41333
41334 #ifdef __STDC__
41335 # include <limits.h>
41336 #else
41337 # include <assert.h>
41338 #endif
41339
41340 #undef $ac_func
41341
41342 /* Override any GCC internal prototype to avoid an error.
41343    Use char because int might match the return type of a GCC
41344    builtin and then its argument prototype would still apply.  */
41345 #ifdef __cplusplus
41346 extern "C"
41347 #endif
41348 char $ac_func ();
41349 /* The GNU C library defines this for functions which it implements
41350     to always fail with ENOSYS.  Some functions are actually named
41351     something starting with __ and the normal name is an alias.  */
41352 #if defined __stub_$ac_func || defined __stub___$ac_func
41353 choke me
41354 #endif
41355
41356 int
41357 main ()
41358 {
41359 return $ac_func ();
41360   ;
41361   return 0;
41362 }
41363 _ACEOF
41364 rm -f conftest.$ac_objext conftest$ac_exeext
41365 if { (ac_try="$ac_link"
41366 case "(($ac_try" in
41367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41368   *) ac_try_echo=$ac_try;;
41369 esac
41370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41371   (eval "$ac_link") 2>conftest.er1
41372   ac_status=$?
41373   grep -v '^ *+' conftest.er1 >conftest.err
41374   rm -f conftest.er1
41375   cat conftest.err >&5
41376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377   (exit $ac_status); } && {
41378          test -z "$ac_c_werror_flag" ||
41379          test ! -s conftest.err
41380        } && test -s conftest$ac_exeext &&
41381        $as_test_x conftest$ac_exeext; then
41382   eval "$as_ac_var=yes"
41383 else
41384   echo "$as_me: failed program was:" >&5
41385 sed 's/^/| /' conftest.$ac_ext >&5
41386
41387         eval "$as_ac_var=no"
41388 fi
41389
41390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41391       conftest$ac_exeext conftest.$ac_ext
41392 fi
41393 ac_res=`eval echo '${'$as_ac_var'}'`
41394                { echo "$as_me:$LINENO: result: $ac_res" >&5
41395 echo "${ECHO_T}$ac_res" >&6; }
41396 if test `eval echo '${'$as_ac_var'}'` = yes; then
41397   cat >>confdefs.h <<_ACEOF
41398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41399 _ACEOF
41400
41401           have_xattr=yes
41402
41403 cat >>confdefs.h <<\_ACEOF
41404 #define HAVE_LLISTXATTR
41405 _ACEOF
41406
41407
41408 cat >>confdefs.h <<\_ACEOF
41409 #define HAVE_LGETXATTR
41410 _ACEOF
41411
41412
41413 cat >>confdefs.h <<\_ACEOF
41414 #define HAVE_LSETXATTR
41415 _ACEOF
41416
41417
41418
41419 fi
41420 done
41421
41422
41423    #
41424    # OSX specific
41425    #
41426    if test $have_xattr = no; then
41427
41428
41429
41430 for ac_func in listxattr getxattr setxattr
41431 do
41432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41436   echo $ECHO_N "(cached) $ECHO_C" >&6
41437 else
41438   cat >conftest.$ac_ext <<_ACEOF
41439 /* confdefs.h.  */
41440 _ACEOF
41441 cat confdefs.h >>conftest.$ac_ext
41442 cat >>conftest.$ac_ext <<_ACEOF
41443 /* end confdefs.h.  */
41444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41446 #define $ac_func innocuous_$ac_func
41447
41448 /* System header to define __stub macros and hopefully few prototypes,
41449     which can conflict with char $ac_func (); below.
41450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41451     <limits.h> exists even on freestanding compilers.  */
41452
41453 #ifdef __STDC__
41454 # include <limits.h>
41455 #else
41456 # include <assert.h>
41457 #endif
41458
41459 #undef $ac_func
41460
41461 /* Override any GCC internal prototype to avoid an error.
41462    Use char because int might match the return type of a GCC
41463    builtin and then its argument prototype would still apply.  */
41464 #ifdef __cplusplus
41465 extern "C"
41466 #endif
41467 char $ac_func ();
41468 /* The GNU C library defines this for functions which it implements
41469     to always fail with ENOSYS.  Some functions are actually named
41470     something starting with __ and the normal name is an alias.  */
41471 #if defined __stub_$ac_func || defined __stub___$ac_func
41472 choke me
41473 #endif
41474
41475 int
41476 main ()
41477 {
41478 return $ac_func ();
41479   ;
41480   return 0;
41481 }
41482 _ACEOF
41483 rm -f conftest.$ac_objext conftest$ac_exeext
41484 if { (ac_try="$ac_link"
41485 case "(($ac_try" in
41486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41487   *) ac_try_echo=$ac_try;;
41488 esac
41489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41490   (eval "$ac_link") 2>conftest.er1
41491   ac_status=$?
41492   grep -v '^ *+' conftest.er1 >conftest.err
41493   rm -f conftest.er1
41494   cat conftest.err >&5
41495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41496   (exit $ac_status); } && {
41497          test -z "$ac_c_werror_flag" ||
41498          test ! -s conftest.err
41499        } && test -s conftest$ac_exeext &&
41500        $as_test_x conftest$ac_exeext; then
41501   eval "$as_ac_var=yes"
41502 else
41503   echo "$as_me: failed program was:" >&5
41504 sed 's/^/| /' conftest.$ac_ext >&5
41505
41506         eval "$as_ac_var=no"
41507 fi
41508
41509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41510       conftest$ac_exeext conftest.$ac_ext
41511 fi
41512 ac_res=`eval echo '${'$as_ac_var'}'`
41513                { echo "$as_me:$LINENO: result: $ac_res" >&5
41514 echo "${ECHO_T}$ac_res" >&6; }
41515 if test `eval echo '${'$as_ac_var'}'` = yes; then
41516   cat >>confdefs.h <<_ACEOF
41517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41518 _ACEOF
41519
41520              have_xattr=yes
41521
41522 cat >>confdefs.h <<\_ACEOF
41523 #define HAVE_LLISTXATTR
41524 _ACEOF
41525
41526
41527 cat >>confdefs.h <<\_ACEOF
41528 #define HAVE_LGETXATTR
41529 _ACEOF
41530
41531
41532 cat >>confdefs.h <<\_ACEOF
41533 #define HAVE_LSETXATTR
41534 _ACEOF
41535
41536
41537
41538 fi
41539 done
41540
41541    fi
41542
41543    #
41544    # Solaris specific
41545    #
41546    if test $have_xattr = no; then
41547       if test "${ac_cv_header_sys_attr_h+set}" = set; then
41548   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41549 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41550 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41551   echo $ECHO_N "(cached) $ECHO_C" >&6
41552 fi
41553 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41554 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41555 else
41556   # Is the header compilable?
41557 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
41558 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
41559 cat >conftest.$ac_ext <<_ACEOF
41560 /* confdefs.h.  */
41561 _ACEOF
41562 cat confdefs.h >>conftest.$ac_ext
41563 cat >>conftest.$ac_ext <<_ACEOF
41564 /* end confdefs.h.  */
41565 $ac_includes_default
41566 #include <sys/attr.h>
41567 _ACEOF
41568 rm -f conftest.$ac_objext
41569 if { (ac_try="$ac_compile"
41570 case "(($ac_try" in
41571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41572   *) ac_try_echo=$ac_try;;
41573 esac
41574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41575   (eval "$ac_compile") 2>conftest.er1
41576   ac_status=$?
41577   grep -v '^ *+' conftest.er1 >conftest.err
41578   rm -f conftest.er1
41579   cat conftest.err >&5
41580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41581   (exit $ac_status); } && {
41582          test -z "$ac_c_werror_flag" ||
41583          test ! -s conftest.err
41584        } && test -s conftest.$ac_objext; then
41585   ac_header_compiler=yes
41586 else
41587   echo "$as_me: failed program was:" >&5
41588 sed 's/^/| /' conftest.$ac_ext >&5
41589
41590         ac_header_compiler=no
41591 fi
41592
41593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41595 echo "${ECHO_T}$ac_header_compiler" >&6; }
41596
41597 # Is the header present?
41598 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
41599 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
41600 cat >conftest.$ac_ext <<_ACEOF
41601 /* confdefs.h.  */
41602 _ACEOF
41603 cat confdefs.h >>conftest.$ac_ext
41604 cat >>conftest.$ac_ext <<_ACEOF
41605 /* end confdefs.h.  */
41606 #include <sys/attr.h>
41607 _ACEOF
41608 if { (ac_try="$ac_cpp conftest.$ac_ext"
41609 case "(($ac_try" in
41610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41611   *) ac_try_echo=$ac_try;;
41612 esac
41613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41615   ac_status=$?
41616   grep -v '^ *+' conftest.er1 >conftest.err
41617   rm -f conftest.er1
41618   cat conftest.err >&5
41619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41620   (exit $ac_status); } >/dev/null && {
41621          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41622          test ! -s conftest.err
41623        }; then
41624   ac_header_preproc=yes
41625 else
41626   echo "$as_me: failed program was:" >&5
41627 sed 's/^/| /' conftest.$ac_ext >&5
41628
41629   ac_header_preproc=no
41630 fi
41631
41632 rm -f conftest.err conftest.$ac_ext
41633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41634 echo "${ECHO_T}$ac_header_preproc" >&6; }
41635
41636 # So?  What about this header?
41637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41638   yes:no: )
41639     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41640 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41641     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
41642 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
41643     ac_header_preproc=yes
41644     ;;
41645   no:yes:* )
41646     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
41647 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
41648     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
41649 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
41650     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
41651 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
41652     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41653 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41654     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
41655 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
41656     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
41657 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
41658
41659     ;;
41660 esac
41661 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41662 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41663 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41664   echo $ECHO_N "(cached) $ECHO_C" >&6
41665 else
41666   ac_cv_header_sys_attr_h=$ac_header_preproc
41667 fi
41668 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41669 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41670
41671 fi
41672 if test $ac_cv_header_sys_attr_h = yes; then
41673
41674 cat >>confdefs.h <<\_ACEOF
41675 #define HAVE_SYS_ATTR_H 1
41676 _ACEOF
41677
41678 fi
41679
41680
41681       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41682   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41683 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41684 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41685   echo $ECHO_N "(cached) $ECHO_C" >&6
41686 fi
41687 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41688 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41689 else
41690   # Is the header compilable?
41691 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
41692 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
41693 cat >conftest.$ac_ext <<_ACEOF
41694 /* confdefs.h.  */
41695 _ACEOF
41696 cat confdefs.h >>conftest.$ac_ext
41697 cat >>conftest.$ac_ext <<_ACEOF
41698 /* end confdefs.h.  */
41699 $ac_includes_default
41700 #include <sys/nvpair.h>
41701 _ACEOF
41702 rm -f conftest.$ac_objext
41703 if { (ac_try="$ac_compile"
41704 case "(($ac_try" in
41705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41706   *) ac_try_echo=$ac_try;;
41707 esac
41708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41709   (eval "$ac_compile") 2>conftest.er1
41710   ac_status=$?
41711   grep -v '^ *+' conftest.er1 >conftest.err
41712   rm -f conftest.er1
41713   cat conftest.err >&5
41714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715   (exit $ac_status); } && {
41716          test -z "$ac_c_werror_flag" ||
41717          test ! -s conftest.err
41718        } && test -s conftest.$ac_objext; then
41719   ac_header_compiler=yes
41720 else
41721   echo "$as_me: failed program was:" >&5
41722 sed 's/^/| /' conftest.$ac_ext >&5
41723
41724         ac_header_compiler=no
41725 fi
41726
41727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41729 echo "${ECHO_T}$ac_header_compiler" >&6; }
41730
41731 # Is the header present?
41732 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
41733 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
41734 cat >conftest.$ac_ext <<_ACEOF
41735 /* confdefs.h.  */
41736 _ACEOF
41737 cat confdefs.h >>conftest.$ac_ext
41738 cat >>conftest.$ac_ext <<_ACEOF
41739 /* end confdefs.h.  */
41740 #include <sys/nvpair.h>
41741 _ACEOF
41742 if { (ac_try="$ac_cpp conftest.$ac_ext"
41743 case "(($ac_try" in
41744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41745   *) ac_try_echo=$ac_try;;
41746 esac
41747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41748   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41749   ac_status=$?
41750   grep -v '^ *+' conftest.er1 >conftest.err
41751   rm -f conftest.er1
41752   cat conftest.err >&5
41753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41754   (exit $ac_status); } >/dev/null && {
41755          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41756          test ! -s conftest.err
41757        }; then
41758   ac_header_preproc=yes
41759 else
41760   echo "$as_me: failed program was:" >&5
41761 sed 's/^/| /' conftest.$ac_ext >&5
41762
41763   ac_header_preproc=no
41764 fi
41765
41766 rm -f conftest.err conftest.$ac_ext
41767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41768 echo "${ECHO_T}$ac_header_preproc" >&6; }
41769
41770 # So?  What about this header?
41771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41772   yes:no: )
41773     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
41774 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41775     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
41776 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
41777     ac_header_preproc=yes
41778     ;;
41779   no:yes:* )
41780     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
41781 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
41782     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
41783 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
41784     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
41785 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
41786     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
41787 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41788     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
41789 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
41790     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
41791 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
41792
41793     ;;
41794 esac
41795 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41796 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41797 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41798   echo $ECHO_N "(cached) $ECHO_C" >&6
41799 else
41800   ac_cv_header_sys_nvpair_h=$ac_header_preproc
41801 fi
41802 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41803 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41804
41805 fi
41806 if test $ac_cv_header_sys_nvpair_h = yes; then
41807
41808 cat >>confdefs.h <<\_ACEOF
41809 #define HAVE_SYS_NVPAIR_H 1
41810 _ACEOF
41811
41812 fi
41813
41814
41815       if test "${ac_cv_header_attr_h+set}" = set; then
41816   { echo "$as_me:$LINENO: checking for attr.h" >&5
41817 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41818 if test "${ac_cv_header_attr_h+set}" = set; then
41819   echo $ECHO_N "(cached) $ECHO_C" >&6
41820 fi
41821 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41822 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41823 else
41824   # Is the header compilable?
41825 { echo "$as_me:$LINENO: checking attr.h usability" >&5
41826 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
41827 cat >conftest.$ac_ext <<_ACEOF
41828 /* confdefs.h.  */
41829 _ACEOF
41830 cat confdefs.h >>conftest.$ac_ext
41831 cat >>conftest.$ac_ext <<_ACEOF
41832 /* end confdefs.h.  */
41833 $ac_includes_default
41834 #include <attr.h>
41835 _ACEOF
41836 rm -f conftest.$ac_objext
41837 if { (ac_try="$ac_compile"
41838 case "(($ac_try" in
41839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41840   *) ac_try_echo=$ac_try;;
41841 esac
41842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41843   (eval "$ac_compile") 2>conftest.er1
41844   ac_status=$?
41845   grep -v '^ *+' conftest.er1 >conftest.err
41846   rm -f conftest.er1
41847   cat conftest.err >&5
41848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849   (exit $ac_status); } && {
41850          test -z "$ac_c_werror_flag" ||
41851          test ! -s conftest.err
41852        } && test -s conftest.$ac_objext; then
41853   ac_header_compiler=yes
41854 else
41855   echo "$as_me: failed program was:" >&5
41856 sed 's/^/| /' conftest.$ac_ext >&5
41857
41858         ac_header_compiler=no
41859 fi
41860
41861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41863 echo "${ECHO_T}$ac_header_compiler" >&6; }
41864
41865 # Is the header present?
41866 { echo "$as_me:$LINENO: checking attr.h presence" >&5
41867 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
41868 cat >conftest.$ac_ext <<_ACEOF
41869 /* confdefs.h.  */
41870 _ACEOF
41871 cat confdefs.h >>conftest.$ac_ext
41872 cat >>conftest.$ac_ext <<_ACEOF
41873 /* end confdefs.h.  */
41874 #include <attr.h>
41875 _ACEOF
41876 if { (ac_try="$ac_cpp conftest.$ac_ext"
41877 case "(($ac_try" in
41878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41879   *) ac_try_echo=$ac_try;;
41880 esac
41881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41883   ac_status=$?
41884   grep -v '^ *+' conftest.er1 >conftest.err
41885   rm -f conftest.er1
41886   cat conftest.err >&5
41887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41888   (exit $ac_status); } >/dev/null && {
41889          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41890          test ! -s conftest.err
41891        }; then
41892   ac_header_preproc=yes
41893 else
41894   echo "$as_me: failed program was:" >&5
41895 sed 's/^/| /' conftest.$ac_ext >&5
41896
41897   ac_header_preproc=no
41898 fi
41899
41900 rm -f conftest.err conftest.$ac_ext
41901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41902 echo "${ECHO_T}$ac_header_preproc" >&6; }
41903
41904 # So?  What about this header?
41905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41906   yes:no: )
41907     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41908 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41909     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
41910 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
41911     ac_header_preproc=yes
41912     ;;
41913   no:yes:* )
41914     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
41915 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
41916     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
41917 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
41918     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
41919 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
41920     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41921 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41922     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
41923 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
41924     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
41925 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
41926
41927     ;;
41928 esac
41929 { echo "$as_me:$LINENO: checking for attr.h" >&5
41930 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41931 if test "${ac_cv_header_attr_h+set}" = set; then
41932   echo $ECHO_N "(cached) $ECHO_C" >&6
41933 else
41934   ac_cv_header_attr_h=$ac_header_preproc
41935 fi
41936 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41937 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41938
41939 fi
41940 if test $ac_cv_header_attr_h = yes; then
41941
41942 cat >>confdefs.h <<\_ACEOF
41943 #define HAVE_ATTR_H 1
41944 _ACEOF
41945
41946 fi
41947
41948
41949
41950
41951
41952
41953
41954
41955 for ac_func in openat fstatat unlinkat fchownat futimesat
41956 do
41957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41961   echo $ECHO_N "(cached) $ECHO_C" >&6
41962 else
41963   cat >conftest.$ac_ext <<_ACEOF
41964 /* confdefs.h.  */
41965 _ACEOF
41966 cat confdefs.h >>conftest.$ac_ext
41967 cat >>conftest.$ac_ext <<_ACEOF
41968 /* end confdefs.h.  */
41969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41971 #define $ac_func innocuous_$ac_func
41972
41973 /* System header to define __stub macros and hopefully few prototypes,
41974     which can conflict with char $ac_func (); below.
41975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41976     <limits.h> exists even on freestanding compilers.  */
41977
41978 #ifdef __STDC__
41979 # include <limits.h>
41980 #else
41981 # include <assert.h>
41982 #endif
41983
41984 #undef $ac_func
41985
41986 /* Override any GCC internal prototype to avoid an error.
41987    Use char because int might match the return type of a GCC
41988    builtin and then its argument prototype would still apply.  */
41989 #ifdef __cplusplus
41990 extern "C"
41991 #endif
41992 char $ac_func ();
41993 /* The GNU C library defines this for functions which it implements
41994     to always fail with ENOSYS.  Some functions are actually named
41995     something starting with __ and the normal name is an alias.  */
41996 #if defined __stub_$ac_func || defined __stub___$ac_func
41997 choke me
41998 #endif
41999
42000 int
42001 main ()
42002 {
42003 return $ac_func ();
42004   ;
42005   return 0;
42006 }
42007 _ACEOF
42008 rm -f conftest.$ac_objext conftest$ac_exeext
42009 if { (ac_try="$ac_link"
42010 case "(($ac_try" in
42011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42012   *) ac_try_echo=$ac_try;;
42013 esac
42014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42015   (eval "$ac_link") 2>conftest.er1
42016   ac_status=$?
42017   grep -v '^ *+' conftest.er1 >conftest.err
42018   rm -f conftest.er1
42019   cat conftest.err >&5
42020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42021   (exit $ac_status); } && {
42022          test -z "$ac_c_werror_flag" ||
42023          test ! -s conftest.err
42024        } && test -s conftest$ac_exeext &&
42025        $as_test_x conftest$ac_exeext; then
42026   eval "$as_ac_var=yes"
42027 else
42028   echo "$as_me: failed program was:" >&5
42029 sed 's/^/| /' conftest.$ac_ext >&5
42030
42031         eval "$as_ac_var=no"
42032 fi
42033
42034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42035       conftest$ac_exeext conftest.$ac_ext
42036 fi
42037 ac_res=`eval echo '${'$as_ac_var'}'`
42038                { echo "$as_me:$LINENO: result: $ac_res" >&5
42039 echo "${ECHO_T}$ac_res" >&6; }
42040 if test `eval echo '${'$as_ac_var'}'` = yes; then
42041   cat >>confdefs.h <<_ACEOF
42042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42043 _ACEOF
42044
42045              have_xattr=yes
42046
42047 cat >>confdefs.h <<\_ACEOF
42048 #define HAVE_OPENAT
42049 _ACEOF
42050
42051
42052 cat >>confdefs.h <<\_ACEOF
42053 #define HAVE_FSTATAT
42054 _ACEOF
42055
42056
42057 cat >>confdefs.h <<\_ACEOF
42058 #define HAVE_UNLINKAT
42059 _ACEOF
42060
42061
42062 cat >>confdefs.h <<\_ACEOF
42063 #define HAVE_FCHOWNAT
42064 _ACEOF
42065
42066
42067 cat >>confdefs.h <<\_ACEOF
42068 #define HAVE_FUTIMESAT
42069 _ACEOF
42070
42071
42072
42073 fi
42074 done
42075
42076
42077       if test $have_xattr = yes; then
42078          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42079 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42080 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42081   echo $ECHO_N "(cached) $ECHO_C" >&6
42082 else
42083   ac_check_lib_save_LIBS=$LIBS
42084 LIBS="-lnvpair  $LIBS"
42085 cat >conftest.$ac_ext <<_ACEOF
42086 /* confdefs.h.  */
42087 _ACEOF
42088 cat confdefs.h >>conftest.$ac_ext
42089 cat >>conftest.$ac_ext <<_ACEOF
42090 /* end confdefs.h.  */
42091
42092 /* Override any GCC internal prototype to avoid an error.
42093    Use char because int might match the return type of a GCC
42094    builtin and then its argument prototype would still apply.  */
42095 #ifdef __cplusplus
42096 extern "C"
42097 #endif
42098 char nvlist_next_nvpair ();
42099 int
42100 main ()
42101 {
42102 return nvlist_next_nvpair ();
42103   ;
42104   return 0;
42105 }
42106 _ACEOF
42107 rm -f conftest.$ac_objext conftest$ac_exeext
42108 if { (ac_try="$ac_link"
42109 case "(($ac_try" in
42110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42111   *) ac_try_echo=$ac_try;;
42112 esac
42113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42114   (eval "$ac_link") 2>conftest.er1
42115   ac_status=$?
42116   grep -v '^ *+' conftest.er1 >conftest.err
42117   rm -f conftest.er1
42118   cat conftest.err >&5
42119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42120   (exit $ac_status); } && {
42121          test -z "$ac_c_werror_flag" ||
42122          test ! -s conftest.err
42123        } && test -s conftest$ac_exeext &&
42124        $as_test_x conftest$ac_exeext; then
42125   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42126 else
42127   echo "$as_me: failed program was:" >&5
42128 sed 's/^/| /' conftest.$ac_ext >&5
42129
42130         ac_cv_lib_nvpair_nvlist_next_nvpair=no
42131 fi
42132
42133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42134       conftest$ac_exeext conftest.$ac_ext
42135 LIBS=$ac_check_lib_save_LIBS
42136 fi
42137 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42138 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42139 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42140
42141                 FDLIBS="-lnvpair $FDLIBS"
42142
42143
42144 fi
42145
42146       fi
42147    fi
42148
42149    if test x$support_xattr = xyes -a $have_xattr != yes; then
42150       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
42151   please either load the xattr libraries or rerun configure without --enable-xatt" >&5
42152 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
42153   please either load the xattr libraries or rerun configure without --enable-xatt" >&2;}
42154    { (exit 1); exit 1; }; }
42155    else
42156       if test $have_xattr = yes; then
42157
42158 cat >>confdefs.h <<\_ACEOF
42159 #define HAVE_XATTR
42160 _ACEOF
42161
42162       fi
42163    fi
42164 fi
42165
42166 PTHREAD_LIB=""
42167 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42168 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42169 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42170   echo $ECHO_N "(cached) $ECHO_C" >&6
42171 else
42172   ac_check_lib_save_LIBS=$LIBS
42173 LIBS="-lpthread  $LIBS"
42174 cat >conftest.$ac_ext <<_ACEOF
42175 /* confdefs.h.  */
42176 _ACEOF
42177 cat confdefs.h >>conftest.$ac_ext
42178 cat >>conftest.$ac_ext <<_ACEOF
42179 /* end confdefs.h.  */
42180
42181 /* Override any GCC internal prototype to avoid an error.
42182    Use char because int might match the return type of a GCC
42183    builtin and then its argument prototype would still apply.  */
42184 #ifdef __cplusplus
42185 extern "C"
42186 #endif
42187 char pthread_create ();
42188 int
42189 main ()
42190 {
42191 return pthread_create ();
42192   ;
42193   return 0;
42194 }
42195 _ACEOF
42196 rm -f conftest.$ac_objext conftest$ac_exeext
42197 if { (ac_try="$ac_link"
42198 case "(($ac_try" in
42199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42200   *) ac_try_echo=$ac_try;;
42201 esac
42202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42203   (eval "$ac_link") 2>conftest.er1
42204   ac_status=$?
42205   grep -v '^ *+' conftest.er1 >conftest.err
42206   rm -f conftest.er1
42207   cat conftest.err >&5
42208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42209   (exit $ac_status); } && {
42210          test -z "$ac_c_werror_flag" ||
42211          test ! -s conftest.err
42212        } && test -s conftest$ac_exeext &&
42213        $as_test_x conftest$ac_exeext; then
42214   ac_cv_lib_pthread_pthread_create=yes
42215 else
42216   echo "$as_me: failed program was:" >&5
42217 sed 's/^/| /' conftest.$ac_ext >&5
42218
42219         ac_cv_lib_pthread_pthread_create=no
42220 fi
42221
42222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42223       conftest$ac_exeext conftest.$ac_ext
42224 LIBS=$ac_check_lib_save_LIBS
42225 fi
42226 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42227 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42228 if test $ac_cv_lib_pthread_pthread_create = yes; then
42229   PTHREAD_LIB="-lpthread"
42230 else
42231
42232        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42233 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42234 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42235   echo $ECHO_N "(cached) $ECHO_C" >&6
42236 else
42237   ac_check_lib_save_LIBS=$LIBS
42238 LIBS="-lpthreads  $LIBS"
42239 cat >conftest.$ac_ext <<_ACEOF
42240 /* confdefs.h.  */
42241 _ACEOF
42242 cat confdefs.h >>conftest.$ac_ext
42243 cat >>conftest.$ac_ext <<_ACEOF
42244 /* end confdefs.h.  */
42245
42246 /* Override any GCC internal prototype to avoid an error.
42247    Use char because int might match the return type of a GCC
42248    builtin and then its argument prototype would still apply.  */
42249 #ifdef __cplusplus
42250 extern "C"
42251 #endif
42252 char pthread_create ();
42253 int
42254 main ()
42255 {
42256 return pthread_create ();
42257   ;
42258   return 0;
42259 }
42260 _ACEOF
42261 rm -f conftest.$ac_objext conftest$ac_exeext
42262 if { (ac_try="$ac_link"
42263 case "(($ac_try" in
42264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42265   *) ac_try_echo=$ac_try;;
42266 esac
42267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42268   (eval "$ac_link") 2>conftest.er1
42269   ac_status=$?
42270   grep -v '^ *+' conftest.er1 >conftest.err
42271   rm -f conftest.er1
42272   cat conftest.err >&5
42273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42274   (exit $ac_status); } && {
42275          test -z "$ac_c_werror_flag" ||
42276          test ! -s conftest.err
42277        } && test -s conftest$ac_exeext &&
42278        $as_test_x conftest$ac_exeext; then
42279   ac_cv_lib_pthreads_pthread_create=yes
42280 else
42281   echo "$as_me: failed program was:" >&5
42282 sed 's/^/| /' conftest.$ac_ext >&5
42283
42284         ac_cv_lib_pthreads_pthread_create=no
42285 fi
42286
42287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42288       conftest$ac_exeext conftest.$ac_ext
42289 LIBS=$ac_check_lib_save_LIBS
42290 fi
42291 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42292 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42293 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42294   PTHREAD_LIB="-lpthreads"
42295 else
42296
42297               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42298 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42299 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42300   echo $ECHO_N "(cached) $ECHO_C" >&6
42301 else
42302   ac_check_lib_save_LIBS=$LIBS
42303 LIBS="-lc_r  $LIBS"
42304 cat >conftest.$ac_ext <<_ACEOF
42305 /* confdefs.h.  */
42306 _ACEOF
42307 cat confdefs.h >>conftest.$ac_ext
42308 cat >>conftest.$ac_ext <<_ACEOF
42309 /* end confdefs.h.  */
42310
42311 /* Override any GCC internal prototype to avoid an error.
42312    Use char because int might match the return type of a GCC
42313    builtin and then its argument prototype would still apply.  */
42314 #ifdef __cplusplus
42315 extern "C"
42316 #endif
42317 char pthread_create ();
42318 int
42319 main ()
42320 {
42321 return pthread_create ();
42322   ;
42323   return 0;
42324 }
42325 _ACEOF
42326 rm -f conftest.$ac_objext conftest$ac_exeext
42327 if { (ac_try="$ac_link"
42328 case "(($ac_try" in
42329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42330   *) ac_try_echo=$ac_try;;
42331 esac
42332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42333   (eval "$ac_link") 2>conftest.er1
42334   ac_status=$?
42335   grep -v '^ *+' conftest.er1 >conftest.err
42336   rm -f conftest.er1
42337   cat conftest.err >&5
42338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42339   (exit $ac_status); } && {
42340          test -z "$ac_c_werror_flag" ||
42341          test ! -s conftest.err
42342        } && test -s conftest$ac_exeext &&
42343        $as_test_x conftest$ac_exeext; then
42344   ac_cv_lib_c_r_pthread_create=yes
42345 else
42346   echo "$as_me: failed program was:" >&5
42347 sed 's/^/| /' conftest.$ac_ext >&5
42348
42349         ac_cv_lib_c_r_pthread_create=no
42350 fi
42351
42352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42353       conftest$ac_exeext conftest.$ac_ext
42354 LIBS=$ac_check_lib_save_LIBS
42355 fi
42356 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
42357 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
42358 if test $ac_cv_lib_c_r_pthread_create = yes; then
42359   PTHREAD_LIB="-lc_r"
42360 else
42361
42362                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
42363 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
42364 if test "${ac_cv_func_pthread_create+set}" = set; then
42365   echo $ECHO_N "(cached) $ECHO_C" >&6
42366 else
42367   cat >conftest.$ac_ext <<_ACEOF
42368 /* confdefs.h.  */
42369 _ACEOF
42370 cat confdefs.h >>conftest.$ac_ext
42371 cat >>conftest.$ac_ext <<_ACEOF
42372 /* end confdefs.h.  */
42373 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
42374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42375 #define pthread_create innocuous_pthread_create
42376
42377 /* System header to define __stub macros and hopefully few prototypes,
42378     which can conflict with char pthread_create (); below.
42379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42380     <limits.h> exists even on freestanding compilers.  */
42381
42382 #ifdef __STDC__
42383 # include <limits.h>
42384 #else
42385 # include <assert.h>
42386 #endif
42387
42388 #undef pthread_create
42389
42390 /* Override any GCC internal prototype to avoid an error.
42391    Use char because int might match the return type of a GCC
42392    builtin and then its argument prototype would still apply.  */
42393 #ifdef __cplusplus
42394 extern "C"
42395 #endif
42396 char pthread_create ();
42397 /* The GNU C library defines this for functions which it implements
42398     to always fail with ENOSYS.  Some functions are actually named
42399     something starting with __ and the normal name is an alias.  */
42400 #if defined __stub_pthread_create || defined __stub___pthread_create
42401 choke me
42402 #endif
42403
42404 int
42405 main ()
42406 {
42407 return pthread_create ();
42408   ;
42409   return 0;
42410 }
42411 _ACEOF
42412 rm -f conftest.$ac_objext conftest$ac_exeext
42413 if { (ac_try="$ac_link"
42414 case "(($ac_try" in
42415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42416   *) ac_try_echo=$ac_try;;
42417 esac
42418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42419   (eval "$ac_link") 2>conftest.er1
42420   ac_status=$?
42421   grep -v '^ *+' conftest.er1 >conftest.err
42422   rm -f conftest.er1
42423   cat conftest.err >&5
42424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42425   (exit $ac_status); } && {
42426          test -z "$ac_c_werror_flag" ||
42427          test ! -s conftest.err
42428        } && test -s conftest$ac_exeext &&
42429        $as_test_x conftest$ac_exeext; then
42430   ac_cv_func_pthread_create=yes
42431 else
42432   echo "$as_me: failed program was:" >&5
42433 sed 's/^/| /' conftest.$ac_ext >&5
42434
42435         ac_cv_func_pthread_create=no
42436 fi
42437
42438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42439       conftest$ac_exeext conftest.$ac_ext
42440 fi
42441 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
42442 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
42443
42444
42445
42446 fi
42447
42448
42449
42450 fi
42451
42452
42453
42454 fi
42455
42456
42457
42458
42459 for ac_header in sys/prctl.h sys/capability.h
42460 do
42461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42463   { echo "$as_me:$LINENO: checking for $ac_header" >&5
42464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42466   echo $ECHO_N "(cached) $ECHO_C" >&6
42467 fi
42468 ac_res=`eval echo '${'$as_ac_Header'}'`
42469                { echo "$as_me:$LINENO: result: $ac_res" >&5
42470 echo "${ECHO_T}$ac_res" >&6; }
42471 else
42472   # Is the header compilable?
42473 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
42474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
42475 cat >conftest.$ac_ext <<_ACEOF
42476 /* confdefs.h.  */
42477 _ACEOF
42478 cat confdefs.h >>conftest.$ac_ext
42479 cat >>conftest.$ac_ext <<_ACEOF
42480 /* end confdefs.h.  */
42481 $ac_includes_default
42482 #include <$ac_header>
42483 _ACEOF
42484 rm -f conftest.$ac_objext
42485 if { (ac_try="$ac_compile"
42486 case "(($ac_try" in
42487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42488   *) ac_try_echo=$ac_try;;
42489 esac
42490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42491   (eval "$ac_compile") 2>conftest.er1
42492   ac_status=$?
42493   grep -v '^ *+' conftest.er1 >conftest.err
42494   rm -f conftest.er1
42495   cat conftest.err >&5
42496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42497   (exit $ac_status); } && {
42498          test -z "$ac_c_werror_flag" ||
42499          test ! -s conftest.err
42500        } && test -s conftest.$ac_objext; then
42501   ac_header_compiler=yes
42502 else
42503   echo "$as_me: failed program was:" >&5
42504 sed 's/^/| /' conftest.$ac_ext >&5
42505
42506         ac_header_compiler=no
42507 fi
42508
42509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42510 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42511 echo "${ECHO_T}$ac_header_compiler" >&6; }
42512
42513 # Is the header present?
42514 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
42515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
42516 cat >conftest.$ac_ext <<_ACEOF
42517 /* confdefs.h.  */
42518 _ACEOF
42519 cat confdefs.h >>conftest.$ac_ext
42520 cat >>conftest.$ac_ext <<_ACEOF
42521 /* end confdefs.h.  */
42522 #include <$ac_header>
42523 _ACEOF
42524 if { (ac_try="$ac_cpp conftest.$ac_ext"
42525 case "(($ac_try" in
42526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42527   *) ac_try_echo=$ac_try;;
42528 esac
42529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42530   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42531   ac_status=$?
42532   grep -v '^ *+' conftest.er1 >conftest.err
42533   rm -f conftest.er1
42534   cat conftest.err >&5
42535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42536   (exit $ac_status); } >/dev/null && {
42537          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42538          test ! -s conftest.err
42539        }; then
42540   ac_header_preproc=yes
42541 else
42542   echo "$as_me: failed program was:" >&5
42543 sed 's/^/| /' conftest.$ac_ext >&5
42544
42545   ac_header_preproc=no
42546 fi
42547
42548 rm -f conftest.err conftest.$ac_ext
42549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42550 echo "${ECHO_T}$ac_header_preproc" >&6; }
42551
42552 # So?  What about this header?
42553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42554   yes:no: )
42555     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42559     ac_header_preproc=yes
42560     ;;
42561   no:yes:* )
42562     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42564     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42565 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42566     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42568     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42569 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42572     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42574
42575     ;;
42576 esac
42577 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42580   echo $ECHO_N "(cached) $ECHO_C" >&6
42581 else
42582   eval "$as_ac_Header=\$ac_header_preproc"
42583 fi
42584 ac_res=`eval echo '${'$as_ac_Header'}'`
42585                { echo "$as_me:$LINENO: result: $ac_res" >&5
42586 echo "${ECHO_T}$ac_res" >&6; }
42587
42588 fi
42589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42590   cat >>confdefs.h <<_ACEOF
42591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42592 _ACEOF
42593
42594 fi
42595
42596 done
42597
42598
42599
42600 for ac_func in prctl setreuid
42601 do
42602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42606   echo $ECHO_N "(cached) $ECHO_C" >&6
42607 else
42608   cat >conftest.$ac_ext <<_ACEOF
42609 /* confdefs.h.  */
42610 _ACEOF
42611 cat confdefs.h >>conftest.$ac_ext
42612 cat >>conftest.$ac_ext <<_ACEOF
42613 /* end confdefs.h.  */
42614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42616 #define $ac_func innocuous_$ac_func
42617
42618 /* System header to define __stub macros and hopefully few prototypes,
42619     which can conflict with char $ac_func (); below.
42620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42621     <limits.h> exists even on freestanding compilers.  */
42622
42623 #ifdef __STDC__
42624 # include <limits.h>
42625 #else
42626 # include <assert.h>
42627 #endif
42628
42629 #undef $ac_func
42630
42631 /* Override any GCC internal prototype to avoid an error.
42632    Use char because int might match the return type of a GCC
42633    builtin and then its argument prototype would still apply.  */
42634 #ifdef __cplusplus
42635 extern "C"
42636 #endif
42637 char $ac_func ();
42638 /* The GNU C library defines this for functions which it implements
42639     to always fail with ENOSYS.  Some functions are actually named
42640     something starting with __ and the normal name is an alias.  */
42641 #if defined __stub_$ac_func || defined __stub___$ac_func
42642 choke me
42643 #endif
42644
42645 int
42646 main ()
42647 {
42648 return $ac_func ();
42649   ;
42650   return 0;
42651 }
42652 _ACEOF
42653 rm -f conftest.$ac_objext conftest$ac_exeext
42654 if { (ac_try="$ac_link"
42655 case "(($ac_try" in
42656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42657   *) ac_try_echo=$ac_try;;
42658 esac
42659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42660   (eval "$ac_link") 2>conftest.er1
42661   ac_status=$?
42662   grep -v '^ *+' conftest.er1 >conftest.err
42663   rm -f conftest.er1
42664   cat conftest.err >&5
42665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42666   (exit $ac_status); } && {
42667          test -z "$ac_c_werror_flag" ||
42668          test ! -s conftest.err
42669        } && test -s conftest$ac_exeext &&
42670        $as_test_x conftest$ac_exeext; then
42671   eval "$as_ac_var=yes"
42672 else
42673   echo "$as_me: failed program was:" >&5
42674 sed 's/^/| /' conftest.$ac_ext >&5
42675
42676         eval "$as_ac_var=no"
42677 fi
42678
42679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42680       conftest$ac_exeext conftest.$ac_ext
42681 fi
42682 ac_res=`eval echo '${'$as_ac_var'}'`
42683                { echo "$as_me:$LINENO: result: $ac_res" >&5
42684 echo "${ECHO_T}$ac_res" >&6; }
42685 if test `eval echo '${'$as_ac_var'}'` = yes; then
42686   cat >>confdefs.h <<_ACEOF
42687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42688 _ACEOF
42689
42690 fi
42691 done
42692
42693 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
42694 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
42695 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
42696   echo $ECHO_N "(cached) $ECHO_C" >&6
42697 else
42698   ac_check_lib_save_LIBS=$LIBS
42699 LIBS="-lcap  $LIBS"
42700 cat >conftest.$ac_ext <<_ACEOF
42701 /* confdefs.h.  */
42702 _ACEOF
42703 cat confdefs.h >>conftest.$ac_ext
42704 cat >>conftest.$ac_ext <<_ACEOF
42705 /* end confdefs.h.  */
42706
42707 /* Override any GCC internal prototype to avoid an error.
42708    Use char because int might match the return type of a GCC
42709    builtin and then its argument prototype would still apply.  */
42710 #ifdef __cplusplus
42711 extern "C"
42712 #endif
42713 char cap_set_proc ();
42714 int
42715 main ()
42716 {
42717 return cap_set_proc ();
42718   ;
42719   return 0;
42720 }
42721 _ACEOF
42722 rm -f conftest.$ac_objext conftest$ac_exeext
42723 if { (ac_try="$ac_link"
42724 case "(($ac_try" in
42725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42726   *) ac_try_echo=$ac_try;;
42727 esac
42728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42729   (eval "$ac_link") 2>conftest.er1
42730   ac_status=$?
42731   grep -v '^ *+' conftest.er1 >conftest.err
42732   rm -f conftest.er1
42733   cat conftest.err >&5
42734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42735   (exit $ac_status); } && {
42736          test -z "$ac_c_werror_flag" ||
42737          test ! -s conftest.err
42738        } && test -s conftest$ac_exeext &&
42739        $as_test_x conftest$ac_exeext; then
42740   ac_cv_lib_cap_cap_set_proc=yes
42741 else
42742   echo "$as_me: failed program was:" >&5
42743 sed 's/^/| /' conftest.$ac_ext >&5
42744
42745         ac_cv_lib_cap_cap_set_proc=no
42746 fi
42747
42748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42749       conftest$ac_exeext conftest.$ac_ext
42750 LIBS=$ac_check_lib_save_LIBS
42751 fi
42752 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
42753 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
42754 if test $ac_cv_lib_cap_cap_set_proc = yes; then
42755   CAP_LIBS="-lcap"
42756 else
42757   CAP_LIBS=
42758 fi
42759
42760 if test x$CAP_LIBS = x-lcap; then
42761
42762 cat >>confdefs.h <<\_ACEOF
42763 #define HAVE_LIBCAP 1
42764 _ACEOF
42765
42766 fi
42767
42768
42769
42770 cat >>confdefs.h <<\_ACEOF
42771 #define FDLIBS 1
42772 _ACEOF
42773
42774
42775 CFLAGS=${CFLAGS--O}
42776
42777 if test x$have_gcc = xyes ; then
42778    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42779    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42780 fi
42781 LDFLAGS=${LDFLAGS--O}
42782 DB_LIBS="${SQL_LFLAGS}"
42783 CPPFLAGS="$CPPFLAGS"
42784 CFLAGS="$CFLAGS"
42785
42786
42787
42788
42789
42790
42791
42792
42793
42794
42795
42796
42797
42798
42799
42800
42801 OBJLIST=
42802
42803
42804 lld="lld"
42805 llu="llu"
42806
42807 WCFLAGS=
42808 WLDFLAGS=
42809
42810 PFILES="platforms/Makefile"
42811 PSCMD="ps -e"
42812 WIN32=
42813 MACOSX=
42814
42815 hostname=`uname -n | cut -d '.' -f 1`
42816 if test x${hostname} = x ; then
42817    hostname="localhost"
42818 fi
42819 ping -c 1 $hostname 2>/dev/null 1>/dev/null
42820 if test ! $? = 0; then
42821   hostname="localhost"
42822 fi
42823
42824 case "$DISTNAME" in
42825 aix)
42826    DISTVER=`uname -r`
42827    PSCMD="ps -e -o pid,comm"
42828    PFILES="${PFILES} \
42829       platforms/aix/Makefile"
42830    TAPEDRIVE="/dev/rmt0.1"
42831   ;;
42832 alpha)
42833    DISTVER=`uname -r`
42834    PTHREAD_LIB="-lpthread -lexc"
42835    if test "${CC}" = "gcc" ; then
42836       lld="lld"
42837       llu="llu"
42838    else
42839       lld="ld"
42840       llu="lu"
42841    fi
42842    TAPEDRIVE="/dev/nrmt0"
42843   ;;
42844 bsdi)
42845    DISTVER=`uname -a |awk '{print $3}'`
42846    TAPEDRIVE="/dev/nrmt0"
42847    PTHREAD_LIB="-pthread"
42848    CFLAGS="${CFLAGS} -pthread"
42849    PSCMD="ps -ax -o pid,command"
42850    lld="qd"
42851    llu="qu"
42852    PFILES="${PFILES} \
42853        platforms/bsdi/Makefile \
42854        platforms/bsdi/bacula-fd \
42855        platforms/bsdi/bacula-sd \
42856        platforms/bsdi/bacula-dir"
42857    largefile_support="yes"
42858   ;;
42859 cygwin)
42860    DISTVER=`uname -a |awk '{print $3}'`
42861    TAPEDRIVE="/dev/nrst0"
42862    WIN32=win32
42863    WCFLAGS="-mwindows"
42864    WLDFLAGS="-mwindows"
42865   ;;
42866 darwin)
42867    DISTVER=`uname -r`
42868    TAPEDRIVE="/dev/nst0"
42869    PSCMD="ps -e -o pid,command"
42870    MACOSX=macosx
42871    PFILES="${PFILES} \
42872       platforms/darwin/Makefile"
42873   ;;
42874 osx)
42875    DISTVER=`uname -r`
42876    TAPEDRIVE="/dev/nst0"
42877    PSCMD="ps -e -o pid,command"
42878    MACOSX=macosx
42879    PFILES="${PFILES} \
42880       platforms/osx/Makefile"
42881   ;;
42882 debian)
42883    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
42884       DISTNAME="ubuntu"
42885    fi
42886    DISTVER=`cat /etc/debian_version`
42887    if test -f /etc/lsb-release ; then
42888       . /etc/lsb-release
42889       if test "x$DISTRIB_ID" != "x" ; then
42890          DISTNAME=$DISTRIB_ID
42891       fi
42892       if test "x$DISTRIB_RELEASE" != "x" ; then
42893          DISTVER=$DISTRIB_RELEASE
42894       fi
42895    fi
42896    if test "$DISTNAME" = "Ubuntu" ; then
42897       DISTNAME="ubuntu"
42898    fi
42899    TAPEDRIVE="/dev/nst0"
42900    PSCMD="ps -e -o pid,command"
42901    if test "$DISTNAME" = "ubuntu" ; then
42902       PFILES="${PFILES} \
42903          platforms/ubuntu/Makefile \
42904          platforms/ubuntu/bacula-fd \
42905          platforms/ubuntu/bacula-sd \
42906          platforms/ubuntu/bacula-dir"
42907    else
42908       PFILES="${PFILES} \
42909          platforms/debian/Makefile \
42910          platforms/debian/bacula-fd \
42911          platforms/debian/bacula-sd \
42912          platforms/debian/bacula-dir"
42913    fi
42914   ;;
42915 freebsd)
42916    DISTVER=`uname -a |awk '{print $3}'`
42917    VER=`echo $DISTVER | cut -c 1`
42918    if test x$VER = x4 ; then
42919       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
42920       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
42921    fi
42922    lld="qd"
42923    llu="qu"
42924    TAPEDRIVE="/dev/nrsa0"
42925    PSCMD="ps -ax -o pid,command"
42926    PFILES="${PFILES} \
42927        platforms/freebsd/Makefile \
42928        platforms/freebsd/bacula-fd \
42929        platforms/freebsd/bacula-sd \
42930        platforms/freebsd/bacula-dir"
42931    largefile_support="yes"
42932   ;;
42933 hpux)
42934    PSCMD="UNIX95=1; ps -e -o pid,comm"
42935    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
42936    DISTVER=`uname -r`
42937    TAPEDRIVE="/dev/rmt/0hnb"
42938    PTHREAD_LIB="-lpthread"
42939    cat >>confdefs.h <<\_ACEOF
42940 #define _INCLUDE_LONGLONG 1
42941 _ACEOF
42942
42943   ;;
42944 irix)
42945    DISTVER=`uname -r`
42946    TAPEDRIVE="/dev/rmt/0cbn"
42947    PSCMD="ps -e -o pid,comm"
42948    PFILES="${PFILES} \
42949        platforms/irix/Makefile \
42950        platforms/irix/bacula-fd \
42951        platforms/irix/bacula-sd \
42952        platforms/irix/bacula-dir"
42953   ;;
42954 netbsd)
42955    DISTVER=`uname -a |awk '{print $3}'`
42956    lld="qd"
42957    llu="qu"
42958    TAPEDRIVE="/dev/nrst0"
42959    PSCMD="ps -ax -o pid,command"
42960    PTHREAD_LIB="-pthread"
42961    CFLAGS="${CFLAGS} -pthread"
42962   ;;
42963 openbsd)
42964    DISTVER=`uname -a |awk '{print $3}'`
42965    lld="qd"
42966    llu="qu"
42967    TAPEDRIVE="/dev/nrst0"
42968    PSCMD="ps -ax -o pid,command"
42969    PTHREAD_LIB="-pthread"
42970    CFLAGS="${CFLAGS} -pthread"
42971    PFILES="${PFILES} \
42972        platforms/openbsd/Makefile \
42973        platforms/openbsd/bacula-fd \
42974        platforms/openbsd/bacula-sd \
42975        platforms/openbsd/bacula-dir"
42976   ;;
42977 redhat)
42978    if test -f /etc/whitebox-release ; then
42979       f=/etc/whitebox-release
42980    else
42981       f=/etc/redhat-release
42982    fi
42983    if test `cat $f | grep release |\
42984          cut -f 3 -d ' '`x = "Enterprise"x ; then
42985       DISTVER="Enterprise "`cat $f | grep release |\
42986           cut -f 6 -d ' '`
42987    else
42988        DISTVER=`cat /etc/redhat-release | grep release |\
42989            cut -f 5 -d ' '`
42990    fi
42991    TAPEDRIVE="/dev/nst0"
42992    PSCMD="ps -e -o pid,command"
42993    PFILES="${PFILES} \
42994        platforms/redhat/Makefile \
42995        platforms/redhat/bacula-fd \
42996        platforms/redhat/bacula-sd \
42997        platforms/redhat/bacula-dir
42998        "
42999   ;;
43000 mandrake)
43001    DISTVER=`cat /etc/mandrake-release | grep release |\
43002       cut -f 5 -d ' '`
43003    TAPEDRIVE="/dev/nst0"
43004    PSCMD="ps -e -o pid,command"
43005    PFILES="${PFILES} \
43006        platforms/mandrake/Makefile \
43007        platforms/mandrake/bacula-fd \
43008        platforms/mandrake/bacula-sd \
43009        platforms/mandrake/bacula-dir \
43010        platforms/mandrake/bacula.spec \
43011        "
43012   ;;
43013 gentoo)
43014    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
43015    TAPEDRIVE="/dev/nst0"
43016    PSCMD="ps -e -o pid,command"
43017    PFILES="${PFILES} \
43018        platforms/gentoo/Makefile \
43019     platforms/gentoo/bacula-init \
43020        platforms/gentoo/bacula-fd \
43021        platforms/gentoo/bacula-sd \
43022        platforms/gentoo/bacula-dir"
43023   ;;
43024 slackware)
43025    DISTVER=`cat /etc/slackware-version`
43026    TAPEDRIVE="/dev/nst0"
43027    PSCMD="ps -e -o pid,command"
43028    PFILES="${PFILES} \
43029        platforms/slackware/Makefile \
43030        platforms/slackware/rc.bacula-fd \
43031        platforms/slackware/rc.bacula-sd \
43032        platforms/slackware/rc.bacula-dir\
43033        platforms/slackware/functions.bacula"
43034   ;;
43035 solaris)
43036    DISTVER=`uname -r`
43037    TAPEDRIVE="/dev/rmt/0cbn"
43038    PSCMD="ps -e -o pid,comm"
43039    PFILES="${PFILES} \
43040        platforms/solaris/Makefile \
43041        platforms/solaris/bacula-fd \
43042        platforms/solaris/bacula-sd \
43043        platforms/solaris/bacula-dir"
43044    if test x$DISTVER = x5.6 ; then
43045        cat >>confdefs.h <<\_ACEOF
43046 #define HAVE_OLD_SOCKOPT 1
43047 _ACEOF
43048
43049    fi
43050    LIBS="$LIBS -lresolv"
43051   ;;
43052 suse)
43053    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
43054        cut -f 3 -d ' '`
43055    TAPEDRIVE="/dev/nst0"
43056    PSCMD="ps -e -o pid,command"
43057    PFILES="${PFILES} \
43058        platforms/suse/Makefile \
43059        platforms/suse/bacula-fd \
43060        platforms/suse/bacula-sd \
43061        platforms/suse/bacula-dir \
43062        platforms/suse/bacula \
43063        platforms/suse/bacula.spec"
43064   ;;
43065 suse5)
43066    DISTNAME=suse
43067    DISTVER=5.x
43068    TAPEDRIVE="/dev/nst0"
43069    PSCMD="ps -e -o pid,command"
43070    PFILES="${PFILES} \
43071        platforms/suse/Makefile \
43072        platforms/suse/bacula-fd \
43073        platforms/suse/bacula-sd \
43074        platforms/suse/bacula-dir"
43075   ;;
43076 unknown)
43077    DISTVER=unknown
43078    TAPEDRIVE="/dev/nst0"
43079   ;;
43080 *)
43081   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
43082   ;;
43083 esac
43084
43085
43086
43087 LIBS="$PTHREAD_LIB $LIBS"
43088
43089 cat >>confdefs.h <<_ACEOF
43090 #define lld "$lld"
43091 _ACEOF
43092
43093 cat >>confdefs.h <<_ACEOF
43094 #define llu "$llu"
43095 _ACEOF
43096
43097
43098
43099
43100
43101
43102
43103
43104 MCOMMON=./autoconf/Make.common
43105
43106
43107 if test "x${subsysdir}" = "x${sbindir}" ; then
43108    echo " "
43109    echo " "
43110    echo "You have set both --sbindir and --with-subsys-dir"
43111    echo "  equal to: ${subsysdir} "
43112    echo "This is not permitted. Please reconfigure."
43113    echo " "
43114    echo "Aborting configuration ..."
43115    echo " "
43116    echo " "
43117    exit 1
43118 fi
43119
43120 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"
43121
43122 ac_config_commands="$ac_config_commands default"
43123
43124 cat >confcache <<\_ACEOF
43125 # This file is a shell script that caches the results of configure
43126 # tests run on this system so they can be shared between configure
43127 # scripts and configure runs, see configure's option --config-cache.
43128 # It is not useful on other systems.  If it contains results you don't
43129 # want to keep, you may remove or edit it.
43130 #
43131 # config.status only pays attention to the cache file if you give it
43132 # the --recheck option to rerun configure.
43133 #
43134 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43135 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43136 # following values.
43137
43138 _ACEOF
43139
43140 # The following way of writing the cache mishandles newlines in values,
43141 # but we know of no workaround that is simple, portable, and efficient.
43142 # So, we kill variables containing newlines.
43143 # Ultrix sh set writes to stderr and can't be redirected directly,
43144 # and sets the high bit in the cache file unless we assign to the vars.
43145 (
43146   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
43147     eval ac_val=\$$ac_var
43148     case $ac_val in #(
43149     *${as_nl}*)
43150       case $ac_var in #(
43151       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
43152 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
43153       esac
43154       case $ac_var in #(
43155       _ | IFS | as_nl) ;; #(
43156       *) $as_unset $ac_var ;;
43157       esac ;;
43158     esac
43159   done
43160
43161   (set) 2>&1 |
43162     case $as_nl`(ac_space=' '; set) 2>&1` in #(
43163     *${as_nl}ac_space=\ *)
43164       # `set' does not quote correctly, so add quotes (double-quote
43165       # substitution turns \\\\ into \\, and sed turns \\ into \).
43166       sed -n \
43167         "s/'/'\\\\''/g;
43168           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43169       ;; #(
43170     *)
43171       # `set' quotes correctly as required by POSIX, so do not add quotes.
43172       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
43173       ;;
43174     esac |
43175     sort
43176 ) |
43177   sed '
43178      /^ac_cv_env_/b end
43179      t clear
43180      :clear
43181      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43182      t end
43183      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43184      :end' >>confcache
43185 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
43186   if test -w "$cache_file"; then
43187     test "x$cache_file" != "x/dev/null" &&
43188       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
43189 echo "$as_me: updating cache $cache_file" >&6;}
43190     cat confcache >$cache_file
43191   else
43192     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
43193 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43194   fi
43195 fi
43196 rm -f confcache
43197
43198 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43199 # Let make expand exec_prefix.
43200 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43201
43202 DEFS=-DHAVE_CONFIG_H
43203
43204 ac_libobjs=
43205 ac_ltlibobjs=
43206 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43207   # 1. Remove the extension, and $U if already installed.
43208   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
43209   ac_i=`echo "$ac_i" | sed "$ac_script"`
43210   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
43211   #    will be set to the directory where LIBOBJS objects are built.
43212   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
43213   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
43214 done
43215 LIBOBJS=$ac_libobjs
43216
43217 LTLIBOBJS=$ac_ltlibobjs
43218
43219
43220
43221 : ${CONFIG_STATUS=./config.status}
43222 ac_clean_files_save=$ac_clean_files
43223 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43224 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43225 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43226 cat >$CONFIG_STATUS <<_ACEOF
43227 #! $SHELL
43228 # Generated by $as_me.
43229 # Run this file to recreate the current configuration.
43230 # Compiler output produced by configure, useful for debugging
43231 # configure, is in config.log if it exists.
43232
43233 debug=false
43234 ac_cs_recheck=false
43235 ac_cs_silent=false
43236 SHELL=\${CONFIG_SHELL-$SHELL}
43237 _ACEOF
43238
43239 cat >>$CONFIG_STATUS <<\_ACEOF
43240 ## --------------------- ##
43241 ## M4sh Initialization.  ##
43242 ## --------------------- ##
43243
43244 # Be more Bourne compatible
43245 DUALCASE=1; export DUALCASE # for MKS sh
43246 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43247   emulate sh
43248   NULLCMD=:
43249   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43250   # is contrary to our usage.  Disable this feature.
43251   alias -g '${1+"$@"}'='"$@"'
43252   setopt NO_GLOB_SUBST
43253 else
43254   case `(set -o) 2>/dev/null` in
43255   *posix*) set -o posix ;;
43256 esac
43257
43258 fi
43259
43260
43261
43262
43263 # PATH needs CR
43264 # Avoid depending upon Character Ranges.
43265 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43266 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43267 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43268 as_cr_digits='0123456789'
43269 as_cr_alnum=$as_cr_Letters$as_cr_digits
43270
43271 # The user is always right.
43272 if test "${PATH_SEPARATOR+set}" != set; then
43273   echo "#! /bin/sh" >conf$$.sh
43274   echo  "exit 0"   >>conf$$.sh
43275   chmod +x conf$$.sh
43276   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43277     PATH_SEPARATOR=';'
43278   else
43279     PATH_SEPARATOR=:
43280   fi
43281   rm -f conf$$.sh
43282 fi
43283
43284 # Support unset when possible.
43285 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43286   as_unset=unset
43287 else
43288   as_unset=false
43289 fi
43290
43291
43292 # IFS
43293 # We need space, tab and new line, in precisely that order.  Quoting is
43294 # there to prevent editors from complaining about space-tab.
43295 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43296 # splitting by setting IFS to empty value.)
43297 as_nl='
43298 '
43299 IFS=" ""        $as_nl"
43300
43301 # Find who we are.  Look in the path if we contain no directory separator.
43302 case $0 in
43303   *[\\/]* ) as_myself=$0 ;;
43304   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43305 for as_dir in $PATH
43306 do
43307   IFS=$as_save_IFS
43308   test -z "$as_dir" && as_dir=.
43309   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43310 done
43311 IFS=$as_save_IFS
43312
43313      ;;
43314 esac
43315 # We did not find ourselves, most probably we were run as `sh COMMAND'
43316 # in which case we are not to be found in the path.
43317 if test "x$as_myself" = x; then
43318   as_myself=$0
43319 fi
43320 if test ! -f "$as_myself"; then
43321   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43322   { (exit 1); exit 1; }
43323 fi
43324
43325 # Work around bugs in pre-3.0 UWIN ksh.
43326 for as_var in ENV MAIL MAILPATH
43327 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43328 done
43329 PS1='$ '
43330 PS2='> '
43331 PS4='+ '
43332
43333 # NLS nuisances.
43334 for as_var in \
43335   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43336   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43337   LC_TELEPHONE LC_TIME
43338 do
43339   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43340     eval $as_var=C; export $as_var
43341   else
43342     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43343   fi
43344 done
43345
43346 # Required to use basename.
43347 if expr a : '\(a\)' >/dev/null 2>&1 &&
43348    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43349   as_expr=expr
43350 else
43351   as_expr=false
43352 fi
43353
43354 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43355   as_basename=basename
43356 else
43357   as_basename=false
43358 fi
43359
43360
43361 # Name of the executable.
43362 as_me=`$as_basename -- "$0" ||
43363 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43364          X"$0" : 'X\(//\)$' \| \
43365          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43366 echo X/"$0" |
43367     sed '/^.*\/\([^/][^/]*\)\/*$/{
43368             s//\1/
43369             q
43370           }
43371           /^X\/\(\/\/\)$/{
43372             s//\1/
43373             q
43374           }
43375           /^X\/\(\/\).*/{
43376             s//\1/
43377             q
43378           }
43379           s/.*/./; q'`
43380
43381 # CDPATH.
43382 $as_unset CDPATH
43383
43384
43385
43386   as_lineno_1=$LINENO
43387   as_lineno_2=$LINENO
43388   test "x$as_lineno_1" != "x$as_lineno_2" &&
43389   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43390
43391   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43392   # uniformly replaced by the line number.  The first 'sed' inserts a
43393   # line-number line after each line using $LINENO; the second 'sed'
43394   # does the real work.  The second script uses 'N' to pair each
43395   # line-number line with the line containing $LINENO, and appends
43396   # trailing '-' during substitution so that $LINENO is not a special
43397   # case at line end.
43398   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43399   # scripts with optimization help from Paolo Bonzini.  Blame Lee
43400   # E. McMahon (1931-1989) for sed's syntax.  :-)
43401   sed -n '
43402     p
43403     /[$]LINENO/=
43404   ' <$as_myself |
43405     sed '
43406       s/[$]LINENO.*/&-/
43407       t lineno
43408       b
43409       :lineno
43410       N
43411       :loop
43412       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43413       t loop
43414       s/-\n.*//
43415     ' >$as_me.lineno &&
43416   chmod +x "$as_me.lineno" ||
43417     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43418    { (exit 1); exit 1; }; }
43419
43420   # Don't try to exec as it changes $[0], causing all sort of problems
43421   # (the dirname of $[0] is not the place where we might find the
43422   # original and so on.  Autoconf is especially sensitive to this).
43423   . "./$as_me.lineno"
43424   # Exit status is that of the last command.
43425   exit
43426 }
43427
43428
43429 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43430   as_dirname=dirname
43431 else
43432   as_dirname=false
43433 fi
43434
43435 ECHO_C= ECHO_N= ECHO_T=
43436 case `echo -n x` in
43437 -n*)
43438   case `echo 'x\c'` in
43439   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
43440   *)   ECHO_C='\c';;
43441   esac;;
43442 *)
43443   ECHO_N='-n';;
43444 esac
43445
43446 if expr a : '\(a\)' >/dev/null 2>&1 &&
43447    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43448   as_expr=expr
43449 else
43450   as_expr=false
43451 fi
43452
43453 rm -f conf$$ conf$$.exe conf$$.file
43454 if test -d conf$$.dir; then
43455   rm -f conf$$.dir/conf$$.file
43456 else
43457   rm -f conf$$.dir
43458   mkdir conf$$.dir
43459 fi
43460 echo >conf$$.file
43461 if ln -s conf$$.file conf$$ 2>/dev/null; then
43462   as_ln_s='ln -s'
43463   # ... but there are two gotchas:
43464   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43465   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43466   # In both cases, we have to default to `cp -p'.
43467   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43468     as_ln_s='cp -p'
43469 elif ln conf$$.file conf$$ 2>/dev/null; then
43470   as_ln_s=ln
43471 else
43472   as_ln_s='cp -p'
43473 fi
43474 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43475 rmdir conf$$.dir 2>/dev/null
43476
43477 if mkdir -p . 2>/dev/null; then
43478   as_mkdir_p=:
43479 else
43480   test -d ./-p && rmdir ./-p
43481   as_mkdir_p=false
43482 fi
43483
43484 if test -x / >/dev/null 2>&1; then
43485   as_test_x='test -x'
43486 else
43487   if ls -dL / >/dev/null 2>&1; then
43488     as_ls_L_option=L
43489   else
43490     as_ls_L_option=
43491   fi
43492   as_test_x='
43493     eval sh -c '\''
43494       if test -d "$1"; then
43495         test -d "$1/.";
43496       else
43497         case $1 in
43498         -*)set "./$1";;
43499         esac;
43500         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43501         ???[sx]*):;;*)false;;esac;fi
43502     '\'' sh
43503   '
43504 fi
43505 as_executable_p=$as_test_x
43506
43507 # Sed expression to map a string onto a valid CPP name.
43508 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43509
43510 # Sed expression to map a string onto a valid variable name.
43511 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43512
43513
43514 exec 6>&1
43515
43516 # Save the log message, to keep $[0] and so on meaningful, and to
43517 # report actual input values of CONFIG_FILES etc. instead of their
43518 # values after options handling.
43519 ac_log="
43520 This file was extended by $as_me, which was
43521 generated by GNU Autoconf 2.61.  Invocation command line was
43522
43523   CONFIG_FILES    = $CONFIG_FILES
43524   CONFIG_HEADERS  = $CONFIG_HEADERS
43525   CONFIG_LINKS    = $CONFIG_LINKS
43526   CONFIG_COMMANDS = $CONFIG_COMMANDS
43527   $ $0 $@
43528
43529 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43530 "
43531
43532 _ACEOF
43533
43534 cat >>$CONFIG_STATUS <<_ACEOF
43535 # Files that config.status was made for.
43536 config_files="$ac_config_files"
43537 config_headers="$ac_config_headers"
43538 config_commands="$ac_config_commands"
43539
43540 _ACEOF
43541
43542 cat >>$CONFIG_STATUS <<\_ACEOF
43543 ac_cs_usage="\
43544 \`$as_me' instantiates files from templates according to the
43545 current configuration.
43546
43547 Usage: $0 [OPTIONS] [FILE]...
43548
43549   -h, --help       print this help, then exit
43550   -V, --version    print version number and configuration settings, then exit
43551   -q, --quiet      do not print progress messages
43552   -d, --debug      don't remove temporary files
43553       --recheck    update $as_me by reconfiguring in the same conditions
43554   --file=FILE[:TEMPLATE]
43555                    instantiate the configuration file FILE
43556   --header=FILE[:TEMPLATE]
43557                    instantiate the configuration header FILE
43558
43559 Configuration files:
43560 $config_files
43561
43562 Configuration headers:
43563 $config_headers
43564
43565 Configuration commands:
43566 $config_commands
43567
43568 Report bugs to <bug-autoconf@gnu.org>."
43569
43570 _ACEOF
43571 cat >>$CONFIG_STATUS <<_ACEOF
43572 ac_cs_version="\\
43573 config.status
43574 configured by $0, generated by GNU Autoconf 2.61,
43575   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43576
43577 Copyright (C) 2006 Free Software Foundation, Inc.
43578 This config.status script is free software; the Free Software Foundation
43579 gives unlimited permission to copy, distribute and modify it."
43580
43581 ac_pwd='$ac_pwd'
43582 srcdir='$srcdir'
43583 INSTALL='$INSTALL'
43584 _ACEOF
43585
43586 cat >>$CONFIG_STATUS <<\_ACEOF
43587 # If no file are specified by the user, then we need to provide default
43588 # value.  By we need to know if files were specified by the user.
43589 ac_need_defaults=:
43590 while test $# != 0
43591 do
43592   case $1 in
43593   --*=*)
43594     ac_option=`expr "X$1" : 'X\([^=]*\)='`
43595     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43596     ac_shift=:
43597     ;;
43598   *)
43599     ac_option=$1
43600     ac_optarg=$2
43601     ac_shift=shift
43602     ;;
43603   esac
43604
43605   case $ac_option in
43606   # Handling of the options.
43607   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43608     ac_cs_recheck=: ;;
43609   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43610     echo "$ac_cs_version"; exit ;;
43611   --debug | --debu | --deb | --de | --d | -d )
43612     debug=: ;;
43613   --file | --fil | --fi | --f )
43614     $ac_shift
43615     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43616     ac_need_defaults=false;;
43617   --header | --heade | --head | --hea )
43618     $ac_shift
43619     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43620     ac_need_defaults=false;;
43621   --he | --h)
43622     # Conflict between --help and --header
43623     { echo "$as_me: error: ambiguous option: $1
43624 Try \`$0 --help' for more information." >&2
43625    { (exit 1); exit 1; }; };;
43626   --help | --hel | -h )
43627     echo "$ac_cs_usage"; exit ;;
43628   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43629   | -silent | --silent | --silen | --sile | --sil | --si | --s)
43630     ac_cs_silent=: ;;
43631
43632   # This is an error.
43633   -*) { echo "$as_me: error: unrecognized option: $1
43634 Try \`$0 --help' for more information." >&2
43635    { (exit 1); exit 1; }; } ;;
43636
43637   *) ac_config_targets="$ac_config_targets $1"
43638      ac_need_defaults=false ;;
43639
43640   esac
43641   shift
43642 done
43643
43644 ac_configure_extra_args=
43645
43646 if $ac_cs_silent; then
43647   exec 6>/dev/null
43648   ac_configure_extra_args="$ac_configure_extra_args --silent"
43649 fi
43650
43651 _ACEOF
43652 cat >>$CONFIG_STATUS <<_ACEOF
43653 if \$ac_cs_recheck; then
43654   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43655   CONFIG_SHELL=$SHELL
43656   export CONFIG_SHELL
43657   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43658 fi
43659
43660 _ACEOF
43661 cat >>$CONFIG_STATUS <<\_ACEOF
43662 exec 5>>config.log
43663 {
43664   echo
43665   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43666 ## Running $as_me. ##
43667 _ASBOX
43668   echo "$ac_log"
43669 } >&5
43670
43671 _ACEOF
43672 cat >>$CONFIG_STATUS <<_ACEOF
43673 #
43674 # INIT-COMMANDS
43675 #
43676
43677
43678 # The HP-UX ksh and POSIX shell print the target directory to stdout
43679 # if CDPATH is set.
43680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43681
43682 sed_quote_subst='$sed_quote_subst'
43683 double_quote_subst='$double_quote_subst'
43684 delay_variable_subst='$delay_variable_subst'
43685 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
43686 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
43687 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
43688 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
43689 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
43690 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
43691 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
43692 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
43693 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
43694 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
43695 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
43696 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
43697 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
43698 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
43699 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
43700 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
43701 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
43702 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
43703 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
43704 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
43705 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
43706 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
43707 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
43708 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
43709 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
43710 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
43711 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
43712 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43713 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
43714 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
43715 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
43716 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
43717 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43718 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
43719 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
43720 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43721 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43722 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43723 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
43724 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43725 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
43726 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
43727 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
43728 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
43729 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"`'
43730 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"`'
43731 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
43732 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
43733 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
43734 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
43735 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
43736 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
43737 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
43738 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
43739 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
43740 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
43741 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
43742 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
43743 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
43744 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
43745 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
43746 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
43747 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43748 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43749 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
43750 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
43751 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43752 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43753 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
43754 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43755 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43756 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43757 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43758 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43759 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43760 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
43761 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43762 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43763 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43764 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
43765 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
43766 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
43767 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
43768 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
43769 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43770 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
43771 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
43772 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
43773 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
43774 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
43775 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43776 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43777 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43778 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43779 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
43780 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
43781 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
43782 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
43783 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
43784 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43785 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43786 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
43787 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43788 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
43789 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43790 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43791 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43792 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43793 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
43794 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
43795 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43796 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43797 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
43798 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
43799 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
43800 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
43801 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
43802 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
43803 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
43804 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43805 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43806 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
43807 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
43808 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
43809 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43810 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43811 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43812 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43813 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43814 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43815 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43816 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43817 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43818 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43819 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43820 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43821 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43822 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43823 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43824 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43825 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43826 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43827 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43828 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43829 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43830 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43831 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43832 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43833 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43834 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43835 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43836 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43837 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43838 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43839 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43840 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43841 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43842 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43843 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43844 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43845 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43846 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43847 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43848 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43849 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43850 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43851 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43852 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43853 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43854 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43855 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43856
43857 LTCC='$LTCC'
43858 LTCFLAGS='$LTCFLAGS'
43859 compiler='$compiler_DEFAULT'
43860
43861 # Quote evaled strings.
43862 for var in SED \
43863 GREP \
43864 EGREP \
43865 FGREP \
43866 LD \
43867 NM \
43868 LN_S \
43869 lt_SP2NL \
43870 lt_NL2SP \
43871 reload_flag \
43872 OBJDUMP \
43873 deplibs_check_method \
43874 file_magic_cmd \
43875 AR \
43876 AR_FLAGS \
43877 STRIP \
43878 RANLIB \
43879 CC \
43880 CFLAGS \
43881 compiler \
43882 lt_cv_sys_global_symbol_pipe \
43883 lt_cv_sys_global_symbol_to_cdecl \
43884 lt_cv_sys_global_symbol_to_c_name_address \
43885 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
43886 SHELL \
43887 ECHO \
43888 lt_prog_compiler_no_builtin_flag \
43889 lt_prog_compiler_wl \
43890 lt_prog_compiler_pic \
43891 lt_prog_compiler_static \
43892 lt_cv_prog_compiler_c_o \
43893 need_locks \
43894 DSYMUTIL \
43895 NMEDIT \
43896 LIPO \
43897 OTOOL \
43898 OTOOL64 \
43899 shrext_cmds \
43900 export_dynamic_flag_spec \
43901 whole_archive_flag_spec \
43902 compiler_needs_object \
43903 with_gnu_ld \
43904 allow_undefined_flag \
43905 no_undefined_flag \
43906 hardcode_libdir_flag_spec \
43907 hardcode_libdir_flag_spec_ld \
43908 hardcode_libdir_separator \
43909 fix_srcfile_path \
43910 exclude_expsyms \
43911 include_expsyms \
43912 file_list_spec \
43913 variables_saved_for_relink \
43914 libname_spec \
43915 library_names_spec \
43916 soname_spec \
43917 finish_eval \
43918 old_striplib \
43919 striplib \
43920 compiler_lib_search_dirs \
43921 predep_objects \
43922 postdep_objects \
43923 predeps \
43924 postdeps \
43925 compiler_lib_search_path \
43926 LD_CXX \
43927 compiler_CXX \
43928 lt_prog_compiler_no_builtin_flag_CXX \
43929 lt_prog_compiler_wl_CXX \
43930 lt_prog_compiler_pic_CXX \
43931 lt_prog_compiler_static_CXX \
43932 lt_cv_prog_compiler_c_o_CXX \
43933 export_dynamic_flag_spec_CXX \
43934 whole_archive_flag_spec_CXX \
43935 compiler_needs_object_CXX \
43936 with_gnu_ld_CXX \
43937 allow_undefined_flag_CXX \
43938 no_undefined_flag_CXX \
43939 hardcode_libdir_flag_spec_CXX \
43940 hardcode_libdir_flag_spec_ld_CXX \
43941 hardcode_libdir_separator_CXX \
43942 fix_srcfile_path_CXX \
43943 exclude_expsyms_CXX \
43944 include_expsyms_CXX \
43945 file_list_spec_CXX \
43946 compiler_lib_search_dirs_CXX \
43947 predep_objects_CXX \
43948 postdep_objects_CXX \
43949 predeps_CXX \
43950 postdeps_CXX \
43951 compiler_lib_search_path_CXX; do
43952     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43953     *[\\\\\\\`\\"\\\$]*)
43954       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
43955       ;;
43956     *)
43957       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43958       ;;
43959     esac
43960 done
43961
43962 # Double-quote double-evaled strings.
43963 for var in reload_cmds \
43964 old_postinstall_cmds \
43965 old_postuninstall_cmds \
43966 old_archive_cmds \
43967 extract_expsyms_cmds \
43968 old_archive_from_new_cmds \
43969 old_archive_from_expsyms_cmds \
43970 archive_cmds \
43971 archive_expsym_cmds \
43972 module_cmds \
43973 module_expsym_cmds \
43974 export_symbols_cmds \
43975 prelink_cmds \
43976 postinstall_cmds \
43977 postuninstall_cmds \
43978 finish_cmds \
43979 sys_lib_search_path_spec \
43980 sys_lib_dlsearch_path_spec \
43981 old_archive_cmds_CXX \
43982 old_archive_from_new_cmds_CXX \
43983 old_archive_from_expsyms_cmds_CXX \
43984 archive_cmds_CXX \
43985 archive_expsym_cmds_CXX \
43986 module_cmds_CXX \
43987 module_expsym_cmds_CXX \
43988 export_symbols_cmds_CXX \
43989 prelink_cmds_CXX; do
43990     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43991     *[\\\\\\\`\\"\\\$]*)
43992       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
43993       ;;
43994     *)
43995       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43996       ;;
43997     esac
43998 done
43999
44000 # Fix-up fallback echo if it was mangled by the above quoting rules.
44001 case \$lt_ECHO in
44002 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44003   ;;
44004 esac
44005
44006 ac_aux_dir='$ac_aux_dir'
44007 xsi_shell='$xsi_shell'
44008 lt_shell_append='$lt_shell_append'
44009
44010 # See if we are running on zsh, and set the options which allow our
44011 # commands through without removal of \ escapes INIT.
44012 if test -n "\${ZSH_VERSION+set}" ; then
44013    setopt NO_GLOB_SUBST
44014 fi
44015
44016
44017     PACKAGE='$PACKAGE'
44018     VERSION='$VERSION'
44019     TIMESTAMP='$TIMESTAMP'
44020     RM='$RM'
44021     ofile='$ofile'
44022
44023
44024
44025
44026
44027 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
44028     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
44029     # from automake.
44030     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
44031     # Capture the value of LINGUAS because we need it to compute CATALOGS.
44032     LINGUAS="${LINGUAS-%UNSET%}"
44033
44034
44035 _ACEOF
44036
44037 cat >>$CONFIG_STATUS <<\_ACEOF
44038
44039 # Handling of arguments.
44040 for ac_config_target in $ac_config_targets
44041 do
44042   case $ac_config_target in
44043     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
44044     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
44045     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
44046     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
44047     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44048     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
44049     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
44050     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
44051     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
44052     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
44053     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
44054     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
44055     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
44056     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
44057     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
44058     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
44059     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
44060     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
44061     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
44062     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
44063     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
44064     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
44065     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
44066     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
44067     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
44068     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
44069     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
44070     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
44071     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
44072     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
44073     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
44074     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
44075     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
44076     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
44077     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
44078     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
44079     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
44080     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
44081     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
44082     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
44083     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
44084     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
44085     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
44086     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
44087     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
44088     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
44089     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
44090     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
44091     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
44092     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
44093     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
44094     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
44095     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
44096     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
44097     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
44098     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
44099     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
44100     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
44101     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
44102     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
44103     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
44104     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
44105     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
44106     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
44107     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
44108     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
44109     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
44110     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
44111     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
44112     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
44113     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
44114     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
44115     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
44116     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
44117     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
44118     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
44119     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
44120     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
44121     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
44122     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
44123     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
44124     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
44125     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
44126     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
44127     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
44128     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
44129     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
44130     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
44131     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
44132     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
44133     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
44134     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
44135     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
44136     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
44137     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
44138     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
44139     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
44140     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
44141     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
44142     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
44143     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
44144     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
44145     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
44146     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
44147     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
44148     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
44149     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
44150     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
44151     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
44152     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
44153     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
44154     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
44155     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
44156     "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
44157     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
44158     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
44159     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
44160     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
44161     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
44162     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
44163
44164   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44165 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44166    { (exit 1); exit 1; }; };;
44167   esac
44168 done
44169
44170
44171 # If the user did not use the arguments to specify the items to instantiate,
44172 # then the envvar interface is used.  Set only those that are not.
44173 # We use the long form for the default assignment because of an extremely
44174 # bizarre bug on SunOS 4.1.3.
44175 if $ac_need_defaults; then
44176   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44177   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44178   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44179 fi
44180
44181 # Have a temporary directory for convenience.  Make it in the build tree
44182 # simply because there is no reason against having it here, and in addition,
44183 # creating and moving files from /tmp can sometimes cause problems.
44184 # Hook for its removal unless debugging.
44185 # Note that there is a small window in which the directory will not be cleaned:
44186 # after its creation but before its name has been assigned to `$tmp'.
44187 $debug ||
44188 {
44189   tmp=
44190   trap 'exit_status=$?
44191   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
44192 ' 0
44193   trap '{ (exit 1); exit 1; }' 1 2 13 15
44194 }
44195 # Create a (secure) tmp directory for tmp files.
44196
44197 {
44198   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
44199   test -n "$tmp" && test -d "$tmp"
44200 }  ||
44201 {
44202   tmp=./conf$$-$RANDOM
44203   (umask 077 && mkdir "$tmp")
44204 } ||
44205 {
44206    echo "$me: cannot create a temporary directory in ." >&2
44207    { (exit 1); exit 1; }
44208 }
44209
44210 #
44211 # Set up the sed scripts for CONFIG_FILES section.
44212 #
44213
44214 # No need to generate the scripts if there are no CONFIG_FILES.
44215 # This happens for instance when ./config.status config.h
44216 if test -n "$CONFIG_FILES"; then
44217
44218 _ACEOF
44219
44220 # Create sed commands to just substitute file output variables.
44221
44222 # Remaining file output variables are in a fragment that also has non-file
44223 # output varibles.
44224
44225
44226
44227 ac_delim='%!_!# '
44228 for ac_last_try in false false false false false :; do
44229   cat >conf$$subs.sed <<_ACEOF
44230 SHELL!$SHELL$ac_delim
44231 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
44232 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
44233 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
44234 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
44235 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
44236 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
44237 exec_prefix!$exec_prefix$ac_delim
44238 prefix!$prefix$ac_delim
44239 program_transform_name!$program_transform_name$ac_delim
44240 bindir!$bindir$ac_delim
44241 sbindir!$sbindir$ac_delim
44242 libexecdir!$libexecdir$ac_delim
44243 datarootdir!$datarootdir$ac_delim
44244 datadir!$datadir$ac_delim
44245 sysconfdir!$sysconfdir$ac_delim
44246 sharedstatedir!$sharedstatedir$ac_delim
44247 localstatedir!$localstatedir$ac_delim
44248 includedir!$includedir$ac_delim
44249 oldincludedir!$oldincludedir$ac_delim
44250 docdir!$docdir$ac_delim
44251 infodir!$infodir$ac_delim
44252 htmldir!$htmldir$ac_delim
44253 dvidir!$dvidir$ac_delim
44254 pdfdir!$pdfdir$ac_delim
44255 psdir!$psdir$ac_delim
44256 libdir!$libdir$ac_delim
44257 localedir!$localedir$ac_delim
44258 mandir!$mandir$ac_delim
44259 DEFS!$DEFS$ac_delim
44260 ECHO_C!$ECHO_C$ac_delim
44261 ECHO_N!$ECHO_N$ac_delim
44262 ECHO_T!$ECHO_T$ac_delim
44263 LIBS!$LIBS$ac_delim
44264 build_alias!$build_alias$ac_delim
44265 host_alias!$host_alias$ac_delim
44266 target_alias!$target_alias$ac_delim
44267 BUILD_DIR!$BUILD_DIR$ac_delim
44268 TOP_DIR!$TOP_DIR$ac_delim
44269 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
44270 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
44271 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
44272 TRUEPRG!$TRUEPRG$ac_delim
44273 FALSEPRG!$FALSEPRG$ac_delim
44274 VERSION!$VERSION$ac_delim
44275 DATE!$DATE$ac_delim
44276 LSMDATE!$LSMDATE$ac_delim
44277 BACULA!$BACULA$ac_delim
44278 post_host!$post_host$ac_delim
44279 CC!$CC$ac_delim
44280 CFLAGS!$CFLAGS$ac_delim
44281 LDFLAGS!$LDFLAGS$ac_delim
44282 CPPFLAGS!$CPPFLAGS$ac_delim
44283 ac_ct_CC!$ac_ct_CC$ac_delim
44284 EXEEXT!$EXEEXT$ac_delim
44285 OBJEXT!$OBJEXT$ac_delim
44286 CXX!$CXX$ac_delim
44287 CXXFLAGS!$CXXFLAGS$ac_delim
44288 ac_ct_CXX!$ac_ct_CXX$ac_delim
44289 CPP!$CPP$ac_delim
44290 GREP!$GREP$ac_delim
44291 EGREP!$EGREP$ac_delim
44292 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
44293 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
44294 INSTALL_DATA!$INSTALL_DATA$ac_delim
44295 MV!$MV$ac_delim
44296 REMOVE!$REMOVE$ac_delim
44297 CP!$CP$ac_delim
44298 SED!$SED$ac_delim
44299 ECHO!$ECHO$ac_delim
44300 CMP!$CMP$ac_delim
44301 TBL!$TBL$ac_delim
44302 AR!$AR$ac_delim
44303 OPENSSL!$OPENSSL$ac_delim
44304 MTX!$MTX$ac_delim
44305 DD!$DD$ac_delim
44306 MKISOFS!$MKISOFS$ac_delim
44307 PYTHON!$PYTHON$ac_delim
44308 GROWISOFS!$GROWISOFS$ac_delim
44309 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
44310 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
44311 PKGCONFIG!$PKGCONFIG$ac_delim
44312 QMAKE!$QMAKE$ac_delim
44313 QMAKEQT4!$QMAKEQT4$ac_delim
44314 GMAKE!$GMAKE$ac_delim
44315 WXCONFIG!$WXCONFIG$ac_delim
44316 WXFLAGS!$WXFLAGS$ac_delim
44317 CDRECORD!$CDRECORD$ac_delim
44318 PIDOF!$PIDOF$ac_delim
44319 AWK!$AWK$ac_delim
44320 ARFLAGS!$ARFLAGS$ac_delim
44321 MAKE_SHELL!$MAKE_SHELL$ac_delim
44322 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
44323 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
44324 _ACEOF
44325
44326   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
44327     break
44328   elif $ac_last_try; then
44329     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44330 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44331    { (exit 1); exit 1; }; }
44332   else
44333     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44334   fi
44335 done
44336
44337 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44338 if test -n "$ac_eof"; then
44339   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44340   ac_eof=`expr $ac_eof + 1`
44341 fi
44342
44343 cat >>$CONFIG_STATUS <<_ACEOF
44344 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
44345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44346 /^[      ]*@MCOMMON@[    ]*$/{
44347 r $MCOMMON
44348 d
44349 }
44350 _ACEOF
44351 sed '
44352 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44353 s/^/s,@/; s/!/@,|#_!!_#|/
44354 :n
44355 t n
44356 s/'"$ac_delim"'$/,g/; t
44357 s/$/\\/; p
44358 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44359 ' >>$CONFIG_STATUS <conf$$subs.sed
44360 rm -f conf$$subs.sed
44361 cat >>$CONFIG_STATUS <<_ACEOF
44362 CEOF$ac_eof
44363 _ACEOF
44364
44365
44366 ac_delim='%!_!# '
44367 for ac_last_try in false false false false false :; do
44368   cat >conf$$subs.sed <<_ACEOF
44369 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
44370 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
44371 LIBTOOL!$LIBTOOL$ac_delim
44372 build!$build$ac_delim
44373 build_cpu!$build_cpu$ac_delim
44374 build_vendor!$build_vendor$ac_delim
44375 build_os!$build_os$ac_delim
44376 host!$host$ac_delim
44377 host_cpu!$host_cpu$ac_delim
44378 host_vendor!$host_vendor$ac_delim
44379 host_os!$host_os$ac_delim
44380 FGREP!$FGREP$ac_delim
44381 LD!$LD$ac_delim
44382 DUMPBIN!$DUMPBIN$ac_delim
44383 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
44384 NM!$NM$ac_delim
44385 LN_S!$LN_S$ac_delim
44386 OBJDUMP!$OBJDUMP$ac_delim
44387 STRIP!$STRIP$ac_delim
44388 RANLIB!$RANLIB$ac_delim
44389 lt_ECHO!$lt_ECHO$ac_delim
44390 DSYMUTIL!$DSYMUTIL$ac_delim
44391 NMEDIT!$NMEDIT$ac_delim
44392 LIPO!$LIPO$ac_delim
44393 OTOOL!$OTOOL$ac_delim
44394 OTOOL64!$OTOOL64$ac_delim
44395 CXXCPP!$CXXCPP$ac_delim
44396 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
44397 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
44398 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
44399 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
44400 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
44401 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
44402 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
44403 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
44404 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
44405 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
44406 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
44407 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
44408 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
44409 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
44410 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
44411 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
44412 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
44413 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
44414 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
44415 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
44416 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
44417 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
44418 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
44419 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
44420 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
44421 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
44422 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
44423 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
44424 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
44425 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
44426 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
44427 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
44428 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
44429 SET_MAKE!$SET_MAKE$ac_delim
44430 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
44431 USE_NLS!$USE_NLS$ac_delim
44432 MSGFMT!$MSGFMT$ac_delim
44433 GMSGFMT!$GMSGFMT$ac_delim
44434 XGETTEXT!$XGETTEXT$ac_delim
44435 MSGMERGE!$MSGMERGE$ac_delim
44436 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
44437 LIBICONV!$LIBICONV$ac_delim
44438 LTLIBICONV!$LTLIBICONV$ac_delim
44439 INTLLIBS!$INTLLIBS$ac_delim
44440 LIBINTL!$LIBINTL$ac_delim
44441 LTLIBINTL!$LTLIBINTL$ac_delim
44442 POSUB!$POSUB$ac_delim
44443 GLIBC2!$GLIBC2$ac_delim
44444 ALLOCA!$ALLOCA$ac_delim
44445 GLIBC21!$GLIBC21$ac_delim
44446 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
44447 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
44448 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
44449 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
44450 INTLBISON!$INTLBISON$ac_delim
44451 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
44452 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
44453 CATOBJEXT!$CATOBJEXT$ac_delim
44454 DATADIRNAME!$DATADIRNAME$ac_delim
44455 INSTOBJEXT!$INSTOBJEXT$ac_delim
44456 GENCAT!$GENCAT$ac_delim
44457 INTLOBJS!$INTLOBJS$ac_delim
44458 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
44459 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
44460 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
44461 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
44462 GNOME_LIBS!$GNOME_LIBS$ac_delim
44463 GNOME_DIR!$GNOME_DIR$ac_delim
44464 BAT_DIR!$BAT_DIR$ac_delim
44465 QWT_INC!$QWT_INC$ac_delim
44466 _ACEOF
44467
44468   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
44469     break
44470   elif $ac_last_try; then
44471     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44472 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44473    { (exit 1); exit 1; }; }
44474   else
44475     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44476   fi
44477 done
44478
44479 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44480 if test -n "$ac_eof"; then
44481   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44482   ac_eof=`expr $ac_eof + 1`
44483 fi
44484
44485 cat >>$CONFIG_STATUS <<_ACEOF
44486 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
44487 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44488 _ACEOF
44489 sed '
44490 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44491 s/^/s,@/; s/!/@,|#_!!_#|/
44492 :n
44493 t n
44494 s/'"$ac_delim"'$/,g/; t
44495 s/$/\\/; p
44496 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44497 ' >>$CONFIG_STATUS <conf$$subs.sed
44498 rm -f conf$$subs.sed
44499 cat >>$CONFIG_STATUS <<_ACEOF
44500 CEOF$ac_eof
44501 _ACEOF
44502
44503
44504 ac_delim='%!_!# '
44505 for ac_last_try in false false false false false :; do
44506   cat >conf$$subs.sed <<_ACEOF
44507 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
44508 QWT_LIB!$QWT_LIB$ac_delim
44509 QWT!$QWT$ac_delim
44510 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
44511 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
44512 WX_DIR!$WX_DIR$ac_delim
44513 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
44514 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
44515 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
44516 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
44517 STATIC_FD!$STATIC_FD$ac_delim
44518 STATIC_SD!$STATIC_SD$ac_delim
44519 STATIC_DIR!$STATIC_DIR$ac_delim
44520 STATIC_CONS!$STATIC_CONS$ac_delim
44521 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
44522 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
44523 ALL_DIRS!$ALL_DIRS$ac_delim
44524 DIRD_DIR!$DIRD_DIR$ac_delim
44525 DIR_TOOLS!$DIR_TOOLS$ac_delim
44526 STORED_DIR!$STORED_DIR$ac_delim
44527 CONS_INC!$CONS_INC$ac_delim
44528 CONS_OBJ!$CONS_OBJ$ac_delim
44529 CONS_SRC!$CONS_SRC$ac_delim
44530 CONS_LIBS!$CONS_LIBS$ac_delim
44531 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
44532 READLINE_SRC!$READLINE_SRC$ac_delim
44533 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
44534 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
44535 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
44536 OPENSSL_INC!$OPENSSL_INC$ac_delim
44537 working_dir!$working_dir$ac_delim
44538 archivedir!$archivedir$ac_delim
44539 basename!$basename$ac_delim
44540 hostname!$hostname$ac_delim
44541 scriptdir!$scriptdir$ac_delim
44542 bsrdir!$bsrdir$ac_delim
44543 logdir!$logdir$ac_delim
44544 plugindir!$plugindir$ac_delim
44545 dump_email!$dump_email$ac_delim
44546 job_email!$job_email$ac_delim
44547 smtp_host!$smtp_host$ac_delim
44548 piddir!$piddir$ac_delim
44549 subsysdir!$subsysdir$ac_delim
44550 baseport!$baseport$ac_delim
44551 dir_port!$dir_port$ac_delim
44552 fd_port!$fd_port$ac_delim
44553 sd_port!$sd_port$ac_delim
44554 dir_password!$dir_password$ac_delim
44555 fd_password!$fd_password$ac_delim
44556 sd_password!$sd_password$ac_delim
44557 mon_dir_password!$mon_dir_password$ac_delim
44558 mon_fd_password!$mon_fd_password$ac_delim
44559 mon_sd_password!$mon_sd_password$ac_delim
44560 db_name!$db_name$ac_delim
44561 db_user!$db_user$ac_delim
44562 db_password!$db_password$ac_delim
44563 db_port!$db_port$ac_delim
44564 dir_user!$dir_user$ac_delim
44565 dir_group!$dir_group$ac_delim
44566 sd_user!$sd_user$ac_delim
44567 sd_group!$sd_group$ac_delim
44568 fd_user!$fd_user$ac_delim
44569 fd_group!$fd_group$ac_delim
44570 SBINPERM!$SBINPERM$ac_delim
44571 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
44572 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
44573 SQL_BINDIR!$SQL_BINDIR$ac_delim
44574 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
44575 uncomment_dbi!$uncomment_dbi$ac_delim
44576 DB_PROG!$DB_PROG$ac_delim
44577 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
44578 cats!$cats$ac_delim
44579 DB_TYPE!$DB_TYPE$ac_delim
44580 GETCONF!$GETCONF$ac_delim
44581 XMKMF!$XMKMF$ac_delim
44582 X_CFLAGS!$X_CFLAGS$ac_delim
44583 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
44584 X_LIBS!$X_LIBS$ac_delim
44585 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
44586 LIBOBJS!$LIBOBJS$ac_delim
44587 CAP_LIBS!$CAP_LIBS$ac_delim
44588 FDLIBS!$FDLIBS$ac_delim
44589 DEBUG!$DEBUG$ac_delim
44590 DINCLUDE!$DINCLUDE$ac_delim
44591 DLIB!$DLIB$ac_delim
44592 DB_LIBS!$DB_LIBS$ac_delim
44593 WCFLAGS!$WCFLAGS$ac_delim
44594 WLDFLAGS!$WLDFLAGS$ac_delim
44595 WRAPLIBS!$WRAPLIBS$ac_delim
44596 OBJLIST!$OBJLIST$ac_delim
44597 TAPEDRIVE!$TAPEDRIVE$ac_delim
44598 PSCMD!$PSCMD$ac_delim
44599 WIN32!$WIN32$ac_delim
44600 MACOSX!$MACOSX$ac_delim
44601 DISTNAME!$DISTNAME$ac_delim
44602 DISTVER!$DISTVER$ac_delim
44603 LTLIBOBJS!$LTLIBOBJS$ac_delim
44604 _ACEOF
44605
44606   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
44607     break
44608   elif $ac_last_try; then
44609     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44610 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44611    { (exit 1); exit 1; }; }
44612   else
44613     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44614   fi
44615 done
44616
44617 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44618 if test -n "$ac_eof"; then
44619   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44620   ac_eof=`expr $ac_eof + 1`
44621 fi
44622
44623 cat >>$CONFIG_STATUS <<_ACEOF
44624 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
44625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44626 _ACEOF
44627 sed '
44628 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44629 s/^/s,@/; s/!/@,|#_!!_#|/
44630 :n
44631 t n
44632 s/'"$ac_delim"'$/,g/; t
44633 s/$/\\/; p
44634 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44635 ' >>$CONFIG_STATUS <conf$$subs.sed
44636 rm -f conf$$subs.sed
44637 cat >>$CONFIG_STATUS <<_ACEOF
44638 CEOF$ac_eof
44639 _ACEOF
44640
44641
44642 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44643 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44644 # trailing colons and then remove the whole line if VPATH becomes empty
44645 # (actually we leave an empty line to preserve line numbers).
44646 if test "x$srcdir" = x.; then
44647   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44648 s/:*\$(srcdir):*/:/
44649 s/:*\${srcdir}:*/:/
44650 s/:*@srcdir@:*/:/
44651 s/^\([^=]*=[     ]*\):*/\1/
44652 s/:*$//
44653 s/^[^=]*=[       ]*$//
44654 }'
44655 fi
44656
44657 cat >>$CONFIG_STATUS <<\_ACEOF
44658 fi # test -n "$CONFIG_FILES"
44659
44660
44661 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
44662 do
44663   case $ac_tag in
44664   :[FHLC]) ac_mode=$ac_tag; continue;;
44665   esac
44666   case $ac_mode$ac_tag in
44667   :[FHL]*:*);;
44668   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
44669 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
44670    { (exit 1); exit 1; }; };;
44671   :[FH]-) ac_tag=-:-;;
44672   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44673   esac
44674   ac_save_IFS=$IFS
44675   IFS=:
44676   set x $ac_tag
44677   IFS=$ac_save_IFS
44678   shift
44679   ac_file=$1
44680   shift
44681
44682   case $ac_mode in
44683   :L) ac_source=$1;;
44684   :[FH])
44685     ac_file_inputs=
44686     for ac_f
44687     do
44688       case $ac_f in
44689       -) ac_f="$tmp/stdin";;
44690       *) # Look for the file first in the build tree, then in the source tree
44691          # (if the path is not absolute).  The absolute path cannot be DOS-style,
44692          # because $ac_f cannot contain `:'.
44693          test -f "$ac_f" ||
44694            case $ac_f in
44695            [\\/$]*) false;;
44696            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44697            esac ||
44698            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44699 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44700    { (exit 1); exit 1; }; };;
44701       esac
44702       ac_file_inputs="$ac_file_inputs $ac_f"
44703     done
44704
44705     # Let's still pretend it is `configure' which instantiates (i.e., don't
44706     # use $as_me), people would be surprised to read:
44707     #    /* config.h.  Generated by config.status.  */
44708     configure_input="Generated from "`IFS=:
44709           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44710     if test x"$ac_file" != x-; then
44711       configure_input="$ac_file.  $configure_input"
44712       { echo "$as_me:$LINENO: creating $ac_file" >&5
44713 echo "$as_me: creating $ac_file" >&6;}
44714     fi
44715
44716     case $ac_tag in
44717     *:-:* | *:-) cat >"$tmp/stdin";;
44718     esac
44719     ;;
44720   esac
44721
44722   ac_dir=`$as_dirname -- "$ac_file" ||
44723 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44724          X"$ac_file" : 'X\(//\)[^/]' \| \
44725          X"$ac_file" : 'X\(//\)$' \| \
44726          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44727 echo X"$ac_file" |
44728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44729             s//\1/
44730             q
44731           }
44732           /^X\(\/\/\)[^/].*/{
44733             s//\1/
44734             q
44735           }
44736           /^X\(\/\/\)$/{
44737             s//\1/
44738             q
44739           }
44740           /^X\(\/\).*/{
44741             s//\1/
44742             q
44743           }
44744           s/.*/./; q'`
44745   { as_dir="$ac_dir"
44746   case $as_dir in #(
44747   -*) as_dir=./$as_dir;;
44748   esac
44749   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44750     as_dirs=
44751     while :; do
44752       case $as_dir in #(
44753       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44754       *) as_qdir=$as_dir;;
44755       esac
44756       as_dirs="'$as_qdir' $as_dirs"
44757       as_dir=`$as_dirname -- "$as_dir" ||
44758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44759          X"$as_dir" : 'X\(//\)[^/]' \| \
44760          X"$as_dir" : 'X\(//\)$' \| \
44761          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44762 echo X"$as_dir" |
44763     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44764             s//\1/
44765             q
44766           }
44767           /^X\(\/\/\)[^/].*/{
44768             s//\1/
44769             q
44770           }
44771           /^X\(\/\/\)$/{
44772             s//\1/
44773             q
44774           }
44775           /^X\(\/\).*/{
44776             s//\1/
44777             q
44778           }
44779           s/.*/./; q'`
44780       test -d "$as_dir" && break
44781     done
44782     test -z "$as_dirs" || eval "mkdir $as_dirs"
44783   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44784 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44785    { (exit 1); exit 1; }; }; }
44786   ac_builddir=.
44787
44788 case "$ac_dir" in
44789 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44790 *)
44791   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44792   # A ".." for each directory in $ac_dir_suffix.
44793   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44794   case $ac_top_builddir_sub in
44795   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44796   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44797   esac ;;
44798 esac
44799 ac_abs_top_builddir=$ac_pwd
44800 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44801 # for backward compatibility:
44802 ac_top_builddir=$ac_top_build_prefix
44803
44804 case $srcdir in
44805   .)  # We are building in place.
44806     ac_srcdir=.
44807     ac_top_srcdir=$ac_top_builddir_sub
44808     ac_abs_top_srcdir=$ac_pwd ;;
44809   [\\/]* | ?:[\\/]* )  # Absolute name.
44810     ac_srcdir=$srcdir$ac_dir_suffix;
44811     ac_top_srcdir=$srcdir
44812     ac_abs_top_srcdir=$srcdir ;;
44813   *) # Relative name.
44814     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44815     ac_top_srcdir=$ac_top_build_prefix$srcdir
44816     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44817 esac
44818 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44819
44820
44821   case $ac_mode in
44822   :F)
44823   #
44824   # CONFIG_FILE
44825   #
44826
44827   case $INSTALL in
44828   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44829   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44830   esac
44831 _ACEOF
44832
44833 cat >>$CONFIG_STATUS <<\_ACEOF
44834 # If the template does not know about datarootdir, expand it.
44835 # FIXME: This hack should be removed a few years after 2.60.
44836 ac_datarootdir_hack=; ac_datarootdir_seen=
44837
44838 case `sed -n '/datarootdir/ {
44839   p
44840   q
44841 }
44842 /@datadir@/p
44843 /@docdir@/p
44844 /@infodir@/p
44845 /@localedir@/p
44846 /@mandir@/p
44847 ' $ac_file_inputs` in
44848 *datarootdir*) ac_datarootdir_seen=yes;;
44849 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44850   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44851 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44852 _ACEOF
44853 cat >>$CONFIG_STATUS <<_ACEOF
44854   ac_datarootdir_hack='
44855   s&@datadir@&$datadir&g
44856   s&@docdir@&$docdir&g
44857   s&@infodir@&$infodir&g
44858   s&@localedir@&$localedir&g
44859   s&@mandir@&$mandir&g
44860     s&\\\${datarootdir}&$datarootdir&g' ;;
44861 esac
44862 _ACEOF
44863
44864 # Neutralize VPATH when `$srcdir' = `.'.
44865 # Shell code in configure.ac might set extrasub.
44866 # FIXME: do we really want to maintain this feature?
44867 cat >>$CONFIG_STATUS <<_ACEOF
44868   sed "$ac_vpsub
44869 $extrasub
44870 _ACEOF
44871 cat >>$CONFIG_STATUS <<\_ACEOF
44872 :t
44873 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44874 s&@configure_input@&$configure_input&;t t
44875 s&@top_builddir@&$ac_top_builddir_sub&;t t
44876 s&@srcdir@&$ac_srcdir&;t t
44877 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44878 s&@top_srcdir@&$ac_top_srcdir&;t t
44879 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44880 s&@builddir@&$ac_builddir&;t t
44881 s&@abs_builddir@&$ac_abs_builddir&;t t
44882 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44883 s&@INSTALL@&$ac_INSTALL&;t t
44884 $ac_datarootdir_hack
44885 " $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
44886
44887 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44888   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44889   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44890   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44891 which seems to be undefined.  Please make sure it is defined." >&5
44892 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44893 which seems to be undefined.  Please make sure it is defined." >&2;}
44894
44895   rm -f "$tmp/stdin"
44896   case $ac_file in
44897   -) cat "$tmp/out"; rm -f "$tmp/out";;
44898   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44899   esac
44900  ;;
44901   :H)
44902   #
44903   # CONFIG_HEADER
44904   #
44905 _ACEOF
44906
44907 # Transform confdefs.h into a sed script `conftest.defines', that
44908 # substitutes the proper values into config.h.in to produce config.h.
44909 rm -f conftest.defines conftest.tail
44910 # First, append a space to every undef/define line, to ease matching.
44911 echo 's/$/ /' >conftest.defines
44912 # Then, protect against being on the right side of a sed subst, or in
44913 # an unquoted here document, in config.status.  If some macros were
44914 # called several times there might be several #defines for the same
44915 # symbol, which is useless.  But do not sort them, since the last
44916 # AC_DEFINE must be honored.
44917 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44918 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44919 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44920 # PARAMS is the parameter list in the macro definition--in most cases, it's
44921 # just an empty string.
44922 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
44923 ac_dB='\\)[      (].*,\\1define\\2'
44924 ac_dC=' '
44925 ac_dD=' ,'
44926
44927 uniq confdefs.h |
44928   sed -n '
44929         t rset
44930         :rset
44931         s/^[     ]*#[    ]*define[       ][      ]*//
44932         t ok
44933         d
44934         :ok
44935         s/[\\&,]/\\&/g
44936         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44937         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44938   ' >>conftest.defines
44939
44940 # Remove the space that was appended to ease matching.
44941 # Then replace #undef with comments.  This is necessary, for
44942 # example, in the case of _POSIX_SOURCE, which is predefined and required
44943 # on some systems where configure will not decide to define it.
44944 # (The regexp can be short, since the line contains either #define or #undef.)
44945 echo 's/ $//
44946 s,^[     #]*u.*,/* & */,' >>conftest.defines
44947
44948 # Break up conftest.defines:
44949 ac_max_sed_lines=50
44950
44951 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44952 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44953 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44954 # et cetera.
44955 ac_in='$ac_file_inputs'
44956 ac_out='"$tmp/out1"'
44957 ac_nxt='"$tmp/out2"'
44958
44959 while :
44960 do
44961   # Write a here document:
44962     cat >>$CONFIG_STATUS <<_ACEOF
44963     # First, check the format of the line:
44964     cat >"\$tmp/defines.sed" <<\\CEOF
44965 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
44966 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
44967 b
44968 :def
44969 _ACEOF
44970   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44971   echo 'CEOF
44972     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44973   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44974   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44975   grep . conftest.tail >/dev/null || break
44976   rm -f conftest.defines
44977   mv conftest.tail conftest.defines
44978 done
44979 rm -f conftest.defines conftest.tail
44980
44981 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44982 cat >>$CONFIG_STATUS <<\_ACEOF
44983   if test x"$ac_file" != x-; then
44984     echo "/* $configure_input  */" >"$tmp/config.h"
44985     cat "$ac_result" >>"$tmp/config.h"
44986     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44987       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44988 echo "$as_me: $ac_file is unchanged" >&6;}
44989     else
44990       rm -f $ac_file
44991       mv "$tmp/config.h" $ac_file
44992     fi
44993   else
44994     echo "/* $configure_input  */"
44995     cat "$ac_result"
44996   fi
44997   rm -f "$tmp/out12"
44998  ;;
44999
45000   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45001 echo "$as_me: executing $ac_file commands" >&6;}
45002  ;;
45003   esac
45004
45005
45006   case $ac_file$ac_mode in
45007     "libtool":C)
45008
45009     # See if we are running on zsh, and set the options which allow our
45010     # commands through without removal of \ escapes.
45011     if test -n "${ZSH_VERSION+set}" ; then
45012       setopt NO_GLOB_SUBST
45013     fi
45014
45015     cfgfile="${ofile}T"
45016     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
45017     $RM "$cfgfile"
45018
45019     cat <<_LT_EOF >> "$cfgfile"
45020 #! $SHELL
45021
45022 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
45023 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
45024 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
45025 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
45026 #
45027 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
45028 #                 2006, 2007, 2008 Free Software Foundation, Inc.
45029 #   Written by Gordon Matzigkeit, 1996
45030 #
45031 #   This file is part of GNU Libtool.
45032 #
45033 # GNU Libtool is free software; you can redistribute it and/or
45034 # modify it under the terms of the GNU General Public License as
45035 # published by the Free Software Foundation; either version 2 of
45036 # the License, or (at your option) any later version.
45037 #
45038 # As a special exception to the GNU General Public License,
45039 # if you distribute this file as part of a program or library that
45040 # is built using GNU Libtool, you may include this file under the
45041 # same distribution terms that you use for the rest of that program.
45042 #
45043 # GNU Libtool is distributed in the hope that it will be useful,
45044 # but WITHOUT ANY WARRANTY; without even the implied warranty of
45045 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
45046 # GNU General Public License for more details.
45047 #
45048 # You should have received a copy of the GNU General Public License
45049 # along with GNU Libtool; see the file COPYING.  If not, a copy
45050 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
45051 # obtained by writing to the Free Software Foundation, Inc.,
45052 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
45053
45054
45055 # The names of the tagged configurations supported by this script.
45056 available_tags="CXX "
45057
45058 # ### BEGIN LIBTOOL CONFIG
45059
45060 # Which release of libtool.m4 was used?
45061 macro_version=$macro_version
45062 macro_revision=$macro_revision
45063
45064 # Whether or not to build shared libraries.
45065 build_libtool_libs=$enable_shared
45066
45067 # Whether or not to build static libraries.
45068 build_old_libs=$enable_static
45069
45070 # What type of objects to build.
45071 pic_mode=$pic_mode
45072
45073 # Whether or not to optimize for fast installation.
45074 fast_install=$enable_fast_install
45075
45076 # The host system.
45077 host_alias=$host_alias
45078 host=$host
45079 host_os=$host_os
45080
45081 # The build system.
45082 build_alias=$build_alias
45083 build=$build
45084 build_os=$build_os
45085
45086 # A sed program that does not truncate output.
45087 SED=$lt_SED
45088
45089 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
45090 Xsed="\$SED -e 1s/^X//"
45091
45092 # A grep program that handles long lines.
45093 GREP=$lt_GREP
45094
45095 # An ERE matcher.
45096 EGREP=$lt_EGREP
45097
45098 # A literal string matcher.
45099 FGREP=$lt_FGREP
45100
45101 # A BSD- or MS-compatible name lister.
45102 NM=$lt_NM
45103
45104 # Whether we need soft or hard links.
45105 LN_S=$lt_LN_S
45106
45107 # What is the maximum length of a command?
45108 max_cmd_len=$max_cmd_len
45109
45110 # Object file suffix (normally "o").
45111 objext=$ac_objext
45112
45113 # Executable file suffix (normally "").
45114 exeext=$exeext
45115
45116 # whether the shell understands "unset".
45117 lt_unset=$lt_unset
45118
45119 # turn spaces into newlines.
45120 SP2NL=$lt_lt_SP2NL
45121
45122 # turn newlines into spaces.
45123 NL2SP=$lt_lt_NL2SP
45124
45125 # How to create reloadable object files.
45126 reload_flag=$lt_reload_flag
45127 reload_cmds=$lt_reload_cmds
45128
45129 # An object symbol dumper.
45130 OBJDUMP=$lt_OBJDUMP
45131
45132 # Method to check whether dependent libraries are shared objects.
45133 deplibs_check_method=$lt_deplibs_check_method
45134
45135 # Command to use when deplibs_check_method == "file_magic".
45136 file_magic_cmd=$lt_file_magic_cmd
45137
45138 # The archiver.
45139 AR=$lt_AR
45140 AR_FLAGS=$lt_AR_FLAGS
45141
45142 # A symbol stripping program.
45143 STRIP=$lt_STRIP
45144
45145 # Commands used to install an old-style archive.
45146 RANLIB=$lt_RANLIB
45147 old_postinstall_cmds=$lt_old_postinstall_cmds
45148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
45149
45150 # A C compiler.
45151 LTCC=$lt_CC
45152
45153 # LTCC compiler flags.
45154 LTCFLAGS=$lt_CFLAGS
45155
45156 # Take the output of nm and produce a listing of raw symbols and C names.
45157 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
45158
45159 # Transform the output of nm in a proper C declaration.
45160 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
45161
45162 # Transform the output of nm in a C name address pair.
45163 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
45164
45165 # Transform the output of nm in a C name address pair when lib prefix is needed.
45166 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
45167
45168 # The name of the directory that contains temporary libtool files.
45169 objdir=$objdir
45170
45171 # Shell to use when invoking shell scripts.
45172 SHELL=$lt_SHELL
45173
45174 # An echo program that does not interpret backslashes.
45175 ECHO=$lt_ECHO
45176
45177 # Used to examine libraries when file_magic_cmd begins with "file".
45178 MAGIC_CMD=$MAGIC_CMD
45179
45180 # Must we lock files when doing compilation?
45181 need_locks=$lt_need_locks
45182
45183 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
45184 DSYMUTIL=$lt_DSYMUTIL
45185
45186 # Tool to change global to local symbols on Mac OS X.
45187 NMEDIT=$lt_NMEDIT
45188
45189 # Tool to manipulate fat objects and archives on Mac OS X.
45190 LIPO=$lt_LIPO
45191
45192 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
45193 OTOOL=$lt_OTOOL
45194
45195 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
45196 OTOOL64=$lt_OTOOL64
45197
45198 # Old archive suffix (normally "a").
45199 libext=$libext
45200
45201 # Shared library suffix (normally ".so").
45202 shrext_cmds=$lt_shrext_cmds
45203
45204 # The commands to extract the exported symbol list from a shared archive.
45205 extract_expsyms_cmds=$lt_extract_expsyms_cmds
45206
45207 # Variables whose values should be saved in libtool wrapper scripts and
45208 # restored at link time.
45209 variables_saved_for_relink=$lt_variables_saved_for_relink
45210
45211 # Do we need the "lib" prefix for modules?
45212 need_lib_prefix=$need_lib_prefix
45213
45214 # Do we need a version for libraries?
45215 need_version=$need_version
45216
45217 # Library versioning type.
45218 version_type=$version_type
45219
45220 # Shared library runtime path variable.
45221 runpath_var=$runpath_var
45222
45223 # Shared library path variable.
45224 shlibpath_var=$shlibpath_var
45225
45226 # Is shlibpath searched before the hard-coded library search path?
45227 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
45228
45229 # Format of library name prefix.
45230 libname_spec=$lt_libname_spec
45231
45232 # List of archive names.  First name is the real one, the rest are links.
45233 # The last name is the one that the linker finds with -lNAME
45234 library_names_spec=$lt_library_names_spec
45235
45236 # The coded name of the library, if different from the real name.
45237 soname_spec=$lt_soname_spec
45238
45239 # Command to use after installation of a shared archive.
45240 postinstall_cmds=$lt_postinstall_cmds
45241
45242 # Command to use after uninstallation of a shared archive.
45243 postuninstall_cmds=$lt_postuninstall_cmds
45244
45245 # Commands used to finish a libtool library installation in a directory.
45246 finish_cmds=$lt_finish_cmds
45247
45248 # As "finish_cmds", except a single script fragment to be evaled but
45249 # not shown.
45250 finish_eval=$lt_finish_eval
45251
45252 # Whether we should hardcode library paths into libraries.
45253 hardcode_into_libs=$hardcode_into_libs
45254
45255 # Compile-time system search path for libraries.
45256 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
45257
45258 # Run-time system search path for libraries.
45259 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
45260
45261 # Whether dlopen is supported.
45262 dlopen_support=$enable_dlopen
45263
45264 # Whether dlopen of programs is supported.
45265 dlopen_self=$enable_dlopen_self
45266
45267 # Whether dlopen of statically linked programs is supported.
45268 dlopen_self_static=$enable_dlopen_self_static
45269
45270 # Commands to strip libraries.
45271 old_striplib=$lt_old_striplib
45272 striplib=$lt_striplib
45273
45274
45275 # The linker used to build libraries.
45276 LD=$lt_LD
45277
45278 # Commands used to build an old-style archive.
45279 old_archive_cmds=$lt_old_archive_cmds
45280
45281 # A language specific compiler.
45282 CC=$lt_compiler
45283
45284 # Is the compiler the GNU compiler?
45285 with_gcc=$GCC
45286
45287 # Compiler flag to turn off builtin functions.
45288 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
45289
45290 # How to pass a linker flag through the compiler.
45291 wl=$lt_lt_prog_compiler_wl
45292
45293 # Additional compiler flags for building library objects.
45294 pic_flag=$lt_lt_prog_compiler_pic
45295
45296 # Compiler flag to prevent dynamic linking.
45297 link_static_flag=$lt_lt_prog_compiler_static
45298
45299 # Does compiler simultaneously support -c and -o options?
45300 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45301
45302 # Whether or not to add -lc for building shared libraries.
45303 build_libtool_need_lc=$archive_cmds_need_lc
45304
45305 # Whether or not to disallow shared libs when runtime libs are static.
45306 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
45307
45308 # Compiler flag to allow reflexive dlopens.
45309 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
45310
45311 # Compiler flag to generate shared objects directly from archives.
45312 whole_archive_flag_spec=$lt_whole_archive_flag_spec
45313
45314 # Whether the compiler copes with passing no objects directly.
45315 compiler_needs_object=$lt_compiler_needs_object
45316
45317 # Create an old-style archive from a shared archive.
45318 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
45319
45320 # Create a temporary old-style archive to link instead of a shared archive.
45321 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
45322
45323 # Commands used to build a shared archive.
45324 archive_cmds=$lt_archive_cmds
45325 archive_expsym_cmds=$lt_archive_expsym_cmds
45326
45327 # Commands used to build a loadable module if different from building
45328 # a shared archive.
45329 module_cmds=$lt_module_cmds
45330 module_expsym_cmds=$lt_module_expsym_cmds
45331
45332 # Whether we are building with GNU ld or not.
45333 with_gnu_ld=$lt_with_gnu_ld
45334
45335 # Flag that allows shared libraries with undefined symbols to be built.
45336 allow_undefined_flag=$lt_allow_undefined_flag
45337
45338 # Flag that enforces no undefined symbols.
45339 no_undefined_flag=$lt_no_undefined_flag
45340
45341 # Flag to hardcode \$libdir into a binary during linking.
45342 # This must work even if \$libdir does not exist
45343 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
45344
45345 # If ld is used when linking, flag to hardcode \$libdir into a binary
45346 # during linking.  This must work even if \$libdir does not exist.
45347 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
45348
45349 # Whether we need a single "-rpath" flag with a separated argument.
45350 hardcode_libdir_separator=$lt_hardcode_libdir_separator
45351
45352 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45353 # DIR into the resulting binary.
45354 hardcode_direct=$hardcode_direct
45355
45356 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45357 # DIR into the resulting binary and the resulting library dependency is
45358 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45359 # library is relocated.
45360 hardcode_direct_absolute=$hardcode_direct_absolute
45361
45362 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45363 # into the resulting binary.
45364 hardcode_minus_L=$hardcode_minus_L
45365
45366 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45367 # into the resulting binary.
45368 hardcode_shlibpath_var=$hardcode_shlibpath_var
45369
45370 # Set to "yes" if building a shared library automatically hardcodes DIR
45371 # into the library and all subsequent libraries and executables linked
45372 # against it.
45373 hardcode_automatic=$hardcode_automatic
45374
45375 # Set to yes if linker adds runtime paths of dependent libraries
45376 # to runtime path list.
45377 inherit_rpath=$inherit_rpath
45378
45379 # Whether libtool must link a program against all its dependency libraries.
45380 link_all_deplibs=$link_all_deplibs
45381
45382 # Fix the shell variable \$srcfile for the compiler.
45383 fix_srcfile_path=$lt_fix_srcfile_path
45384
45385 # Set to "yes" if exported symbols are required.
45386 always_export_symbols=$always_export_symbols
45387
45388 # The commands to list exported symbols.
45389 export_symbols_cmds=$lt_export_symbols_cmds
45390
45391 # Symbols that should not be listed in the preloaded symbols.
45392 exclude_expsyms=$lt_exclude_expsyms
45393
45394 # Symbols that must always be exported.
45395 include_expsyms=$lt_include_expsyms
45396
45397 # Commands necessary for linking programs (against libraries) with templates.
45398 prelink_cmds=$lt_prelink_cmds
45399
45400 # Specify filename containing input files.
45401 file_list_spec=$lt_file_list_spec
45402
45403 # How to hardcode a shared library path into an executable.
45404 hardcode_action=$hardcode_action
45405
45406 # The directories searched by this compiler when creating a shared library.
45407 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
45408
45409 # Dependencies to place before and after the objects being linked to
45410 # create a shared library.
45411 predep_objects=$lt_predep_objects
45412 postdep_objects=$lt_postdep_objects
45413 predeps=$lt_predeps
45414 postdeps=$lt_postdeps
45415
45416 # The library search path used internally by the compiler when linking
45417 # a shared library.
45418 compiler_lib_search_path=$lt_compiler_lib_search_path
45419
45420 # ### END LIBTOOL CONFIG
45421
45422 _LT_EOF
45423
45424   case $host_os in
45425   aix3*)
45426     cat <<\_LT_EOF >> "$cfgfile"
45427 # AIX sometimes has problems with the GCC collect2 program.  For some
45428 # reason, if we set the COLLECT_NAMES environment variable, the problems
45429 # vanish in a puff of smoke.
45430 if test "X${COLLECT_NAMES+set}" != Xset; then
45431   COLLECT_NAMES=
45432   export COLLECT_NAMES
45433 fi
45434 _LT_EOF
45435     ;;
45436   esac
45437
45438
45439 ltmain="$ac_aux_dir/ltmain.sh"
45440
45441
45442   # We use sed instead of cat because bash on DJGPP gets confused if
45443   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
45444   # text mode, it properly converts lines to CR/LF.  This bash problem
45445   # is reportedly fixed, but why not run on old versions too?
45446   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
45447     || (rm -f "$cfgfile"; exit 1)
45448
45449   case $xsi_shell in
45450   yes)
45451     cat << \_LT_EOF >> "$cfgfile"
45452
45453 # func_dirname file append nondir_replacement
45454 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45455 # otherwise set result to NONDIR_REPLACEMENT.
45456 func_dirname ()
45457 {
45458   case ${1} in
45459     */*) func_dirname_result="${1%/*}${2}" ;;
45460     *  ) func_dirname_result="${3}" ;;
45461   esac
45462 }
45463
45464 # func_basename file
45465 func_basename ()
45466 {
45467   func_basename_result="${1##*/}"
45468 }
45469
45470 # func_dirname_and_basename file append nondir_replacement
45471 # perform func_basename and func_dirname in a single function
45472 # call:
45473 #   dirname:  Compute the dirname of FILE.  If nonempty,
45474 #             add APPEND to the result, otherwise set result
45475 #             to NONDIR_REPLACEMENT.
45476 #             value returned in "$func_dirname_result"
45477 #   basename: Compute filename of FILE.
45478 #             value retuned in "$func_basename_result"
45479 # Implementation must be kept synchronized with func_dirname
45480 # and func_basename. For efficiency, we do not delegate to
45481 # those functions but instead duplicate the functionality here.
45482 func_dirname_and_basename ()
45483 {
45484   case ${1} in
45485     */*) func_dirname_result="${1%/*}${2}" ;;
45486     *  ) func_dirname_result="${3}" ;;
45487   esac
45488   func_basename_result="${1##*/}"
45489 }
45490
45491 # func_stripname prefix suffix name
45492 # strip PREFIX and SUFFIX off of NAME.
45493 # PREFIX and SUFFIX must not contain globbing or regex special
45494 # characters, hashes, percent signs, but SUFFIX may contain a leading
45495 # dot (in which case that matches only a dot).
45496 func_stripname ()
45497 {
45498   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
45499   # positional parameters, so assign one to ordinary parameter first.
45500   func_stripname_result=${3}
45501   func_stripname_result=${func_stripname_result#"${1}"}
45502   func_stripname_result=${func_stripname_result%"${2}"}
45503 }
45504
45505 # func_opt_split
45506 func_opt_split ()
45507 {
45508   func_opt_split_opt=${1%%=*}
45509   func_opt_split_arg=${1#*=}
45510 }
45511
45512 # func_lo2o object
45513 func_lo2o ()
45514 {
45515   case ${1} in
45516     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
45517     *)    func_lo2o_result=${1} ;;
45518   esac
45519 }
45520
45521 # func_xform libobj-or-source
45522 func_xform ()
45523 {
45524   func_xform_result=${1%.*}.lo
45525 }
45526
45527 # func_arith arithmetic-term...
45528 func_arith ()
45529 {
45530   func_arith_result=$(( $* ))
45531 }
45532
45533 # func_len string
45534 # STRING may not start with a hyphen.
45535 func_len ()
45536 {
45537   func_len_result=${#1}
45538 }
45539
45540 _LT_EOF
45541     ;;
45542   *) # Bourne compatible functions.
45543     cat << \_LT_EOF >> "$cfgfile"
45544
45545 # func_dirname file append nondir_replacement
45546 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45547 # otherwise set result to NONDIR_REPLACEMENT.
45548 func_dirname ()
45549 {
45550   # Extract subdirectory from the argument.
45551   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
45552   if test "X$func_dirname_result" = "X${1}"; then
45553     func_dirname_result="${3}"
45554   else
45555     func_dirname_result="$func_dirname_result${2}"
45556   fi
45557 }
45558
45559 # func_basename file
45560 func_basename ()
45561 {
45562   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
45563 }
45564
45565
45566 # func_stripname prefix suffix name
45567 # strip PREFIX and SUFFIX off of NAME.
45568 # PREFIX and SUFFIX must not contain globbing or regex special
45569 # characters, hashes, percent signs, but SUFFIX may contain a leading
45570 # dot (in which case that matches only a dot).
45571 # func_strip_suffix prefix name
45572 func_stripname ()
45573 {
45574   case ${2} in
45575     .*) func_stripname_result=`$ECHO "X${3}" \
45576            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
45577     *)  func_stripname_result=`$ECHO "X${3}" \
45578            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
45579   esac
45580 }
45581
45582 # sed scripts:
45583 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
45584 my_sed_long_arg='1s/^-[^=]*=//'
45585
45586 # func_opt_split
45587 func_opt_split ()
45588 {
45589   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
45590   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
45591 }
45592
45593 # func_lo2o object
45594 func_lo2o ()
45595 {
45596   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
45597 }
45598
45599 # func_xform libobj-or-source
45600 func_xform ()
45601 {
45602   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
45603 }
45604
45605 # func_arith arithmetic-term...
45606 func_arith ()
45607 {
45608   func_arith_result=`expr "$@"`
45609 }
45610
45611 # func_len string
45612 # STRING may not start with a hyphen.
45613 func_len ()
45614 {
45615   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
45616 }
45617
45618 _LT_EOF
45619 esac
45620
45621 case $lt_shell_append in
45622   yes)
45623     cat << \_LT_EOF >> "$cfgfile"
45624
45625 # func_append var value
45626 # Append VALUE to the end of shell variable VAR.
45627 func_append ()
45628 {
45629   eval "$1+=\$2"
45630 }
45631 _LT_EOF
45632     ;;
45633   *)
45634     cat << \_LT_EOF >> "$cfgfile"
45635
45636 # func_append var value
45637 # Append VALUE to the end of shell variable VAR.
45638 func_append ()
45639 {
45640   eval "$1=\$$1\$2"
45641 }
45642
45643 _LT_EOF
45644     ;;
45645   esac
45646
45647
45648   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
45649     || (rm -f "$cfgfile"; exit 1)
45650
45651   mv -f "$cfgfile" "$ofile" ||
45652     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45653   chmod +x "$ofile"
45654
45655
45656     cat <<_LT_EOF >> "$ofile"
45657
45658 # ### BEGIN LIBTOOL TAG CONFIG: CXX
45659
45660 # The linker used to build libraries.
45661 LD=$lt_LD_CXX
45662
45663 # Commands used to build an old-style archive.
45664 old_archive_cmds=$lt_old_archive_cmds_CXX
45665
45666 # A language specific compiler.
45667 CC=$lt_compiler_CXX
45668
45669 # Is the compiler the GNU compiler?
45670 with_gcc=$GCC_CXX
45671
45672 # Compiler flag to turn off builtin functions.
45673 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
45674
45675 # How to pass a linker flag through the compiler.
45676 wl=$lt_lt_prog_compiler_wl_CXX
45677
45678 # Additional compiler flags for building library objects.
45679 pic_flag=$lt_lt_prog_compiler_pic_CXX
45680
45681 # Compiler flag to prevent dynamic linking.
45682 link_static_flag=$lt_lt_prog_compiler_static_CXX
45683
45684 # Does compiler simultaneously support -c and -o options?
45685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
45686
45687 # Whether or not to add -lc for building shared libraries.
45688 build_libtool_need_lc=$archive_cmds_need_lc_CXX
45689
45690 # Whether or not to disallow shared libs when runtime libs are static.
45691 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
45692
45693 # Compiler flag to allow reflexive dlopens.
45694 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
45695
45696 # Compiler flag to generate shared objects directly from archives.
45697 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
45698
45699 # Whether the compiler copes with passing no objects directly.
45700 compiler_needs_object=$lt_compiler_needs_object_CXX
45701
45702 # Create an old-style archive from a shared archive.
45703 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
45704
45705 # Create a temporary old-style archive to link instead of a shared archive.
45706 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
45707
45708 # Commands used to build a shared archive.
45709 archive_cmds=$lt_archive_cmds_CXX
45710 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
45711
45712 # Commands used to build a loadable module if different from building
45713 # a shared archive.
45714 module_cmds=$lt_module_cmds_CXX
45715 module_expsym_cmds=$lt_module_expsym_cmds_CXX
45716
45717 # Whether we are building with GNU ld or not.
45718 with_gnu_ld=$lt_with_gnu_ld_CXX
45719
45720 # Flag that allows shared libraries with undefined symbols to be built.
45721 allow_undefined_flag=$lt_allow_undefined_flag_CXX
45722
45723 # Flag that enforces no undefined symbols.
45724 no_undefined_flag=$lt_no_undefined_flag_CXX
45725
45726 # Flag to hardcode \$libdir into a binary during linking.
45727 # This must work even if \$libdir does not exist
45728 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
45729
45730 # If ld is used when linking, flag to hardcode \$libdir into a binary
45731 # during linking.  This must work even if \$libdir does not exist.
45732 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
45733
45734 # Whether we need a single "-rpath" flag with a separated argument.
45735 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
45736
45737 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45738 # DIR into the resulting binary.
45739 hardcode_direct=$hardcode_direct_CXX
45740
45741 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45742 # DIR into the resulting binary and the resulting library dependency is
45743 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45744 # library is relocated.
45745 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
45746
45747 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45748 # into the resulting binary.
45749 hardcode_minus_L=$hardcode_minus_L_CXX
45750
45751 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45752 # into the resulting binary.
45753 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
45754
45755 # Set to "yes" if building a shared library automatically hardcodes DIR
45756 # into the library and all subsequent libraries and executables linked
45757 # against it.
45758 hardcode_automatic=$hardcode_automatic_CXX
45759
45760 # Set to yes if linker adds runtime paths of dependent libraries
45761 # to runtime path list.
45762 inherit_rpath=$inherit_rpath_CXX
45763
45764 # Whether libtool must link a program against all its dependency libraries.
45765 link_all_deplibs=$link_all_deplibs_CXX
45766
45767 # Fix the shell variable \$srcfile for the compiler.
45768 fix_srcfile_path=$lt_fix_srcfile_path_CXX
45769
45770 # Set to "yes" if exported symbols are required.
45771 always_export_symbols=$always_export_symbols_CXX
45772
45773 # The commands to list exported symbols.
45774 export_symbols_cmds=$lt_export_symbols_cmds_CXX
45775
45776 # Symbols that should not be listed in the preloaded symbols.
45777 exclude_expsyms=$lt_exclude_expsyms_CXX
45778
45779 # Symbols that must always be exported.
45780 include_expsyms=$lt_include_expsyms_CXX
45781
45782 # Commands necessary for linking programs (against libraries) with templates.
45783 prelink_cmds=$lt_prelink_cmds_CXX
45784
45785 # Specify filename containing input files.
45786 file_list_spec=$lt_file_list_spec_CXX
45787
45788 # How to hardcode a shared library path into an executable.
45789 hardcode_action=$hardcode_action_CXX
45790
45791 # The directories searched by this compiler when creating a shared library.
45792 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
45793
45794 # Dependencies to place before and after the objects being linked to
45795 # create a shared library.
45796 predep_objects=$lt_predep_objects_CXX
45797 postdep_objects=$lt_postdep_objects_CXX
45798 predeps=$lt_predeps_CXX
45799 postdeps=$lt_postdeps_CXX
45800
45801 # The library search path used internally by the compiler when linking
45802 # a shared library.
45803 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
45804
45805 # ### END LIBTOOL TAG CONFIG: CXX
45806 _LT_EOF
45807
45808  ;;
45809     "default-1":C)
45810     for ac_file in $CONFIG_FILES; do
45811       # Support "outfile[:infile[:infile...]]"
45812       case "$ac_file" in
45813         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
45814       esac
45815       # PO directories have a Makefile.in generated from Makefile.in.in.
45816       case "$ac_file" in */Makefile.in)
45817         # Adjust a relative srcdir.
45818         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
45819         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
45820         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
45821         # In autoconf-2.13 it is called $ac_given_srcdir.
45822         # In autoconf-2.50 it is called $srcdir.
45823         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
45824         case "$ac_given_srcdir" in
45825           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
45826           /*) top_srcdir="$ac_given_srcdir" ;;
45827           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
45828         esac
45829         # Treat a directory as a PO directory if and only if it has a
45830         # POTFILES.in file. This allows packages to have multiple PO
45831         # directories under different names or in different locations.
45832         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
45833           rm -f "$ac_dir/POTFILES"
45834           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
45835           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
45836           POMAKEFILEDEPS="POTFILES.in"
45837           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
45838           # on $ac_dir but don't depend on user-specified configuration
45839           # parameters.
45840           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
45841             # The LINGUAS file contains the set of available languages.
45842             if test -n "$OBSOLETE_ALL_LINGUAS"; then
45843               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
45844             fi
45845             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
45846             # Hide the ALL_LINGUAS assigment from automake.
45847             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
45848             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
45849           else
45850             # The set of available languages was given in configure.in.
45851             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
45852           fi
45853           # Compute POFILES
45854           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
45855           # Compute UPDATEPOFILES
45856           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
45857           # Compute DUMMYPOFILES
45858           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
45859           # Compute GMOFILES
45860           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
45861           case "$ac_given_srcdir" in
45862             .) srcdirpre= ;;
45863             *) srcdirpre='$(srcdir)/' ;;
45864           esac
45865           POFILES=
45866           UPDATEPOFILES=
45867           DUMMYPOFILES=
45868           GMOFILES=
45869           for lang in $ALL_LINGUAS; do
45870             POFILES="$POFILES $srcdirpre$lang.po"
45871             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
45872             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
45873             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
45874           done
45875           # CATALOGS depends on both $ac_dir and the user's LINGUAS
45876           # environment variable.
45877           INST_LINGUAS=
45878           if test -n "$ALL_LINGUAS"; then
45879             for presentlang in $ALL_LINGUAS; do
45880               useit=no
45881               if test "%UNSET%" != "$LINGUAS"; then
45882                 desiredlanguages="$LINGUAS"
45883               else
45884                 desiredlanguages="$ALL_LINGUAS"
45885               fi
45886               for desiredlang in $desiredlanguages; do
45887                 # Use the presentlang catalog if desiredlang is
45888                 #   a. equal to presentlang, or
45889                 #   b. a variant of presentlang (because in this case,
45890                 #      presentlang can be used as a fallback for messages
45891                 #      which are not translated in the desiredlang catalog).
45892                 case "$desiredlang" in
45893                   "$presentlang"*) useit=yes;;
45894                 esac
45895               done
45896               if test $useit = yes; then
45897                 INST_LINGUAS="$INST_LINGUAS $presentlang"
45898               fi
45899             done
45900           fi
45901           CATALOGS=
45902           if test -n "$INST_LINGUAS"; then
45903             for lang in $INST_LINGUAS; do
45904               CATALOGS="$CATALOGS $lang.gmo"
45905             done
45906           fi
45907           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
45908           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"
45909           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
45910             if test -f "$f"; then
45911               case "$f" in
45912                 *.orig | *.bak | *~) ;;
45913                 *) cat "$f" >> "$ac_dir/Makefile" ;;
45914               esac
45915             fi
45916           done
45917         fi
45918         ;;
45919       esac
45920     done ;;
45921     "default":C)
45922  ;;
45923
45924   esac
45925 done # for ac_tag
45926
45927
45928 { (exit 0); exit 0; }
45929 _ACEOF
45930 chmod +x $CONFIG_STATUS
45931 ac_clean_files=$ac_clean_files_save
45932
45933
45934 # configure is writing to config.log, and then calls config.status.
45935 # config.status does its own redirection, appending to config.log.
45936 # Unfortunately, on DOS this fails, as config.log is still kept open
45937 # by configure, so config.status won't be able to write to it; its
45938 # output is simply discarded.  So we exec the FD to /dev/null,
45939 # effectively closing config.log, so it can be properly (re)opened and
45940 # appended to by config.status.  When coming back to configure, we
45941 # need to make the FD available again.
45942 if test "$no_create" != yes; then
45943   ac_cs_success=:
45944   ac_config_status_args=
45945   test "$silent" = yes &&
45946     ac_config_status_args="$ac_config_status_args --quiet"
45947   exec 5>/dev/null
45948   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45949   exec 5>>config.log
45950   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45951   # would make configure fail if this is the last instruction.
45952   $ac_cs_success || { (exit 1); exit 1; }
45953 fi
45954
45955
45956 if test "${support_bat}" = "yes" ; then
45957    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
45958       { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
45959 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
45960    { (exit 1); exit 1; }; }
45961    fi
45962
45963    QMAKEBIN="qmake"
45964
45965    if test "x$QMAKEQT4" != "xnone"; then
45966        QMAKEBIN=qmake-qt4
45967    fi
45968
45969    cd src/qt-console
45970    echo "Creating bat Makefile"
45971    touch bat
45972    chmod 755 bat
45973    $QMAKEBIN
45974    ${MAKE:-make} clean
45975    cd ${BUILD_DIR}
45976 fi
45977
45978 if test X"$GCC" = "Xyes" ; then
45979   echo "Doing make of dependencies"
45980   ${MAKE:-make} depend
45981 fi
45982
45983 cd src/qt-console
45984 chmod 755 install_conf_file build-depkgs-qt-console
45985 cd ${BUILD_DIR}
45986
45987 cd scripts
45988 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
45989 chmod 755 dvd-handler dvd-simulator
45990 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
45991 cd ..
45992
45993 c=updatedb
45994 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
45995 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
45996
45997 c=src/cats
45998
45999 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
46000 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
46001
46002 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
46003 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
46004
46005 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
46006 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
46007
46008 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
46009 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
46010
46011 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
46012 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
46013
46014 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
46015 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
46016
46017 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
46018 chmod 755 $c/sqlite
46019 chmod 755 $c/mysql
46020
46021 chmod 755 src/win32/build-depkgs-mingw32
46022
46023 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
46024    largefile_support="yes"
46025 fi
46026
46027 if test X"$GCC" = "Xyes" ; then
46028                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46029    if test "x${CCVERSION}" = "x" ; then
46030       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46031    fi
46032    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46033    if test x"${CXXVERSION}" = x ; then
46034       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46035    fi
46036 fi
46037
46038 # clean up any old junk
46039 echo " "
46040 echo "Cleaning up"
46041 echo " "
46042 ${MAKE:-make} clean
46043
46044 if test "x${db_type}" = "xInternal" ; then
46045    echo " "
46046    echo " "
46047    echo "You have not specified either --enable-client-only or one of the"
46048    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
46049    echo "  This is not permitted. Please reconfigure."
46050    echo " "
46051    echo "Aborting the configuration ..."
46052    echo " "
46053    echo " "
46054    exit 1
46055 fi
46056
46057 echo "
46058 Configuration on `date`:
46059
46060    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
46061    Bacula version:          ${BACULA} ${VERSION} (${DATE})
46062    Source code location:    ${srcdir}
46063    Install binaries:        ${sbindir}
46064    Install libraries:       ${libdir}
46065    Install config files:    ${sysconfdir}
46066    Scripts directory:       ${scriptdir}
46067    Archive directory:       ${archivedir}
46068    Working directory:       ${working_dir}
46069    PID directory:           ${piddir}
46070    Subsys directory:        ${subsysdir}
46071    Man directory:           ${mandir}
46072    Data directory:          ${datarootdir}
46073    Plugin directory:        ${plugindir}
46074    C Compiler:              ${CC} ${CCVERSION}
46075    C++ Compiler:            ${CXX} ${CXXVERSION}
46076    Compiler flags:          ${WCFLAGS} ${CFLAGS}
46077    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
46078    Libraries:               ${LIBS}
46079    Statically Linked Tools: ${support_static_tools}
46080    Statically Linked FD:    ${support_static_fd}
46081    Statically Linked SD:    ${support_static_sd}
46082    Statically Linked DIR:   ${support_static_dir}
46083    Statically Linked CONS:  ${support_static_cons}
46084    Database type:           ${db_type}
46085    Database port:           ${db_port}
46086    Database lib:            ${DB_LIBS}
46087    Database name:           ${db_name}
46088    Database user:           ${db_user}
46089
46090    Job Output Email:        ${job_email}
46091    Traceback Email:         ${dump_email}
46092    SMTP Host Address:       ${smtp_host}
46093
46094    Director Port:           ${dir_port}
46095    File daemon Port:        ${fd_port}
46096    Storage daemon Port:     ${sd_port}
46097
46098    Director User:           ${dir_user}
46099    Director Group:          ${dir_group}
46100    Storage Daemon User:     ${sd_user}
46101    Storage DaemonGroup:     ${sd_group}
46102    File Daemon User:        ${fd_user}
46103    File Daemon Group:       ${fd_group}
46104
46105    SQL binaries Directory   ${SQL_BINDIR}
46106
46107    Large file support:      $largefile_support
46108    Bacula conio support:    ${got_conio} ${CONS_LIBS}
46109    readline support:        ${got_readline} ${PRTREADLINE_SRC}
46110    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
46111    TLS support:             ${support_tls}
46112    Encryption support:      ${support_crypto}
46113    ZLIB support:            ${have_zlib}
46114    enable-smartalloc:       ${support_smartalloc}
46115    enable-lockmgr:          ${support_lockmgr}
46116    bat support:             ${support_bat} ${QWT_LDFLAGS}
46117    enable-gnome:            ${support_gnome} ${gnome_version}
46118    enable-bwx-console:      ${support_wx_console} ${wx_version}
46119    enable-tray-monitor:     ${support_tray_monitor}
46120    client-only:             ${build_client_only}
46121    build-dird:              ${build_dird}
46122    build-stored:            ${build_stored}
46123    ACL support:             ${have_acl}
46124    XATTR support:           ${have_xattr}
46125    Python support:          ${support_python} ${PYTHON_LIBS}
46126    Batch insert enabled:    ${support_batch_insert}
46127
46128   " > config.out
46129
46130 cat config.out